repo
stringclasses
20 values
pull_number
float64
116
189k
instance_id
stringlengths
17
34
issue_numbers
stringlengths
7
27
base_commit
stringlengths
40
40
patch
stringlengths
294
136k
test_patch
stringlengths
405
47.1k
problem_statement
stringlengths
148
24k
hints_text
stringlengths
1
33.2k
created_at
stringdate
2016-08-20 07:52:07
2024-07-18 05:28:29
language
stringclasses
4 values
Dockerfile
stringlengths
486
3.42k
P2P
stringlengths
2
224k
F2P
stringlengths
14
9.06k
F2F
stringclasses
23 values
test_command
stringlengths
27
951
task_category
stringclasses
3 values
is_no_nodes
bool
2 classes
is_func_only
bool
2 classes
is_class_only
bool
2 classes
is_mixed
bool
2 classes
num_func_changes
int64
0
238
num_class_changes
int64
0
26
num_nodes
int64
0
264
is_single_func
bool
2 classes
is_single_class
bool
2 classes
modified_nodes
stringlengths
2
42.2k
mui/material-ui
13,430
mui__material-ui-13430
['10327']
fa2b154ffb5daaf0dce0da22931f36802c03391b
diff --git a/.size-limit.js b/.size-limit.js --- a/.size-limit.js +++ b/.size-limit.js @@ -28,7 +28,7 @@ module.exports = [ name: 'The main docs bundle', webpack: false, path: main.path, - limit: '182 KB', + limit: '183 KB', }, { name: 'The docs home page', diff --git a/docs/src/pages/de...
diff --git a/packages/material-ui/src/CircularProgress/CircularProgress.test.js b/packages/material-ui/src/CircularProgress/CircularProgress.test.js --- a/packages/material-ui/src/CircularProgress/CircularProgress.test.js +++ b/packages/material-ui/src/CircularProgress/CircularProgress.test.js @@ -105,9 +105,38 @@ desc...
CircularProgress, length of the line does not animate under load <!-- Checked checkbox should look like this: [x] --> - [x] I have searched the [issues](https://github.com/mui-org/material-ui/issues) of this repository and believe that this is not a duplicate. ## Expected Behavior CircularProgress animation should...
The circular progress animation requires CPU/GPU processing power to run, much more than a simple rotation. I don't think that we could do anything to improve the current situation. It's definitely a limitation. Under heavy load, we lose the stroke dash animation, the only thing that keeps working is the rotation. At l...
2018-10-28 22:03:54+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN . /usr/local/nvm/nvm.sh && nvm use 14.21.3 && rm -rf node_modules && yarn install && yarn add -D -W --ignore-engines @types/prop-types @types/react-dom @types/sinon @types/chai @types/chai-dom @types/format-util RUN echo 'var mocha = require("mocha");' > cust...
['packages/material-ui/src/CircularProgress/CircularProgress.test.js-><CircularProgress /> should render a div with the root class', 'packages/material-ui/src/CircularProgress/CircularProgress.test.js-><CircularProgress /> should contain an SVG with the svg class, and a circle with the circle class', 'packages/material...
['packages/material-ui/src/CircularProgress/CircularProgress.test.js-><CircularProgress /> prop: disableShrink should render with disableShrink class when set to true']
[]
. /usr/local/nvm/nvm.sh && nvm use 14.21.3 && yarn cross-env NODE_ENV=test mocha packages/material-ui/src/CircularProgress/CircularProgress.test.js --reporter /testbed/custom-reporter.js --exit
Bug Fix
false
true
false
false
6
0
6
false
false
["docs/src/pages/demos/progress/LinearIndeterminate.js->program->function_declaration:LinearIndeterminate", "docs/src/pages/demos/progress/CircularDeterminate.js->program->class_declaration:CircularDeterminate->method_definition:render", "pages/demos/progress.js->program->function_declaration:Page", "pages/getting-star...
mui/material-ui
13,534
mui__material-ui-13534
['10466']
20cd3e33ae60e4970653716b7732212e93bab38c
diff --git a/docs/src/pages/demos/badges/BadgeVisibility.js b/docs/src/pages/demos/badges/BadgeVisibility.js new file mode 100644 --- /dev/null +++ b/docs/src/pages/demos/badges/BadgeVisibility.js @@ -0,0 +1,58 @@ +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; +import { withStyles } fro...
diff --git a/packages/material-ui/src/Badge/Badge.test.js b/packages/material-ui/src/Badge/Badge.test.js --- a/packages/material-ui/src/Badge/Badge.test.js +++ b/packages/material-ui/src/Badge/Badge.test.js @@ -118,4 +118,49 @@ describe('<Badge />', () => { assert.strictEqual(wrapper.contains(testChildren), true);...
[Badge] Add disabled property to quick hide/show <!--- Provide a general summary of the issue in the Title above --> <!-- Thank you very much for contributing to Material-UI by creating an issue! ❤️ To avoid duplicate issues we ask you to check off the following list. --> <!-- Checked checkbox should l...
@djeeg You can use the `classes.badge` CSS API to change the style as you see fit. For instance, you could add `display: none`/`visibility: hidden`. > Dont really want to end up like this > Could inject different styles, a bit messy @djeeg Yes, these are two valide alternatives. You can build an abstraction on top ...
2018-11-06 23:01:56+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN . /usr/local/nvm/nvm.sh && nvm use 14.21.3 && rm -rf node_modules && yarn install && yarn add -D -W --ignore-engines @types/prop-types @types/react-dom @types/sinon @types/chai @types/chai-dom @types/format-util RUN echo 'var mocha = require("mocha");' > cust...
['packages/material-ui/src/Badge/Badge.test.js-><Badge /> renders children and have primary styles', 'packages/material-ui/src/Badge/Badge.test.js-><Badge /> have error class', 'packages/material-ui/src/Badge/Badge.test.js-><Badge /> renders children and have secondary styles', 'packages/material-ui/src/Badge/Badge.tes...
['packages/material-ui/src/Badge/Badge.test.js-><Badge /> prop: invisible should render with the invisible class when set to true']
[]
. /usr/local/nvm/nvm.sh && nvm use 14.21.3 && yarn cross-env NODE_ENV=test mocha packages/material-ui/src/Badge/Badge.test.js --reporter /testbed/custom-reporter.js --exit
Feature
false
true
false
false
2
0
2
false
false
["packages/material-ui/src/Badge/Badge.js->program->function_declaration:Badge", "pages/demos/badges.js->program->function_declaration:Page"]
mui/material-ui
13,690
mui__material-ui-13690
['13346']
ce642582728c63d1837e0a3e3fd455be4b260950
diff --git a/packages/material-ui/src/Tooltip/Tooltip.js b/packages/material-ui/src/Tooltip/Tooltip.js --- a/packages/material-ui/src/Tooltip/Tooltip.js +++ b/packages/material-ui/src/Tooltip/Tooltip.js @@ -278,9 +278,15 @@ class Tooltip extends React.Component { open = false; } + // For accessibility ...
diff --git a/packages/material-ui/src/Tooltip/Tooltip.test.js b/packages/material-ui/src/Tooltip/Tooltip.test.js --- a/packages/material-ui/src/Tooltip/Tooltip.test.js +++ b/packages/material-ui/src/Tooltip/Tooltip.test.js @@ -44,8 +44,21 @@ describe('<Tooltip />', () => { assert.strictEqual(wrapper.childAt(1).has...
[Tooltip] disableHoverListener shows title The uncontrolled tooltip with disableHoverListener set on true. ## Expected Behavior The setup disableHoverListener property affects the visibility of the standard html title property ## Current Behavior When the disableHoverListener prop is true and open prop is...
Isn't that what it's supposed to do? Don't prevent the default behavior and fallback to native tooltip behavior? What is to use case for this? Why would you use the Tooltip component if you never want to display a tooltip? I guess you issue is that you're passing `undefined` to `open` while you consider that Tool...
2018-11-25 01:08:48+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN . /usr/local/nvm/nvm.sh && nvm use 14.21.3 && rm -rf node_modules && yarn install && yarn add -D -W --ignore-engines @types/prop-types @types/react-dom @types/sinon @types/chai @types/chai-dom @types/format-util RUN echo 'var mocha = require("mocha");' > cust...
['packages/material-ui/src/Tooltip/Tooltip.test.js-><Tooltip /> prop: delay should take the enterDelay into account', 'packages/material-ui/src/Tooltip/Tooltip.test.js-><Tooltip /> prop: delay should take the leaveDelay into account', 'packages/material-ui/src/Tooltip/Tooltip.test.js-><Tooltip /> prop: overrides should...
['packages/material-ui/src/Tooltip/Tooltip.test.js-><Tooltip /> prop: disableHoverListener should hide the native title']
[]
. /usr/local/nvm/nvm.sh && nvm use 14.21.3 && yarn cross-env NODE_ENV=test mocha packages/material-ui/src/Tooltip/Tooltip.test.js --reporter /testbed/custom-reporter.js --exit
Bug Fix
false
true
false
false
1
0
1
true
false
["packages/material-ui/src/Tooltip/Tooltip.js->program->class_declaration:Tooltip->method_definition:render"]
mui/material-ui
13,778
mui__material-ui-13778
['13777']
550e949bab55d3fe3f3aba04f76baa7e45d324cc
diff --git a/packages/material-ui/src/Modal/ModalManager.js b/packages/material-ui/src/Modal/ModalManager.js --- a/packages/material-ui/src/Modal/ModalManager.js +++ b/packages/material-ui/src/Modal/ModalManager.js @@ -50,9 +50,12 @@ function setContainerStyle(data) { } function removeContainerStyle(data) { - Obje...
diff --git a/packages/material-ui/src/Modal/Modal.test.js b/packages/material-ui/src/Modal/Modal.test.js --- a/packages/material-ui/src/Modal/Modal.test.js +++ b/packages/material-ui/src/Modal/Modal.test.js @@ -541,4 +541,27 @@ describe('<Modal />', () => { assert.strictEqual(document.body.style.overflow, ''); ...
Cannot convert undefined or null to object After a migration to the 3.6.1 version and when I open a Modal. I have the following error: ![errorlog](https://user-images.githubusercontent.com/9904165/49368135-411eff80-f6ee-11e8-9d46-c547c0872e1a.png) `data.style is undefined` ![error](https://user-images.githubus...
null
2018-12-03 10:43:33+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN . /usr/local/nvm/nvm.sh && nvm use 14.21.3 && rm -rf node_modules && yarn install && yarn add -D -W --ignore-engines @types/prop-types @types/react-dom @types/sinon @types/chai @types/chai-dom @types/format-util RUN echo 'var mocha = require("mocha");' > cust...
['packages/material-ui/src/Modal/Modal.test.js-><Modal /> handleDocumentKeyDown() should have handleDocumentKeyDown', 'packages/material-ui/src/Modal/Modal.test.js-><Modal /> handleDocumentKeyDown() should not be call when defaultPrevented', 'packages/material-ui/src/Modal/Modal.test.js-><Modal /> backdrop should attac...
['packages/material-ui/src/Modal/Modal.test.js-><Modal /> should support open abort', 'packages/material-ui/src/Modal/Modal.test.js-><Modal /> prop: open should render the modal div inside the portal', 'packages/material-ui/src/Modal/Modal.test.js-><Modal /> render should render the content into the portal', 'packages/...
[]
. /usr/local/nvm/nvm.sh && nvm use 14.21.3 && yarn cross-env NODE_ENV=test mocha packages/material-ui/src/Modal/Modal.test.js --reporter /testbed/custom-reporter.js --exit
Bug Fix
false
true
false
false
1
0
1
true
false
["packages/material-ui/src/Modal/ModalManager.js->program->function_declaration:removeContainerStyle"]
mui/material-ui
13,789
mui__material-ui-13789
['13648']
42c60e9848696ebc167d87e1743222e758d0213e
diff --git a/.size-limit.js b/.size-limit.js --- a/.size-limit.js +++ b/.size-limit.js @@ -22,7 +22,7 @@ module.exports = [ name: 'The size of the @material-ui/core modules', webpack: true, path: 'packages/material-ui/build/index.js', - limit: '94.5 KB', + limit: '94.6 KB', }, { name: 'T...
diff --git a/packages/material-ui/src/Dialog/Dialog.test.js b/packages/material-ui/src/Dialog/Dialog.test.js --- a/packages/material-ui/src/Dialog/Dialog.test.js +++ b/packages/material-ui/src/Dialog/Dialog.test.js @@ -129,15 +129,11 @@ describe('<Dialog />', () => { wrapper.setProps({ onClose }); const...
[Dialog] onBackdropClick event fires when draggable item released on it If Dialog contains any draggable component (e.g. sortable list from [react-sortable-hoc](https://clauderic.github.io/react-sortable-hoc/)) and this component have been dragging and has released over 'backdrop zone' then onBackdropClick event fires....
This happens for any MUI Dialog in chrome and is reproducible on the demo page: https://material-ui.com/demos/dialogs/. Just mouse down on a dialog, move your mouse off and when you mouse up the Dialog will close @oliviertassinari looking at bootstrap they seem to handle this using: ``` $(this._dialog).on(Event.MO...
2018-12-04 00:39:42+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN . /usr/local/nvm/nvm.sh && nvm use 14.21.3 && rm -rf node_modules && yarn install && yarn add -D -W --ignore-engines @types/prop-types @types/react-dom @types/sinon @types/chai @types/chai-dom @types/format-util RUN echo 'var mocha = require("mocha");' > cust...
['packages/material-ui/src/Dialog/Dialog.test.js-><Dialog /> should be open by default', 'packages/material-ui/src/Dialog/Dialog.test.js-><Dialog /> prop: fullScreen false should not render fullScreen', 'packages/material-ui/src/Dialog/Dialog.test.js-><Dialog /> prop: fullWidth should set `fullWidth` class if specified...
['packages/material-ui/src/Dialog/Dialog.test.js-><Dialog /> backdrop should store the click target on mousedown', 'packages/material-ui/src/Dialog/Dialog.test.js-><Dialog /> backdrop should clear click target on successful backdrop click', 'packages/material-ui/src/Dialog/Dialog.test.js-><Dialog /> backdrop should not...
[]
. /usr/local/nvm/nvm.sh && nvm use 14.21.3 && yarn cross-env NODE_ENV=test mocha packages/material-ui/src/Dialog/Dialog.test.js --reporter /testbed/custom-reporter.js --exit
Bug Fix
false
false
false
true
1
1
2
false
false
["packages/material-ui/src/Dialog/Dialog.js->program->class_declaration:Dialog->method_definition:render", "packages/material-ui/src/Dialog/Dialog.js->program->class_declaration:Dialog"]
mui/material-ui
14,364
mui__material-ui-14364
['14360']
b5d9b243d30a879ab33e53bda4c6553402d99e39
diff --git a/packages/material-ui/src/InputAdornment/InputAdornment.js b/packages/material-ui/src/InputAdornment/InputAdornment.js --- a/packages/material-ui/src/InputAdornment/InputAdornment.js +++ b/packages/material-ui/src/InputAdornment/InputAdornment.js @@ -6,6 +6,7 @@ import warning from 'warning'; import Typogr...
diff --git a/packages/material-ui/src/InputBase/InputBase.test.js b/packages/material-ui/src/InputBase/InputBase.test.js --- a/packages/material-ui/src/InputBase/InputBase.test.js +++ b/packages/material-ui/src/InputBase/InputBase.test.js @@ -12,6 +12,8 @@ import FormControlContext from '../FormControl/FormControlConte...
Select inside InputAdornment causes crash with material-ui/core 3.9.1 (works with 3.9.0) <!--- Provide a general summary of the issue in the Title above --> We use a Select as InputAdornment to let users choose a unit. It worked fine until material-ui/core 3.9.0, but now crashes the whole application. <!-- T...
@joshwooding People are full of imagination 🔮. The prediction comes true. Now it's great. We have a reproduction. @mtidei Thank you for the report. The fix is simple. We just need to make https://github.com/mui-org/material-ui/blob/4422ce889293268cf7aaa8b1f5e63d465501a05f/packages/material-ui/src/InputBase/InputBa...
2019-01-31 19:23:43+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN . /usr/local/nvm/nvm.sh && nvm use 14.21.3 && rm -rf node_modules && yarn install && yarn add -D -W --ignore-engines @types/prop-types @types/react-dom @types/sinon @types/chai @types/chai-dom @types/format-util RUN echo 'var mocha = require("mocha");' > cust...
['packages/material-ui/src/InputBase/InputBase.test.js-><InputBase /> prop: inputComponent should inject onBlur and onFocus', 'packages/material-ui/src/InputBase/InputBase.test.js-><InputBase /> mount should be able to access the native textarea', 'packages/material-ui/src/InputBase/InputBase.test.js-><InputBase /> con...
['packages/material-ui/src/InputBase/InputBase.test.js-><InputBase /> prop: startAdornment, prop: endAdornment should allow a Select as an adornment', 'packages/material-ui/src/InputBase/InputBase.test.js-><InputBase /> prop: inputRef should be able to return the input node via a ref object', 'packages/material-ui/src/...
[]
. /usr/local/nvm/nvm.sh && nvm use 14.21.3 && yarn cross-env NODE_ENV=test mocha packages/material-ui/src/InputBase/InputBase.test.js --reporter /testbed/custom-reporter.js --exit
Bug Fix
false
true
false
false
1
0
1
true
false
["packages/material-ui/src/InputAdornment/InputAdornment.js->program->function_declaration:InputAdornment"]
mui/material-ui
14,391
mui__material-ui-14391
['14387']
2dedcc12fda827a9bbb0bece2f94aa0695e73a7c
diff --git a/packages/material-ui/src/styles/colorManipulator.js b/packages/material-ui/src/styles/colorManipulator.js --- a/packages/material-ui/src/styles/colorManipulator.js +++ b/packages/material-ui/src/styles/colorManipulator.js @@ -31,7 +31,7 @@ function clamp(value, min = 0, max = 1) { * @param {string} color...
diff --git a/packages/material-ui/src/styles/colorManipulator.test.js b/packages/material-ui/src/styles/colorManipulator.test.js --- a/packages/material-ui/src/styles/colorManipulator.test.js +++ b/packages/material-ui/src/styles/colorManipulator.test.js @@ -2,8 +2,9 @@ import { assert } from 'chai'; import consoleErr...
getLuminance method use incorrect coefficient for calculations <!-- Checked checkbox should look like this: [x] --> - [x] This is not a v0.x issue. <!-- (v0.x is no longer maintained) --> - [x] I have searched the [issues](https://github.com/mui-org/material-ui/issues) of this repository and believe that this is not ...
> According to this wiki page this line We are using the WCGA 2 guidelines: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests. cc @mbrookes The proposed value is taken from the IEC 61966-2-1 specification. No idea what standard we should follow. The luminance value is used to assess accessibility, so I belie...
2019-02-03 00:16:32+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN . /usr/local/nvm/nvm.sh && nvm use 14.21.3 && rm -rf node_modules && yarn install && yarn add -D -W --ignore-engines @types/prop-types @types/react-dom @types/sinon @types/chai @types/chai-dom @types/format-util RUN echo 'var mocha = require("mocha");' > cust...
['packages/material-ui/src/styles/colorManipulator.test.js->utils/colorManipulator getLuminance returns a valid luminance for rgb white', 'packages/material-ui/src/styles/colorManipulator.test.js->utils/colorManipulator recomposeColor converts a decomposed rgb color object to a string` ', 'packages/material-ui/src/styl...
['packages/material-ui/src/styles/colorManipulator.test.js->utils/colorManipulator hexToRgb converts a short hex color to an rgb color` ', 'packages/material-ui/src/styles/colorManipulator.test.js->utils/colorManipulator getLuminance returns a valid luminance from an hsl color', 'packages/material-ui/src/styles/colorMa...
[]
. /usr/local/nvm/nvm.sh && nvm use 14.21.3 && yarn cross-env NODE_ENV=test mocha packages/material-ui/src/styles/colorManipulator.test.js --reporter /testbed/custom-reporter.js --exit
Bug Fix
false
true
false
false
13
0
13
false
false
["packages/material-ui/src/styles/colorManipulator.js->program->function_declaration:darken", "packages/material-ui/src/styles/colorManipulator.js->program->function_declaration:convertHexToRGB", "packages/material-ui/src/styles/colorManipulator.js->program->function_declaration:decomposeColor", "packages/material-ui/s...
mui/material-ui
14,496
mui__material-ui-14496
['14468']
9ecc8db8abbfb829111d3b5c0678267827984024
diff --git a/packages/material-ui/src/Tooltip/Tooltip.js b/packages/material-ui/src/Tooltip/Tooltip.js --- a/packages/material-ui/src/Tooltip/Tooltip.js +++ b/packages/material-ui/src/Tooltip/Tooltip.js @@ -125,15 +125,14 @@ class Tooltip extends React.Component { }; handleFocus = event => { - event.persist(...
diff --git a/packages/material-ui/src/Tooltip/Tooltip.test.js b/packages/material-ui/src/Tooltip/Tooltip.test.js --- a/packages/material-ui/src/Tooltip/Tooltip.test.js +++ b/packages/material-ui/src/Tooltip/Tooltip.test.js @@ -1,10 +1,12 @@ import React from 'react'; import { assert } from 'chai'; +import PropTypes f...
[Tooltip] Tooltips aren't displayed on focus on TextFields - [x] This is not a v0.x issue. <!-- (v0.x is no longer maintained) --> - [x] I have searched the [issues](https://github.com/mui-org/material-ui/issues) of this repository and believe that this is not a duplicate. ## Expected Behavior 🤔 Using a `Tooltip`...
@codeheroics Yeah, it's because we make sure the tooltip child still has the focus before opening it. We can work around the problem with: ```diff --- a/packages/material-ui/src/Tooltip/Tooltip.js +++ b/packages/material-ui/src/Tooltip/Tooltip.js @@ -71,6 +71,17 @@ export const styles = theme => ({ }, }); ...
2019-02-11 15:37:08+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN . /usr/local/nvm/nvm.sh && nvm use 14.21.3 && rm -rf node_modules && yarn install && yarn add -D -W --ignore-engines @types/prop-types @types/react-dom @types/sinon @types/chai @types/chai-dom @types/format-util RUN echo 'var mocha = require("mocha");' > cust...
['packages/material-ui/src/Tooltip/Tooltip.test.js-><Tooltip /> prop: delay should take the enterDelay into account', 'packages/material-ui/src/Tooltip/Tooltip.test.js-><Tooltip /> prop: delay should take the leaveDelay into account', 'packages/material-ui/src/Tooltip/Tooltip.test.js-><Tooltip /> prop: overrides should...
['packages/material-ui/src/Tooltip/Tooltip.test.js-><Tooltip /> mount should handle autoFocus + onFocus forwarding']
['docs/src/modules/utils/helpers.test.js->docs getDependencies helpers can collect required @types packages', 'docs/src/modules/utils/helpers.test.js->docs getDependencies helpers should support next dependencies']
. /usr/local/nvm/nvm.sh && nvm use 14.21.3 && yarn cross-env NODE_ENV=test mocha packages/material-ui/src/Tooltip/Tooltip.test.js --reporter /testbed/custom-reporter.js --exit
Bug Fix
false
false
true
false
0
1
1
false
true
["packages/material-ui/src/Tooltip/Tooltip.js->program->class_declaration:Tooltip"]
mui/material-ui
14,638
mui__material-ui-14638
['14538']
cbed92306fc1a4a59599eb9c114b1d62162c0c18
diff --git a/docs/src/pages/demos/tabs/CustomizedTabs.hooks.js b/docs/src/pages/demos/tabs/CustomizedTabs.hooks.js --- a/docs/src/pages/demos/tabs/CustomizedTabs.hooks.js +++ b/docs/src/pages/demos/tabs/CustomizedTabs.hooks.js @@ -1,9 +1,32 @@ import React from 'react'; -import { makeStyles } from '@material-ui/styles...
diff --git a/packages/material-ui/src/Tab/Tab.test.js b/packages/material-ui/src/Tab/Tab.test.js --- a/packages/material-ui/src/Tab/Tab.test.js +++ b/packages/material-ui/src/Tab/Tab.test.js @@ -1,7 +1,12 @@ import React from 'react'; import { assert } from 'chai'; -import { spy, stub } from 'sinon'; -import { create...
[Tabs] Awkward line height when 2 lines - [x] This is not a v0.x issue. <!-- (v0.x is no longer maintained) --> - [x] I have searched the [issues](https://github.com/mui-org/material-ui/issues) of this repository and believe that this is not a duplicate. ## Expected Behavior 🤔 ![a989bab3-e062-4dcf-a679-0afd21b9b4...
Looks like this is intended for our components: https://material-ui.com/demos/tabs/#wrapped-labels. It probably changed in the spec. Some quick hacking with `white-space: nowrap; text-overflow: ellipsis;` didn't do the trick but something along the lines should be possible. My point isn't that it wraps, that is the ...
2019-02-23 14:45:35+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN . /usr/local/nvm/nvm.sh && nvm use 14.21.3 && rm -rf node_modules && yarn install && yarn add -D -W --ignore-engines @types/prop-types @types/react-dom @types/sinon @types/chai @types/chai-dom @types/format-util RUN echo 'var mocha = require("mocha");' > cust...
['packages/material-ui/src/Tab/Tab.test.js-><Tab /> prop: textColor should support the inherit value', 'packages/material-ui/src/Tab/Tab.test.js-><Tab /> prop: label should render label', 'packages/material-ui/src/Tab/Tab.test.js-><Tab /> should render with the root class', 'packages/material-ui/src/Tab/Tab.test.js-><T...
['packages/material-ui/src/Tab/Tab.test.js-><Tab /> prop: wrapped should add the wrapped class']
[]
. /usr/local/nvm/nvm.sh && nvm use 14.21.3 && yarn cross-env NODE_ENV=test mocha packages/material-ui/src/Tab/Tab.test.js --reporter /testbed/custom-reporter.js --exit
Bug Fix
false
false
false
true
9
1
10
false
false
["docs/src/pages/demos/tabs/TabsWrappedLabel.js->program->class_declaration:TabsWrappedLabel->method_definition:render", "packages/material-ui/src/Tab/Tab.js->program->class_declaration:Tab", "docs/src/pages/demos/tabs/CustomizedTabs.js->program->class_declaration:CustomizedTabs->method_definition:render", "packages/ma...
mui/material-ui
14,882
mui__material-ui-14882
['11289']
89ebedc24f97d6bc7ca2e34a00efcdd47ca16812
diff --git a/docs/src/pages/demos/progress/CustomizedProgress.js b/docs/src/pages/demos/progress/CustomizedProgress.js --- a/docs/src/pages/demos/progress/CustomizedProgress.js +++ b/docs/src/pages/demos/progress/CustomizedProgress.js @@ -1,6 +1,7 @@ import React from 'react'; import PropTypes from 'prop-types'; imp...
diff --git a/packages/material-ui/src/LinearProgress/LinearProgress.test.js b/packages/material-ui/src/LinearProgress/LinearProgress.test.js --- a/packages/material-ui/src/LinearProgress/LinearProgress.test.js +++ b/packages/material-ui/src/LinearProgress/LinearProgress.test.js @@ -79,7 +79,7 @@ describe('<LinearProgre...
[Proposal][LinearProgress] impossible to maintain borderRadius when progress bar is scaled <!--- Provide a general summary of the issue in the Title above --> When the progress bar is below `scaleX(0.5)` the borderRadius is distorted I was thinking about using width instead of the transform property. > e.g. ...
@giuliogallerini I've also run into this issue. I gave this solution a shot, but the problem is that interpolation can't be done by adjusting the inline width property from what I can tell. The result is a jittery output. Back to the drawing board I guess 😞 It sounds like a good idea. I have tried the following diff: ...
2019-03-14 10:01:48+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN . /usr/local/nvm/nvm.sh && nvm use 14.21.3 && rm -rf node_modules && yarn install && yarn add -D -W --ignore-engines @types/prop-types @types/react-dom @types/sinon @types/chai @types/chai-dom @types/format-util RUN echo 'var mocha = require("mocha");' > cust...
['packages/material-ui/src/LinearProgress/LinearProgress.test.js-><LinearProgress /> should render for the primary color', 'packages/material-ui/src/LinearProgress/LinearProgress.test.js-><LinearProgress /> should render with determinate classes for the primary color', 'packages/material-ui/src/LinearProgress/LinearPro...
['packages/material-ui/src/LinearProgress/LinearProgress.test.js-><LinearProgress /> should set width of bar1 on determinate variant', 'packages/material-ui/src/LinearProgress/LinearProgress.test.js-><LinearProgress /> should set width of bar1 and bar2 on buffer variant']
[]
. /usr/local/nvm/nvm.sh && nvm use 14.21.3 && yarn cross-env NODE_ENV=test mocha packages/material-ui/src/LinearProgress/LinearProgress.test.js --reporter /testbed/custom-reporter.js --exit
Bug Fix
false
true
false
false
1
0
1
true
false
["docs/src/pages/demos/progress/CustomizedProgress.js->program->function_declaration:CustomizedProgress"]
mui/material-ui
15,359
mui__material-ui-15359
['15262']
13ac4ce9239e9e3e1fdb902e3f25ad56b3497fe9
diff --git a/packages/material-ui/src/Popper/Popper.js b/packages/material-ui/src/Popper/Popper.js --- a/packages/material-ui/src/Popper/Popper.js +++ b/packages/material-ui/src/Popper/Popper.js @@ -4,6 +4,7 @@ import PopperJS from 'popper.js'; import { chainPropTypes } from '@material-ui/utils'; import Portal from '...
diff --git a/packages/material-ui/src/Popper/Popper.test.js b/packages/material-ui/src/Popper/Popper.test.js --- a/packages/material-ui/src/Popper/Popper.test.js +++ b/packages/material-ui/src/Popper/Popper.test.js @@ -123,6 +123,20 @@ describe('<Popper />', () => { }); }); + describe('prop: popperOptions', ...
[Popper] onUpdate / onCreate not handled `onUpdate` and `onCreate` options are overridden in the Popper component, making it difficult to access internal data about the popout / get lifecycle callbacks. <!-- Thank you very much for contributing to Material-UI by creating an issue! ❤️ To avoid duplicate iss...
> I am trying to get a callback when the popup is created and get the dimensions of the rendered component. Have you tried to provide a top div and to get a reference on it? > > I am trying to get a callback when the popup is created and get the dimensions of the rendered component. > > Have you tried to provide...
2019-04-15 20:10:29+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && rm -rf node_modules && yarn install && yarn add -D -W --ignore-engines @types/prop-types @types/react-dom @types/sinon @types/chai @types/chai-dom @types/format-util RUN echo 'var mocha = require("mocha");' > custo...
['packages/material-ui/src/Popper/Popper.test.js-><Popper /> prop: placement should flip top-start when direction=rtl is used', 'packages/material-ui/src/Popper/Popper.test.js-><Popper /> prop: placement should flip bottom-start when direction=rtl is used', 'packages/material-ui/src/Popper/Popper.test.js-><Popper /> Ma...
['packages/material-ui/src/Popper/Popper.test.js-><Popper /> prop: popperOptions should pass all popperOptions to popperjs']
[]
. /usr/local/nvm/nvm.sh && nvm use 18.8.0 && yarn cross-env NODE_ENV=test mocha packages/material-ui/src/Popper/Popper.test.js --reporter /testbed/custom-reporter.js --exit
Bug Fix
false
false
true
false
0
1
1
false
true
["packages/material-ui/src/Popper/Popper.js->program->class_declaration:Popper"]
mui/material-ui
15,526
mui__material-ui-15526
['15515']
6ef44f1cf8fdd8c8670a25cbd4c16a54c332198f
diff --git a/packages/material-ui/src/utils/reactHelpers.js b/packages/material-ui/src/utils/reactHelpers.js --- a/packages/material-ui/src/utils/reactHelpers.js +++ b/packages/material-ui/src/utils/reactHelpers.js @@ -14,15 +14,17 @@ export function setRef(ref, value) { export function useForkRef(refA, refB) { /...
diff --git a/packages/material-ui/src/utils/reactHelpers.test.js b/packages/material-ui/src/utils/reactHelpers.test.js --- a/packages/material-ui/src/utils/reactHelpers.test.js +++ b/packages/material-ui/src/utils/reactHelpers.test.js @@ -2,6 +2,7 @@ import React from 'react'; import { assert } from 'chai'; import { ...
[Zoom] Not accepting child component First of all, Thanks for giving this beautiful framework. It has always been a great experience to work with Material-UI. Today, I updated my project to `@material-ui/core@next`. Successfully removed all deprecated props. But, failed to solve this issue. Prior to v4 this was work...
@eps1lon Would this change work for you? It doesn't break any test but solves the warning here. ```diff --- a/packages/material-ui/src/utils/reactHelpers.js +++ b/packages/material-ui/src/utils/reactHelpers.js @@ -18,11 +18,13 @@ export function useForkRef(refA, refB) { * This means react will call the old for...
2019-04-30 06:46:38+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && rm -rf node_modules && yarn install && yarn add -D -W --ignore-engines @types/prop-types @types/react-dom @types/sinon @types/chai @types/chai-dom @types/format-util RUN echo 'var mocha = require("mocha");' > custo...
['packages/material-ui/src/utils/reactHelpers.test.js->utils/reactHelpers.js setRef can handle callback refs', 'packages/material-ui/src/utils/reactHelpers.test.js->utils/reactHelpers.js isMuiElement should be truthy for matching components', 'packages/material-ui/src/utils/reactHelpers.test.js->utils/reactHelpers.js s...
['packages/material-ui/src/utils/reactHelpers.test.js->utils/reactHelpers.js useForkRef does nothing if none of the forked branches requires a ref']
[]
. /usr/local/nvm/nvm.sh && nvm use 18.8.0 && yarn cross-env NODE_ENV=test mocha packages/material-ui/src/utils/reactHelpers.test.js --reporter /testbed/custom-reporter.js --exit
Bug Fix
false
true
false
false
1
0
1
true
false
["packages/material-ui/src/utils/reactHelpers.js->program->function_declaration:useForkRef"]
mui/material-ui
15,534
mui__material-ui-15534
['15533']
02f135da5f4e51838994ddeea2d9474894f3f67d
diff --git a/docs/src/pages/css-in-js/advanced/advanced.md b/docs/src/pages/css-in-js/advanced/advanced.md --- a/docs/src/pages/css-in-js/advanced/advanced.md +++ b/docs/src/pages/css-in-js/advanced/advanced.md @@ -484,7 +484,7 @@ generates the following class names you that can override: .MuiButton-root { /* … */ } ...
diff --git a/packages/material-ui-styles/src/createGenerateClassName/createGenerateClassName.test.js b/packages/material-ui-styles/src/createGenerateClassName/createGenerateClassName.test.js --- a/packages/material-ui-styles/src/createGenerateClassName/createGenerateClassName.test.js +++ b/packages/material-ui-styles/s...
[Switches] styling issue with global className <!--- Provide a general summary of the issue in the Title above --> <!-- Thank you very much for contributing to Material-UI by creating an issue! ❤️ To avoid duplicate issues we ask you to check off the following list. --> <!-- Checked checkbox should loo...
@timaxxer Thanks for reporting the problem. I'm having a look.
2019-04-30 12:57:04+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && rm -rf node_modules && yarn install && yarn add -D -W --ignore-engines @types/prop-types @types/react-dom @types/sinon @types/chai @types/chai-dom @types/format-util RUN echo 'var mocha = require("mocha");' > custo...
['packages/material-ui-styles/src/createGenerateClassName/createGenerateClassName.test.js->createGenerateClassName should work without a classNamePrefix', 'packages/material-ui-styles/src/createGenerateClassName/createGenerateClassName.test.js->createGenerateClassName production should output a short representation', '...
['packages/material-ui-styles/src/createGenerateClassName/createGenerateClassName.test.js->createGenerateClassName should generate global class names']
[]
. /usr/local/nvm/nvm.sh && nvm use 18.8.0 && yarn cross-env NODE_ENV=test mocha packages/material-ui-styles/src/createGenerateClassName/createGenerateClassName.test.js --reporter /testbed/custom-reporter.js --exit
Bug Fix
false
true
false
false
1
0
1
true
false
["packages/material-ui-styles/src/createGenerateClassName/createGenerateClassName.js->program->function_declaration:createGenerateClassName"]
mui/material-ui
16,397
mui__material-ui-16397
['15512']
c78b343ad2c673bd6c03918b3cc2dcb11f52ed1e
diff --git a/docs/src/modules/components/Link.js b/docs/src/modules/components/Link.js --- a/docs/src/modules/components/Link.js +++ b/docs/src/modules/components/Link.js @@ -32,6 +32,7 @@ function Link(props) { className: classNameProps, innerRef, naked, + role: roleProp, router, userLangua...
diff --git a/packages/material-ui/src/ButtonBase/ButtonBase.test.js b/packages/material-ui/src/ButtonBase/ButtonBase.test.js --- a/packages/material-ui/src/ButtonBase/ButtonBase.test.js +++ b/packages/material-ui/src/ButtonBase/ButtonBase.test.js @@ -104,15 +104,16 @@ describe('<ButtonBase />', () => { expect(bu...
[ButtonBase] Improve Button accessibility Revert #10339 removed safeguard and add additional one so anchors missing href's are treated as buttons. <!-- Thank you very much for contributing to Material-UI by creating an issue! ❤️ To avoid duplicate issues we ask you to check off the following list. --> ...
@bluSCALE4 Do you have a specific fix in mind? I think that we can apply the following but it won't help your case: ```diff --- a/packages/material-ui/src/ButtonBase/ButtonBase.js +++ b/packages/material-ui/src/ButtonBase/ButtonBase.js @@ -287,7 +287,10 @@ class ButtonBase extends React.Component { buttonPr...
2019-06-27 13:17:37+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && rm -rf node_modules && yarn install && yarn add -D -W --ignore-engines @types/prop-types @types/react-dom @types/sinon @types/chai @types/chai-dom @types/format-util RUN echo 'var mocha = require("mocha");' > custo...
['packages/material-ui/src/ButtonBase/ButtonBase.test.js-><ButtonBase /> root node should change the button component and add accessibility requirements', 'packages/material-ui/src/ButtonBase/ButtonBase.test.js-><ButtonBase /> prop: disabled should forward it to native buttons', 'packages/material-ui/src/ButtonBase/But...
['packages/material-ui/src/ButtonBase/ButtonBase.test.js-><ButtonBase /> root node should automatically change the button to an anchor element when href is provided']
[]
. /usr/local/nvm/nvm.sh && nvm use 18.8.0 && yarn cross-env NODE_ENV=test mocha packages/material-ui/src/ButtonBase/ButtonBase.test.js --reporter /testbed/custom-reporter.js --exit
Bug Fix
false
true
false
false
1
0
1
true
false
["docs/src/modules/components/Link.js->program->function_declaration:Link"]
mui/material-ui
17,301
mui__material-ui-17301
['10763']
0ddd56f5d389bfd19120d38fc4302f32f238be6f
diff --git a/docs/pages/api/speed-dial-action.md b/docs/pages/api/speed-dial-action.md --- a/docs/pages/api/speed-dial-action.md +++ b/docs/pages/api/speed-dial-action.md @@ -24,16 +24,16 @@ You can learn more about the difference by [reading this guide](/guides/minimizi | Name | Type | Default | Description | |:--...
diff --git a/packages/material-ui-lab/src/SpeedDial/SpeedDial.test.js b/packages/material-ui-lab/src/SpeedDial/SpeedDial.test.js --- a/packages/material-ui-lab/src/SpeedDial/SpeedDial.test.js +++ b/packages/material-ui-lab/src/SpeedDial/SpeedDial.test.js @@ -7,6 +7,7 @@ import { getClasses, wrapsIntrinsicElement,...
[SpeedDial] SpeedDialAction visibility is poor on dark themes <!--- Provide a general summary of the issue in the Title above --> The icon and button colors on SpeedDialActions have weak visibility on dark themes. This can be seen on the material-ui site itself by switching to the dark theme and viewing the SpeedDial...
@ryanfields You're quite right. Would you like to try and improve it? @mbrookes Started looking into a fix, but I need to spend time familiarizing myself with Material-UI's structure and inner workings. This is the first time I've tried working with the code. I will circle back to this in a couple weeks. Thanks. Shou...
2019-09-03 17:31:37+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && rm -rf node_modules && yarn install && yarn add -D -W --ignore-engines @types/prop-types @types/react-dom @types/sinon @types/chai @types/chai-dom @types/format-util RUN echo 'var mocha = require("mocha");' > custo...
['packages/material-ui-lab/src/SpeedDialIcon/SpeedDialIcon.test.js-><SpeedDialIcon /> Material-UI component API applies to root class to the root component if it has this class', 'packages/material-ui-lab/src/SpeedDialIcon/SpeedDialIcon.test.js-><SpeedDialIcon /> should render the icon with the icon and iconOpen classe...
['packages/material-ui-lab/src/SpeedDial/SpeedDial.test.js-><SpeedDial /> dial focus actions navigation ignores array keys orthogonal to the direction', 'packages/material-ui-lab/src/SpeedDialAction/SpeedDialAction.test.js-><SpeedDialAction /> should render the button with the fab class', 'packages/material-ui-lab/src/...
[]
. /usr/local/nvm/nvm.sh && nvm use 18.8.0 && yarn cross-env NODE_ENV=test mocha packages/material-ui/src/Tooltip/Tooltip.test.js packages/material-ui-lab/src/SpeedDialAction/SpeedDialAction.test.js test/regressions/tests/SpeedDial/Directions.js packages/material-ui-lab/src/SpeedDial/SpeedDial.test.js packages/material-...
Refactoring
false
true
false
false
5
0
5
false
false
["docs/src/pages/components/speed-dial/SpeedDialTooltipOpen.js->program->function_declaration:SpeedDialTooltipOpen", "docs/src/pages/components/speed-dial/OpenIconSpeedDial.js->program->function_declaration:OpenIconSpeedDial", "packages/material-ui/src/Tooltip/Tooltip.js->program->function_declaration:Tooltip", "packag...
mui/material-ui
17,829
mui__material-ui-17829
['17718']
5d564f9c1be5bf20b51be1a479d292bf443291ba
diff --git a/docs/pages/api/chip.md b/docs/pages/api/chip.md --- a/docs/pages/api/chip.md +++ b/docs/pages/api/chip.md @@ -29,7 +29,7 @@ Chips represent complex entities in small blocks, such as a contact. | <span class="prop-name">classes</span> | <span class="prop-type">object</span> | | Override or extend the styl...
diff --git a/packages/material-ui/src/Chip/Chip.test.js b/packages/material-ui/src/Chip/Chip.test.js --- a/packages/material-ui/src/Chip/Chip.test.js +++ b/packages/material-ui/src/Chip/Chip.test.js @@ -423,8 +423,8 @@ describe('<Chip />', () => { key: ' ', }; wrapper.find('div').simulate('...
[Chip] No Ripple effect <!-- Provide a general summary of the issue in the Title above --> <!-- Thank you very much for contributing to Material-UI by creating an issue! ❤️ To avoid duplicate issues we ask you to check off the following list. --> <!-- Checked checkbox should look like this: [x] --> - [x...
null
2019-10-10 16:16:31+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && rm -rf node_modules && yarn install && yarn add -D -W --ignore-engines @types/prop-types @types/react-dom @types/sinon @types/chai @types/chai-dom @types/format-util RUN echo 'var mocha = require("mocha");' > custo...
['packages/material-ui/src/Chip/Chip.test.js-><Chip /> reacts to keyboard chip has children that generate events should call handlers for child event', 'packages/material-ui/src/Chip/Chip.test.js-><Chip /> clickable text chip should have a tabIndex prop', 'packages/material-ui/src/Chip/Chip.test.js-><Chip /> reacts to ...
['packages/material-ui/src/Chip/Chip.test.js-><Chip /> reacts to keyboard chip onClick is defined should call onClick when `enter` is pressed ', 'packages/material-ui/src/Chip/Chip.test.js-><Chip /> reacts to keyboard chip onClick is defined should call onClick when `space` is pressed ']
[]
. /usr/local/nvm/nvm.sh && nvm use 18.8.0 && yarn cross-env NODE_ENV=test mocha packages/material-ui/src/Chip/Chip.test.js --reporter /testbed/custom-reporter.js --exit
Feature
true
false
false
false
0
0
0
false
false
[]
mui/material-ui
18,141
mui__material-ui-18141
['18097']
13b3a0d31947ccdb20108febb5432d4f46f5a677
diff --git a/docs/src/pages/components/text-fields/ValidationTextFields.js b/docs/src/pages/components/text-fields/ValidationTextFields.js --- a/docs/src/pages/components/text-fields/ValidationTextFields.js +++ b/docs/src/pages/components/text-fields/ValidationTextFields.js @@ -30,7 +30,7 @@ export default function Val...
diff --git a/packages/material-ui/src/TextField/TextField.test.js b/packages/material-ui/src/TextField/TextField.test.js --- a/packages/material-ui/src/TextField/TextField.test.js +++ b/packages/material-ui/src/TextField/TextField.test.js @@ -117,10 +117,10 @@ describe('<TextField />', () => { }); describe('pro...
TextField with select=true and native does not add the DOM ID to the select element - [x] The issue is present in the latest release. - [x] I have searched the [issues](https://github.com/mui-org/material-ui/issues) of this repository and believe that this is not a duplicate. ## Current Behavior 😯 Using `TextFi...
Follow up: Adding the `id` to `inputProps` seems to restore the previous behavior. Is that the preferred way to handle it? > Follow up: Adding the `id` to `inputProps` seems to restore the previous behavior. Is that the preferred way to handle it? I think we fix `InputLabel` having a `for` value since the labeling ...
2019-11-01 16:07:26+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && rm -rf node_modules && yarn install && yarn add -D -W --ignore-engines @types/prop-types @types/react-dom @types/sinon @types/chai @types/chai-dom @types/format-util RUN echo 'var mocha = require("mocha");' > custo...
['packages/material-ui/src/TextField/TextField.test.js-><TextField /> structure should forward the fullWidth prop to Input', 'packages/material-ui/src/TextField/TextField.test.js-><TextField /> prop: InputProps should apply additional props to the Input component', 'packages/material-ui/src/TextField/TextField.test.js-...
['packages/material-ui/src/TextField/TextField.test.js-><TextField /> prop: select associates the label with the <select /> when `native={true}` and `id`']
[]
. /usr/local/nvm/nvm.sh && nvm use 18.8.0 && yarn cross-env NODE_ENV=test mocha packages/material-ui/src/TextField/TextField.test.js --reporter /testbed/custom-reporter.js --exit
Bug Fix
false
true
false
false
1
0
1
true
false
["docs/src/pages/components/text-fields/ValidationTextFields.js->program->function_declaration:ValidationTextFields"]
mui/material-ui
18,257
mui__material-ui-18257
['18255']
b29c294f55f0dca2af0c8438b86961a8c8534516
diff --git a/packages/material-ui/src/Select/Select.js b/packages/material-ui/src/Select/Select.js --- a/packages/material-ui/src/Select/Select.js +++ b/packages/material-ui/src/Select/Select.js @@ -69,7 +69,7 @@ const Select = React.forwardRef(function Select(props, ref) { type: undefined, // We render a select...
diff --git a/packages/material-ui/src/Select/Select.test.js b/packages/material-ui/src/Select/Select.test.js --- a/packages/material-ui/src/Select/Select.test.js +++ b/packages/material-ui/src/Select/Select.test.js @@ -867,4 +867,23 @@ describe('<Select />', () => { expect(getByRole('button')).to.have.attribute(...
Regression: <Select native id="my-id"> No Longer Has an Id The "id" prop is ignored for \<Select\>'s that have the "native" prop set. At some point in the past (maybe a few versions ago) this use to work. - [x] The issue is present in the latest release. - [x] I have searched the [issues](https://github.com/mui-...
null
2019-11-07 14:39:54+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && rm -rf node_modules && yarn install && yarn add -D -W --ignore-engines @types/prop-types @types/react-dom @types/sinon @types/chai @types/chai-dom @types/format-util RUN echo 'var mocha = require("mocha");' > custo...
['packages/material-ui/src/Select/Select.test.js-><Select /> should open menu when pressed ArrowUp key on select', 'packages/material-ui/src/Select/Select.test.js-><Select /> prop: multiple selects value based on their stringified equality when theyre not objects', 'packages/material-ui/src/Select/Select.test.js-><Sele...
['packages/material-ui/src/Select/Select.test.js-><Select /> prop: native can be labelled with a <label />']
[]
. /usr/local/nvm/nvm.sh && nvm use 18.8.0 && yarn cross-env NODE_ENV=test mocha packages/material-ui/src/Select/Select.test.js --reporter /testbed/custom-reporter.js --exit
Bug Fix
true
false
false
false
0
0
0
false
false
[]
mui/material-ui
18,683
mui__material-ui-18683
['18670']
dfe2779b8b6499ccd1922990ac9178d84e02f8b6
diff --git a/packages/material-ui/src/useMediaQuery/useMediaQuery.js b/packages/material-ui/src/useMediaQuery/useMediaQuery.js --- a/packages/material-ui/src/useMediaQuery/useMediaQuery.js +++ b/packages/material-ui/src/useMediaQuery/useMediaQuery.js @@ -1,9 +1,6 @@ import React from 'react'; import { getThemeProps, ...
diff --git a/packages/material-ui/src/useMediaQuery/useMediaQuery.test.js b/packages/material-ui/src/useMediaQuery/useMediaQuery.test.js --- a/packages/material-ui/src/useMediaQuery/useMediaQuery.test.js +++ b/packages/material-ui/src/useMediaQuery/useMediaQuery.test.js @@ -7,7 +7,7 @@ import { createRender } from '@ma...
[useMediaQuery] hydrationCompleted is true before hydrated - [x] The issue is present in the latest release. - [x] I have searched the [issues](https://github.com/mui-org/material-ui/issues) of this repository and believe that this is not a duplicate. ## Current Behavior 😯 The `hydrationCompleted` variable in `...
These singleton variables are always problematic since they assume a whole lot about app and react implementation details. I don't think these variables are ever correct. What we should do is identify if we actually can use the browser API during render or not. And I think the answer is No for all media queries. ...
2019-12-04 15:56:17+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && rm -rf node_modules && yarn install && yarn add -D -W --ignore-engines @types/prop-types @types/react-dom @types/sinon @types/chai @types/chai-dom @types/format-util RUN echo 'var mocha = require("mocha");' > custo...
['packages/material-ui/src/useMediaQuery/useMediaQuery.test.js->useMediaQuery with feature option: defaultMatches should be false by default', 'packages/material-ui/src/withWidth/withWidth.test.js->withWidth isWidthUp should work as exclusive', 'packages/material-ui/src/withWidth/withWidth.test.js->withWidth theme prop...
['packages/material-ui/src/useMediaQuery/useMediaQuery.test.js->useMediaQuery with feature option: defaultMatches should take the option into account', 'packages/material-ui/src/useMediaQuery/useMediaQuery.test.js->useMediaQuery with feature option: noSsr should render twice if the default value does not match the expe...
[]
. /usr/local/nvm/nvm.sh && nvm use 18.8.0 && yarn cross-env NODE_ENV=test mocha packages/material-ui/src/withWidth/withWidth.test.js packages/material-ui/src/useMediaQuery/useMediaQuery.test.js --reporter /testbed/custom-reporter.js --exit
Bug Fix
false
true
false
false
2
0
2
false
false
["packages/material-ui/src/useMediaQuery/useMediaQuery.js->program->function_declaration:useMediaQuery", "packages/material-ui/src/useMediaQuery/useMediaQuery.js->program->function_declaration:testReset"]
mui/material-ui
18,796
mui__material-ui-18796
['18784']
c4c5a03e143f1d23007a32e5fa4bbf4531bbfa33
diff --git a/docs/pages/api/autocomplete.md b/docs/pages/api/autocomplete.md --- a/docs/pages/api/autocomplete.md +++ b/docs/pages/api/autocomplete.md @@ -57,7 +57,7 @@ You can learn more about the difference by [reading this guide](/guides/minimizi | <span class="prop-name">noOptionsText</span> | <span class="prop-ty...
diff --git a/packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js b/packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js --- a/packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js +++ b/packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js @@ -742,4 +742,41 @@ describe('<Autocompl...
[Autocomplete] Prevent onInputChange when onChange is fired <!-- Provide a general summary of the feature in the Title above --> I'm not really sure whether to classify this as a bug or feature request as I'm not familiar with what's actually intended here. When `onChange` is fired, `onInputChange` is also fired,...
@Tybot204 We have a related issue in #18656 where we plan to switch the call order between `onChange` and `onInputChange`. However, your case is different from this related issue, it's about data fetching and not form validation. In the google map demo, we hack this problem a bit as we listen for the change event on...
2019-12-11 22:05:26+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && rm -rf node_modules && yarn install && yarn add -D -W --ignore-engines @types/prop-types @types/react-dom @types/sinon @types/chai @types/chai-dom @types/format-util RUN echo 'var mocha = require("mocha");' > custo...
['packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js-><Autocomplete /> Material-UI component API applies to root class to the root component if it has this class', 'packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js-><Autocomplete /> when popup open closes the popup if Escape is pressed ', 'pack...
['packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js-><Autocomplete /> prop: onInputChange provides a reason on select reset', 'packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js-><Autocomplete /> prop: onInputChange provides a reason on input change']
[]
. /usr/local/nvm/nvm.sh && nvm use 18.8.0 && yarn cross-env NODE_ENV=test mocha packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js --reporter /testbed/custom-reporter.js --exit
Feature
false
true
false
false
1
0
1
true
false
["packages/material-ui-lab/src/useAutocomplete/useAutocomplete.js->program->function_declaration:useAutocomplete"]
mui/material-ui
18,824
mui__material-ui-18824
['15728']
ad6fe1bfc569ee4230f2237e6639b22bdc4b7090
diff --git a/docs/pages/api/paper.md b/docs/pages/api/paper.md --- a/docs/pages/api/paper.md +++ b/docs/pages/api/paper.md @@ -29,6 +29,7 @@ You can learn more about the difference by [reading this guide](/guides/minimizi | <span class="prop-name">component</span> | <span class="prop-type">elementType</span> | <span c...
diff --git a/packages/material-ui/src/Paper/Paper.test.js b/packages/material-ui/src/Paper/Paper.test.js --- a/packages/material-ui/src/Paper/Paper.test.js +++ b/packages/material-ui/src/Paper/Paper.test.js @@ -49,6 +49,13 @@ describe('<Paper />', () => { }); }); + describe('prop: variant', () => { + it('...
[Paper] Support outlined Card / Paper The Material spec states that cards on the desktop have 0dp elevation, and should be outlined instead of being delimited using their shadow. I think this variant should be supported. This [has been mentioned in an unrelated issue](https://github.com/mui-org/material-ui/pull/1524...
@mjadczak Thank you for opening the issue. I wasn't aware the Material Specification was supporting it. I'm tempted to encourage this API: ```jsx <Paper variant="outlined"> ``` It would invalidate the elevation prop. > the outline seamlessly merges into the media block at the top of the card That's going to be t...
2019-12-13 21:27:20+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && rm -rf node_modules && yarn install && yarn add -D -W --ignore-engines @types/prop-types @types/react-dom @types/sinon @types/chai @types/chai-dom @types/format-util RUN echo 'var mocha = require("mocha");' > custo...
['packages/material-ui/src/Paper/Paper.test.js-><Paper /> Material-UI component API does spread props to the root component', 'packages/material-ui/src/Paper/Paper.test.js-><Paper /> Material-UI component API ref attaches the ref', 'packages/material-ui/src/Paper/Paper.test.js-><Paper /> allows custom elevations via th...
['packages/material-ui/src/Paper/Paper.test.js-><Paper /> prop: variant adds a outlined class']
[]
. /usr/local/nvm/nvm.sh && nvm use 18.8.0 && yarn cross-env NODE_ENV=test mocha packages/material-ui/src/Paper/Paper.test.js --reporter /testbed/custom-reporter.js --exit
Feature
false
true
false
false
1
0
1
true
false
["docs/src/pages/components/cards/SimpleCard.js->program->function_declaration:SimpleCard"]
mui/material-ui
19,072
mui__material-ui-19072
['18958']
e1705939cb75496958ee2eb34a8bfbe67aff3808
diff --git a/packages/material-ui-lab/src/Autocomplete/Autocomplete.js b/packages/material-ui-lab/src/Autocomplete/Autocomplete.js --- a/packages/material-ui-lab/src/Autocomplete/Autocomplete.js +++ b/packages/material-ui-lab/src/Autocomplete/Autocomplete.js @@ -356,8 +356,7 @@ const Autocomplete = React.forwardRef(fun...
diff --git a/packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js b/packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js --- a/packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js +++ b/packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js @@ -92,6 +92,42 @@ describe('<Autocomplet...
[Autocomplete] Prevent form submit with freeSolo and multiple ![image](https://user-images.githubusercontent.com/33362998/71338793-cbfbb380-2516-11ea-93d4-a32ae1699b9e.png) https://codesandbox.io/s/vibrant-water-pepu1
You can enable "required" tag in your textfield. Do you expect the same behavior without using "reqiured" tag? I think that this is a leftover during the initial implementation. I would propose the following diff: ```diff diff --git a/packages/material-ui-lab/src/useAutocomplete/useAutocomplete.js b/packages/mat...
2020-01-04 12:09:14+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN jq 'del(.devDependencies["vrtest-mui"])' package.json > package.json.tmp && mv package.json.tmp package.json RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && rm -rf node_modules && yarn install && yarn add -D -W @types/prop-types @types/react-dom @types/s...
['packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js-><Autocomplete /> Material-UI component API applies to root class to the root component if it has this class', 'packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js-><Autocomplete /> when popup open closes the popup if Escape is pressed ', 'pack...
['packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js-><Autocomplete /> should trigger a form expectedly']
['scripts/listChangedFiles.test.js->listChangedFiles should detect changes']
. /usr/local/nvm/nvm.sh && nvm use 18.8.0 && yarn cross-env NODE_ENV=test mocha packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js --reporter /testbed/custom-reporter.js --exit
Bug Fix
false
true
false
false
1
0
1
true
false
["packages/material-ui-lab/src/useAutocomplete/useAutocomplete.js->program->function_declaration:useAutocomplete"]
mui/material-ui
19,121
mui__material-ui-19121
['19109']
c99bd0dbbfdc72e2e5e1805367cc9a42ff393e3c
diff --git a/packages/material-ui-lab/src/useAutocomplete/useAutocomplete.js b/packages/material-ui-lab/src/useAutocomplete/useAutocomplete.js --- a/packages/material-ui-lab/src/useAutocomplete/useAutocomplete.js +++ b/packages/material-ui-lab/src/useAutocomplete/useAutocomplete.js @@ -782,21 +782,33 @@ export default ...
diff --git a/packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js b/packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js --- a/packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js +++ b/packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js @@ -955,4 +955,31 @@ describe('<Autocompl...
[Autocomplete] Grouping logic is broken <!-- Provide a general summary of the issue in the Title above --> <!-- Thank you very much for contributing to Material-UI by creating an issue! ❤️ To avoid duplicate issues we ask you to check off the following list. --> <!-- Checked checkbox should look like this:...
I like the proposal. The order seems to be preserved and the performance impact looks OK. The current logic only groups sequential options, but it should probably group them all. My only concern with your proposed solution is the usage of `for (const option of`, I'm not sure how it transpiles, maybe use forEach ins...
2020-01-07 13:11:06+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN jq 'del(.devDependencies["vrtest-mui"])' package.json > package.json.tmp && mv package.json.tmp package.json RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && rm -rf node_modules && yarn install && yarn add -D -W @types/prop-types @types/react-dom @types/s...
['packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js-><Autocomplete /> Material-UI component API applies to root class to the root component if it has this class', 'packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js-><Autocomplete /> when popup open closes the popup if Escape is pressed ', 'pack...
['packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js-><Autocomplete /> prop: groupBy correctly groups options and preserves option order in each group']
['scripts/listChangedFiles.test.js->listChangedFiles should detect changes']
. /usr/local/nvm/nvm.sh && nvm use 18.8.0 && yarn cross-env NODE_ENV=test mocha packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js --reporter /testbed/custom-reporter.js --exit
Bug Fix
false
true
false
false
1
0
1
true
false
["packages/material-ui-lab/src/useAutocomplete/useAutocomplete.js->program->function_declaration:useAutocomplete"]
mui/material-ui
19,257
mui__material-ui-19257
['19047', '19047']
05c90044e2aca4b04d368a4948221c69810d7ead
diff --git a/docs/pages/api/autocomplete.md b/docs/pages/api/autocomplete.md --- a/docs/pages/api/autocomplete.md +++ b/docs/pages/api/autocomplete.md @@ -91,6 +91,8 @@ Any other props supplied will be provided to the root element (native element). | <span class="prop-name">focused</span> | <span class="prop-name">.Mu...
diff --git a/packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js b/packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js --- a/packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js +++ b/packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js @@ -39,6 +39,14 @@ describe('<Autocomplet...
Autocomplete disableClearable/freeSolo doesn't decrease right padding applied to input <!-- Provide a general summary of the issue in the Title above --> <!-- Thank you very much for contributing to Material-UI by creating an issue! ❤️ To avoid duplicate issues we ask you to check off the following list. --> ...
It sounds like something we should fix. @jedwards1211 Do you want to give it a try? Yeah I can tomorrow, I've been on vacation It sounds like something we should fix. @jedwards1211 Do you want to give it a try? Yeah I can tomorrow, I've been on vacation
2020-01-15 18:15:15+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN jq 'del(.devDependencies["vrtest-mui"])' package.json > package.json.tmp && mv package.json.tmp package.json RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && rm -rf node_modules && yarn install && yarn add -D -W @types/prop-types @types/react-dom @types/s...
['packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js-><Autocomplete /> Material-UI component API applies to root class to the root component if it has this class', 'packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js-><Autocomplete /> when popup open closes the popup if Escape is pressed ', 'pack...
['packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js-><Autocomplete /> combobox should apply the icon classes', 'packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js-><Autocomplete /> wrapping behavior prop: disableClearable should not render the clear button', 'packages/material-ui-lab/src/Autoco...
['scripts/listChangedFiles.test.js->listChangedFiles should detect changes']
. /usr/local/nvm/nvm.sh && nvm use 18.8.0 && yarn cross-env NODE_ENV=test mocha packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js --reporter /testbed/custom-reporter.js --exit
Bug Fix
true
false
false
false
0
0
0
false
false
[]
mui/material-ui
19,278
mui__material-ui-19278
['19210', '19210']
05c90044e2aca4b04d368a4948221c69810d7ead
diff --git a/docs/pages/api/skeleton.md b/docs/pages/api/skeleton.md --- a/docs/pages/api/skeleton.md +++ b/docs/pages/api/skeleton.md @@ -26,7 +26,7 @@ You can learn more about the difference by [reading this guide](/guides/minimizi |:-----|:-----|:--------|:------------| | <span class="prop-name">animation</span> |...
diff --git a/packages/material-ui-lab/src/Skeleton/Skeleton.test.js b/packages/material-ui-lab/src/Skeleton/Skeleton.test.js --- a/packages/material-ui-lab/src/Skeleton/Skeleton.test.js +++ b/packages/material-ui-lab/src/Skeleton/Skeleton.test.js @@ -21,9 +21,9 @@ describe('<Skeleton />', () => { describeConforman...
Skeleton provides error in <p> tags <!-- Provide a general summary of the issue in the Title above --> <!-- Thank you very much for contributing to Material-UI by creating an issue! ❤️ To avoid duplicate issues we ask you to check off the following list. --> <!-- Checked checkbox should look like this: [x]...
@ximex What do you think of this diff? ```diff diff --git a/packages/material-ui-lab/src/Skeleton/Skeleton.js b/packages/material-ui-lab/src/Skeleton/Skeleton.js index c4696edc7..56b0ecf51 100644 --- a/packages/material-ui-lab/src/Skeleton/Skeleton.js +++ b/packages/material-ui-lab/src/Skeleton/Skeleton.js @@ -...
2020-01-17 14:36:10+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN jq 'del(.devDependencies["vrtest-mui"])' package.json > package.json.tmp && mv package.json.tmp package.json RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && rm -rf node_modules && yarn install && yarn add -D -W @types/prop-types @types/react-dom @types/s...
['packages/material-ui-lab/src/Skeleton/Skeleton.test.js-><Skeleton /> Material-UI component API prop: component can render another root component with the `component` prop', 'packages/material-ui-lab/src/Skeleton/Skeleton.test.js-><Skeleton /> Material-UI component API applies the className to the root component', 'pa...
['packages/material-ui-lab/src/Skeleton/Skeleton.test.js-><Skeleton /> Material-UI component API does spread props to the root component', 'packages/material-ui-lab/src/Skeleton/Skeleton.test.js-><Skeleton /> Material-UI component API ref attaches the ref']
['scripts/listChangedFiles.test.js->listChangedFiles should detect changes']
. /usr/local/nvm/nvm.sh && nvm use 18.8.0 && yarn cross-env NODE_ENV=test mocha packages/material-ui-lab/src/Skeleton/Skeleton.test.js --reporter /testbed/custom-reporter.js --exit
Bug Fix
true
false
false
false
0
0
0
false
false
[]
mui/material-ui
19,511
mui__material-ui-19511
['18646']
4f074722a67fe3d1d468f5a014322f238b6d48bc
diff --git a/packages/material-ui-lab/src/useAutocomplete/useAutocomplete.js b/packages/material-ui-lab/src/useAutocomplete/useAutocomplete.js --- a/packages/material-ui-lab/src/useAutocomplete/useAutocomplete.js +++ b/packages/material-ui-lab/src/useAutocomplete/useAutocomplete.js @@ -130,7 +130,6 @@ export default fu...
diff --git a/packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js b/packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js --- a/packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js +++ b/packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js @@ -49,7 +49,51 @@ describe('<Autocomplet...
[Autocomplete] Input cleared unexpectedly with freeSolo, autoHighlight and autoSelect <!-- Provide a general summary of the issue in the Title above --> An `Autocomplete` with `freeSolo`, `autoHighlight` and `autoSelect` props set to `true` clears its input when it loses focus and the input value is not an exact or ...
@reiv Thanks for the bug report, I can confirm two issues: 1. type <kbd>a</kbd> x2, type <kbd>Backspace</kbd> => observe that the first option is not highlighted. 2. type <kbd>a</kbd> x2, blur => observe that a `undefined` value is selected. What do you think of the following diff? ```diff diff --git a/packa...
2020-02-01 19:39:43+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN jq 'del(.devDependencies["vrtest-mui"])' package.json > package.json.tmp && mv package.json.tmp package.json RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && rm -rf node_modules && yarn install && yarn add -D -W @types/prop-types @types/react-dom @types/s...
['packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js-><Autocomplete /> Material-UI component API applies to root class to the root component if it has this class', 'packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js-><Autocomplete /> when popup open closes the popup if Escape is pressed ', 'pack...
['packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js-><Autocomplete /> prop: autoSelect should not clear on blur when value does not match any option', 'packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js-><Autocomplete /> prop: autoHighlight should set the focus on the first item']
['scripts/listChangedFiles.test.js->listChangedFiles should detect changes']
. /usr/local/nvm/nvm.sh && nvm use 18.8.0 && yarn cross-env NODE_ENV=test mocha packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js --reporter /testbed/custom-reporter.js --exit
Bug Fix
false
true
false
false
1
0
1
true
false
["packages/material-ui-lab/src/useAutocomplete/useAutocomplete.js->program->function_declaration:useAutocomplete"]
mui/material-ui
19,794
mui__material-ui-19794
['19778']
eec5b60861adb72df83b6de80c602940ce773663
diff --git a/packages/material-ui-lab/src/useAutocomplete/useAutocomplete.js b/packages/material-ui-lab/src/useAutocomplete/useAutocomplete.js --- a/packages/material-ui-lab/src/useAutocomplete/useAutocomplete.js +++ b/packages/material-ui-lab/src/useAutocomplete/useAutocomplete.js @@ -1,7 +1,7 @@ /* eslint-disable no...
diff --git a/packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js b/packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js --- a/packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js +++ b/packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js @@ -913,6 +913,25 @@ describe('<Autocompl...
[Autocomplete] Drop list no close outline mouse | Tech | Version | | ----------- | ------- | | Material-UI | v4.9.3 | | React | v16.12.0 | | Browser | Chrome | | TypeScript | | | etc. | | Hi, please, look at the gif with the problem ![1](https://user-im...
Please provide a full reproduction test case. This would help a lot 👷 . A live example would be perfect. [This **codesandbox.io** template](https://codesandbox.io/s/github/mui-org/material-ui/tree/master/examples/create-react-app-with-typescript) _may_ be a good starting point. Thank you!
2020-02-21 09:58:34+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN jq 'del(.devDependencies["vrtest-mui"])' package.json > package.json.tmp && mv package.json.tmp package.json RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && rm -rf node_modules && yarn install && yarn add -D -W @types/prop-types @types/react-dom @types/s...
['packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js-><Autocomplete /> when popup closed opens on ArrowDown when focus is on the textbox without moving focus', 'packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js-><Autocomplete /> wrapping behavior wraps around when navigating the list by default...
['packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js-><Autocomplete /> click input should focus the input when clicking on the open action']
['scripts/listChangedFiles.test.js->listChangedFiles should detect changes']
. /usr/local/nvm/nvm.sh && nvm use 18.8.0 && yarn cross-env NODE_ENV=test mocha packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js --reporter /testbed/custom-reporter.js --exit
Bug Fix
false
true
false
false
1
0
1
true
false
["packages/material-ui-lab/src/useAutocomplete/useAutocomplete.js->program->function_declaration:useAutocomplete"]
mui/material-ui
19,849
mui__material-ui-19849
['19454']
436e461dfd368cd460f23b0cb6ca389f26045d56
diff --git a/packages/material-ui-lab/src/TreeView/TreeView.js b/packages/material-ui-lab/src/TreeView/TreeView.js --- a/packages/material-ui-lab/src/TreeView/TreeView.js +++ b/packages/material-ui-lab/src/TreeView/TreeView.js @@ -395,20 +395,44 @@ const TreeView = React.forwardRef(function TreeView(props, ref) { ...
diff --git a/packages/material-ui-lab/src/TreeView/TreeView.test.js b/packages/material-ui-lab/src/TreeView/TreeView.test.js --- a/packages/material-ui-lab/src/TreeView/TreeView.test.js +++ b/packages/material-ui-lab/src/TreeView/TreeView.test.js @@ -174,6 +174,27 @@ describe('<TreeView />', () => { expect(getByTe...
[TreeItem] No conditional rendering support <!-- Provide a general summary of the issue in the Title above --> <!-- Thank you very much for contributing to Material-UI by creating an issue! ❤️ To avoid duplicate issues we ask you to check off the following list. --> <!-- Checked checkbox should look like t...
This is an easy fix but due to the massive changes in #18357 I want to wait for that to be merged. > However, as shown above, nodeId is required for both the wrapper and the TreeItem, because TreeView/TreeItem iterates using React.Children naively, assuming all children will be TreeItem components with nodeId props. >...
2020-02-25 21:39:19+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN jq 'del(.devDependencies["vrtest-mui"])' package.json > package.json.tmp && mv package.json.tmp package.json RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && rm -rf node_modules && yarn install && yarn add -D -W @types/prop-types @types/react-dom @types/s...
['packages/material-ui-lab/src/TreeView/TreeView.test.js-><TreeView /> should be able to be controlled with the selected prop and singleSelect', 'packages/material-ui-lab/src/TreeView/TreeView.test.js-><TreeView /> should not error when component state changes', 'packages/material-ui-lab/src/TreeView/TreeView.test.js->...
['packages/material-ui-lab/src/TreeView/TreeView.test.js-><TreeView /> should support conditional rendered tree items', 'packages/material-ui-lab/src/TreeView/TreeView.test.js-><TreeView /> Material-UI component API applies the className to the root component', 'packages/material-ui-lab/src/TreeView/TreeView.test.js-><...
[]
. /usr/local/nvm/nvm.sh && nvm use 18.8.0 && yarn cross-env NODE_ENV=test mocha packages/material-ui-lab/src/TreeView/TreeView.test.js --reporter /testbed/custom-reporter.js --exit
Bug Fix
true
false
false
false
0
0
0
false
false
[]
mui/material-ui
20,232
mui__material-ui-20232
['19882']
7e1da61f3a9c0bb2874ad3a12a7e70358b54e98e
diff --git a/packages/material-ui-lab/src/TreeView/TreeView.js b/packages/material-ui-lab/src/TreeView/TreeView.js --- a/packages/material-ui-lab/src/TreeView/TreeView.js +++ b/packages/material-ui-lab/src/TreeView/TreeView.js @@ -56,9 +56,10 @@ const TreeView = React.forwardRef(function TreeView(props, ref) { ......
diff --git a/packages/material-ui-lab/src/TreeItem/TreeItem.test.js b/packages/material-ui-lab/src/TreeItem/TreeItem.test.js --- a/packages/material-ui-lab/src/TreeItem/TreeItem.test.js +++ b/packages/material-ui-lab/src/TreeItem/TreeItem.test.js @@ -3,7 +3,7 @@ import { expect } from 'chai'; import { spy } from 'sino...
[TreeItem] TreeItem hijacks focus when typing on an input box that updates it. I am using a <TextField /> to change the contents of a TreeView and a matching TreeItem is being focused when I backspace. CodeSandbox: https://codesandbox.io/s/bold-hill-rw9y5 - [X] The issue is present in the latest release. - [X] I...
Can't reproduce: ![mui-tree](https://user-images.githubusercontent.com/12292047/75520751-94bded00-5a06-11ea-8c01-ce32e1c4b122.gif) Please include your environment as was requested in the template. ```md ## Your Environment 🌎 <!-- Include as many relevant details about the environment with which you exp...
2020-03-22 11:40:08+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN jq 'del(.devDependencies["vrtest-mui"])' package.json > package.json.tmp && mv package.json.tmp package.json RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && rm -rf node_modules && yarn install && yarn add -D -W @types/prop-types @types/react-dom @types/s...
['packages/material-ui-lab/src/TreeItem/TreeItem.test.js-><TreeItem /> Accessibility Navigation up arrow interaction moves focus to a sibling node', 'packages/material-ui-lab/src/TreeItem/TreeItem.test.js-><TreeItem /> Accessibility when a tree receives focus should focus the selected node if a node is selected before ...
['packages/material-ui-lab/src/TreeItem/TreeItem.test.js-><TreeItem /> should not focus steal']
['scripts/listChangedFiles.test.js->listChangedFiles should detect changes']
. /usr/local/nvm/nvm.sh && nvm use 18.8.0 && yarn cross-env NODE_ENV=test mocha packages/material-ui-lab/src/TreeItem/TreeItem.test.js --reporter /testbed/custom-reporter.js --exit
Bug Fix
true
false
false
false
0
0
0
false
false
[]
mui/material-ui
20,252
mui__material-ui-20252
['19883']
5a794bd4974b02536b59d09029b12b4e76824301
diff --git a/packages/material-ui/src/Tooltip/Tooltip.js b/packages/material-ui/src/Tooltip/Tooltip.js --- a/packages/material-ui/src/Tooltip/Tooltip.js +++ b/packages/material-ui/src/Tooltip/Tooltip.js @@ -280,14 +280,10 @@ const Tooltip = React.forwardRef(function Tooltip(props, ref) { } }; - const handleE...
diff --git a/packages/material-ui/src/Tooltip/Tooltip.test.js b/packages/material-ui/src/Tooltip/Tooltip.test.js --- a/packages/material-ui/src/Tooltip/Tooltip.test.js +++ b/packages/material-ui/src/Tooltip/Tooltip.test.js @@ -481,6 +481,32 @@ describe('<Tooltip />', () => { assert.strictEqual(wrapper.find('[r...
[Tooltip] onFocus does not work on TextField if using a Tooltip with it - [x] The issue is present in the latest release. - [x] I have searched the [issues](https://github.com/mui-org/material-ui/issues) of this repository and believe that this is not a duplicate. ## Current Behavior 😯 `onFocus` does not work i...
Introduced in #18687 which should be reverted until we unterstand mouseEnter/over event propagation in react. Agree, #18687 wasn't probably the best fix for this. It didn't account for components, like the TextField. that might apply the event on a nested element. I think that a clean solution would be to add an arg...
2020-03-23 15:35:18+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN jq 'del(.devDependencies["vrtest-mui"])' package.json > package.json.tmp && mv package.json.tmp package.json RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && rm -rf node_modules && yarn install && yarn add -D -W @types/prop-types @types/react-dom @types/s...
['packages/material-ui/src/Tooltip/Tooltip.test.js-><Tooltip /> prop: delay should take the enterDelay into account', 'packages/material-ui/src/Tooltip/Tooltip.test.js-><Tooltip /> prop: PopperProps should pass PopperProps to Popper Component', 'packages/material-ui/src/Tooltip/Tooltip.test.js-><Tooltip /> prop: overri...
['packages/material-ui/src/Tooltip/Tooltip.test.js-><Tooltip /> focus should not prevent event handlers of children']
['scripts/listChangedFiles.test.js->listChangedFiles should detect changes']
. /usr/local/nvm/nvm.sh && nvm use 18.8.0 && yarn cross-env NODE_ENV=test mocha packages/material-ui/src/Tooltip/Tooltip.test.js --reporter /testbed/custom-reporter.js --exit
Bug Fix
true
false
false
false
0
0
0
false
false
[]
mui/material-ui
20,356
mui__material-ui-20356
['20296']
67468679f7c5dfa881ea12a32cfe4a5b44cf6680
diff --git a/docs/src/pages/components/selects/MultipleSelect.js b/docs/src/pages/components/selects/MultipleSelect.js --- a/docs/src/pages/components/selects/MultipleSelect.js +++ b/docs/src/pages/components/selects/MultipleSelect.js @@ -161,6 +161,7 @@ export default function MultipleSelect() { return se...
diff --git a/packages/material-ui/src/Select/Select.test.js b/packages/material-ui/src/Select/Select.test.js --- a/packages/material-ui/src/Select/Select.test.js +++ b/packages/material-ui/src/Select/Select.test.js @@ -409,7 +409,7 @@ describe('<Select />', () => { const { getByRole } = render(<Select value="" /...
[Select] Aria error flagged by WAVE and W3C <!-- Provide a general summary of the issue in the Title above --> WAVE errors in tables, in TablePagination/TableFooter <!-- Thank you very much for contributing to Material-UI by creating an issue! ❤️ To avoid duplicate issues we ask you to check off the following l...
Thanks for opening this issue. Does WAVE provide more information beyond "Broken ARIA Reference Errors"? ## Broken ARIA reference ### What It Means An aria-labelledby or aria-describedby reference exists, but the target for the reference does not exist. ### Why It Matters ARIA labels and descriptions wil...
2020-03-31 11:07:37+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN jq 'del(.devDependencies["vrtest-mui"])' package.json > package.json.tmp && mv package.json.tmp package.json RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && rm -rf node_modules && yarn install && yarn add -D -W @types/prop-types @types/react-dom @types/s...
['packages/material-ui/src/Select/Select.test.js-><Select /> should open menu when pressed ArrowUp key on select', 'packages/material-ui/src/Select/Select.test.js-><Select /> prop: multiple selects value based on their stringified equality when theyre not objects', 'packages/material-ui/src/Select/Select.test.js-><Sele...
['packages/material-ui/src/Select/Select.test.js-><Select /> accessibility is labelled by itself when it has a name', 'packages/material-ui/src/Select/Select.test.js-><Select /> accessibility it will fallback to its content for the accessible name when it has no name']
['scripts/listChangedFiles.test.js->listChangedFiles should detect changes']
. /usr/local/nvm/nvm.sh && nvm use 18.8.0 && yarn cross-env NODE_ENV=test mocha packages/material-ui/src/Select/Select.test.js --reporter /testbed/custom-reporter.js --exit
Bug Fix
false
true
false
false
2
0
2
false
false
["docs/src/pages/components/selects/SimpleSelect.js->program->function_declaration:SimpleSelect", "docs/src/pages/components/selects/MultipleSelect.js->program->function_declaration:MultipleSelect"]
mui/material-ui
20,368
mui__material-ui-20368
['20297']
151834f4e9e150ac70937d90f367163785c8a02b
diff --git a/packages/material-ui/src/ButtonBase/ButtonBase.js b/packages/material-ui/src/ButtonBase/ButtonBase.js --- a/packages/material-ui/src/ButtonBase/ButtonBase.js +++ b/packages/material-ui/src/ButtonBase/ButtonBase.js @@ -224,6 +224,7 @@ const ButtonBase = React.forwardRef(function ButtonBase(props, ref) { ...
diff --git a/packages/material-ui/src/Chip/Chip.test.js b/packages/material-ui/src/Chip/Chip.test.js --- a/packages/material-ui/src/Chip/Chip.test.js +++ b/packages/material-ui/src/Chip/Chip.test.js @@ -362,9 +362,7 @@ describe('<Chip />', () => { ['Backspace', 'Delete'].forEach((key) => { it(`should ca...
[Chip] Backspace and delete keys don't work when nesting an input I'm using a `TextField` component as label prop for a `Chip`. That worked without problems for a long time. Since the type of label is specified with `node`, I assumed that I could insert any child component there. Since I recently updated to the latest ...
I think it has to do with some of the recent changes to the `Chip` component (see [this commit](https://github.com/mui-org/material-ui/commit/c5f4a86918cf21577f2b18139b362ec9ae01ff6a#diff-e0528e6b6a6fe93ca94abbac71825ac3)). `handleKeyDown` will do `event.preventDefault()` for backspace and delete keyboard events. ...
2020-04-01 06:47:56+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN jq 'del(.devDependencies["vrtest-mui"])' package.json > package.json.tmp && mv package.json.tmp package.json RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && rm -rf node_modules && yarn install && yarn add -D -W @types/prop-types @types/react-dom @types/s...
["packages/material-ui/src/Chip/Chip.test.js-><Chip /> reacts to keyboard chip prop: onDelete should call onDelete 'Backspace' is released", 'packages/material-ui/src/Chip/Chip.test.js-><Chip /> text only should render with the root and the primary class', 'packages/material-ui/src/Chip/Chip.test.js-><Chip /> deletable...
['packages/material-ui/src/Chip/Chip.test.js-><Chip /> reacts to keyboard chip prop: onDelete should not prevent default on input']
['scripts/listChangedFiles.test.js->listChangedFiles should detect changes']
. /usr/local/nvm/nvm.sh && nvm use 18.8.0 && yarn cross-env NODE_ENV=test mocha packages/material-ui/src/Chip/Chip.test.js --reporter /testbed/custom-reporter.js --exit
Bug Fix
false
true
false
false
1
0
1
true
false
["packages/material-ui/src/Chip/Chip.js->program->function_declaration:isDeleteKeyboardEvent"]
mui/material-ui
20,377
mui__material-ui-20377
['20343']
b3446f4eb90249f91dd044d9e67c3ff0b06e4495
diff --git a/docs/pages/api-docs/menu-item.md b/docs/pages/api-docs/menu-item.md --- a/docs/pages/api-docs/menu-item.md +++ b/docs/pages/api-docs/menu-item.md @@ -29,6 +29,7 @@ You can learn more about the difference by [reading this guide](/guides/minimizi | <span class="prop-name">component</span> | <span class="pro...
diff --git a/packages/material-ui/src/MenuItem/MenuItem.test.js b/packages/material-ui/src/MenuItem/MenuItem.test.js --- a/packages/material-ui/src/MenuItem/MenuItem.test.js +++ b/packages/material-ui/src/MenuItem/MenuItem.test.js @@ -107,4 +107,11 @@ describe('<MenuItem />', () => { assert.strictEqual(wrapper2....
MenuItem does not pass the disabled class The MenuItem does not pass the disabled class to the inner ListItem like it does with the dense class name. - [x] The issue is present in the latest release. - [x] I have searched the [issues](https://github.com/mui-org/material-ui/issues) of this repository and believe tha...
That is a general problem with our styling solution and component inheritance. `MenuItem` implements a different `classes` prop which means you can't override the `classes` prop of the `ListItem`. Maybe we should start exposing separate props for the classes of the inherited component. This has probably been asked b...
2020-04-01 22:36:32+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN jq 'del(.devDependencies["vrtest-mui"])' package.json > package.json.tmp && mv package.json.tmp package.json RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && rm -rf node_modules && yarn install && yarn add -D -W @types/prop-types @types/react-dom @types/s...
['packages/material-ui/src/MenuItem/MenuItem.test.js-><MenuItem /> should render a button ListItem with with ripple', 'packages/material-ui/src/MenuItem/MenuItem.test.js-><MenuItem /> Material-UI component API ref attaches the ref', 'packages/material-ui/src/MenuItem/MenuItem.test.js-><MenuItem /> event callbacks shoul...
['packages/material-ui/src/MenuItem/MenuItem.test.js-><MenuItem /> prop: ListItemClasses should be able to change the style of ListItem']
['scripts/listChangedFiles.test.js->listChangedFiles should detect changes']
. /usr/local/nvm/nvm.sh && nvm use 18.8.0 && yarn cross-env NODE_ENV=test mocha packages/material-ui/src/MenuItem/MenuItem.test.js --reporter /testbed/custom-reporter.js --exit
Bug Fix
true
false
false
false
0
0
0
false
false
[]
mui/material-ui
20,657
mui__material-ui-20657
['19953']
72a477f3ca678afd1c2d03cb05df4d20089c85cf
diff --git a/docs/pages/api-docs/tree-item.md b/docs/pages/api-docs/tree-item.md --- a/docs/pages/api-docs/tree-item.md +++ b/docs/pages/api-docs/tree-item.md @@ -36,6 +36,8 @@ The `MuiTreeItem` name can be used for providing [default props](/customization/ | <span class="prop-name">icon</span> | <span class="prop-typ...
diff --git a/packages/material-ui-lab/src/TreeView/TreeView.test.js b/packages/material-ui-lab/src/TreeView/TreeView.test.js --- a/packages/material-ui-lab/src/TreeView/TreeView.test.js +++ b/packages/material-ui-lab/src/TreeView/TreeView.test.js @@ -196,7 +196,7 @@ describe('<TreeView />', () => { }); describe...
[TreeView] Expand/collapse node only when clicking on expand/collapse icon - [x] I have searched the [issues](https://github.com/mui-org/material-ui/issues) of this repository and believe that this is not a duplicate. ## Summary 💡 When I click on a tree item that has children, the node expands, wherever I click ...
I have the same use case, it could be useful ! Here is a workaround. You need to import the [TreeViewContext](https://github.com/mui-org/material-ui/blob/master/packages/material-ui-lab/src/TreeView/TreeViewContext.js) Prevent the label click from being [processed by the wrapped TreeItem](https://github.com/mui...
2020-04-20 18:22:41+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN jq 'del(.devDependencies["vrtest-mui"])' package.json > package.json.tmp && mv package.json.tmp package.json RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && rm -rf node_modules && yarn install && yarn add -D -W @types/prop-types @types/react-dom @types/s...
['packages/material-ui-lab/src/TreeView/TreeView.test.js-><TreeView /> Accessibility (TreeView) should have the role `tree`', 'packages/material-ui-lab/src/TreeView/TreeView.test.js-><TreeView /> should support conditional rendered tree items', 'packages/material-ui-lab/src/TreeView/TreeView.test.js-><TreeView /> shoul...
['packages/material-ui-lab/src/TreeView/TreeView.test.js-><TreeView /> onNodeToggle should not be called when a parent node label is clicked and onLabelClick preventDefault', 'packages/material-ui-lab/src/TreeView/TreeView.test.js-><TreeView /> onNodeToggle should not be called when a parent node icon is clicked and on...
['scripts/listChangedFiles.test.js->listChangedFiles should detect changes']
. /usr/local/nvm/nvm.sh && nvm use 18.8.0 && yarn cross-env NODE_ENV=test mocha packages/material-ui-lab/src/TreeView/TreeView.test.js --reporter /testbed/custom-reporter.js --exit
Feature
true
false
false
false
0
0
0
false
false
[]
mui/material-ui
20,732
mui__material-ui-20732
['20730']
2231349c302a089cc556614ff562b02a729b1e77
diff --git a/packages/material-ui-lab/src/useAutocomplete/useAutocomplete.js b/packages/material-ui-lab/src/useAutocomplete/useAutocomplete.js --- a/packages/material-ui-lab/src/useAutocomplete/useAutocomplete.js +++ b/packages/material-ui-lab/src/useAutocomplete/useAutocomplete.js @@ -860,7 +860,7 @@ export default fu...
diff --git a/packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js b/packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js --- a/packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js +++ b/packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js @@ -1119,6 +1119,50 @@ describe('<Autocom...
Single-select autocomplete doesn't open on click after selecting option <!-- Provide a general summary of the issue in the Title above --> <!-- Thank you very much for contributing to Material-UI by creating an issue! ❤️ To avoid duplicate issues we ask you to check off the following list. --> <!-- Checked...
I thought I saw a comment here, but can't see it anymore. Have I missed something? I can work on it @oliviertassinari EDIT @oliviertassinari I look at the code and It seams a controlled behaviour. When the input value is not empty the popup will not open. Maeby I don't understand the issue @MargaretKrutiko...
2020-04-24 09:58:40+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN jq 'del(.devDependencies["vrtest-mui"])' package.json > package.json.tmp && mv package.json.tmp package.json RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && rm -rf node_modules && yarn install && yarn add -D -W @types/prop-types @types/react-dom @types/s...
['packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js-><Autocomplete /> prop: onHighlightChange should support mouse event', 'packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js-><Autocomplete /> when popup closed opens on ArrowDown when focus is on the textbox without moving focus', 'packages/mat...
['packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js-><Autocomplete /> click input should mantain list box open clicking on input when it is not empty', 'packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js-><Autocomplete /> click input should not toggle list box']
['scripts/listChangedFiles.test.js->listChangedFiles should detect changes']
. /usr/local/nvm/nvm.sh && nvm use 18.8.0 && yarn cross-env NODE_ENV=test mocha packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js --reporter /testbed/custom-reporter.js --exit
Bug Fix
false
true
false
false
1
0
1
true
false
["packages/material-ui-lab/src/useAutocomplete/useAutocomplete.js->program->function_declaration:useAutocomplete"]
mui/material-ui
22,696
mui__material-ui-22696
['19654']
fad48de8f7d9a449adb4ab9796e9ed1c2c0593ca
diff --git a/packages/material-ui-lab/src/useAutocomplete/useAutocomplete.js b/packages/material-ui-lab/src/useAutocomplete/useAutocomplete.js --- a/packages/material-ui-lab/src/useAutocomplete/useAutocomplete.js +++ b/packages/material-ui-lab/src/useAutocomplete/useAutocomplete.js @@ -563,7 +563,7 @@ export default fu...
diff --git a/packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js b/packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js --- a/packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js +++ b/packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js @@ -834,6 +834,40 @@ describe('<Autocompl...
[Autocomplete] Don't close the popup when Ctrl/Shift clicks In an Autocomplete component that contains the `multiple` prop, it would be a great feature to have a ctrl click functionality. E.g. simply clicking with the mouse should select a single item. Only when ctrl+click is used the popup shouldn't close, allowing to...
null
2020-09-22 15:28:09+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN jq 'del(.devDependencies["vrtest-mui"])' package.json > package.json.tmp && mv package.json.tmp package.json RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && rm -rf node_modules && yarn install && yarn add -D -W @types/prop-types @types/react-dom @types/s...
['packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js-><Autocomplete /> prop: onHighlightChange should support mouse event', 'packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js-><Autocomplete /> when popup closed opens on ArrowDown when focus is on the textbox without moving focus', 'packages/mat...
['packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js-><Autocomplete /> when popup open does not close the popup when option selected if Meta is pressed', 'packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js-><Autocomplete /> when popup open does not close the popup when option selected if Control...
[]
. /usr/local/nvm/nvm.sh && nvm use 18.8.0 && yarn cross-env NODE_ENV=test mocha packages/material-ui-lab/src/Autocomplete/Autocomplete.test.js --reporter /testbed/custom-reporter.js --exit
Feature
false
true
false
false
1
0
1
true
false
["packages/material-ui-lab/src/useAutocomplete/useAutocomplete.js->program->function_declaration:useAutocomplete"]
mui/material-ui
23,229
mui__material-ui-23229
['22166']
56520e757e0052e25f8dd5d78214458c4b7c634d
diff --git a/docs/pages/api-docs/autocomplete.md b/docs/pages/api-docs/autocomplete.md --- a/docs/pages/api-docs/autocomplete.md +++ b/docs/pages/api-docs/autocomplete.md @@ -108,7 +108,6 @@ Any other props supplied will be provided to the root element (native element). | <span class="prop-name">inputFocused</span> | ...
diff --git a/packages/material-ui/src/Autocomplete/Autocomplete.test.js b/packages/material-ui/src/Autocomplete/Autocomplete.test.js --- a/packages/material-ui/src/Autocomplete/Autocomplete.test.js +++ b/packages/material-ui/src/Autocomplete/Autocomplete.test.js @@ -62,7 +62,11 @@ describe('<Autocomplete />', () => { ...
[Autocomplete] Unclickable area between text input and endAdornment - [x] The issue is present in the latest release. - [x] I have searched the [issues](https://github.com/mui-org/material-ui/issues) of this repository and believe that this is not a duplicate. ## Current Behavior 😯 When using the Autocomplete in ...
@FlorisWarmenhoven How do you reproduce the issue? ![WvlclOpfqP](https://user-images.githubusercontent.com/15650071/90341497-5a6df980-e000-11ea-8044-5bc9a43e3b26.gif) Sorry for the delay. As you can see in the above GIF, I am clicking from left to right (continuously clicking). There is an area that does not show/hi...
2020-10-24 00:17:28+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN jq 'del(.devDependencies["vrtest-mui"])' package.json > package.json.tmp && mv package.json.tmp package.json RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && rm -rf node_modules && yarn install && yarn add -D -W @types/prop-types @types/react-dom @types/s...
['packages/material-ui/src/Autocomplete/Autocomplete.test.js-><Autocomplete /> prop: onHighlightChange should pass to onHighlightChange the correct value after filtering', 'packages/material-ui/src/Autocomplete/Autocomplete.test.js-><Autocomplete /> prop: filterOptions does not limit the amount of rendered options when...
['packages/material-ui/src/Autocomplete/Autocomplete.test.js-><Autocomplete /> WAI-ARIA conforming markup when closed', 'packages/material-ui/src/Autocomplete/Autocomplete.test.js-><Autocomplete /> WAI-ARIA conforming markup when open']
['packages/material-ui-lab/src/SliderStyled/SliderStyled.test.js-><Slider /> range should support mouse events', 'packages/material-ui-lab/src/SliderStyled/SliderStyled.test.js-><Slider /> prop: orientation should report the right position', 'scripts/listChangedFiles.test.js->listChangedFiles should detect changes', 'p...
. /usr/local/nvm/nvm.sh && nvm use 18.8.0 && yarn cross-env NODE_ENV=test mocha packages/material-ui/src/Autocomplete/Autocomplete.test.js --reporter /testbed/custom-reporter.js --exit
Bug Fix
true
false
false
false
0
0
0
false
false
[]
mui/material-ui
23,701
mui__material-ui-23701
['23603']
dfc94e03d391384155cbdd1a0e3b0fe16e2e1042
diff --git a/packages/material-ui-lab/src/internal/pickers/date-utils.ts b/packages/material-ui-lab/src/internal/pickers/date-utils.ts --- a/packages/material-ui-lab/src/internal/pickers/date-utils.ts +++ b/packages/material-ui-lab/src/internal/pickers/date-utils.ts @@ -128,7 +128,7 @@ export const isRangeValid = <TDat...
diff --git a/packages/material-ui-lab/src/DateRangePicker/DateRangePicker.test.tsx b/packages/material-ui-lab/src/DateRangePicker/DateRangePicker.test.tsx --- a/packages/material-ui-lab/src/DateRangePicker/DateRangePicker.test.tsx +++ b/packages/material-ui-lab/src/DateRangePicker/DateRangePicker.test.tsx @@ -59,6 +59,...
[DateRangePicker] Allow same date selection <!-- Provide a general summary of the issue in the Title above --> ```jsx <DateRangePicker startText="Created From" endText="Created To" allowSameDateSelection={true} value={[ ...
I have this problem also. I would appreciate if it could be fixed as fast as possible. Thanks! Please fix this. We need it! This project is not supported anymore, it is moving to the material-ui/core https://github.com/mui-org/material-ui/pull/22692 but the PR is floating. I`ll add a mention about this in readme ...
2020-11-24 15:50:20+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npm install --legacy-peer-deps RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npm install -D @types/prop-types @types/react-dom @types/testing-library__react @types/sinon @types/chai @types/chai-dom @types/format...
['packages/material-ui-lab/src/DateRangePicker/DateRangePicker.test.tsx-><DateRangePicker /> allows disabling dates', 'packages/material-ui-lab/src/DateRangePicker/DateRangePicker.test.tsx-><DateRangePicker /> prop – `calendars` renders provided amount of calendars', "packages/material-ui-lab/src/DateRangePicker/DateRa...
['packages/material-ui-lab/src/DateRangePicker/DateRangePicker.test.tsx-><DateRangePicker /> allows a single day range']
['scripts/listChangedFiles.test.js->listChangedFiles should detect changes', 'packages/material-ui/src/BottomNavigationAction/BottomNavigationAction.test.js-><BottomNavigationAction /> touch functionality should fire onClick on touch tap', 'packages/material-ui/src/Slider/Slider.test.js-><Slider /> should only listen t...
. /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npx cross-env NODE_ENV=test mocha packages/material-ui-lab/src/DateRangePicker/DateRangePicker.test.tsx --reporter /testbed/custom-reporter.js --exit
Bug Fix
true
false
false
false
0
0
0
false
false
[]
mui/material-ui
24,105
mui__material-ui-24105
['24096']
16c648dfd8d9b47772a44f3a77c6648a55557d80
diff --git a/packages/material-ui-lab/src/TreeItem/TreeItem.js b/packages/material-ui-lab/src/TreeItem/TreeItem.js --- a/packages/material-ui-lab/src/TreeItem/TreeItem.js +++ b/packages/material-ui-lab/src/TreeItem/TreeItem.js @@ -223,7 +223,7 @@ const TreeItem = React.forwardRef(function TreeItem(props, ref) { func...
diff --git a/packages/material-ui-lab/src/TreeItem/TreeItem.test.js b/packages/material-ui-lab/src/TreeItem/TreeItem.test.js --- a/packages/material-ui-lab/src/TreeItem/TreeItem.test.js +++ b/packages/material-ui-lab/src/TreeItem/TreeItem.test.js @@ -414,6 +414,22 @@ describe('<TreeItem />', () => { expect(g...
[TreeView] Scroll jump bug When Tree View has a larger height than the window height, clicking Tree Items first jumps the position of the item to the top and then on the second click toggles. See the video, please. A similar thing happens in the last items too - it just positions the element to the bottom and it is...
null
2020-12-23 11:05:01+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npm install --legacy-peer-deps RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npm install -D @types/prop-types @types/react-dom @types/testing-library__react @types/sinon @types/chai @types/chai-dom @types/format...
['packages/material-ui-lab/src/TreeItem/TreeItem.test.js-><TreeItem /> Accessibility Expansion enter key interaction expands a node with children', 'packages/material-ui-lab/src/TreeItem/TreeItem.test.js-><TreeItem /> Accessibility Single Selection keyboard should not deselect a node when space is pressed on a selected...
['packages/material-ui-lab/src/TreeItem/TreeItem.test.js-><TreeItem /> Accessibility when a tree receives focus should focus on tree with scroll prevented']
['scripts/listChangedFiles.test.js->listChangedFiles should detect changes', 'packages/material-ui/src/BottomNavigationAction/BottomNavigationAction.test.js-><BottomNavigationAction /> touch functionality should fire onClick on touch tap', 'packages/material-ui/src/Slider/Slider.test.js-><Slider /> should only listen t...
. /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npx cross-env NODE_ENV=test mocha packages/material-ui-lab/src/TreeItem/TreeItem.test.js --reporter /testbed/custom-reporter.js --exit
Bug Fix
false
true
false
false
1
0
1
true
false
["packages/material-ui-lab/src/TreeItem/TreeItem.js->program->function_declaration:handleFocus"]
mui/material-ui
24,213
mui__material-ui-24213
['24198']
dbaac3f35a31d2fc6f0ec3feb6c4125f5ec359b2
diff --git a/.eslintrc.js b/.eslintrc.js --- a/.eslintrc.js +++ b/.eslintrc.js @@ -190,6 +190,7 @@ module.exports = { 'jsx-a11y/click-events-have-key-events': 'off', 'jsx-a11y/control-has-associated-label': 'off', 'jsx-a11y/iframe-has-title': 'off', + 'jsx-a11y/label-has-associated-con...
diff --git a/packages/material-ui/src/Autocomplete/Autocomplete.test.js b/packages/material-ui/src/Autocomplete/Autocomplete.test.js --- a/packages/material-ui/src/Autocomplete/Autocomplete.test.js +++ b/packages/material-ui/src/Autocomplete/Autocomplete.test.js @@ -12,8 +12,7 @@ import { import { spy } from 'sinon'; ...
[Autocomplete] for Voiceover on Mac is reading incorrect labels on any browser <!-- Provide a general summary of the issue in the Title above --> <!-- Thank you very much for contributing to Material-UI by creating an issue! ❤️ To avoid duplicate issues we ask you to check off the following list. --> <!-- ...
@inform880 I can reproduce it too, since the first version. Wow, I can't believe it wasn't reported before. How is the component even usable with this behavior? 🙈 From what I understand, the bug has been here for 1 year and unnoticed… It looks like VoiceOver caches the results per DOM node. What do you think about ...
2020-12-31 15:50:14+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npm install --legacy-peer-deps RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npm install -D @types/prop-types @types/react-dom @types/testing-library__react @types/sinon @types/chai @types/chai-dom @types/format...
['packages/material-ui/src/Autocomplete/Autocomplete.test.js-><Autocomplete /> prop: onHighlightChange should pass to onHighlightChange the correct value after filtering', 'packages/material-ui/src/Autocomplete/Autocomplete.test.js-><Autocomplete /> prop: filterOptions does not limit the amount of rendered options when...
['packages/material-ui/src/useAutocomplete/useAutocomplete.test.js->useAutocomplete should preserve DOM nodes of options when re-ordering']
['scripts/listChangedFiles.test.js->listChangedFiles should detect changes', 'packages/material-ui/src/BottomNavigationAction/BottomNavigationAction.test.js-><BottomNavigationAction /> touch functionality should fire onClick on touch tap', 'packages/material-ui/src/Slider/Slider.test.js-><Slider /> should only listen t...
. /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npx cross-env NODE_ENV=test mocha packages/material-ui/src/useAutocomplete/useAutocomplete.test.js packages/material-ui/src/Autocomplete/Autocomplete.test.js --reporter /testbed/custom-reporter.js --exit
Bug Fix
false
true
false
false
1
0
1
true
false
["packages/material-ui/src/useAutocomplete/useAutocomplete.js->program->function_declaration:useAutocomplete"]
mui/material-ui
24,742
mui__material-ui-24742
['24706']
ee6dd6d2eedc5d74a945a94cff528ba4ab04611c
diff --git a/packages/material-ui/src/InputAdornment/InputAdornment.js b/packages/material-ui/src/InputAdornment/InputAdornment.js --- a/packages/material-ui/src/InputAdornment/InputAdornment.js +++ b/packages/material-ui/src/InputAdornment/InputAdornment.js @@ -90,7 +90,15 @@ const InputAdornment = React.forwardRef(fu...
diff --git a/packages/material-ui/src/InputAdornment/InputAdornment.test.js b/packages/material-ui/src/InputAdornment/InputAdornment.test.js --- a/packages/material-ui/src/InputAdornment/InputAdornment.test.js +++ b/packages/material-ui/src/InputAdornment/InputAdornment.test.js @@ -166,7 +166,7 @@ describe('<InputAdorn...
[TextField] Improve baseline alignement with start adornment - [x] The issue is present in the latest (alpha) release. - [x] I have searched the [issues](https://github.com/mui-org/material-ui/issues) of this repository and believe that this is not a duplicate. ## Current Behavior 😯 https://codesandbox.io/s/bas...
@Philipp91 Interesting, I think that it would make sense to use the same fix as we used in the Select: #16743. ```diff diff --git a/packages/material-ui/src/InputAdornment/InputAdornment.js b/packages/material-ui/src/InputAdornment/InputAdornment.js index 4d04077933..27b7be2a61 100644 --- a/packages/material-ui/s...
2021-02-02 10:40:12+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npm install --legacy-peer-deps RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npm install -D @types/prop-types @types/react-dom @types/testing-library__react @types/sinon @types/chai @types/chai-dom @types/format...
['packages/material-ui/src/InputAdornment/InputAdornment.test.js-><InputAdornment /> prop: variant should warn if the variant supplied is equal to the variant inferred', 'packages/material-ui/src/InputAdornment/InputAdornment.test.js-><InputAdornment /> Material-UI component API ref attaches the ref', 'packages/materia...
['packages/material-ui/src/InputAdornment/InputAdornment.test.js-><InputAdornment /> prop: position should render span for vertical baseline alignment']
['scripts/listChangedFiles.test.js->listChangedFiles should detect changes', 'packages/material-ui/src/BottomNavigationAction/BottomNavigationAction.test.js-><BottomNavigationAction /> touch functionality should fire onClick on touch tap', 'packages/material-ui/src/Slider/Slider.test.js-><Slider /> should only listen t...
. /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npx cross-env NODE_ENV=test mocha packages/material-ui/src/InputAdornment/InputAdornment.test.js test/regressions/tests/TextField/BaselineAlignTextField.js --reporter /testbed/custom-reporter.js --exit
Bug Fix
true
false
false
false
0
0
0
false
false
[]
mui/material-ui
25,072
mui__material-ui-25072
['25011']
4793d2d5d6fc8542aa422c0e98261e11649fb994
diff --git a/packages/material-ui/src/Button/Button.js b/packages/material-ui/src/Button/Button.js --- a/packages/material-ui/src/Button/Button.js +++ b/packages/material-ui/src/Button/Button.js @@ -3,7 +3,7 @@ import PropTypes from 'prop-types'; import clsx from 'clsx'; import { deepmerge } from '@material-ui/utils'...
diff --git a/packages/material-ui/src/Button/Button.test.js b/packages/material-ui/src/Button/Button.test.js --- a/packages/material-ui/src/Button/Button.test.js +++ b/packages/material-ui/src/Button/Button.test.js @@ -379,4 +379,11 @@ describe('<Button />', () => { expect(button).not.to.have.attribute('type'); ...
[Button] Disabled classes not added to the button <!-- Provide a general summary of the issue in the Title above --> <!-- Thank you very much for contributing to Material-UI by creating an issue! ❤️ To avoid duplicate issues we ask you to check off the following list. --> <!-- Checked checkbox should look ...
@Jack-Works Oh right, we don't forward the `classes`, this should do it: ```diff diff --git a/packages/material-ui/src/Button/Button.js b/packages/material-ui/src/Button/Button.js index 11a700c67b..b041bce5af 100644 --- a/packages/material-ui/src/Button/Button.js +++ b/packages/material-ui/src/Button/Button.js ...
2021-02-23 15:28:12+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npm install --legacy-peer-deps RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npm install -D @types/prop-types @types/react-dom @types/testing-library__react @types/sinon @types/chai @types/chai-dom @types/format...
['packages/material-ui/src/Button/Button.test.js-><Button /> should render an inherit outlined button', 'packages/material-ui/src/Button/Button.test.js-><Button /> should render a text secondary button', 'packages/material-ui/src/Button/Button.test.js-><Button /> should render a contained primary button', 'packages/mat...
['packages/material-ui/src/Button/Button.test.js-><Button /> should forward classes to ButtonBase']
['scripts/listChangedFiles.test.js->listChangedFiles should detect changes', 'packages/material-ui/src/BottomNavigationAction/BottomNavigationAction.test.js-><BottomNavigationAction /> touch functionality should fire onClick on touch tap']
. /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npx cross-env NODE_ENV=test mocha packages/material-ui/src/Button/Button.test.js --reporter /testbed/custom-reporter.js --exit
Bug Fix
true
false
false
false
0
0
0
false
false
[]
mui/material-ui
25,874
mui__material-ui-25874
['21593']
a4d8c4ffadca14ebb941003082e607a96eacb409
diff --git a/docs/pages/api-docs/loading-button.json b/docs/pages/api-docs/loading-button.json --- a/docs/pages/api-docs/loading-button.json +++ b/docs/pages/api-docs/loading-button.json @@ -3,12 +3,12 @@ "children": { "type": { "name": "node" } }, "classes": { "type": { "name": "object" } }, "disabled":...
diff --git a/packages/material-ui-lab/src/LoadingButton/LoadingButton.test.js b/packages/material-ui-lab/src/LoadingButton/LoadingButton.test.js --- a/packages/material-ui-lab/src/LoadingButton/LoadingButton.test.js +++ b/packages/material-ui-lab/src/LoadingButton/LoadingButton.test.js @@ -33,37 +33,37 @@ describe('<Lo...
[Button] Change LoadingButton prop pending to loading I'm very happy to see the new pre-release [v5.0.0-alpha.1](https://github.com/mui-org/material-ui/releases/tag/v5.0.0-alpha.1). I noticed something: - The `Autocomplete` component has a prop called `loading`. - The `LoadingButton` component has a prop called `pe...
Thanks for raising this API inconsistency, much appreciated. I believe the closest prior discussion we have is in https://github.com/mui-org/material-ui/pull/21389#discussion_r438994929 with @mnajdova and @eps1lon. Looking at the semantic, we have: - **pending**: "about to happen or waiting to happen" https://dictio...
2021-04-21 22:28:59+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npm install --legacy-peer-deps RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npm install -D @types/prop-types @types/react-dom @types/testing-library__react @types/sinon @types/chai @types/chai-dom @types/format...
['packages/material-ui-lab/src/LoadingButton/LoadingButton.test.js-><LoadingButton /> is in tab-order by default', 'packages/material-ui-lab/src/LoadingButton/LoadingButton.test.js-><LoadingButton /> Material-UI component API ref attaches the ref', 'packages/material-ui-lab/src/LoadingButton/LoadingButton.test.js-><Loa...
['packages/material-ui-lab/src/LoadingButton/LoadingButton.test.js-><LoadingButton /> prop: loading disables the button', 'packages/material-ui-lab/src/LoadingButton/LoadingButton.test.js-><LoadingButton /> prop: loading cannot be enabled while `loading`', 'packages/material-ui-lab/src/LoadingButton/LoadingButton.test....
['scripts/listChangedFiles.test.js->listChangedFiles should detect changes', 'packages/material-ui/src/useAutocomplete/useAutocomplete.test.js->useAutocomplete should warn if the input is not binded', 'packages/material-ui/src/BottomNavigationAction/BottomNavigationAction.test.js-><BottomNavigationAction /> touch funct...
. /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npx cross-env NODE_ENV=test mocha packages/material-ui-lab/src/LoadingButton/LoadingButton.test.js --reporter /testbed/custom-reporter.js --exit
Feature
false
true
false
false
3
0
3
false
false
["docs/src/pages/components/buttons/LoadingButtonsTransition.js->program->function_declaration:LoadingButtonsTransition", "docs/src/pages/components/buttons/LoadingButtons.js->program->function_declaration:LoadingButtons", "docs/src/pages/components/buttons/LoadingButtonsTransition.js->program->function_declaration:Loa...
mui/material-ui
26,061
mui__material-ui-26061
['25923']
5a983eadb806ba095de2a2754b208d470e3f55e7
diff --git a/packages/material-ui/src/Tabs/Tabs.js b/packages/material-ui/src/Tabs/Tabs.js --- a/packages/material-ui/src/Tabs/Tabs.js +++ b/packages/material-ui/src/Tabs/Tabs.js @@ -15,6 +15,54 @@ import ScrollbarSize from './ScrollbarSize'; import TabScrollButton from '../TabScrollButton'; import useEventCallback f...
diff --git a/packages/material-ui/src/Tabs/Tabs.test.js b/packages/material-ui/src/Tabs/Tabs.test.js --- a/packages/material-ui/src/Tabs/Tabs.test.js +++ b/packages/material-ui/src/Tabs/Tabs.test.js @@ -900,6 +900,33 @@ describe('<Tabs />', () => { expect(handleKeyDown.callCount).to.equal(1); ...
[Tabs] When a Tab is disabled, keyboard traversal is stuck <!-- Provide a general summary of the issue in the Title above --> Normally keyboard users will tab into a Tabs group, then use either Left/Right (if horizontal tab) or Up/Down (vertical) to traverse the Tabs and according to [WAI aria practices](https://www.w...
Thanks for the report. Confirmed with pinned versions and frozen: https://codesandbox.io/s/basictabs-material-demo-forked-j5evk?file=/package.json This looks like an easy bug to fix. We handle this twice already: https://github.com/mui-org/material-ui/blob/54efc0ec383297b2900e8a8a2efa24d692bffd25/packages/materia...
2021-04-29 19:09:03+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npm install --legacy-peer-deps RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npm install -D @types/prop-types @types/react-dom @types/testing-library__react @types/sinon @types/chai @types/chai-dom @types/format...
['packages/material-ui/src/Tabs/Tabs.test.js-><Tabs /> keyboard navigation when focus is on a tab when focus is on a tab regardless of orientation Home moves focus to the first tab without activating it', 'packages/material-ui/src/Tabs/Tabs.test.js-><Tabs /> keyboard navigation when focus is on a tab when focus is on a...
['packages/material-ui/src/Tabs/Tabs.test.js-><Tabs /> keyboard navigation when focus is on a tab when focus is on a tab element in a vertical undefined tablist ArrowUp skips over disabled tabs', 'packages/material-ui/src/Tabs/Tabs.test.js-><Tabs /> keyboard navigation when focus is on a tab when focus is on a tab rega...
['scripts/listChangedFiles.test.js->listChangedFiles should detect changes', 'packages/material-ui/src/useAutocomplete/useAutocomplete.test.js->useAutocomplete should warn if the input is not binded', 'packages/material-ui/src/BottomNavigationAction/BottomNavigationAction.test.js-><BottomNavigationAction /> touch funct...
. /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npx cross-env NODE_ENV=test mocha packages/material-ui/src/Tabs/Tabs.test.js --reporter /testbed/custom-reporter.js --exit
Bug Fix
true
false
false
false
0
0
0
false
false
[]
mui/material-ui
26,098
mui__material-ui-26098
['26027']
36c1e08520f8add7bdc341825d44f50d59ceab83
diff --git a/packages/material-ui-styled-engine-sc/package.json b/packages/material-ui-styled-engine-sc/package.json --- a/packages/material-ui-styled-engine-sc/package.json +++ b/packages/material-ui-styled-engine-sc/package.json @@ -34,7 +34,7 @@ "build:copy-files": "node ../../scripts/copy-files.js", "preb...
diff --git a/packages/material-ui-styled-engine-sc/src/styled.test.js b/packages/material-ui-styled-engine-sc/src/styled.test.js new file mode 100644 --- /dev/null +++ b/packages/material-ui-styled-engine-sc/src/styled.test.js @@ -0,0 +1,26 @@ +import { expect } from 'chai'; +import styled from './index'; + +describe('...
[Table] TablePagination broken when using @material-ui/styled-engine-sc In the latest alpha 5.0.0-alpha.32, after TablePagination was updated to emotion (https://github.com/mui-org/material-ui/pull/25809), it breaks with some styled-components errors when using styled-engine-sc. <!-- Checked checkbox should look lik...
I could simplify the reproduction: https://codesandbox.io/s/styled-components-forked-fo7wm. The issue is here: https://github.com/mui-org/material-ui/blob/2c7d5feea7c0780ea8211de1629d757932895e11/packages/material-ui/src/TablePagination/TablePagination.js#L122 How about the following uniformization? ```diff d...
2021-05-03 03:37:55+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npm install --legacy-peer-deps RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npm install -D @types/prop-types @types/react-dom @types/testing-library__react @types/sinon @types/chai @types/chai-dom @types/format...
['packages/material-ui/src/NativeSelect/NativeSelect.test.js-><NativeSelect /> styled NativeSelect with custom input should not overwritten className', 'packages/material-ui/src/NativeSelect/NativeSelect.test.js-><NativeSelect /> Material-UI component API spreads props to the root component', 'packages/material-ui/src/...
['packages/material-ui-styled-engine/src/styled.test.js->styled should help debug wrong args', 'packages/material-ui-styled-engine-sc/src/styled.test.js->styled should help debug wrong args']
['scripts/listChangedFiles.test.js->listChangedFiles should detect changes', 'packages/material-ui/src/useAutocomplete/useAutocomplete.test.js->useAutocomplete should warn if the input is not binded', 'packages/material-ui/src/BottomNavigationAction/BottomNavigationAction.test.js-><BottomNavigationAction /> touch funct...
. /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npx cross-env NODE_ENV=test mocha packages/material-ui/src/NativeSelect/NativeSelect.test.js packages/material-ui-styled-engine/src/styled.test.js packages/material-ui-styled-engine-sc/src/styled.test.js --reporter /testbed/custom-reporter.js --exit
Bug Fix
false
true
false
false
2
0
2
false
false
["packages/material-ui-styled-engine-sc/src/index.js->program->function_declaration:styled", "packages/material-ui-styled-engine/src/index.js->program->function_declaration:styled"]
mui/material-ui
26,170
mui__material-ui-26170
['26166']
215794b567669951a61183d748c0b2be6483c3ea
diff --git a/docs/pages/api-docs/tab-list.json b/docs/pages/api-docs/tab-list.json --- a/docs/pages/api-docs/tab-list.json +++ b/docs/pages/api-docs/tab-list.json @@ -1,5 +1,5 @@ { - "props": { "children": { "type": { "name": "arrayOf", "description": "Array&lt;element&gt;" } } }, + "props": { "children": { "type": ...
diff --git a/packages/material-ui-lab/src/TabList/TabList.test.js b/packages/material-ui-lab/src/TabList/TabList.test.js --- a/packages/material-ui-lab/src/TabList/TabList.test.js +++ b/packages/material-ui-lab/src/TabList/TabList.test.js @@ -49,4 +49,15 @@ describe('<TabList />', () => { expect(tabOne).to.have.at...
[TabList] Conditional rendering of Tab fails <!-- Provide a general summary of the issue in the Title above --> <!-- Thank you very much for contributing to Material-UI by creating an issue! ❤️ To avoid duplicate issues we ask you to check off the following list. --> <!-- Checked checkbox should look like ...
null
2021-05-06 20:57:48+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npm install --legacy-peer-deps RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npm install -D @types/prop-types @types/react-dom @types/testing-library__react @types/sinon @types/chai @types/chai-dom @types/format...
['packages/material-ui-lab/src/TabList/TabList.test.js-><TabList /> Material-UI component API applies the className to the root component', 'packages/material-ui-lab/src/TabList/TabList.test.js-><TabList /> Material-UI component API prop: component can render another root component with the `component` prop', 'packages...
['packages/material-ui-lab/src/TabList/TabList.test.js-><TabList /> should accept a null child']
['scripts/listChangedFiles.test.js->listChangedFiles should detect changes', 'packages/material-ui/src/useAutocomplete/useAutocomplete.test.js->useAutocomplete should warn if the input is not binded', 'packages/material-ui/src/BottomNavigationAction/BottomNavigationAction.test.js-><BottomNavigationAction /> touch funct...
. /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npx cross-env NODE_ENV=test mocha packages/material-ui-lab/src/TabList/TabList.test.js --reporter /testbed/custom-reporter.js --exit
Bug Fix
true
false
false
false
0
0
0
false
false
[]
mui/material-ui
26,623
mui__material-ui-26623
['20250']
f336e03acfadfe0171cee5a469be02953337d20f
diff --git a/docs/pages/api-docs/slide.json b/docs/pages/api-docs/slide.json --- a/docs/pages/api-docs/slide.json +++ b/docs/pages/api-docs/slide.json @@ -2,6 +2,9 @@ "props": { "appear": { "type": { "name": "bool" }, "default": "true" }, "children": { "type": { "name": "custom", "description": "element" }...
diff --git a/packages/material-ui/src/Slide/Slide.test.js b/packages/material-ui/src/Slide/Slide.test.js --- a/packages/material-ui/src/Slide/Slide.test.js +++ b/packages/material-ui/src/Slide/Slide.test.js @@ -235,7 +235,7 @@ describe('<Slide />', () => { } }; const handleRef = useForkRef(ref, s...
[Transition] Add 'parent/anchor' prop to Slide component. <!-- Provide a general summary of the feature in the Title above --> It would be useful to be able to provide optional _parent_ prop, which default would be equal to window. It is easy to implement(we did it ourselves in our company) and it increases the functi...
> It is an easy implementation @TomekStaszkiewicz Did you try it? I think that it would be interesting to share the code and outcome :) Yes, I did! :) All you have to do is: 1. Add parent as prop 2. Change `getTranslateValue` function. ```js function getTranslateValue(direction, node, parent = window) { const...
2021-06-06 06:31:24+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npm install --legacy-peer-deps RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npm install -D @types/prop-types @types/react-dom @types/testing-library__react @types/sinon @types/chai @types/chai-dom @types/format...
['packages/material-ui/src/Slide/Slide.test.js-><Slide /> transform styling handleExiting() should set element transform and transition in the `down` direction', 'packages/material-ui/src/Slide/Slide.test.js-><Slide /> prop: direction should update the position', 'packages/material-ui/src/Slide/Slide.test.js-><Slide />...
['packages/material-ui/src/Slide/Slide.test.js-><Slide /> transform styling handleEnter() should set element transform in the `left` direction when element is offscreen', 'packages/material-ui/src/Slide/Slide.test.js-><Slide /> transform styling resize should take existing transform into account', 'packages/material-ui...
['packages/material-ui-unstyled/src/AutocompleteUnstyled/useAutocomplete.test.js->useAutocomplete should warn if the input is not binded', 'scripts/listChangedFiles.test.js->listChangedFiles should detect changes', 'packages/material-ui/src/BottomNavigationAction/BottomNavigationAction.test.js-><BottomNavigationAction ...
. /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npx cross-env NODE_ENV=test mocha packages/material-ui/src/Slide/Slide.test.js --reporter /testbed/custom-reporter.js --exit
Feature
false
true
false
false
7
0
7
false
false
["packages/material-ui/src/Popover/Popover.js->program->function_declaration:getAnchorEl", "packages/material-ui/src/Slide/Slide.js->program->function_declaration:setTranslateValue", "packages/material-ui/src/Slide/Slide.js->program->function_declaration:resolveContainer", "packages/material-ui/src/Popper/Popper.js->pr...
mui/material-ui
26,746
mui__material-ui-26746
['21902']
9acf8be6d2fd08210665c294830df3c85c014214
diff --git a/docs/src/modules/branding/BrandingRoot.tsx b/docs/src/modules/branding/BrandingRoot.tsx --- a/docs/src/modules/branding/BrandingRoot.tsx +++ b/docs/src/modules/branding/BrandingRoot.tsx @@ -101,15 +101,6 @@ let theme = createTheme({ '"Segoe UI Symbol"', ].join(','), }, - breakpoints: { - ...
diff --git a/packages/material-ui-system/src/createTheme/createBreakpoints.test.js b/packages/material-ui-system/src/createTheme/createBreakpoints.test.js --- a/packages/material-ui-system/src/createTheme/createBreakpoints.test.js +++ b/packages/material-ui-system/src/createTheme/createBreakpoints.test.js @@ -18,7 +18,...
[theme] Improve the breakpoints values According to the official https://material.io/design/layout/responsive-layout-grid.html#breakpoints, the breakpoints should be as follow: xs: 0 - 600 sm: 600 - 1024 md: 1024 - 1440 lg: 1440 - 1920 xl: > 1920 Yet currently, MUI has the following as default xs: 0 - 600 ...
@matthewkwong2 Thanks for raising this issue, I have been keen to look into how we can improve the breakpoint values to better match the requirements of today's devices. IMHO we should partially ignore the recommendation of Material Design and look at what most teams use in their application/website, it will allow us t...
2021-06-14 06:25:19+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npm install --legacy-peer-deps RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npm install -D @types/prop-types @types/react-dom @types/testing-library__react @types/sinon @types/chai @types/chai-dom @types/format...
['packages/material-ui-system/src/createTheme/createBreakpoints.test.js->createBreakpoints down should work for xs', 'packages/material-ui/src/Grid/Grid.test.js-><Grid /> Material-UI component API should render without errors in ReactTestRenderer', 'packages/material-ui/src/styles/adaptV4Theme.test.js->adaptV4Theme the...
['packages/material-ui/src/styles/responsiveFontSizes.test.js->responsiveFontSizes should disable vertical alignment', 'packages/material-ui-system/src/createTheme/createBreakpoints.test.js->createBreakpoints between should work', 'packages/material-ui-system/src/createTheme/createBreakpoints.test.js->createBreakpoints...
['scripts/listChangedFiles.test.js->listChangedFiles should detect changes', 'packages/material-ui/src/useAutocomplete/useAutocomplete.test.js->useAutocomplete should warn if the input is not binded', 'packages/material-ui/src/BottomNavigationAction/BottomNavigationAction.test.js-><BottomNavigationAction /> touch funct...
. /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npx cross-env NODE_ENV=test mocha packages/material-ui/src/Grid/Grid.test.js packages/material-ui/src/styles/responsiveFontSizes.test.js packages/material-ui/src/Stack/Stack.test.js packages/material-ui-system/src/createTheme/createBreakpoints.test.js packages/material-ui/sr...
Feature
false
true
false
false
2
0
2
false
false
["packages/material-ui/src/styles/cssUtils.js->program->function_declaration:responsiveProperty", "packages/material-ui-system/src/createTheme/createBreakpoints.js->program->function_declaration:createBreakpoints"]
mui/material-ui
26,807
mui__material-ui-26807
['26304']
567e6cf97dce71eba9370e8c13519d206a98ffd2
diff --git a/docs/pages/api-docs/step-label.json b/docs/pages/api-docs/step-label.json --- a/docs/pages/api-docs/step-label.json +++ b/docs/pages/api-docs/step-label.json @@ -2,6 +2,7 @@ "props": { "children": { "type": { "name": "node" } }, "classes": { "type": { "name": "object" } }, + "componentsProp...
diff --git a/packages/material-ui/src/StepLabel/StepLabel.test.js b/packages/material-ui/src/StepLabel/StepLabel.test.js --- a/packages/material-ui/src/StepLabel/StepLabel.test.js +++ b/packages/material-ui/src/StepLabel/StepLabel.test.js @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; ...
[Stepper] Add componentsProps.label to StepLabel - [x] I have searched the [issues](https://github.com/mui-org/material-ui/issues) of this repository and believe that this is not a duplicate. ## Summary 💡 I want to add a `TypographyProps` argument to `StepLabelProps` in the same vein as `StepIconProps`. ## Ex...
null
2021-06-17 13:18:53+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npm install --legacy-peer-deps RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npm install -D @types/prop-types @types/react-dom @types/testing-library__react @types/sinon @types/chai @types/chai-dom @types/format...
['packages/material-ui/src/StepLabel/StepLabel.test.js-><StepLabel /> Material-UI component API spreads props to the root component', 'packages/material-ui/src/StepLabel/StepLabel.test.js-><StepLabel /> Material-UI component API should render without errors in ReactTestRenderer', 'packages/material-ui/src/StepLabel/Ste...
['packages/material-ui/src/StepLabel/StepLabel.test.js-><StepLabel /> componentsProps: label spreads the props on the label element']
['scripts/listChangedFiles.test.js->listChangedFiles should detect changes', 'packages/material-ui/src/useAutocomplete/useAutocomplete.test.js->useAutocomplete should warn if the input is not binded', 'packages/material-ui/src/BottomNavigationAction/BottomNavigationAction.test.js-><BottomNavigationAction /> touch funct...
. /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npx cross-env NODE_ENV=test mocha packages/material-ui/src/StepLabel/StepLabel.test.js --reporter /testbed/custom-reporter.js --exit
Feature
true
false
false
false
0
0
0
false
false
[]
mui/material-ui
27,312
mui__material-ui-27312
['26378']
bd6e492ee5f71357a5a56f06c223310dd92157cb
diff --git a/packages/material-ui/src/useAutocomplete/useAutocomplete.js b/packages/material-ui/src/useAutocomplete/useAutocomplete.js --- a/packages/material-ui/src/useAutocomplete/useAutocomplete.js +++ b/packages/material-ui/src/useAutocomplete/useAutocomplete.js @@ -67,6 +67,7 @@ export default function useAutocomp...
diff --git a/packages/material-ui/src/Autocomplete/Autocomplete.test.js b/packages/material-ui/src/Autocomplete/Autocomplete.test.js --- a/packages/material-ui/src/Autocomplete/Autocomplete.test.js +++ b/packages/material-ui/src/Autocomplete/Autocomplete.test.js @@ -1174,6 +1174,23 @@ describe('<Autocomplete />', () =>...
[Autocomplete] Popper is not closing when Autocomplete is disabled - [x] The issue is present in the latest release. - [x] I have searched the [issues](https://github.com/mui-org/material-ui/issues) of this repository and believe that this is not a duplicate. ## Current Behavior 😯 I've two autocompletes that th...
The blur event is not fired when an `<input>` gets disabled. One solution is to support any input: ```diff diff --git a/packages/material-ui/src/useAutocomplete/useAutocomplete.js b/packages/material-ui/src/useAutocomplete/useAutocomplete.js index 31f88be71e..3adc4ad22e 100644 --- a/packages/material-ui/src/useAu...
2021-07-15 20:32:00+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npm install --legacy-peer-deps RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npm install -D @types/prop-types @types/react-dom @types/testing-library__react @types/sinon @types/chai @types/chai-dom @types/format...
['packages/material-ui/src/Autocomplete/Autocomplete.test.js-><Autocomplete /> prop: onHighlightChange should pass to onHighlightChange the correct value after filtering', 'packages/material-ui/src/Autocomplete/Autocomplete.test.js-><Autocomplete /> warnings warn if the type of the value is wrong', 'packages/material-u...
['packages/material-ui/src/Autocomplete/Autocomplete.test.js-><Autocomplete /> prop: disabled should close the popup when disabled is true']
['scripts/listChangedFiles.test.js->listChangedFiles should detect changes', 'packages/material-ui/src/useAutocomplete/useAutocomplete.test.js->useAutocomplete should warn if the input is not binded', 'packages/material-ui/src/BottomNavigationAction/BottomNavigationAction.test.js-><BottomNavigationAction /> touch funct...
. /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npx cross-env NODE_ENV=test mocha packages/material-ui/src/Autocomplete/Autocomplete.test.js --reporter /testbed/custom-reporter.js --exit
Bug Fix
false
true
false
false
1
0
1
true
false
["packages/material-ui/src/useAutocomplete/useAutocomplete.js->program->function_declaration:useAutocomplete"]
mui/material-ui
28,186
mui__material-ui-28186
['28181']
f588d8fdf63b8558e26cfa288f20ff400140ed6c
diff --git a/packages/mui-material/src/useTouchRipple/useTouchRipple.ts b/packages/mui-material/src/useTouchRipple/useTouchRipple.ts --- a/packages/mui-material/src/useTouchRipple/useTouchRipple.ts +++ b/packages/mui-material/src/useTouchRipple/useTouchRipple.ts @@ -43,12 +43,9 @@ const useTouchRipple = (props: UseTouc...
diff --git a/packages/mui-material/src/ButtonBase/ButtonBase.test.js b/packages/mui-material/src/ButtonBase/ButtonBase.test.js --- a/packages/mui-material/src/ButtonBase/ButtonBase.test.js +++ b/packages/mui-material/src/ButtonBase/ButtonBase.test.js @@ -521,6 +521,36 @@ describe('<ButtonBase />', () => { fire...
[ButtonBase] Unfocus does not clear ripple <!-- Provide a general summary of the issue in the Title above --> keyboard tab between ButtonBase component does not clear the focus ripple. I can confirm that revert the code on this commit does not have this issue (in `ButtonBase.js`). https://github.com/mui-org/material...
Yes, I've noticed that and I'm already working on a fix. I think I've talked repeatedly about not doing the abstraction. The ButtonBase is integral to the codebase and shouldn't be jeopardized by the unstyled effort. The unstyled effort can be a separate experiment that doesn't need to affect the core product. > The Bu...
2021-09-06 11:19:27+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npm install --legacy-peer-deps RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npm install -D @types/prop-types @types/react-dom @types/testing-library__react @types/sinon @types/chai @types/chai-dom @types/format...
['packages/mui-material/src/ButtonBase/ButtonBase.test.js-><ButtonBase /> event: keydown keyboard accessibility for non interactive elements does not call onClick when a spacebar is released and the default is prevented', 'packages/mui-material/src/ButtonBase/ButtonBase.test.js-><ButtonBase /> ripple interactions shoul...
['packages/mui-material/src/ButtonBase/ButtonBase.test.js-><ButtonBase /> ripple interactions should stop the ripple on blur if disableTouchRipple is set']
['scripts/listChangedFiles.test.js->listChangedFiles should detect changes', 'packages/mui-core/src/AutocompleteUnstyled/useAutocomplete.test.js->useAutocomplete should warn if the input is not binded']
. /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npx cross-env NODE_ENV=test mocha packages/mui-material/src/ButtonBase/ButtonBase.test.js --reporter /testbed/custom-reporter.js --exit
Bug Fix
false
true
false
false
1
0
1
true
false
["packages/mui-material/src/useTouchRipple/useTouchRipple.ts->program->function_declaration:useRippleHandler"]
mui/material-ui
28,190
mui__material-ui-28190
['28098']
575b9535c69261dac16548037245a9297f98d797
diff --git a/packages/mui-core/src/AutocompleteUnstyled/useAutocomplete.js b/packages/mui-core/src/AutocompleteUnstyled/useAutocomplete.js --- a/packages/mui-core/src/AutocompleteUnstyled/useAutocomplete.js +++ b/packages/mui-core/src/AutocompleteUnstyled/useAutocomplete.js @@ -185,8 +185,13 @@ export default function ...
diff --git a/packages/mui-core/src/AutocompleteUnstyled/useAutocomplete.test.js b/packages/mui-core/src/AutocompleteUnstyled/useAutocomplete.test.js --- a/packages/mui-core/src/AutocompleteUnstyled/useAutocomplete.test.js +++ b/packages/mui-core/src/AutocompleteUnstyled/useAutocomplete.test.js @@ -1,6 +1,6 @@ import *...
[Autocomplete] freeSolo value is not remaining after leaving the field When using the Autocomplete component with the freeSolo option, the entered value is removed right after leaving the text field. <!-- Checked checkbox should look like this: [x] --> - [x] The issue is present in the latest release. - [x] I h...
@daniel-7235 Thanks for raising it. It's a major regression in the use case we had for this component! It was broken in 5.0.0-beta.2: https://codesandbox.io/s/freesolo-material-demo-forked-50q50?file=/demo.js in #27313 to be precise. Regarding the solution, this seems enough: ```diff diff --git a/packages/material-...
2021-09-06 14:29:37+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npm install --legacy-peer-deps RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npm install -D @types/prop-types @types/react-dom @types/testing-library__react @types/sinon @types/chai @types/chai-dom @types/format...
['packages/mui-core/src/AutocompleteUnstyled/useAutocomplete.test.js->useAutocomplete createFilterOptions defaults to getOptionLabel for text filtering', 'packages/mui-core/src/AutocompleteUnstyled/useAutocomplete.test.js->useAutocomplete createFilterOptions filters without error with empty option set', 'packages/mui-c...
['packages/mui-core/src/AutocompleteUnstyled/useAutocomplete.test.js->useAutocomplete prop: freeSolo should not reset if the component value does not change on blur']
['scripts/listChangedFiles.test.js->listChangedFiles should detect changes', 'packages/mui-core/src/AutocompleteUnstyled/useAutocomplete.test.js->useAutocomplete should warn if the input is not binded']
. /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npx cross-env NODE_ENV=test mocha packages/mui-core/src/AutocompleteUnstyled/useAutocomplete.test.js --reporter /testbed/custom-reporter.js --exit
Bug Fix
false
true
false
false
1
0
1
true
false
["packages/mui-core/src/AutocompleteUnstyled/useAutocomplete.js->program->function_declaration:useAutocomplete"]
mui/material-ui
28,813
mui__material-ui-28813
['28520']
182d4dc7726f6d77f0ca3863ca6fcdf9eec23a23
diff --git a/docs/src/pages/system/properties/properties.md b/docs/src/pages/system/properties/properties.md --- a/docs/src/pages/system/properties/properties.md +++ b/docs/src/pages/system/properties/properties.md @@ -62,6 +62,12 @@ Note that this table only lists custom properties, all other regular CSS propert | `m...
diff --git a/packages/mui-system/src/spacing.test.js b/packages/mui-system/src/spacing.test.js --- a/packages/mui-system/src/spacing.test.js +++ b/packages/mui-system/src/spacing.test.js @@ -168,6 +168,12 @@ describe('system spacing', () => { paddingBottom: 8, paddingTop: 8, }); + const ou...
Logical padding/margin properties should follow spacing rules All `padding`/`margin` should use the `theme.spacing` function, but `padding{Inline/Block}{Start/End}` use value as pixel <!-- Provide a general summary of the issue in the Title above --> <!-- Thank you very much for contributing to MUI by creating a...
A work around could be including "px" or "rem" suffix for example `sx={{paddingInlineStart: '2px'}}` or `sx={{paddingInlineStart: '2rem'}}` Please do include your values in single quotes [Work around ](https://codesandbox.io/s/competent-mestorf-iqjvf) We don't have support for the `paddingInline*` properties in the sy...
2021-10-04 08:08:09+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npm install --legacy-peer-deps RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npm install -D @types/prop-types @types/react-dom @types/testing-library__react @types/sinon @types/chai @types/chai-dom @types/format...
['packages/mui-system/src/spacing.test.js->system spacing spacing should support string values', 'packages/mui-system/src/spacing.test.js->system spacing spacing warnings should warn if non integer value is used with theme.spacing defined as array', 'packages/mui-system/src/spacing.test.js->system spacing margin should...
['packages/mui-system/src/spacing.test.js->system spacing padding should support full version', 'packages/mui-system/src/spacing.test.js->system spacing margin should support full version', 'packages/mui-system/src/spacing.test.js->system spacing spacing should support full version']
['packages/mui-core/src/AutocompleteUnstyled/useAutocomplete.test.js->useAutocomplete should warn if the input is not binded']
. /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npx cross-env NODE_ENV=test mocha packages/mui-system/src/spacing.test.js --reporter /testbed/custom-reporter.js --exit
Feature
true
false
false
false
0
0
0
false
false
[]
mui/material-ui
29,023
mui__material-ui-29023
['28991']
d11ef0f82f1ef6d62518f0879b674feb9f916d66
diff --git a/docs/translations/api-docs/tooltip/tooltip.json b/docs/translations/api-docs/tooltip/tooltip.json --- a/docs/translations/api-docs/tooltip/tooltip.json +++ b/docs/translations/api-docs/tooltip/tooltip.json @@ -5,7 +5,7 @@ "children": "Tooltip reference element.<br>⚠️ <a href=\"/guides/composition/#cav...
diff --git a/packages/mui-material/src/Tooltip/Tooltip.test.js b/packages/mui-material/src/Tooltip/Tooltip.test.js --- a/packages/mui-material/src/Tooltip/Tooltip.test.js +++ b/packages/mui-material/src/Tooltip/Tooltip.test.js @@ -1264,4 +1264,50 @@ describe('<Tooltip />', () => { expect(document.body.style.Webk...
[Tooltip] className not applied from PopperProps After migrating to MUI v5.0.3, our styles are not applied anymore when using `PopperProps` from the Tooltip component. I saw that a new prop `componentsProps` was introduced in #28692. Our styles seem working fine when using this prop but TypeScript is now asking for ...
Thanks for the report. Really appreciate the flawless issue. We end up overwriting `PopperProps.className` in https://github.com/mui-org/material-ui/blob/f98d52b1fcf9ab91b3e8d760bf59906c860fca49/packages/mui-material/src/Tooltip/Tooltip.js#L681-L682
2021-10-13 06:03:12+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npm install --legacy-peer-deps RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npm install -D @types/prop-types @types/react-dom @types/testing-library__react @types/sinon @types/chai @types/chai-dom @types/format...
['packages/mui-material/src/Tooltip/Tooltip.test.js-><Tooltip /> prop: title should label the child when open with an exotic title', 'packages/mui-material/src/Tooltip/Tooltip.test.js-><Tooltip /> prop: overrides should be transparent for the onMouseEnter event', 'packages/mui-material/src/Tooltip/Tooltip.test.js-><Too...
['packages/mui-material/src/Tooltip/Tooltip.test.js-><Tooltip /> className should apply both the className from PopperProps and componentsProps.popper if both are passed', 'packages/mui-material/src/Tooltip/Tooltip.test.js-><Tooltip /> className should allow className from PopperProps']
['packages/mui-core/src/AutocompleteUnstyled/useAutocomplete.test.js->useAutocomplete should warn if the input is not binded']
. /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npx cross-env NODE_ENV=test mocha packages/mui-material/src/Tooltip/Tooltip.test.js --reporter /testbed/custom-reporter.js --exit
Bug Fix
true
false
false
false
0
0
0
false
false
[]
mui/material-ui
34,138
mui__material-ui-34138
['34137']
67073cc35a741e9f45aa0d54bc00918a9c05fdb4
diff --git a/docs/pages/material-ui/api/step.json b/docs/pages/material-ui/api/step.json --- a/docs/pages/material-ui/api/step.json +++ b/docs/pages/material-ui/api/step.json @@ -4,6 +4,7 @@ "children": { "type": { "name": "node" } }, "classes": { "type": { "name": "object" } }, "completed": { "type": { ...
diff --git a/packages/mui-material/src/Step/Step.test.js b/packages/mui-material/src/Step/Step.test.js --- a/packages/mui-material/src/Step/Step.test.js +++ b/packages/mui-material/src/Step/Step.test.js @@ -16,7 +16,7 @@ describe('<Step />', () => { muiName: 'MuiStep', testVariantProps: { variant: 'foo' }, ...
Stepper and Step use unstructured markup ### Duplicates - [X] I have searched the existing issues ### Latest version - [X] I have tested the latest version ### Current behavior 😯 Currently, Stepper and Step generate <div>s for markup, which is not semantic/structured. ### Expected behavior 🤔 Using a list would...
null
2022-08-30 20:20:01+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npm install --legacy-peer-deps RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npm install -D @types/prop-types @types/react-dom @types/testing-library__react @types/sinon @types/chai @types/chai-dom @types/format...
['packages/mui-material/src/Stepper/Stepper.test.tsx-><Stepper /> step connector should pass completed prop to connector when second step is completed', 'packages/mui-material/src/Stepper/Stepper.test.tsx-><Stepper /> step connector should have a default step connector', 'packages/mui-material/src/Stepper/Stepper.test....
['packages/mui-material/src/Stepper/Stepper.test.tsx-><Stepper /> MUI component API prop: component can render another root component with the `component` prop', 'packages/mui-material/src/Step/Step.test.js-><Step /> MUI component API prop: component can render another root component with the `component` prop']
[]
. /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npx cross-env NODE_ENV=test mocha packages/mui-material/src/Stepper/Stepper.test.tsx packages/mui-material/src/Step/Step.test.js --reporter /testbed/custom-reporter.js --exit
Feature
true
false
false
false
0
0
0
false
false
[]
mui/material-ui
34,158
mui__material-ui-34158
['33901']
d88ab9ebdc63157a7efcf582e65d4f6c58e5f576
diff --git a/docs/data/base/components/select/UnstyledSelectControlled.js b/docs/data/base/components/select/UnstyledSelectControlled.js --- a/docs/data/base/components/select/UnstyledSelectControlled.js +++ b/docs/data/base/components/select/UnstyledSelectControlled.js @@ -165,7 +165,7 @@ export default function Unsty...
diff --git a/packages/mui-base/src/ListboxUnstyled/defaultListboxReducer.test.ts b/packages/mui-base/src/ListboxUnstyled/defaultListboxReducer.test.ts --- a/packages/mui-base/src/ListboxUnstyled/defaultListboxReducer.test.ts +++ b/packages/mui-base/src/ListboxUnstyled/defaultListboxReducer.test.ts @@ -1,3 +1,4 @@ +impo...
[SelectUnstyled] Event is not passed to the onChange handler The SelectUnstyled's (and MultiSelectUnstyled's) onChange handler is called with the selected value as the first parameter. This is not in line with other components (and native elements) that have an event associated with the change as the first parameter. ...
null
2022-08-31 12:57:28+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npm install --legacy-peer-deps RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npm install -D @types/prop-types @types/react-dom @types/testing-library__react @types/sinon @types/chai @types/chai-dom @types/format...
['packages/mui-base/src/SelectUnstyled/SelectUnstyled.test.tsx->SelectUnstyled closes the listbox without selecting an option when focus is lost', 'packages/mui-base/src/ListboxUnstyled/defaultListboxReducer.test.ts->useListbox defaultReducer action: optionClick remove the clicked value from the selection if selectMult...
['packages/mui-base/src/MultiSelectUnstyled/MultiSelectUnstyled.test.tsx->MultiSelectUnstyled sets a value correctly when interacted by a user and external code', 'packages/mui-base/src/MultiSelectUnstyled/MultiSelectUnstyled.test.tsx->MultiSelectUnstyled prop: onChange is called when the Select value changes', 'packag...
[]
. /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npx cross-env NODE_ENV=test mocha packages/mui-base/src/ListboxUnstyled/useControllableReducer.test.tsx packages/mui-base/src/MultiSelectUnstyled/MultiSelectUnstyled.test.tsx packages/mui-base/src/SelectUnstyled/SelectUnstyled.test.tsx packages/mui-base/src/ListboxUnstyled/d...
Feature
false
true
false
false
10
0
10
false
false
["docs/data/base/components/select/UnstyledSelectObjectValuesForm.js->program->function_declaration:UnstyledSelectObjectValues", "packages/mui-base/src/ListboxUnstyled/useControllableReducer.ts->program->function_declaration:useStateChangeDetection", "docs/data/base/components/select/UnstyledSelectObjectValues.js->prog...
mui/material-ui
34,207
mui__material-ui-34207
['34198']
1a4263a50af00eaffdca2e58b8ff16d62c4408a7
diff --git a/docs/data/material/components/checkboxes/CheckboxLabels.js b/docs/data/material/components/checkboxes/CheckboxLabels.js --- a/docs/data/material/components/checkboxes/CheckboxLabels.js +++ b/docs/data/material/components/checkboxes/CheckboxLabels.js @@ -7,6 +7,7 @@ export default function CheckboxLabels() ...
diff --git a/packages/mui-material/src/FormControlLabel/FormControlLabel.test.js b/packages/mui-material/src/FormControlLabel/FormControlLabel.test.js --- a/packages/mui-material/src/FormControlLabel/FormControlLabel.test.js +++ b/packages/mui-material/src/FormControlLabel/FormControlLabel.test.js @@ -179,6 +179,23 @@ ...
[FormControlLabel] Support `required` ### Duplicates - [X] I have searched the existing issues ### Latest version - [X] I have tested the latest version ### Current behavior 😯 Implementing a labeled checkbox with a "required" asterisk, such as the following, is currently not possible without workarounds: ![ima...
null
2022-09-06 17:04:24+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npm install --legacy-peer-deps RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npm install -D @types/prop-types @types/react-dom @types/testing-library__react @types/sinon @types/chai @types/chai-dom @types/format...
['packages/mui-material/src/FormControlLabel/FormControlLabel.test.js-><FormControlLabel /> with FormControl enabled should be overridden by props', 'packages/mui-material/src/FormControlLabel/FormControlLabel.test.js-><FormControlLabel /> MUI component API merges the class names provided in slotsProps.typography with ...
['packages/mui-material/src/FormControlLabel/FormControlLabel.test.js-><FormControlLabel /> with FormControl required should be overridden by props', 'packages/mui-material/src/FormControlLabel/FormControlLabel.test.js-><FormControlLabel /> prop: required should visually show an asterisk but not include it in the a11y ...
[]
. /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npx cross-env NODE_ENV=test mocha packages/mui-material/src/FormControlLabel/FormControlLabel.test.js --reporter /testbed/custom-reporter.js --exit
Feature
false
true
false
false
2
0
2
false
false
["docs/data/material/components/switches/SwitchLabels.js->program->function_declaration:SwitchLabels", "docs/data/material/components/checkboxes/CheckboxLabels.js->program->function_declaration:CheckboxLabels"]
mui/material-ui
34,610
mui__material-ui-34610
['34604']
1e09429e1804ddd7505fe78f3d606e24e98aa16f
diff --git a/packages/mui-base/src/SliderUnstyled/SliderUnstyled.js b/packages/mui-base/src/SliderUnstyled/SliderUnstyled.js --- a/packages/mui-base/src/SliderUnstyled/SliderUnstyled.js +++ b/packages/mui-base/src/SliderUnstyled/SliderUnstyled.js @@ -46,6 +46,7 @@ const SliderUnstyled = React.forwardRef(function Slider...
diff --git a/packages/mui-base/src/SliderUnstyled/SliderUnstyled.test.js b/packages/mui-base/src/SliderUnstyled/SliderUnstyled.test.js --- a/packages/mui-base/src/SliderUnstyled/SliderUnstyled.test.js +++ b/packages/mui-base/src/SliderUnstyled/SliderUnstyled.test.js @@ -282,4 +282,47 @@ describe('<SliderUnstyled />', (...
[Slider] Accessibility: `aria-labelledby` is passed into outer `span` and `input` elements ### Duplicates - [X] I have searched the existing issues ### Latest version - [X] I have tested the latest version ### Steps to reproduce 🕹 Use `<Slider />` and pass `aria-labelledby` attribute Here is a codesandbox: h...
null
2022-10-04 19:43:57+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npm install --legacy-peer-deps RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npm install -D @types/prop-types @types/react-dom @types/testing-library__react @types/sinon @types/chai @types/chai-dom @types/format...
['packages/mui-base/src/SliderUnstyled/SliderUnstyled.test.js-><SliderUnstyled /> MUI unstyled component API merges the class names provided in componentsProps.track with the built-in ones', 'packages/mui-base/src/SliderUnstyled/SliderUnstyled.test.js-><SliderUnstyled /> MUI unstyled component API allows overriding the...
['packages/mui-base/src/SliderUnstyled/SliderUnstyled.test.js-><SliderUnstyled /> ARIA should have the correct aria attributes']
[]
. /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npx cross-env NODE_ENV=test mocha packages/mui-base/src/SliderUnstyled/SliderUnstyled.test.js --reporter /testbed/custom-reporter.js --exit
Bug Fix
true
false
false
false
0
0
0
false
false
[]
mui/material-ui
36,353
mui__material-ui-36353
['36108']
d57bd96cfcec023238c85488a3d399534518fd37
diff --git a/packages/mui-material/src/DialogTitle/DialogTitle.js b/packages/mui-material/src/DialogTitle/DialogTitle.js --- a/packages/mui-material/src/DialogTitle/DialogTitle.js +++ b/packages/mui-material/src/DialogTitle/DialogTitle.js @@ -37,7 +37,7 @@ const DialogTitle = React.forwardRef(function DialogTitle(inPro...
diff --git a/packages/mui-material/src/DialogTitle/DialogTitle.test.js b/packages/mui-material/src/DialogTitle/DialogTitle.test.js --- a/packages/mui-material/src/DialogTitle/DialogTitle.test.js +++ b/packages/mui-material/src/DialogTitle/DialogTitle.test.js @@ -1,6 +1,8 @@ import * as React from 'react'; +import { ex...
[Dialog] Custom ID not reflecting on MUI `DialogTitle` component ### Duplicates - [X] I have searched the existing issues ### Latest version - [X] I have tested the latest version ### Steps to reproduce 🕹 Link to live example: https://codesandbox.io/s/polished-bush-8f33zj?file=/demo.js ### Current ...
It's a bug. Thanks for reporting. You are correct; it never uses the `id` prop provided to the `DialogTitle` component. It seems easy to fix. Would you like to create a PR? Yes, I would love to fix it. Will create a pull request. Hi, I can fix this. Can you assign it to me? Hi. I can fix this. If its not fixed assign i...
2023-02-26 04:18:36+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npm install --legacy-peer-deps RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npm install -D @types/prop-types @types/react-dom @types/testing-library__react @types/sinon @types/chai @types/chai-dom @types/format...
['packages/mui-material/src/DialogTitle/DialogTitle.test.js-><DialogTitle /> MUI component API spreads props to the root component', "packages/mui-material/src/DialogTitle/DialogTitle.test.js-><DialogTitle /> MUI component API theme default components: respect theme's defaultProps", 'packages/mui-material/src/DialogTit...
['packages/mui-material/src/DialogTitle/DialogTitle.test.js-><DialogTitle /> prop: id should apply the id attribute provided to the Dialog title', 'packages/mui-material/src/DialogTitle/DialogTitle.test.js-><DialogTitle /> prop: id should apply the id attribute explicitly provided to the DialogTitle and not take from D...
[]
. /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npx cross-env NODE_ENV=test mocha packages/mui-material/src/DialogTitle/DialogTitle.test.js --reporter /testbed/custom-reporter.js --exit
Bug Fix
true
false
false
false
0
0
0
false
false
[]
mui/material-ui
36,971
mui__material-ui-36971
['33423']
be6b6e2bc479473853ea2ecd367cd1a46c728ad9
diff --git a/docs/data/material/components/autocomplete/GloballyCustomizedOptions.js b/docs/data/material/components/autocomplete/GloballyCustomizedOptions.js new file mode 100644 --- /dev/null +++ b/docs/data/material/components/autocomplete/GloballyCustomizedOptions.js @@ -0,0 +1,631 @@ +import * as React from 'react...
diff --git a/packages/mui-material/src/Autocomplete/Autocomplete.test.js b/packages/mui-material/src/Autocomplete/Autocomplete.test.js --- a/packages/mui-material/src/Autocomplete/Autocomplete.test.js +++ b/packages/mui-material/src/Autocomplete/Autocomplete.test.js @@ -3026,6 +3026,27 @@ describe('<Autocomplete />', (...
[Autocomplete] Pass `getOptionLabel` as a parameter to `renderOption` ### Duplicates - [X] I have searched the existing issues ### Latest version - [X] I have tested the latest version ### Summary 💡 The `renderOption` callback of the `Autocomplete` component could receive the components getOptionLabel callback a ...
I think we can go ahead with adding the `ownerState` as a fourth parameter to `renderOption`. Would you like to create a PR for it? @ZeeshanTamboli I can try, but it will take some time. > @ZeeshanTamboli I can try, but it will take some time. No problem at all! @ZeeshanTamboli Do you mind me asking if you are w...
2023-04-23 13:17:19+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npm install --legacy-peer-deps RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npm install -D @types/prop-types @types/react-dom @types/testing-library__react @types/sinon @types/chai @types/chai-dom @types/format...
['packages/mui-material/src/Autocomplete/Autocomplete.test.js-><Autocomplete /> click input when `openOnFocus` toggles if empty', 'packages/mui-material/src/Autocomplete/Autocomplete.test.js-><Autocomplete /> highlight synchronisation should not update the highlight when multiple open and value change', 'packages/mui-m...
['packages/mui-material/src/Autocomplete/Autocomplete.test.js-><Autocomplete /> prop: renderOption should pass getOptionLabel through ownerState in renderOption callback']
[]
. /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npx cross-env NODE_ENV=test mocha packages/mui-material/src/Autocomplete/Autocomplete.test.js --reporter /testbed/custom-reporter.js --exit
Feature
true
false
false
false
0
0
0
false
false
[]
mui/material-ui
38,247
mui__material-ui-38247
['37733']
85c3c776918e43c8034d0fbdb1a35ded54c6b92d
diff --git a/docs/src/modules/sandbox/CreateReactApp.ts b/docs/src/modules/sandbox/CreateReactApp.ts --- a/docs/src/modules/sandbox/CreateReactApp.ts +++ b/docs/src/modules/sandbox/CreateReactApp.ts @@ -4,10 +4,12 @@ export const getHtml = ({ title, language, codeStyling, + raw, }: { title: string; lan...
diff --git a/docs/src/modules/sandbox/CodeSandbox.test.js b/docs/src/modules/sandbox/CodeSandbox.test.js --- a/docs/src/modules/sandbox/CodeSandbox.test.js +++ b/docs/src/modules/sandbox/CodeSandbox.test.js @@ -243,4 +243,23 @@ ReactDOM.createRoot(document.querySelector("#root")!).render( '<script src="https://c...
[docs] The documentation for <Icon/> doesn't render an icon for the SandBox ### Duplicates - [X] I have searched the existing issues ### Related page https://mui.com/material-ui/icons/ ### Kind of issue Broken demonstration ### Issue description cmd + f for "add_cicle" and click on the codesandb...
The issue is that the `public/index.html` file in the sandbox is linking to the wrong icons. Lines 10-14 of [the file](https://codesandbox.io/s/pwm967?file=/public/index.html:0-485) are: ```html <!-- Icons to support Material Design --> <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=M...
2023-07-31 07:46:02+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && rm -rf node_modules && npm install --legacy-peer-deps && npm install -D @types/prop-types @types/react-dom @types/testing-library__react @types/sinon @types/chai @types/chai-dom @types/format-util --legacy-peer-dep...
['docs/src/modules/sandbox/StackBlitz.test.js->StackBlitz generate the correct index.html result when Tailwind is used', 'docs/src/modules/sandbox/CodeSandbox.test.js->CodeSandbox generate the correct JavaScript result', 'docs/src/modules/sandbox/CodeSandbox.test.js->CodeSandbox generate the correct index.html result w...
['docs/src/modules/sandbox/CodeSandbox.test.js->CodeSandbox should generate the correct stylesheet font link in index.html for Material Two Tones icons', 'docs/src/modules/sandbox/StackBlitz.test.js->StackBlitz should generate the correct stylesheet font link in index.html for Material Two Tones icons']
[]
. /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npx cross-env NODE_ENV=test mocha docs/src/modules/sandbox/CodeSandbox.test.js docs/src/modules/sandbox/StackBlitz.test.js --reporter /testbed/custom-reporter.js --exit
Bug Fix
true
false
false
false
0
0
0
false
false
[]
mui/material-ui
38,544
mui__material-ui-38544
['38406']
f22e9951931ecf68e8bce1c159d8e0384d92760c
diff --git a/packages/mui-material-next/src/Tabs/Tabs.js b/packages/mui-material-next/src/Tabs/Tabs.js --- a/packages/mui-material-next/src/Tabs/Tabs.js +++ b/packages/mui-material-next/src/Tabs/Tabs.js @@ -146,10 +146,7 @@ const TabsIndicator = styled('span', { }), })); -const TabsScrollbarSize = styled(Scrollba...
diff --git a/packages/mui-material/src/Tabs/Tabs.test.js b/packages/mui-material/src/Tabs/Tabs.test.js --- a/packages/mui-material/src/Tabs/Tabs.test.js +++ b/packages/mui-material/src/Tabs/Tabs.test.js @@ -523,6 +523,37 @@ describe('<Tabs />', () => { }); expect(tablistContainer.style.overflow).to.equal(...
[Tabs] Scrollable tabs crashes when overriding styles in theme using slots callback ### Duplicates - [X] I have searched the existing issues ### Latest version - [X] I have tested the latest version ### Steps to reproduce 🕹 Link to live example: https://codesandbox.io/s/mui-tabs-style-override-crash-p9w...
I ran into this as well, reading ownerState values in the theme styleOverrides for the Tabs component. Pinning `"@mui/material": "5.14.3"` and adding a resolution/override for `"@mui/system": "5.14.3"` is my temporary workaround. I propose the fix like this: ```diff diff --git a/packages/mui-material/src/Tabs/Tabs...
2023-08-18 14:27:23+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN . /usr/local/nvm/nvm.sh && nvm use 18.8.0 && rm -rf node_modules && npm install --legacy-peer-deps && npm install -D @types/prop-types @types/react-dom @types/testing-library__react @types/sinon @types/chai @types/chai-dom @types/format-util --legacy-peer-dep...
['packages/mui-material/src/Tabs/Tabs.test.js-><Tabs /> prop: scrollButtons should not hide scroll buttons when allowScrollButtonsMobile is true', 'packages/mui-material/src/Tabs/Tabs.test.js-><Tabs /> MUI component API applies the className to the root component', 'packages/mui-material/src/Tabs/Tabs.test.js-><Tabs />...
['packages/mui-material/src/Tabs/Tabs.test.js-><Tabs /> prop: variant="scrollable" should handle theme styleOverrides for scrollable tabs without crashing']
[]
. /usr/local/nvm/nvm.sh && nvm use 18.8.0 && npx cross-env NODE_ENV=test mocha packages/mui-material/src/Tabs/Tabs.test.js --reporter /testbed/custom-reporter.js --exit
Bug Fix
true
false
false
false
0
0
0
false
false
[]
mui/material-ui
42,412
mui__material-ui-42412
['42252']
b8a28e13dc0821314700f1aefc9f8e1134cf9034
diff --git a/packages/mui-material/src/styles/responsiveFontSizes.js b/packages/mui-material/src/styles/responsiveFontSizes.js --- a/packages/mui-material/src/styles/responsiveFontSizes.js +++ b/packages/mui-material/src/styles/responsiveFontSizes.js @@ -34,6 +34,11 @@ export default function responsiveFontSizes(themeI...
diff --git a/packages/mui-material/src/styles/responsiveFontSizes.test.js b/packages/mui-material/src/styles/responsiveFontSizes.test.js --- a/packages/mui-material/src/styles/responsiveFontSizes.test.js +++ b/packages/mui-material/src/styles/responsiveFontSizes.test.js @@ -59,6 +59,19 @@ describe('responsiveFontSizes'...
responsiveFontSizes crashes when one of the variants is disabled ### Steps to reproduce Link to live example: https://stackblitz.com/edit/github-o8g8fe?file=src%2FApp.tsx Steps: 1. Create a theme 2. Mark one of the default typography variants as undefined 3. use responsiveFontSizes on the theme ### Curre...
This is to be expected since we spread those variant definitions in a lot of places and there are no `undefined` checks. You could instead try to make them as empty object (`{}`) instead of undefined and see if that works. But this way I cant have the type as undefined in Typescript, right? and so this variants will st...
2024-05-27 05:23:53+00:00
TypeScript
FROM public.ecr.aws/docker/library/node:18 WORKDIR /testbed COPY package.json pnpm-lock.yaml ./ RUN npm install -g pnpm@8.15.8 RUN npx playwright install --with-deps RUN pnpm install COPY . . RUN pnpm add -w -D @types/prop-types @types/react-dom @types/testing-library__react @types/sinon @types/chai @types/chai-dom @ty...
['packages/mui-material/src/styles/responsiveFontSizes.test.js->responsiveFontSizes when requesting a responsive typography with non unitless line height and alignment should throw an error, as this is not supported', 'packages/mui-material/src/styles/responsiveFontSizes.test.js->responsiveFontSizes should support unit...
['packages/mui-material/src/styles/responsiveFontSizes.test.js->responsiveFontSizes should handle variants that have been reset to undefined']
[]
pnpm cross-env NODE_ENV=test mocha packages/mui-material/src/styles/responsiveFontSizes.test.js --reporter /testbed/custom-reporter.js --exit
Bug Fix
false
true
false
false
1
0
1
true
false
["packages/mui-material/src/styles/responsiveFontSizes.js->program->function_declaration:responsiveFontSizes"]
tailwindlabs/tailwindcss
116
tailwindlabs__tailwindcss-116
['112']
ca366ee12d1f0f9bba4ae8ada0ccb43f865f84aa
diff --git a/css/preflight.css b/css/preflight.css --- a/css/preflight.css +++ b/css/preflight.css @@ -528,6 +528,14 @@ iframe { * Tailwind custom reset styles */ +*, +*::before, +*::after { + border-width: 0; + border-style: solid; + border-color: config('borderColors.default', currentColor); +} + textarea {...
diff --git a/__tests__/fixtures/tailwind-output.css b/__tests__/fixtures/tailwind-output.css --- a/__tests__/fixtures/tailwind-output.css +++ b/__tests__/fixtures/tailwind-output.css @@ -528,6 +528,14 @@ iframe { * Tailwind custom reset styles */ +*, +*::before, +*::after { + border-width: 0; + border-style: so...
Border Styles `.border-dotted` is outputting `border-width: 0` due to the `borderStylesReset` (afaict). This means that `border-dotted` and `border-dashed` output `border-width: 0` nullifying the border style (as it removes the border). Is this a bug or am I not understanding something? I can get `class=".border-dot...
null
2017-11-06 16:20:37+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN . /usr/local/nvm/nvm.sh && nvm use 8.9.1 && npm install RUN . /usr/local/nvm/nvm.sh && nvm use 8.9.1 && npm run prebabelify RUN . /usr/local/nvm/nvm.sh && nvm use 8.9.1 && npm run prepare RUN . $NVM_DIR/nvm.sh && nvm alias default 8.9.1 && nvm use default #...
['/testbed/__tests__/configFunction.test.js->a default value can be provided', '/testbed/__tests__/importsConfig.test.js->it can accept a config file', '/testbed/__tests__/focusableAtRule.test.js->it adds a focusable variant to each nested class definition', '/testbed/__tests__/defineClasses.test.js->it generates a set...
['/testbed/__tests__/sanity.test.js->generates the right CSS']
[]
. /usr/local/nvm/nvm.sh && nvm use 8.9.1 && npx jest --json --forceExit
Bug Fix
false
true
false
false
2
0
2
false
false
["src/generators/borderWidths.js->program->function_declaration:defaultBorder", "src/generators/borderWidths.js->program->function_declaration:sizedBorder"]
tailwindlabs/tailwindcss
550
tailwindlabs__tailwindcss-550
['549', '549']
95f1d90b70c4bb318f35ea475b903d07aee01fb4
diff --git a/src/generators/flexbox.js b/src/generators/flexbox.js --- a/src/generators/flexbox.js +++ b/src/generators/flexbox.js @@ -90,13 +90,13 @@ export default function() { 'align-content': 'space-around', }, 'flex-1': { - flex: '1', + flex: '1 1 0%', }, 'flex-auto': { - ...
diff --git a/__tests__/fixtures/tailwind-output.css b/__tests__/fixtures/tailwind-output.css --- a/__tests__/fixtures/tailwind-output.css +++ b/__tests__/fixtures/tailwind-output.css @@ -2963,15 +2963,15 @@ table { } .flex-1 { - flex: 1; + flex: 1 1 0%; } .flex-auto { - flex: auto; + flex: 1 1 auto; } ....
Improve IE compatibility for flex-1 utility IE has trouble understanding our `flex-1` utility, perhaps we should avoid using the `flex: 1` shorthand and be more explicit. After some digging, I wound up on [this stackoverflow page](https://stackoverflow.com/questions/37386244/what-does-flex-1-mean) and am now overwritin...
This sounds like [Flexbug #6](https://github.com/philipwalton/flexbugs#flexbug-6). Speaking of Flexbugs however, the above flex definition you're now using might cause [Flexbug #4](https://github.com/philipwalton/flexbugs#flexbug-4), which you could solve by using this: ```css flex: 1 1 0%; ``` There's also lu...
2018-09-10 18:41:47+00:00
TypeScript
FROM polybench_typescript_base WORKDIR /testbed COPY . . RUN . /usr/local/nvm/nvm.sh && nvm use 8.9.1 && npm install RUN . /usr/local/nvm/nvm.sh && nvm use 8.9.1 && npm run prebabelify RUN . /usr/local/nvm/nvm.sh && nvm use 8.9.1 && npm run prepare RUN . $NVM_DIR/nvm.sh && nvm alias default 8.9.1 && nvm use default #...
['/testbed/__tests__/processPlugins.test.js->important can optionally be ignored for utilities', '/testbed/__tests__/responsiveAtRule.test.js->it can generate responsive variants', '/testbed/__tests__/testbedlyAtRule.test.js->it does not match classes that have multiple rules', '/testbed/__tests__/cli.test.js->stdout o...
['/testbed/__tests__/sanity.test.js->generates the right CSS']
[]
. /usr/local/nvm/nvm.sh && nvm use 8.9.1 && npx jest --json --forceExit
Bug Fix
true
false
false
false
0
0
0
false
false
[]
tailwindlabs/tailwindcss
853
tailwindlabs__tailwindcss-853
['850']
daea6623fd691d52e6ff1ce440f6a7d29b9d3adb
diff --git a/src/util/configurePlugins.js b/src/util/configurePlugins.js --- a/src/util/configurePlugins.js +++ b/src/util/configurePlugins.js @@ -1,9 +1,9 @@ export default function(pluginConfig, plugins) { - return Object.keys(plugins) - .filter(pluginName => { - return pluginConfig !== false && pluginConfi...
diff --git a/__tests__/configurePlugins.test.js b/__tests__/configurePlugins.test.js --- a/__tests__/configurePlugins.test.js +++ b/__tests__/configurePlugins.test.js @@ -28,3 +28,15 @@ test('passing only false removes all plugins', () => { expect(configuredPlugins).toEqual([]) }) + +test('passing an array whitel...
Ability to only enable specific core plugins Right now you can disable all core plugins with `corePlugins: false` (thank you @adamwathan!) but [as Adam said](https://github.com/tailwindcss/tailwindcss/issues/833#issuecomment-484162018), it would be useful to have a "whitelisting" option to only enable one or a few core...
Would it make sense to also add a "blacklisting" option? @hacknug All core plugins are enabled by default, so to blacklist you only have to do: ``` corePlugins: { 'backgroundColor': false, 'textColor': false, } ``` Silly me. I keep mixing the old and new configs structures in my head haha What about just ...
2019-04-18 14:33:19+00:00
TypeScript
FROM node:8.17 WORKDIR /testbed COPY . . RUN npm install RUN npm run prebabelify RUN npm run prepare # Clean up git history RUN git remote | xargs -r -n1 git remote remove RUN cur=$(git symbolic-ref --quiet --short HEAD); git for-each-ref --format='%(refname)' refs | awk -v cur="$cur" '$0 != "refs/heads/" cur' | xargs...
['/testbed/__tests__/configurePlugins.test.js->passing only false removes all plugins', '/testbed/__tests__/processPlugins.test.js->plugins can add base styles with object syntax', '/testbed/__tests__/plugins/borderColor.test.js->colors can be a nested object', '/testbed/__tests__/processPlugins.test.js->important can ...
['/testbed/__tests__/configurePlugins.test.js->passing an array whitelists plugins']
['/testbed/__tests__/cli.compile.test.js->compiles CSS file', '/testbed/__tests__/cli.test.js->compiles CSS file with autoprefixer']
npx jest --json --forceExit
Feature
true
false
false
false
0
0
0
false
false
[]
coder/code-server
4,923
coder__code-server-4923
['1466']
78658f1cf48a5e019a82cde937cfa8feed8b986b
diff --git a/src/node/app.ts b/src/node/app.ts --- a/src/node/app.ts +++ b/src/node/app.ts @@ -11,7 +11,7 @@ import { disposer } from "./http" import { isNodeJSErrnoException } from "./util" import { handleUpgrade } from "./wsRouter" -type ListenOptions = Pick<DefaultedArgs, "socket" | "port" | "host"> +type Listen...
diff --git a/test/unit/node/app.test.ts b/test/unit/node/app.test.ts --- a/test/unit/node/app.test.ts +++ b/test/unit/node/app.test.ts @@ -107,6 +107,18 @@ describe("createApp", () => { app.dispose() }) + it("should change the file mode of a socket", async () => { + const defaultArgs = await setDefaults({...
Add option to set unix socket permissions Hello, when using the --socket option, I can tell code-server which socket to use, but not the permissions. At the moment the default permissions are 0755, which means that only the user is able to write to the socket while it's world readable... When running together wit...
I'd agree with this. Setting users/groups seems a bit odd to me though. Is there an example of software you know that has this syntax? Usually a program/system has a configuration file where these settings are defined in. As most of the socket related stuff is handled by systemd on a newer Linux system, the settings lo...
2022-02-28 14:07:07+00:00
TypeScript
FROM public.ecr.aws/docker/library/node:14 # Update apt sources to use archive.debian.org RUN sed -i -e 's/deb.debian.org/archive.debian.org/g' \ -e '/security.debian.org/d' \ -e '/updates/d' \ /etc/apt/sources.list RUN apt-get update && apt-get install -y git build-essential g++ libx11-d...
["/testbed/test/unit/node/util.test.ts->should return ARGON2 for password with 'argon2'", '/testbed/test/unit/node/update.test.ts->should keep existing information', '/testbed/test/unit/node/routes/health.test.ts->/healthz (websocket)', '/testbed/test/unit/node/util.test.ts->should return true if is match', '/testbed/t...
['/testbed/test/unit/node/cli.test.ts->parser should parse all available options', '/testbed/test/unit/node/cli.test.ts->parser should override with --link']
['/testbed/test/unit/node/routes/vscode.test.ts->vscode should do nothing when nothing is passed in', '/testbed/test/unit/node/routes/vscode.test.ts->vscode should load all route variations', '/testbed/test/unit/node/routes/vscode.test.ts->vscode should not redirect when last opened is ignored', '/testbed/test/unit/nod...
yarn test:unit --json --silent
Feature
false
true
false
false
1
0
1
true
false
["src/node/cli.ts->program->function_declaration:setDefaults"]
coder/code-server
6,278
coder__code-server-6278
['6275']
5d3c9edce436d11d51aa1e586c11eaa49d626dc2
diff --git a/src/node/main.ts b/src/node/main.ts --- a/src/node/main.ts +++ b/src/node/main.ts @@ -126,7 +126,9 @@ export const runCodeServer = async ( logger.info(`Using config file ${humanPath(os.homedir(), args.config)}`) logger.info(`${protocol.toUpperCase()} server listening on ${serverAddress.toString()}`...
diff --git a/test/unit/node/vscodeSocket.test.ts b/test/unit/node/vscodeSocket.test.ts --- a/test/unit/node/vscodeSocket.test.ts +++ b/test/unit/node/vscodeSocket.test.ts @@ -1,5 +1,50 @@ -import { EditorSessionManager } from "../../../src/node/vscodeSocket" -import { clean, tmpdir, listenOn } from "../../utils/helpers...
[Bug]: Can't start 2 instances of code-server `4.14.0` for separate users ### Is there an existing issue for this? - [X] I have searched the existing issues ### OS/Web Information - Web Browser: Chrome - Local OS: Ubuntu - Remote OS: Windows - Remote Architecture: amd64 - `code-server --version`: 4.14.0 ...
Having the same issue, this totally bricked our shared development environment. **EDIT** For anyone else who ends up here, a downgrade worked for my environment. Before we were writing to a file instead of a socket and I think we must have been ignoring write errors but with the new system we do not. We may want ...
2023-06-20 20:46:46+00:00
TypeScript
FROM public.ecr.aws/docker/library/node:16 RUN apt-get update && apt-get install -y git build-essential g++ libx11-dev libkrb5-dev gnupg unzip curl wget software-properties-common && curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash ...
['/testbed/test/unit/node/heart.test.ts->should log a warning when isActive rejects', '/testbed/test/unit/node/routes/login.test.ts->should return correct app-name when unset', '/testbed/test/unit/node/http.test.ts->http://localhost:8080 -> [forwarded: for=127.0.0.1, host=localhost:8081, proto=http]', '/testbed/test/un...
['/testbed/test/unit/node/vscodeSocket.test.ts->DEFAULT_SOCKET_PATH should be a unique path per user', '/testbed/test/unit/node/vscodeSocket.test.ts->makeEditorSessionManagerServer warns if socket cannot be created']
['/testbed/test/unit/node/testbed.test.ts->createApp should unlink a socket before listening on the socket']
yarn test:unit --json --silent
Bug Fix
false
true
false
false
1
0
1
true
false
["src/node/vscodeSocket.ts->program->function_declaration:makeEditorSessionManagerServer"]
Significant-Gravitas/AutoGPT
4,652
Significant-Gravitas__AutoGPT-4652
['3681']
9150f32f8b8602395534795ddd2d930a1684e419
diff --git a/autogpt/memory/message_history.py b/autogpt/memory/message_history.py --- a/autogpt/memory/message_history.py +++ b/autogpt/memory/message_history.py @@ -14,7 +14,8 @@ is_string_valid_json, ) from autogpt.llm.base import ChatSequence, Message, MessageRole, MessageType -from autogpt.llm.utils import ...
diff --git a/tests/unit/test_message_history.py b/tests/unit/test_message_history.py new file mode 100644 --- /dev/null +++ b/tests/unit/test_message_history.py @@ -0,0 +1,145 @@ +import math +import time +from unittest.mock import MagicMock + +import pytest + +from autogpt.agent import Agent +from autogpt.config impor...
COMMAND = list_files - openai.error.InvalidRequestError: This model's maximum context length is 4097 tokens ### ⚠️ Search for existing issues first ⚠️ - [X] I have searched the existing issues, and there is no existing issue for my problem ### Which Operating System are you using? Docker ### Which version of Auto-...
I also encountered the same problem and couldn't continue the project It's coming from updating memory summary. That appears to be a global behaviour. Your are constrained by 4096 tokens context window given the model you are using - likely gpt 3.5 - if you used gpt-4, you would not error out here. I can think of addin...
2023-06-11 09:10:14+00:00
Python
# Use an official Python runtime as a parent image FROM public.ecr.aws/docker/library/python:3.10-slim # Set the working directory in the container WORKDIR /testbed # Install git and other dependencies RUN apt-get update && apt-get install -y git # Copy the current directory contents into the container at /testbed C...
[]
['tests/unit/test_message_history.py:None:test_message_history_batch_summary']
null
python -m pytest /testbed/tests/unit/test_message_history.py -v
Bug Fix
false
false
false
true
2
1
3
false
false
["autogpt/memory/message_history.py->module->class_definition:MessageHistory->function_definition:update_running_summary", "autogpt/memory/message_history.py->module->class_definition:MessageHistory->function_definition:summarize_batch", "autogpt/memory/message_history.py->module->class_definition:MessageHistory"]
huggingface/transformers
3,716
huggingface__transformers-3716
['3711']
f8208fa456039b46873a2e497b6318d30a4fc84e
diff --git a/src/transformers/modeling_transfo_xl.py b/src/transformers/modeling_transfo_xl.py --- a/src/transformers/modeling_transfo_xl.py +++ b/src/transformers/modeling_transfo_xl.py @@ -859,7 +859,7 @@ def forward(self, input_ids=None, mems=None, head_mask=None, inputs_embeds=None, Return: :obj:`tu...
diff --git a/tests/test_modeling_transfo_xl.py b/tests/test_modeling_transfo_xl.py --- a/tests/test_modeling_transfo_xl.py +++ b/tests/test_modeling_transfo_xl.py @@ -164,7 +164,7 @@ def create_transfo_xl_lm_head(self, config, input_ids_1, input_ids_2, lm_labels) return outputs def check_transfo...
TransfoXLLMHead doesn't shift labels internally when called for loss # 🐛 Bug When called with labels to get the language-modeling loss, `TransfoXLLMHead.forward` computes the NLLLoss of the outputs directly against the labels, rather than against the shifted labels like the documentation indicates (and like the oth...
null
2020-04-09 10:16:32+00:00
Python
FROM public.ecr.aws/docker/library/python:3.8-slim RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* WORKDIR /testbed # Install system dependencies RUN apt-get update && apt-get install -y \ git \ build-essential \ && rm -rf /var/lib/apt/lists/* # Copy the repository contents C...
['tests/test_modeling_transfo_xl.py:TransfoXLModelTest:test_head_pruning_save_load_from_pretrained', 'tests/test_modeling_transfo_xl.py:TransfoXLModelTest:test_initialization', 'tests/test_modeling_transfo_xl.py:TransfoXLModelTest:test_head_pruning_save_load_from_config_init', 'tests/test_modeling_transfo_xl.py:Transfo...
['tests/test_modeling_transfo_xl.py:TransfoXLModelTest:test_transfo_xl_lm_head']
null
python -m pytest -v /testbed/tests/test_modeling_transfo_xl.py
Bug Fix
false
true
false
false
2
0
2
false
false
["src/transformers/modeling_transfo_xl_utilities.py->module->class_definition:ProjectedAdaptiveLogSoftmax->function_definition:forward", "src/transformers/modeling_transfo_xl.py->module->class_definition:TransfoXLLMHeadModel->function_definition:forward"]
huggingface/transformers
4,759
huggingface__transformers-4759
['3554']
5bf9afbf351f9419505eb1c9e0c5ab78883c3caf
diff --git a/src/transformers/modeling_transfo_xl.py b/src/transformers/modeling_transfo_xl.py --- a/src/transformers/modeling_transfo_xl.py +++ b/src/transformers/modeling_transfo_xl.py @@ -20,6 +20,7 @@ import logging +from typing import Optional import torch import torch.nn as nn @@ -507,6 +508,85 @@ def _i...
diff --git a/tests/test_modeling_transfo_xl.py b/tests/test_modeling_transfo_xl.py --- a/tests/test_modeling_transfo_xl.py +++ b/tests/test_modeling_transfo_xl.py @@ -12,8 +12,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissi...
resize_token_embeddings error for Transformer-XL # 🐛 Bug ## Information Model I am using : Transformer-XL Language I am using the model on : English The problem arises when using: * [ ] my own modified scripts: a fine-tuning script for TransfoXLLMHeadModel ## To reproduce The following code aims to ...
Hi @vsieplus , This is a known bug and sadly we don't have a solution for this now. TransfoXLLMHead uses adaptive weight embeddings which makes it not very easy to implement this function. Should be implemented in the long run though - I will note it down. @thomwolf @LysandreJik
2020-06-04 10:49:49+00:00
Python
FROM public.ecr.aws/docker/library/python:3.8-slim RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* WORKDIR /testbed # Install system dependencies RUN apt-get update && apt-get install -y \ git \ build-essential \ && rm -rf /var/lib/apt/lists/* # Copy the repository contents C...
['tests/test_modeling_transfo_xl.py:TransfoXLModelTest:test_head_pruning_save_load_from_pretrained', 'tests/test_modeling_transfo_xl.py:TransfoXLModelTest:test_initialization', 'tests/test_modeling_transfo_xl.py:TransfoXLModelTest:test_head_pruning_save_load_from_config_init', 'tests/test_modeling_transfo_xl.py:Transfo...
['tests/test_modeling_transfo_xl.py:TransfoXLModelTest:test_resize_tokens_embeddings']
null
python -m pytest -v /testbed/tests/test_modeling_transfo_xl.py
Bug Fix
false
false
false
true
6
2
8
false
false
["src/transformers/modeling_transfo_xl.py->module->class_definition:TransfoXLLMHeadModel->function_definition:_resize_cutoffs", "src/transformers/modeling_transfo_xl.py->module->class_definition:TransfoXLPreTrainedModel", "src/transformers/modeling_transfo_xl.py->module->class_definition:TransfoXLPreTrainedModel->funct...
huggingface/transformers
5,122
huggingface__transformers-5122
['5114', '5114']
ca2d0f98c4a89d50b79ddb06b59b6bffc31ff137
diff --git a/src/transformers/data/data_collator.py b/src/transformers/data/data_collator.py --- a/src/transformers/data/data_collator.py +++ b/src/transformers/data/data_collator.py @@ -42,10 +42,10 @@ def default_data_collator(features: List[InputDataClass]) -> Dict[str, torch.Ten # Special handling for labels. ...
diff --git a/tests/test_trainer.py b/tests/test_trainer.py --- a/tests/test_trainer.py +++ b/tests/test_trainer.py @@ -25,7 +25,7 @@ @require_torch class DataCollatorIntegrationTest(unittest.TestCase): def test_default_with_dict(self): - features = [{"labels": i, "inputs": [0, 1, 2, 3, 4, 5]} for i in ran...
data_collator.py does not allow NoneType labels for test set predictions on Glue # 🐛 Bug ## Information Model I am using (Bert, XLNet ...): Distilbert Language I am using the model on (English, Chinese ...): English The problem arises when using: * [x] the official example scripts: (give details below) ...
2020-06-18 20:18:36+00:00
Python
FROM public.ecr.aws/docker/library/python:3.8-slim RUN apt-get update && apt-get install -y git git-lfs && rm -rf /var/lib/apt/lists/* RUN git lfs install WORKDIR /testbed # Install system dependencies RUN apt-get update && apt-get install -y \ git \ build-essential \ && rm -rf /var/lib/apt/lists/* # Co...
['tests/test_trainer.py:TrainerIntegrationTest:test_trainer_eval_mrpc', 'tests/test_trainer.py:TrainerIntegrationTest:test_trainer_eval_lm', 'tests/test_trainer.py:DataCollatorIntegrationTest:test_lm_tokenizer_with_padding', 'tests/test_trainer.py:DataCollatorIntegrationTest:test_default_classification', 'tests/test_tr...
['tests/test_trainer.py:DataCollatorIntegrationTest:test_default_with_no_labels']
null
pytest -v /testbed/tests/test_trainer.py
Bug Fix
false
true
false
false
1
0
1
true
false
["src/transformers/data/data_collator.py->module->function_definition:default_data_collator"]
huggingface/transformers
6,098
huggingface__transformers-6098
['6096']
dafa296c952c08fca3686f1cf8f3a8f8eb116744
diff --git a/src/transformers/tokenization_bart.py b/src/transformers/tokenization_bart.py --- a/src/transformers/tokenization_bart.py +++ b/src/transformers/tokenization_bart.py @@ -122,6 +122,7 @@ def __init__(self, *args, **kwargs): } self.id_to_lang_code = {v: k for k, v in self.lang_code_to_id.it...
diff --git a/tests/test_modeling_mbart.py b/tests/test_modeling_mbart.py --- a/tests/test_modeling_mbart.py +++ b/tests/test_modeling_mbart.py @@ -123,6 +123,7 @@ def test_mbart_fast_forward(self): self.assertEqual(logits.shape, expected_shape) +@require_torch class MBartCC25IntegrationTest(AbstractMBartI...
mBART: incorrect <mask> token id # 🐛 Bug ## Information Model I am using: mBART ## To reproduce ``` from transformers import MBartTokenizer tokenizer = MBartTokenizer.from_pretrained('facebook/mbart-large-cc25') print(tokenizer.convert_tokens_to_ids(['<mask>', 'ar_AR'])) ``` The output for the above c...
null
2020-07-28 16:35:53+00:00
Python
FROM public.ecr.aws/docker/library/python:3.8-slim RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* WORKDIR /testbed # Install system dependencies RUN apt-get update && apt-get install -y \ git \ build-essential \ && rm -rf /var/lib/apt/lists/* # Copy the repository contents C...
['tests/test_tokenization_mbart.py:MBartTokenizationTest:test_padding_to_multiple_of', 'tests/test_tokenization_mbart.py:MBartEnroIntegrationTest:test_enro_tokenizer_batch_encode_plus', 'tests/test_tokenization_mbart.py:MBartTokenizationTest:test_maximum_encoding_length_single_input', 'tests/test_tokenization_mbart.py:...
['tests/test_tokenization_mbart.py:MBartEnroIntegrationTest:test_mask_token']
null
pytest -v /testbed/tests/test_modeling_mbart.py /testbed/tests/test_tokenization_mbart.py
Bug Fix
false
false
true
false
0
1
1
false
true
["src/transformers/tokenization_bart.py->module->class_definition:MBartTokenizer->function_definition:__init__"]
huggingface/transformers
7,075
huggingface__transformers-7075
['7072']
28cf873036d078b47fb9dd38ac3421a7c874da44
diff --git a/examples/benchmarking/run_benchmark.py b/examples/benchmarking/run_benchmark.py --- a/examples/benchmarking/run_benchmark.py +++ b/examples/benchmarking/run_benchmark.py @@ -20,7 +20,25 @@ def main(): parser = HfArgumentParser(PyTorchBenchmarkArguments) - benchmark_args = parser.parse_args_into_...
diff --git a/tests/test_benchmark.py b/tests/test_benchmark.py --- a/tests/test_benchmark.py +++ b/tests/test_benchmark.py @@ -24,10 +24,10 @@ def test_inference_no_configs(self): benchmark_args = PyTorchBenchmarkArguments( models=[MODEL_ID], training=False, - no_inference=...
Clean up `benchmark_args_utils.py` "no_..." arguments # 🚀 Feature request Currently we have a mixture of negative and positive formulated arguments, *e.g.* `no_cuda` and `training` here: https://github.com/huggingface/transformers/blob/0054a48cdd64e7309184a64b399ab2c58d75d4e5/src/transformers/benchmark/benchmark_ar...
null
2020-09-11 16:15:48+00:00
Python
FROM public.ecr.aws/docker/library/python:3.8.16-slim-buster RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* WORKDIR /testbed # Install system dependencies RUN apt-get update && apt-get install -y \ git \ build-essential \ && rm -rf /var/lib/apt/lists/* # Install Python depen...
[]
['tests/test_benchmark.py:BenchmarkTest:test_inference_encoder_decoder_with_configs', 'tests/test_benchmark.py:BenchmarkTest:test_save_csv_files', 'tests/test_benchmark.py:BenchmarkTest:test_inference_no_configs', 'tests/test_benchmark.py:BenchmarkTest:test_train_with_configs', 'tests/test_benchmark.py:BenchmarkTest:te...
null
pytest -v /testbed/tests/test_benchmark.py /testbed/tests/test_benchmark_tf.py
Refactoring
false
false
false
true
40
14
54
false
false
["src/transformers/benchmark/benchmark_args.py->module->class_definition:PyTorchBenchmarkArguments", "src/transformers/benchmark/benchmark_utils.py->module->class_definition:Benchmark->function_definition:print_results", "src/transformers/benchmark/benchmark_utils.py->module->function_definition:measure_peak_memory_cpu...
huggingface/transformers
7,078
huggingface__transformers-7078
['7077']
4cbd50e611e5bace6ba81d7bb7e730852bb09142
diff --git a/src/transformers/tokenization_t5.py b/src/transformers/tokenization_t5.py --- a/src/transformers/tokenization_t5.py +++ b/src/transformers/tokenization_t5.py @@ -96,8 +96,6 @@ class T5Tokenizer(PreTrainedTokenizer): max_model_input_sizes = PRETRAINED_POSITIONAL_EMBEDDINGS_SIZES model_input_names ...
diff --git a/tests/test_tokenization_t5.py b/tests/test_tokenization_t5.py --- a/tests/test_tokenization_t5.py +++ b/tests/test_tokenization_t5.py @@ -139,9 +139,6 @@ def test_prepare_seq2seq_batch(self): self.assertEqual((2, 9), batch.input_ids.shape) self.assertEqual((2, 9), batch.attention_mask.sha...
T5Tokenizer shouldn't add pad token as prefix to labels ## Information `prepare_seq2seq_batch` method in `T5Tokenizer` now prefixes `pad` token to the `labels`. [here](https://github.com/huggingface/transformers/blob/master/src/transformers/tokenization_t5.py#L362) But in finetune.py [here](https://github.com/huggi...
null
2020-09-11 18:00:15+00:00
Python
FROM public.ecr.aws/docker/library/python:3.8.16-slim-buster RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* WORKDIR /testbed # Install system dependencies RUN apt-get update && apt-get install -y \ git \ build-essential \ && rm -rf /var/lib/apt/lists/* # Install Python depen...
['tests/test_tokenization_t5.py:T5TokenizationTest:test_number_of_added_tokens', 'tests/test_tokenization_t5.py:T5TokenizationTest:test_call', 'tests/test_tokenization_t5.py:T5TokenizationTest:test_batch_encode_plus_overflowing_tokens', 'tests/test_tokenization_t5.py:T5TokenizationTest:test_pretrained_model_lists', 'te...
['tests/test_tokenization_t5.py:T5TokenizationTest:test_eos_in_input']
null
pytest -v /testbed/tests/test_tokenization_t5.py
Bug Fix
false
false
false
true
2
1
3
false
false
["src/transformers/tokenization_t5.py->module->class_definition:T5Tokenizer->function_definition:prepare_seq2seq_batch", "src/transformers/tokenization_t5.py->module->class_definition:T5Tokenizer->function_definition:build_inputs_with_special_tokens", "src/transformers/tokenization_t5.py->module->class_definition:T5Tok...
huggingface/transformers
7,374
huggingface__transformers-7374
['7371', '7371']
eadd870b2f503047dd81b8dcd9d115dc1b4a9196
diff --git a/src/transformers/modeling_funnel.py b/src/transformers/modeling_funnel.py --- a/src/transformers/modeling_funnel.py +++ b/src/transformers/modeling_funnel.py @@ -367,7 +367,6 @@ def pool_tensor(self, tensor, mode="mean", stride=2): # Stride is applied on the second-to-last dimension. stri...
diff --git a/tests/test_modeling_funnel.py b/tests/test_modeling_funnel.py --- a/tests/test_modeling_funnel.py +++ b/tests/test_modeling_funnel.py @@ -428,16 +428,16 @@ def test_inference_tiny_model(self): model = FunnelModel.from_pretrained("sgugger/funnel-random-tiny") output = model(input_ids, toke...
FunnelTransformerForSequenceClassification crashes when fine tuning with mixed precision flag ## Environment info <!-- You can run the command `transformers-cli env` and copy-and-paste its output below. Don't forget to fill out the missing fields in that output! --> - `transformers` version: 3.2.0 - Pla...
2020-09-24 19:37:35+00:00
Python
FROM public.ecr.aws/docker/library/python:3.8.16-slim RUN apt-get update && apt-get install -y git git-lfs && rm -rf /var/lib/apt/lists/* RUN git lfs install WORKDIR /testbed # Install system dependencies RUN apt-get update && apt-get install -y \ git \ build-essential \ && rm -rf /var/lib/apt/lists/* #...
['tests/test_modeling_funnel.py:FunnelModelTest:test_determinism', 'tests/test_modeling_funnel.py:FunnelBaseModelTest:test_hidden_states_output', 'tests/test_modeling_funnel.py:FunnelBaseModelTest:test_lm_head_model_random_no_beam_search_generate', 'tests/test_modeling_funnel.py:FunnelModelTest:test_torchscript', 'test...
['tests/test_modeling_funnel.py:FunnelModelIntegrationTest:test_inference_tiny_model']
null
pytest -v -s --disable-warnings /testbed/tests/test_modeling_funnel.py
Bug Fix
false
true
false
false
3
0
3
false
false
["src/transformers/modeling_tf_funnel.py->module->class_definition:TFFunnelRelMultiheadAttention->function_definition:call", "src/transformers/modeling_funnel.py->module->class_definition:FunnelRelMultiheadAttention->function_definition:forward", "src/transformers/modeling_funnel.py->module->class_definition:FunnelAtte...
huggingface/transformers
7,562
huggingface__transformers-7562
['7514']
52f44dd6d23f5c1b3d550685c50281fa6ca12ff3
diff --git a/docs/source/model_doc/longformer.rst b/docs/source/model_doc/longformer.rst --- a/docs/source/model_doc/longformer.rst +++ b/docs/source/model_doc/longformer.rst @@ -90,6 +90,32 @@ LongformerTokenizerFast .. autoclass:: transformers.LongformerTokenizerFast :members: +Longformer specific outputs +~...
diff --git a/tests/test_modeling_common.py b/tests/test_modeling_common.py --- a/tests/test_modeling_common.py +++ b/tests/test_modeling_common.py @@ -220,12 +220,13 @@ def test_attention_outputs(self): for model_class in self.all_model_classes: inputs_dict["output_attentions"] = True ...
[Longformer] Output both local attentions and global attentions when `output_attentions=True` -> Good Second Issue # 🚀 Feature request **Good Second Issue** - A more advanced issue for contributors who want to dive more into Longformer's attention mechanism. Longformer currently only outputs global attentions, w...
I am working on a pull request to address this. I don't see any major challenge so far, but this made me realize how much `attentions` in Bert-like models and in Longformers are different. Why not replace `attentions` in the Longformer by `local_attentions`? This means that the interface of Longformers would become ...
2020-10-04 01:44:37+00:00
Python
FROM public.ecr.aws/docker/library/python:3.8.16-slim RUN apt-get update && apt-get install -y git git-lfs && rm -rf /var/lib/apt/lists/* RUN git lfs install WORKDIR /testbed # Install system dependencies RUN apt-get update && apt-get install -y \ git \ build-essential \ && rm -rf /var/lib/apt/lists/* #...
['tests/test_modeling_longformer.py:LongformerModelTest:test_for_multiple_choice', 'tests/test_modeling_longformer.py:LongformerModelIntegrationTest:test_mask_invalid_locations', 'tests/test_modeling_longformer.py:LongformerModelTest:test_head_pruning', 'tests/test_modeling_longformer.py:LongformerModelTest:test_initia...
['tests/test_modeling_longformer.py:LongformerModelIntegrationTest:test_layer_attn_probs', 'tests/test_modeling_longformer.py:LongformerModelIntegrationTest:test_layer_global_attn', 'tests/test_modeling_longformer.py:LongformerModelIntegrationTest:test_layer_local_attn']
null
pytest -v -s --disable-warnings /testbed/tests/test_modeling_common.py /testbed/tests/test_modeling_longformer.py /testbed/tests/test_modeling_tf_common.py /testbed/tests/test_modeling_tf_longformer.py
Feature
false
false
false
true
16
11
27
false
false
["src/transformers/modeling_tf_longformer.py->module->class_definition:TFLongformerSelfAttention", "src/transformers/modeling_tf_longformer.py->module->class_definition:TFLongformerSelfAttention->function_definition:_compute_global_attn_output_from_hidden", "src/transformers/modeling_longformer.py->module->class_defini...
huggingface/transformers
8,435
huggingface__transformers-8435
['5142']
4185b115d4b3fd408265ffd91581698325652c47
diff --git a/src/transformers/tokenization_t5.py b/src/transformers/tokenization_t5.py --- a/src/transformers/tokenization_t5.py +++ b/src/transformers/tokenization_t5.py @@ -249,8 +249,17 @@ def _convert_id_to_token(self, index): def convert_tokens_to_string(self, tokens): """ Converts a sequence of to...
diff --git a/tests/test_tokenization_t5.py b/tests/test_tokenization_t5.py --- a/tests/test_tokenization_t5.py +++ b/tests/test_tokenization_t5.py @@ -222,3 +222,18 @@ def test_eos_in_input(self): self.assertEqual(expected_src_tokens, src_ids) self.assertEqual(expected_tgt_tokens, tgt_ids) + + de...
T5 special tokens not mapped to unique indices in vocabulary The docs recommend adding the special eos_token `<\s>` to the end of each string when encoding/decoding with `T5Tokenizer`. However, this (and the other special tokens e.g. `unk_token`, `pad_token` aren't assigned unique ids in the lookup vocabulary (they are...
Hey @sarahwie, Thanks for your issue. I can reproduce the problem and see the reason for it. Currently, we rely on Google's sentencepiece tokenizer: https://github.com/google/sentencepiece for encoding and decoding in T5. What happens is that the `tokenizer.decode(tokens)` depends on the function `sp_model.deco...
2020-11-10 11:10:09+00:00
Python
FROM public.ecr.aws/docker/library/python:3.8.16-slim-buster RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* WORKDIR /testbed # Install system dependencies RUN apt-get update && apt-get install -y \ git \ build-essential \ && rm -rf /var/lib/apt/lists/* # Install Python depen...
['tests/test_tokenization_t5.py:T5TokenizationTest:test_build_inputs_with_special_tokens', 'tests/test_tokenization_t5.py:T5TokenizationTest:test_number_of_added_tokens', 'tests/test_tokenization_t5.py:T5TokenizationTest:test_call', 'tests/test_tokenization_t5.py:T5TokenizationTest:test_batch_encode_plus_overflowing_to...
['tests/test_tokenization_t5.py:T5TokenizationTest:test_fast_and_slow_same_result']
null
pytest -v /testbed/tests/test_tokenization_t5.py
Bug Fix
false
true
false
false
1
0
1
true
false
["src/transformers/tokenization_t5.py->module->class_definition:T5Tokenizer->function_definition:convert_tokens_to_string"]
huggingface/transformers
8,554
huggingface__transformers-8554
['8553']
0603564e9323bd424217581e5297da6cd202817b
diff --git a/src/transformers/models/prophetnet/modeling_prophetnet.py b/src/transformers/models/prophetnet/modeling_prophetnet.py --- a/src/transformers/models/prophetnet/modeling_prophetnet.py +++ b/src/transformers/models/prophetnet/modeling_prophetnet.py @@ -1793,8 +1793,8 @@ def forward( encoder_a...
diff --git a/tests/test_modeling_prophetnet.py b/tests/test_modeling_prophetnet.py --- a/tests/test_modeling_prophetnet.py +++ b/tests/test_modeling_prophetnet.py @@ -417,7 +417,7 @@ def check_fast_integration( decoder_attention_mask=decoder_attention_mask, labels=lm_labels, ...
`disable_ngram_loss` doesn't work correctly in ProphetNetForConditionalGeneration When I am using ProphetNet with `disable_ngram_loss=True` I am getting loss that is greater than with `disable_ngram_loss=False`. It seems to me that this is the problem of setting `fill_(self.padding_idx)` in `_compute_loss` instead of -...
null
2020-11-15 21:55:06+00:00
Python
FROM public.ecr.aws/docker/library/python:3.8.16-slim-buster RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* WORKDIR /testbed # Install system dependencies RUN apt-get update && apt-get install -y \ git \ build-essential \ && rm -rf /var/lib/apt/lists/* # Install Python depen...
['tests/test_modeling_prophetnet.py:ProphetNetStandaloneDecoderModelTest:test_save_load', 'tests/test_modeling_prophetnet.py:ProphetNetStandaloneEncoderModelTest:test_head_pruning', 'tests/test_modeling_prophetnet.py:ProphetNetStandaloneDecoderModelTest:test_training', 'tests/test_modeling_prophetnet.py:ProphetNetModel...
['tests/test_modeling_prophetnet.py:ProphetNetModelTest:test_fast_integration']
null
pytest -v /testbed/tests/test_modeling_prophetnet.py
Bug Fix
false
true
false
false
2
0
2
false
false
["src/transformers/models/prophetnet/modeling_prophetnet.py->module->class_definition:ProphetNetForConditionalGeneration->function_definition:_compute_loss", "src/transformers/models/prophetnet/modeling_prophetnet.py->module->class_definition:ProphetNetForCausalLM->function_definition:_compute_loss"]
huggingface/transformers
8,624
huggingface__transformers-8624
['5605']
cdfa56afe02c3ed5d2b86498515cfddf82d56f2c
diff --git a/src/transformers/trainer.py b/src/transformers/trainer.py --- a/src/transformers/trainer.py +++ b/src/transformers/trainer.py @@ -676,11 +676,12 @@ def train(self, model_path: Optional[str] = None, trial: Union["optuna.Trial", D self.state = TrainerState.load_from_json(os.path.join(model_path,...
diff --git a/tests/test_trainer.py b/tests/test_trainer.py --- a/tests/test_trainer.py +++ b/tests/test_trainer.py @@ -465,6 +465,14 @@ def test_save_checkpoints(self): trainer.train() self.check_saved_checkpoints(tmpdir, 5, int(self.n_epochs * 64 / self.batch_size), False) + def test_gra...
Here maybe a bug, when we load staged checkpoint https://github.com/huggingface/transformers/blob/40d98ebf50c4662bcd6dce6395bbed0b2142ea52/src/transformers/trainer.py#L458 I met this bug when I used the setting below: global_steps = 2748 len(train_dataloader) = 27484 gradient_accumulation_steps = 4 In the or...
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. I'm also puzzled by this. The calculations here seems incorrect. To me these calculations are not incorrect if we take `step` as optimization step...
2020-11-18 16:42:19+00:00
Python
FROM public.ecr.aws/docker/library/python:3.8.16-slim RUN apt-get update && apt-get install -y git git-lfs && rm -rf /var/lib/apt/lists/* RUN git lfs install WORKDIR /testbed # Install system dependencies RUN apt-get update && apt-get install -y \ git \ build-essential \ && rm -rf /var/lib/apt/lists/* #...
['tests/test_trainer.py:TrainerIntegrationTest:test_load_best_model_at_end', 'tests/test_trainer.py:TrainerIntegrationTest:test_trainer_with_datasets', 'tests/test_trainer.py:TrainerIntegrationTest:test_train_and_eval_dataloaders', 'tests/test_trainer.py:TrainerIntegrationTest:test_num_train_epochs_in_training', 'tests...
['tests/test_trainer.py:TrainerIntegrationTest:test_resume_training_with_gradient_accumulation']
null
pytest -v /testbed/tests/test_trainer.py
Bug Fix
false
true
false
false
1
0
1
true
false
["src/transformers/trainer.py->module->class_definition:Trainer->function_definition:train"]
huggingface/transformers
8,747
huggingface__transformers-8747
['8601']
7f2c00913a32fcc4d09db89c51bb86d6fe1a59e8
diff --git a/src/transformers/models/bart/modeling_bart.py b/src/transformers/models/bart/modeling_bart.py --- a/src/transformers/models/bart/modeling_bart.py +++ b/src/transformers/models/bart/modeling_bart.py @@ -358,11 +358,13 @@ def forward( # B x T x C -> T x B x C x = x.transpose(0, 1) - ...
diff --git a/tests/test_modeling_common.py b/tests/test_modeling_common.py --- a/tests/test_modeling_common.py +++ b/tests/test_modeling_common.py @@ -689,6 +689,56 @@ def check_hidden_states_output(inputs_dict, config, model_class): check_hidden_states_output(inputs_dict, config, model_class) + def...
Accessing gradients of Bart hidden states The forums suggested that this be filed as a bug report: https://huggingface.co/proxy/discuss.huggingface.co/t/finding-gradients-in-zero-shot-learning/2033/5 The solution to the problem was solved on SO: https://stackoverflow.com/questions/64823332/gradients-returning-none-in-huggingface-m...
@joeddav - feel free to ping me again if you're too busy. Leaving it up to you for now :-) Hey thanks for opening the detailed issue. As I mentioned this is a Bart issue, nothing specific to zero shot, so I've renamed it to get the right eyes on it. The problem here is that the hidden states are transposed _after_ ...
2020-11-24 00:01:55+00:00
Python
FROM public.ecr.aws/docker/library/python:3.8.16-slim RUN apt-get update && apt-get install -y git git-lfs && rm -rf /var/lib/apt/lists/* RUN git lfs install WORKDIR /testbed # Install system dependencies RUN apt-get update && apt-get install -y \ git \ build-essential \ && rm -rf /var/lib/apt/lists/* #...
['tests/test_modeling_prophetnet.py:ProphetNetStandaloneDecoderModelTest:test_save_load', 'tests/test_modeling_reformer.py:ReformerLocalAttnModelTest:test_reformer_no_chunking', 'tests/test_modeling_prophetnet.py:ProphetNetStandaloneEncoderModelTest:test_head_pruning', 'tests/test_modeling_prophetnet.py:ProphetNetStand...
['tests/test_modeling_prophetnet.py:ProphetNetModelTest:test_retain_grad_hidden_states_attentions', 'tests/test_modeling_prophetnet.py:ProphetNetStandaloneEncoderModelTest:test_retain_grad_hidden_states_attentions']
null
pytest -v /testbed/tests/test_modeling_common.py /testbed/tests/test_modeling_longformer.py /testbed/tests/test_modeling_lxmert.py /testbed/tests/test_modeling_prophetnet.py /testbed/tests/test_modeling_reformer.py /testbed/tests/test_modeling_transfo_xl.py /testbed/tests/test_modeling_xlnet.py --capture=no
Bug Fix
false
true
false
false
13
0
13
false
false
["src/transformers/models/openai/modeling_openai.py->module->class_definition:OpenAIGPTModel->function_definition:forward", "src/transformers/models/prophetnet/modeling_prophetnet.py->module->class_definition:ProphetNetEncoder->function_definition:forward", "src/transformers/models/bart/modeling_bart.py->module->class_...
huggingface/transformers
12,981
huggingface__transformers-12981
['12970']
75b8990d9068a2c6ef448c190f2595c17fbcb993
diff --git a/src/transformers/trainer.py b/src/transformers/trainer.py --- a/src/transformers/trainer.py +++ b/src/transformers/trainer.py @@ -1005,6 +1005,7 @@ def train( kwargs: Additional keyword arguments used to hide deprecated arguments """ + resume_from_checkpoint = ...
diff --git a/tests/test_trainer.py b/tests/test_trainer.py --- a/tests/test_trainer.py +++ b/tests/test_trainer.py @@ -827,6 +827,20 @@ def test_resume_training_with_randomness(self): self.assertAlmostEqual(a, a1, delta=1e-8) self.assertAlmostEqual(b, b1, delta=1e-8) + # regression for this issue...
`Trainer.train(resume_from_checkpoint=False)` is causing an exception Since `resume_from_checkpoint` can be `str` and `bool` it should be possible to pass `False` to it. But when `resume_from_checkpoint` is `False` it causes an exception here: https://github.com/huggingface/transformers/blob/3d4b3bc3fd77e0e48e23644...
That seems like the right fix indeed. Please go ahead with a PR, thanks! :-)
2021-08-02 16:23:41+00:00
Python
FROM public.ecr.aws/docker/library/python:3.8-slim RUN apt-get update && apt-get install -y git git-lfs && rm -rf /var/lib/apt/lists/* RUN git lfs install WORKDIR /testbed # Install system dependencies RUN apt-get update && apt-get install -y \ git \ && rm -rf /var/lib/apt/lists/* # Copy the repository cont...
['tests/test_trainer.py:TrainerIntegrationTest:test_number_of_steps_in_training', 'tests/test_trainer.py:TrainerIntegrationTest:test_resume_training_with_gradient_accumulation', 'tests/test_trainer.py:TrainerIntegrationTest:test_resume_training_with_randomness', 'tests/test_trainer.py:TrainerIntegrationTest:test_traini...
['tests/test_trainer.py:TrainerIntegrationTest:test_training_with_resume_from_checkpoint_flase']
null
python -m pytest /testbed/tests/test_trainer.py -v --junitxml=test-results.xml
Bug Fix
false
true
false
false
1
0
1
true
false
["src/transformers/trainer.py->module->class_definition:Trainer->function_definition:train"]
huggingface/transformers
13,491
huggingface__transformers-13491
['11096']
1c191efc3abc391072ff0094a8108459bc08e3fa
diff --git a/src/transformers/models/gpt_neo/modeling_gpt_neo.py b/src/transformers/models/gpt_neo/modeling_gpt_neo.py --- a/src/transformers/models/gpt_neo/modeling_gpt_neo.py +++ b/src/transformers/models/gpt_neo/modeling_gpt_neo.py @@ -134,114 +134,39 @@ def load_tf_weights_in_gpt_neo(model, config, gpt_neo_checkpoi...
diff --git a/tests/test_modeling_gpt_neo.py b/tests/test_modeling_gpt_neo.py --- a/tests/test_modeling_gpt_neo.py +++ b/tests/test_modeling_gpt_neo.py @@ -36,7 +36,6 @@ GPTNeoForSequenceClassification, GPTNeoModel, ) - from transformers.models.gpt_neo.modeling_gpt_neo import GPTNeoAttentionMix...
GPTNeo: RuntimeError: shape mismatch when using past_key_values to go forward more than one token ## Environment info <!-- You can run the command `transformers-cli env` and copy-and-paste its output below. Don't forget to fill out the missing fields in that output! --> - `transformers` version: 4.6.0.dev0 -...
Hi @sboparen Right now the caching is implemented such that when `past_key_values` are passed current token length must be 1. This is due to the local attention layer which uses dynamic block length. This is a known limitation and I'm working on it at the moment. This issue has been automatically marked as stale b...
2021-09-09 07:31:52+00:00
Python
FROM public.ecr.aws/docker/library/python:3.8-slim RUN apt-get update && apt-get install -y git git-lfs && rm -rf /var/lib/apt/lists/* RUN git lfs install WORKDIR /testbed # Install system dependencies RUN apt-get update && apt-get install -y \ git \ && rm -rf /var/lib/apt/lists/* # Copy the repository cont...
['tests/test_modeling_gpt_neo.py:GPTNeoModelTest:test_model_common_attributes', 'tests/test_modeling_gpt_neo.py:GPTNeoModelTest:test_feed_forward_chunking', 'tests/test_modeling_gpt_neo.py:GPTNeoModelTest:test_retain_grad_hidden_states_attentions', 'tests/test_modeling_gpt_neo.py:GPTNeoModelTest:test_resize_embeddings_...
['tests/test_modeling_gpt_neo.py:GPTNeoModelTest:test_greedy_generate_dict_outputs_use_cache', 'tests/test_modeling_gpt_neo.py:GPTNeoModelTest:test_beam_search_generate_dict_outputs_use_cache', 'tests/test_modeling_gpt_neo.py:GPTNeoModelTest:test_sample_generate_dict_output', 'tests/test_modeling_gpt_neo.py:GPTNeoModel...
null
python -m pytest /testbed/tests/test_modeling_gpt_neo.py --json-report --json-report-file=test_output.json -v
Bug Fix
false
false
false
true
14
7
21
false
false
["src/transformers/models/gpt_neo/modeling_gpt_neo.py->module->class_definition:GPTNeoSelfAttention->function_definition:forward", "src/transformers/models/gpt_neo/modeling_gpt_neo.py->module->class_definition:GPTNeoAttentionMixin->function_definition:_split_heads", "src/transformers/models/gpt_neo/modeling_gpt_neo.py-...
huggingface/transformers
13,693
huggingface__transformers-13693
['13689']
8e908c8c74f556a82534f4cf1e7a1b4f7b55d24c
diff --git a/src/transformers/feature_extraction_sequence_utils.py b/src/transformers/feature_extraction_sequence_utils.py --- a/src/transformers/feature_extraction_sequence_utils.py +++ b/src/transformers/feature_extraction_sequence_utils.py @@ -187,23 +187,6 @@ def pad( padding_strategy = self._get_padding_s...
diff --git a/tests/test_feature_extraction_speech_to_text.py b/tests/test_feature_extraction_speech_to_text.py --- a/tests/test_feature_extraction_speech_to_text.py +++ b/tests/test_feature_extraction_speech_to_text.py @@ -235,3 +235,16 @@ def test_cepstral_mean_and_variance_normalization_trunc_longest(self): ...
New Wav2Vec2 padding has slightly backward breaking changes The PR: https://github.com/huggingface/transformers/pull/13650 introduced some quite tricky backwards breaking changes that we should try to fix. The problem is the following: A user might directly use `feature_extractor.pad(...)` instead of `feature_extra...
@anton-l - could you maybe look into it? :-) It's quite a tricky backwards compatible bug and we should have had tests to catch this problem. Would be great if you could try to open a PR to fix it :-)
2021-09-22 08:05:39+00:00
Python
FROM public.ecr.aws/docker/library/python:3.8-slim RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* WORKDIR /testbed # Install system dependencies RUN apt-get update && apt-get install -y \ git \ libsndfile1 \ && rm -rf /var/lib/apt/lists/* # Copy the repository contents COPY ...
['tests.test_feature_extraction_speech_to_text.Speech2TextFeatureExtractionTest:test_feat_extract_common_properties', 'tests.test_feature_extraction_speech_to_text.Speech2TextFeatureExtractionTest:test_feat_extract_to_json_file', 'tests.test_feature_extraction_wav2vec2.Wav2Vec2FeatureExtractionTest:test_batch_feature',...
['tests.test_feature_extraction_wav2vec2.Wav2Vec2FeatureExtractionTest:test_double_precision_pad:']
null
python -m unittest /testbed/tests/test_feature_extraction_speech_to_text.py /testbed/tests/test_feature_extraction_wav2vec2.py -v
Bug Fix
false
true
false
false
1
0
1
true
false
["src/transformers/feature_extraction_sequence_utils.py->module->class_definition:SequenceFeatureExtractor->function_definition:pad"]
huggingface/transformers
13,865
huggingface__transformers-13865
['13847']
3a8de58c5192b620228128430ea52e6eda81c40a
diff --git a/src/transformers/hf_argparser.py b/src/transformers/hf_argparser.py --- a/src/transformers/hf_argparser.py +++ b/src/transformers/hf_argparser.py @@ -17,6 +17,7 @@ import re import sys from argparse import ArgumentDefaultsHelpFormatter, ArgumentParser, ArgumentTypeError +from copy import copy from enum...
diff --git a/tests/test_hf_argparser.py b/tests/test_hf_argparser.py --- a/tests/test_hf_argparser.py +++ b/tests/test_hf_argparser.py @@ -126,8 +126,10 @@ def test_with_default_bool(self): expected = argparse.ArgumentParser() expected.add_argument("--foo", type=string_to_bool, default=False, const=...
Default arguments of clm example are confusing I was having a look at the `run_clm.py` script and which new arguments are available to push to the hub. ```sh python transformers\examples\pytorch\language-modeling\run_clm.py -h ``` I see the following options (note the True defaults for all): ``` --no_keep...
Unfortunately, since the two arguments are accepted, there is no way for us to automate a better documentation of them from the `HfArgumentParser` (if you have ideas, by all means!) so you should rely on the documentation of [`TrainingArguments`](https://huggingface.co/transformers/main_classes/trainer.html#trainingarg...
2021-10-04 15:07:51+00:00
Python
FROM public.ecr.aws/docker/library/python:3.8-slim RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* WORKDIR /testbed # Install system dependencies RUN apt-get update && apt-get install -y \ git \ && rm -rf /var/lib/apt/lists/* # Copy the repository contents COPY . . # Install Py...
['tests/test_hf_argparser.py:HfArgumentParserTest:test_with_list', 'tests/test_hf_argparser.py:HfArgumentParserTest:test_with_required', 'tests/test_hf_argparser.py:HfArgumentParserTest:test_integration_training_args', 'tests/test_hf_argparser.py:HfArgumentParserTest:test_basic', 'tests/test_hf_argparser.py:HfArgumentP...
['tests/test_hf_argparser.py:HfArgumentParserTest:test_with_default_bool']
null
python -m pytest /testbed/tests/test_hf_argparser.py -v --junitxml=test-results.xml
Bug Fix
false
false
false
true
1
1
2
false
false
["src/transformers/hf_argparser.py->module->class_definition:HfArgumentParser", "src/transformers/hf_argparser.py->module->class_definition:HfArgumentParser->function_definition:_add_dataclass_arguments"]
huggingface/transformers
13,919
huggingface__transformers-13919
['13880']
279ce5b705a0b8689f2a8e5d5258dbb5421c9e6c
diff --git a/src/transformers/generation_stopping_criteria.py b/src/transformers/generation_stopping_criteria.py --- a/src/transformers/generation_stopping_criteria.py +++ b/src/transformers/generation_stopping_criteria.py @@ -71,6 +71,12 @@ class MaxNewTokensCriteria(StoppingCriteria): """ def __init__(sel...
diff --git a/tests/test_generation_utils.py b/tests/test_generation_utils.py --- a/tests/test_generation_utils.py +++ b/tests/test_generation_utils.py @@ -24,7 +24,13 @@ if is_torch_available(): import torch - from transformers import BartForConditionalGeneration, BartTokenizer, top_k_top_p_filtering + fr...
GPT-J float16 model output stopping after first word ## Environment info - `transformers` version: 4.11.2 - Platform: Linux-5.4.0-1045-aws-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyTorch version (GPU?): 1.9.1+cu102 (True) - Tensorflow version (GPU?): not installed (NA) - Flax version (CPU?/GPU?/TPU?): ...
Hi! This is because the`max_length` argument specifies the total length including the length of prompt tokens and here the length of prompt tokens is 209, which is more than `max_length` hence only one token is generated. If you instead want to specify how many new tokens to generate then use the `max_new_tokens` ar...
2021-10-07 10:27:12+00:00
Python
FROM public.ecr.aws/docker/library/python:3.8-slim RUN apt-get update && apt-get install -y git git-lfs && rm -rf /var/lib/apt/lists/* RUN git lfs install WORKDIR /testbed # Install system dependencies RUN apt-get update && apt-get install -y \ git \ && rm -rf /var/lib/apt/lists/* # Copy the repository cont...
['tests/test_generation_utils.py:GenerationIntegrationTests:test_max_length_backward_compat_greedy', 'tests/test_generation_utils.py:GenerationIntegrationTests:test_max_length_backward_compat_group_beam_search', 'tests/test_generation_utils.py:GenerationIntegrationTests:test_max_length_backward_compat_sample', 'tests/t...
['tests/test_generation_utils.py:GenerationIntegrationTests:test_max_new_tokens_decoder_only', 'tests/test_generation_utils.py:GenerationIntegrationTests:test_max_new_tokens_encoder_decoder']
null
python -m pytest /testbed/tests/test_generation_utils.py --json-report --json-report-file=report.json -v
Bug Fix
false
false
false
true
2
1
3
false
false
["src/transformers/generation_utils.py->module->class_definition:GenerationMixin->function_definition:_get_stopping_criteria", "src/transformers/generation_stopping_criteria.py->module->class_definition:MaxNewTokensCriteria->function_definition:__init__", "src/transformers/generation_utils.py->module->class_definition:...
huggingface/transformers
13,989
huggingface__transformers-13989
['13522']
408b2d2bd08f667cf4154730cc323c4e49657eed
diff --git a/docs/source/model_doc/auto.rst b/docs/source/model_doc/auto.rst --- a/docs/source/model_doc/auto.rst +++ b/docs/source/model_doc/auto.rst @@ -27,7 +27,32 @@ Instantiating one of :class:`~transformers.AutoConfig`, :class:`~transformers.Au will create a model that is an instance of :class:`~transformers.B...
diff --git a/tests/test_configuration_auto.py b/tests/test_configuration_auto.py --- a/tests/test_configuration_auto.py +++ b/tests/test_configuration_auto.py @@ -14,6 +14,7 @@ # limitations under the License. import os +import tempfile import unittest from transformers.models.auto.configuration_auto import CON...
The new impl for CONFIG_MAPPING prevents users from adding any custom models ## Environment info <!-- You can run the command `transformers-cli env` and copy-and-paste its output below. Don't forget to fill out the missing fields in that output! --> - `transformers` version: 4.10+ - Platform: Ubuntu 18.04 -...
Adding a config/model/tokenizer to those constants wasn't really supported before (but I agree it may have worked in some situations). A mechanism to add a custom model/config/tokenizer is on the roadmap! Slightly different but which may be of interest, we are also starting to implement support for custom modeling (so...
2021-10-13 18:33:16+00:00
Python
FROM public.ecr.aws/docker/library/python:3.8-slim RUN apt-get update && apt-get install -y git git-lfs && rm -rf /var/lib/apt/lists/* RUN git lfs install WORKDIR /testbed # Install system dependencies RUN apt-get update && apt-get install -y \ git \ && rm -rf /var/lib/apt/lists/* # Copy the repository cont...
['tests/test_modeling_auto.py:AutoModelTest:test_from_pretrained_identifier', 'tests/test_modeling_auto.py:AutoModelTest:test_parents_and_children_in_mappings', 'tests/test_configuration_auto.py:AutoConfigTest:test_config_model_type_from_model_identifier', 'tests/test_modeling_auto.py:AutoModelTest:test_from_pretrained...
['tests/test_tokenization_auto.py:AutoTokenizerTest:test_new_tokenizer_fast_registration', 'tests/test_configuration_auto.py:AutoConfigTest:test_new_config_registration', 'tests/test_modeling_tf_auto.py:TFAutoModelTest:test_new_model_registration', 'tests/test_tokenization_auto.py:AutoTokenizerTest:test_new_tokenizer_r...
null
python -m pytest -v /testbed/tests/test_configuration_auto.py /testbed/tests/test_modeling_auto.py /testbed/tests/test_modeling_tf_auto.py /testbed/tests/test_tokenization_auto.py --junitxml=test-results.xml
Feature
false
false
false
true
18
7
25
false
false
["src/transformers/models/auto/auto_factory.py->module->class_definition:_LazyAutoMapping->function_definition:items", "src/transformers/models/auto/tokenization_auto.py->module->class_definition:AutoTokenizer->function_definition:register", "src/transformers/models/auto/auto_factory.py->module->class_definition:_LazyA...
huggingface/transformers
15,158
huggingface__transformers-15158
['15156']
c4f7eb124b218741d66dd1d86b5d744024a78f6f
diff --git a/src/transformers/models/bert/tokenization_bert_fast.py b/src/transformers/models/bert/tokenization_bert_fast.py --- a/src/transformers/models/bert/tokenization_bert_fast.py +++ b/src/transformers/models/bert/tokenization_bert_fast.py @@ -188,15 +188,17 @@ def __init__( **kwargs, ) -...
diff --git a/tests/test_tokenization_bert.py b/tests/test_tokenization_bert.py --- a/tests/test_tokenization_bert.py +++ b/tests/test_tokenization_bert.py @@ -299,3 +299,40 @@ def test_offsets_with_special_characters(self): [e[1] for e in expected_results], tokenizer_r.convert_ids_to_tokens(tokens[...
the `tokenize_chinese_chars` argument is not always taken into account with the fast version of the bert tokenizer ## Environment info <!-- You can run the command `transformers-cli env` and copy-and-paste its output below. Don't forget to fill out the missing fields in that output! --> - `transformers` versi...
null
2022-01-14 12:19:38+00:00
Python
# Use an official Python runtime as a parent image FROM public.ecr.aws/docker/library/python:3.10-slim RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* # Set the working directory in the container WORKDIR /testbed # Copy the current directory contents into the container at /testbed COPY . ...
['tests/test_tokenization_bert.py:BertTokenizationTest:test_rust_and_python_full_tokenizers', 'tests/test_tokenization_bert.py:BertTokenizationTest:test_batch_encode_plus_batch_sequence_length', 'tests/test_tokenization_bert.py:BertTokenizationTest:test_saving_tokenizer_trainer', 'tests/test_tokenization_bert.py:BertTo...
['tests/test_tokenization_bert.py:BertTokenizationTest:test_change_tokenize_chinese_chars']
null
pytest -v --tb=short --show-capture=no --json-report --json-report-file=test_output.json /testbed/tests/test_tokenization_bert.py
Bug Fix
false
false
true
false
0
1
1
false
true
["src/transformers/models/bert/tokenization_bert_fast.py->module->class_definition:BertTokenizerFast->function_definition:__init__"]
huggingface/transformers
15,473
huggingface__transformers-15473
['15466']
b9418a1d97d33dac0e7ec1df7fc1178f361104c5
diff --git a/examples/pytorch/language-modeling/run_clm.py b/examples/pytorch/language-modeling/run_clm.py --- a/examples/pytorch/language-modeling/run_clm.py +++ b/examples/pytorch/language-modeling/run_clm.py @@ -30,7 +30,7 @@ from typing import Optional import datasets -from datasets import load_dataset +from da...
diff --git a/tests/test_trainer.py b/tests/test_trainer.py --- a/tests/test_trainer.py +++ b/tests/test_trainer.py @@ -288,6 +288,7 @@ def get_regression_trainer(a=0, b=0, double_output=False, train_len=64, eval_len data_collator = kwargs.pop("data_collator", None) optimizers = kwargs.pop("optimizers"...
Preprocess/transform logits before caching them for computing metrics. # 🚀 Feature request I think it'd be nice to have a simple way to preprocess the logits before caching them for computing metrics. ## Motivation When the `Trainer` `compute_metrics` are set, during evaluation the logits are accumulated (som...
I think it would be a valuable addition, as you describe the problematic situation very well, when someone wants to compute perplexity with a language model having a very large vocab size, for instance. The `TrainingArguments` can't have a new argument of type callable, but I think we could have a new argument in th...
2022-02-02 07:06:19+00:00
Python
# Use an official Python runtime as a parent image FROM public.ecr.aws/docker/library/python:3.10-slim RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* # Set the working directory in the container WORKDIR /testbed # Copy the current directory contents into the container at /testbed COPY . ...
['tests/test_trainer.py:TrainerOptimizerChoiceTest:test_fused_adam_no_apex', 'tests/test_trainer.py:TrainerIntegrationTest:test_trainer_works_with_dict', 'tests/test_trainer.py:TrainerOptimizerChoiceTest:test_fused_adam', 'tests/test_trainer.py:TrainerIntegrationTest:test_no_wd_param_group', 'tests/test_trainer.py:Trai...
['tests/test_trainer.py:TrainerIntegrationTest:test_number_of_steps_in_training', 'tests/test_trainer.py:TrainerIntegrationTest:test_resume_training_with_gradient_accumulation', 'tests/test_trainer.py:TrainerIntegrationPrerunTest:test_training_loss', 'tests/test_trainer.py:TrainerIntegrationTest:test_training_arguments...
null
pytest -v --tb=short --show-capture=no --json-report --json-report-file=test_output.json /testbed/tests/test_trainer.py
Feature
false
false
false
true
7
2
9
false
false
["src/transformers/trainer.py->module->class_definition:Trainer->function_definition:__init__", "examples/pytorch/language-modeling/run_mlm.py->module->function_definition:main->function_definition:preprocess_logits_for_metrics", "examples/pytorch/language-modeling/run_clm.py->module->function_definition:main->function...
huggingface/transformers
15,795
huggingface__transformers-15795
['15739']
8481ecefbd7e701bc061b321cb1695d16eac95a9
diff --git a/src/transformers/hf_argparser.py b/src/transformers/hf_argparser.py --- a/src/transformers/hf_argparser.py +++ b/src/transformers/hf_argparser.py @@ -14,13 +14,13 @@ import dataclasses import json -import re import sys from argparse import ArgumentDefaultsHelpFormatter, ArgumentParser, ArgumentTypeEr...
diff --git a/tests/utils/test_hf_argparser.py b/tests/utils/test_hf_argparser.py --- a/tests/utils/test_hf_argparser.py +++ b/tests/utils/test_hf_argparser.py @@ -88,8 +88,17 @@ def __post_init__(self): self.required_enum = BasicEnum(self.required_enum) +@dataclass +class StringLiteralAnnotationExample: + ...
Add compatibility for Postponed Evaluation of Annotations (PEP 563) Hello, The code says that it will add compatibility for Postponed Evaluation of Annotations ([PEP 563](https://www.python.org/dev/peps/pep-0563/)) when Python 3.9 is released (which already happened on 2020.10.5). Is there any plan to complete this?...
Hey! We don't have to do the bandwidth to do it right now, but we'd welcome contributions! Let me tag this as a first good issue, and let me know if you're interested in taking a stab at it! I'm glad to help with that, maybe it'll take some time. I never contribute here, I'll try to follow the CONTRIBUTING.md, post pro...
2022-02-23 18:01:27+00:00
Python
# Use an official Python runtime as a parent image FROM public.ecr.aws/docker/library/python:3.10-slim RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* # Set the working directory in the container WORKDIR /testbed # Copy the current directory contents into the container at /testbed COPY . ...
['tests/utils/test_hf_argparser.py:HfArgumentParserTest:test_basic', 'tests/utils/test_hf_argparser.py:HfArgumentParserTest:test_with_optional', 'tests/utils/test_hf_argparser.py:HfArgumentParserTest:test_with_list', 'tests/utils/test_hf_argparser.py:HfArgumentParserTest:test_with_default_bool', 'tests/utils/test_hf_ar...
['tests/utils/test_hf_argparser.py:HfArgumentParserTest:test_with_string_literal_annotation']
null
pytest -v --tb=short /testbed/tests/utils/test_hf_argparser.py --junitxml=test-results.xml
Feature
false
false
false
true
2
1
3
false
false
["src/transformers/hf_argparser.py->module->class_definition:HfArgumentParser", "src/transformers/hf_argparser.py->module->class_definition:HfArgumentParser->function_definition:_parse_dataclass_field", "src/transformers/hf_argparser.py->module->class_definition:HfArgumentParser->function_definition:_add_dataclass_argu...
huggingface/transformers
15,843
huggingface__transformers-15843
['15840']
84eaa6acf582206dba33135727dc3bfff05a7e9c
diff --git a/src/transformers/models/wav2vec2/tokenization_wav2vec2.py b/src/transformers/models/wav2vec2/tokenization_wav2vec2.py --- a/src/transformers/models/wav2vec2/tokenization_wav2vec2.py +++ b/src/transformers/models/wav2vec2/tokenization_wav2vec2.py @@ -258,6 +258,8 @@ def convert_tokens_to_string( ""...
diff --git a/tests/pipelines/test_pipelines_automatic_speech_recognition.py b/tests/pipelines/test_pipelines_automatic_speech_recognition.py --- a/tests/pipelines/test_pipelines_automatic_speech_recognition.py +++ b/tests/pipelines/test_pipelines_automatic_speech_recognition.py @@ -29,7 +29,7 @@ ) from transformers.p...
Timestamps in AutomaticSpeechRecognitionPipeline not aligned in sample space ## Environment info <!-- You can run the command `transformers-cli env` and copy-and-paste its output below. Don't forget to fill out the missing fields in that output! --> - `transformers` version: 4.17.0.dev0 - Platform: Linux-5.1...
Hi @lemswasabi , Thanks for the report. We unfortunately cannot drop the stride as when there's batching involved, the tensors cannot be of different shapes. We can however keep track of the stride and fix the timestamps. I'll submit a patch tomorrow probably. Hi @Narsil, Thanks for having a look at it.
2022-02-28 08:09:21+00:00
Python
# Use an official Python runtime as a parent image FROM public.ecr.aws/docker/library/python:3.10-slim RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* # Set the working directory in the container WORKDIR /testbed # Copy the current directory contents into the container at /testbed COPY . ...
['tests/wav2vec2/test_tokenization_wav2vec2.py:Wav2Vec2CTCTokenizerTest:test_training_new_tokenizer_with_special_tokens_change', 'tests/wav2vec2/test_tokenization_wav2vec2.py:Wav2Vec2CTCTokenizerTest:test_truncation_side_in_kwargs', 'tests/wav2vec2/test_tokenization_wav2vec2.py:Wav2Vec2CTCTokenizerTest:test_saving_toke...
['tests/wav2vec2/test_tokenization_wav2vec2.py:Wav2Vec2CTCTokenizerTest:test_word_offsets_from_char_offsets']
null
pytest -v --tb=short --show-capture=no /testbed/tests/pipelines/test_pipelines_automatic_speech_recognition.py /testbed/tests/wav2vec2/test_tokenization_wav2vec2.py --junitxml=test-results.xml
Bug Fix
false
true
false
false
7
0
7
false
false
["src/transformers/pipelines/automatic_speech_recognition.py->module->class_definition:AutomaticSpeechRecognitionPipeline->function_definition:_forward", "src/transformers/pipelines/automatic_speech_recognition.py->module->function_definition:apply_stride", "src/transformers/pipelines/automatic_speech_recognition.py->m...
huggingface/transformers
16,198
huggingface__transformers-16198
['16185']
d35e0c62477d8a99baca3d2ae2e64ec62b64527c
diff --git a/src/transformers/models/clip/configuration_clip.py b/src/transformers/models/clip/configuration_clip.py --- a/src/transformers/models/clip/configuration_clip.py +++ b/src/transformers/models/clip/configuration_clip.py @@ -15,6 +15,8 @@ """ CLIP model configuration""" import copy +import os +from typing...
diff --git a/tests/clip/test_modeling_clip.py b/tests/clip/test_modeling_clip.py --- a/tests/clip/test_modeling_clip.py +++ b/tests/clip/test_modeling_clip.py @@ -588,6 +588,21 @@ def _create_and_check_torchscript(self, config, inputs_dict): self.assertTrue(models_equal) + def test_load_vision_text_...
CLIPVisionModel errors on trying to load openai/clip-vit-base-patch16 `CLIPVisionModel` errors on trying to load [openai/clip-vit-base-patch16](https://huggingface.co/openai/clip-vit-base-patch16), which was added to HF (using `CLIPModel` for loading `patch16` as the documentation example for that repo works without er...
Thank you for reporting this! Looking into it. Found the issue, `CLIPVisionConfig` does not correctly copy the vision arguments from the `CLIPConfig`. It uses the default values., which are defined for the patch32 model. A quick fix to get this working for now is to load `CLIPConfig`, retrieve the `vision_config` fr...
2022-03-16 13:57:01+00:00
Python
# Use an official Python runtime as a parent image FROM public.ecr.aws/docker/library/python:3.10-slim RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* # Set the working directory in the container WORKDIR /testbed # Copy the current directory contents into the container at /testbed COPY . ...
['tests/clip/test_modeling_clip.py:CLIPTextModelTest:test_torch_fx', 'tests/clip/test_modeling_clip.py:CLIPModelTest:test_determinism', 'tests/clip/test_modeling_clip.py:CLIPTextModelTest:test_head_pruning_integration', 'tests/clip/test_modeling_clip.py:CLIPModelTest:test_inputs_embeds', 'tests/clip/test_modeling_clip....
['tests/clip/test_modeling_clip.py:CLIPModelTest:test_load_vision_text_config']
null
python -m pytest -v --tb=short --show-capture=no /testbed/tests/clip/test_modeling_clip.py --junitxml=test-results.xml
Bug Fix
false
false
false
true
2
2
4
false
false
["src/transformers/models/clip/configuration_clip.py->module->class_definition:CLIPVisionConfig->function_definition:from_pretrained", "src/transformers/models/clip/configuration_clip.py->module->class_definition:CLIPTextConfig", "src/transformers/models/clip/configuration_clip.py->module->class_definition:CLIPTextConf...
huggingface/transformers
16,661
huggingface__transformers-16661
['16660', '16660']
33cb21150c034aae0f11b9ab6e38752a7c6d1784
diff --git a/src/transformers/tokenization_utils_base.py b/src/transformers/tokenization_utils_base.py --- a/src/transformers/tokenization_utils_base.py +++ b/src/transformers/tokenization_utils_base.py @@ -1150,35 +1150,35 @@ def additional_special_tokens_ids(self) -> List[int]: @bos_token_id.setter def bo...
diff --git a/tests/byt5/test_tokenization_byt5.py b/tests/byt5/test_tokenization_byt5.py --- a/tests/byt5/test_tokenization_byt5.py +++ b/tests/byt5/test_tokenization_byt5.py @@ -332,3 +332,41 @@ def test_convert_tokens_to_string_format(self): string = tokenizer.convert_tokens_to_string(tokens) ...
Tokenizers setter of ids of special tokens don't work ## Environment info <!-- You can run the command `transformers-cli env` and copy-and-paste its output below. Don't forget to fill out the missing fields in that output! --> - `transformers` version: - Platform: - Python version: - PyTorch version (GPU?)...
2022-04-08 01:31:48+00:00
Python
# Use an official Python runtime as a parent image FROM public.ecr.aws/docker/library/python:3.10-slim RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* # Set the working directory in the container WORKDIR /testbed # Copy the current directory contents into the container at /testbed COPY . ...
['tests/byt5/test_tokenization_byt5.py:ByT5TokenizationTest:test_is_fast', 'tests/canine/test_tokenization_canine.py:CanineTokenizationTest:test_special_tokens_initialization_with_non_empty_additional_special_tokens', 'tests/canine/test_tokenization_canine.py:CanineTokenizationTest:test_save_sentencepiece_tokenizer', '...
['tests/byt5/test_tokenization_byt5.py:ByT5TokenizationTest:test_tokenizers_common_ids_setters', 'tests/canine/test_tokenization_canine.py:CanineTokenizationTest:test_tokenizers_common_ids_setters']
null
pytest -v --tb=short --show-capture=no /testbed/tests/byt5/test_tokenization_byt5.py /testbed/tests/canine/test_tokenization_canine.py /testbed/tests/test_tokenization_common.py
Bug Fix
false
true
false
false
8
0
8
false
false
["src/transformers/tokenization_utils_base.py->module->class_definition:SpecialTokensMixin->function_definition:additional_special_tokens_ids", "src/transformers/tokenization_utils_base.py->module->class_definition:SpecialTokensMixin->function_definition:eos_token_id", "src/transformers/tokenization_utils_base.py->modu...
huggingface/transformers
17,082
huggingface__transformers-17082
['15735']
d76d2a2af7babf73d6c5bc53facaccab05e912f8
diff --git a/src/transformers/convert_slow_tokenizer.py b/src/transformers/convert_slow_tokenizer.py --- a/src/transformers/convert_slow_tokenizer.py +++ b/src/transformers/convert_slow_tokenizer.py @@ -407,7 +407,7 @@ def converted(self) -> Tokenizer: tokenizer.decoder = decoders.ByteLevel() tokenize...
diff --git a/tests/models/deberta/test_tokenization_deberta.py b/tests/models/deberta/test_tokenization_deberta.py --- a/tests/models/deberta/test_tokenization_deberta.py +++ b/tests/models/deberta/test_tokenization_deberta.py @@ -88,6 +88,12 @@ def test_full_tokenizer(self): input_bpe_tokens = [0, 1, 2, 15, 1...
`DebertaTokenizer` always assigns token type ID 0 ## Environment info - `transformers` version: 4.16.2 - Platform: Linux-5.15.13-051513-generic-x86_64-with-glibc2.34 - Python version: 3.9.7 - PyTorch version (GPU?): 1.9.0+cu111 (True) - Tensorflow version (GPU?): not installed (NA) - Flax version (CPU?/GPU?/TPU...
Looks like this is the change that introduced this behavior. https://github.com/huggingface/transformers/commit/57c1749efabf5c86bcfd4e4e078567a63a7c8a81#diff-7ff4f35b72b8541520ea52c851b55bc2682da83e01e6e0ceeb5289f7dd2f0620R217 Good catch! Would you like to open a PR to fix this?
2022-05-04 11:51:41+00:00
Python
# Use an official Python runtime as a parent image FROM public.ecr.aws/docker/library/python:3.10-slim RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* # Set the working directory in the container WORKDIR /testbed # Copy the current directory contents into the container at /testbed COPY . ...
['tests/models/deberta/test_tokenization_deberta.py:DebertaTokenizationTest:test_special_tokens_map_equal', 'tests/models/deberta/test_tokenization_deberta.py:DebertaTokenizationTest:test_max_length_equal', 'tests/models/deberta/test_tokenization_deberta.py:DebertaTokenizationTest:test_fast_only_inputs', 'tests/models/...
['tests/models/deberta/test_tokenization_deberta.py:DebertaTokenizationTest:test_token_type_ids']
null
pytest -v --tb=short --show-capture=no --json-report --json-report-file=test_output.json /testbed/tests/models/deberta/test_tokenization_deberta.py
Bug Fix
false
true
false
false
3
0
3
false
false
["src/transformers/models/deberta/tokenization_deberta_fast.py->module->class_definition:DebertaTokenizerFast->function_definition:create_token_type_ids_from_sequences", "src/transformers/models/deberta/tokenization_deberta.py->module->class_definition:DebertaTokenizer->function_definition:create_token_type_ids_from_se...
huggingface/transformers
18,851
huggingface__transformers-18851
['18839']
f719c0377f7f97c4bf9b6b54de209f4aad0aef4b
diff --git a/src/transformers/generation_beam_search.py b/src/transformers/generation_beam_search.py --- a/src/transformers/generation_beam_search.py +++ b/src/transformers/generation_beam_search.py @@ -259,7 +259,7 @@ def process( continue if beam_indices is not None: ...
diff --git a/tests/generation/test_generation_beam_search.py b/tests/generation/test_generation_beam_search.py --- a/tests/generation/test_generation_beam_search.py +++ b/tests/generation/test_generation_beam_search.py @@ -172,7 +172,7 @@ def cut_expected_tensor(tensor): input_ids[correct_idx].tolist()...
BUG for beam_indices from model.generate() ### System Info - `transformers` version: 4.22.0.dev0 - Platform: Linux-5.8.0-51-generic-x86_64-with-glibc2.10 - Python version: 3.8.13 - Huggingface_hub version: 0.8.1 - PyTorch version (GPU?): 1.12.1+cu113 (True) - Tensorflow version (GPU?): not installed (NA) - Fla...
Also, could you please check this ? https://huggingface.co/proxy/discuss.huggingface.co/t/larger-sum-logits-larger-sum-probability/22358 Also cc @gante for `generate` :)
2022-09-01 11:11:16+00:00
Python
# Use an official Python runtime as a parent image FROM public.ecr.aws/docker/library/python:3.10-slim RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* # Set the working directory in the container WORKDIR /testbed # Copy the current directory contents into the container at /testbed COPY . ...
['tests/generation/test_generation_beam_search.py:ConstrainedBeamSearchTest:test_constrained_beam_hypotheses', 'tests/generation/test_generation_beam_search.py:ConstrainedBeamSearchTest:test_constrained_beam_scorer_finalize', 'tests/generation/test_generation_beam_search.py:BeamSearchTest:test_beam_hypotheses', 'tests/...
['tests/generation/test_generation_beam_search.py:BeamSearchTest:test_beam_scorer_update']
null
pytest -v --tb=short --show-capture=no /testbed/tests/generation/test_generation_beam_search.py --junitxml=test-results.xml
Bug Fix
false
true
false
false
1
0
1
true
false
["src/transformers/generation_beam_search.py->module->class_definition:BeamSearchScorer->function_definition:process"]
huggingface/transformers
19,590
huggingface__transformers-19590
['19528']
3d320c78c32334f66d72d57ff6322d9e3a7dc00b
diff --git a/src/transformers/models/bert/tokenization_bert_tf.py b/src/transformers/models/bert/tokenization_bert_tf.py --- a/src/transformers/models/bert/tokenization_bert_tf.py +++ b/src/transformers/models/bert/tokenization_bert_tf.py @@ -3,6 +3,7 @@ import tensorflow as tf +from tensorflow_text import BertTok...
diff --git a/tests/models/bert/test_tokenization_bert_tf.py b/tests/models/bert/test_tokenization_bert_tf.py --- a/tests/models/bert/test_tokenization_bert_tf.py +++ b/tests/models/bert/test_tokenization_bert_tf.py @@ -40,8 +40,15 @@ class BertTokenizationTest(unittest.TestCase): def setUp(self): super()....
Allow TFBertTokenizer to use Tensorflow text BertTokenizer (and not FastBertTokenizer) to make it servable by TF Serving ### Feature request I would like to serve a bundle of Tokenizer + Model on TF Serving, but can't do it because TF Serving still have no support for TF FastBertTokenizer annd FastBertNormalize oper...
null
2022-10-13 18:00:22+00:00
Python
# Use an official Python runtime as a parent image FROM public.ecr.aws/docker/library/python:3.10-slim RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* # Set the working directory in the container WORKDIR /testbed # Copy the current directory contents into the container at /testbed COPY . ...
[]
['tests/models/bert/test_tokenization_bert_tf.py:BertTokenizationTest:test_output_equivalence']
null
pytest -v --tb=short --show-capture=no --junitxml=test-results.xml /testbed/tests/models/bert/test_tokenization_bert_tf.py
Feature
false
false
false
true
1
2
3
false
false
["src/transformers/models/bert/tokenization_bert_tf.py->module->class_definition:TFBertTokenizer->function_definition:unpaired_tokenize", "src/transformers/models/bert/tokenization_bert_tf.py->module->class_definition:TFBertTokenizer", "src/transformers/models/bert/tokenization_bert_tf.py->module->class_definition:TFBe...
huggingface/transformers
19,657
huggingface__transformers-19657
['19289']
d2e5b19b821f0cf43c7cf4f01be5faa1cb20aa64
diff --git a/src/transformers/pipelines/base.py b/src/transformers/pipelines/base.py --- a/src/transformers/pipelines/base.py +++ b/src/transformers/pipelines/base.py @@ -836,13 +836,13 @@ def transform(self, X): """ Scikit / Keras interface to transformers' pipelines. This method will forward to __ca...
diff --git a/tests/pipelines/test_pipelines_common.py b/tests/pipelines/test_pipelines_common.py --- a/tests/pipelines/test_pipelines_common.py +++ b/tests/pipelines/test_pipelines_common.py @@ -423,6 +423,56 @@ def test_unbatch_attentions_hidden_states(self): self.assertEqual(len(outputs), 20) +class Pipe...
Call to pipeline.predict() fails ### System Info - `transformers` version: 4.21.1 - Platform: macOS-12.5.1-arm64-arm-64bit - Python version: 3.9.12 - Huggingface_hub version: 0.2.1 - PyTorch version (GPU?): 1.12.1 (False) - Tensorflow version (GPU?): 2.9.2 (False) - Flax version (CPU?/GPU?/TPU?): not installed...
null
2022-10-16 15:12:03+00:00
Python
# Use an official Python runtime as a parent image FROM public.ecr.aws/docker/library/python:3.10-slim RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* # Set the working directory in the container WORKDIR /testbed # Copy the current directory contents into the container at /testbed COPY . ...
['tests/pipelines/test_pipelines_common.py:CommonPipelineTest:test_unbatch_attentions_hidden_states', 'tests/pipelines/test_pipelines_common.py:CommonPipelineTest:test_check_task', 'tests/pipelines/test_pipelines_common.py:PipelinePadTest:test_pipeline_padding', 'tests/pipelines/test_pipelines_common.py:CustomPipelineT...
['tests/pipelines/test_pipelines_common.py:PipelineScikitCompatTest:test_pipeline_predict_pt', 'tests/pipelines/test_pipelines_common.py:PipelineScikitCompatTest:test_pipeline_transform_pt']
null
pytest -v --tb=short --show-capture=no --json-report-file=test_output.json /testbed/tests/pipelines/test_pipelines_common.py
Bug Fix
false
true
false
false
2
0
2
false
false
["src/transformers/pipelines/base.py->module->class_definition:Pipeline->function_definition:transform", "src/transformers/pipelines/base.py->module->class_definition:Pipeline->function_definition:predict"]
huggingface/transformers
20,136
huggingface__transformers-20136
['18748']
fda125638f53febc059cb67f9d7abce058a8f44f
diff --git a/docs/source/en/model_doc/owlvit.mdx b/docs/source/en/model_doc/owlvit.mdx --- a/docs/source/en/model_doc/owlvit.mdx +++ b/docs/source/en/model_doc/owlvit.mdx @@ -80,6 +80,8 @@ This model was contributed by [adirik](https://huggingface.co/adirik). The origi [[autodoc]] OwlViTFeatureExtractor - __cal...
diff --git a/tests/models/owlvit/test_modeling_owlvit.py b/tests/models/owlvit/test_modeling_owlvit.py --- a/tests/models/owlvit/test_modeling_owlvit.py +++ b/tests/models/owlvit/test_modeling_owlvit.py @@ -19,7 +19,6 @@ import os import tempfile import unittest -from typing import Dict, List, Tuple import numpy ...
Add image-guided object detection support to OWL-ViT Hi, The [OWL-ViT](https://huggingface.co/docs/transformers/model_doc/owlvit) model is an open-vocabulary model that can be used for both zero-shot text-guided (supported) and one-shot image-guided (not supported) object detection. It'd be great to add support ...
I think it would be a great addition, especially as it doesn't seem to be too much work to add. I'm guessing for the processor, and your description, the call signature would look something like this: `def __call__(self, text=None, query_image=None, images=None, padding="max_length", return_tensors="np", **kwargs):...
2022-11-09 11:18:55+00:00
Python
# Use an official Python runtime as a parent image FROM public.ecr.aws/docker/library/python:3.10-slim RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* # Set the working directory in the container WORKDIR /testbed # Copy the current directory contents into the container at /testbed COPY . ...
['tests/models/owlvit/test_modeling_owlvit.py:OwlViTVisionModelTest:test_correct_missing_keys', 'tests/models/owlvit/test_modeling_owlvit.py:OwlViTTextModelTest:test_problem_types', 'tests/models/owlvit/test_modeling_owlvit.py:OwlViTModelTest:test_model_main_input_name', 'tests/models/owlvit/test_modeling_owlvit.py:Owl...
['tests/models/owlvit/test_processor_owlvit.py:OwlViTProcessorTest:test_processor_case2']
null
pytest -v --tb=short --show-capture=no --json-report --json-report-file=test-results.json --report-log=pytest-log.jsonl /testbed/tests/models/owlvit/test_modeling_owlvit.py /testbed/tests/models/owlvit/test_processor_owlvit.py
Feature
false
false
false
true
31
6
37
false
false
["src/transformers/models/owlvit/processing_owlvit.py->module->class_definition:OwlViTProcessor->function_definition:post_process_image_guided_detection", "src/transformers/models/owlvit/modeling_owlvit.py->module->class_definition:OwlViTModel->function_definition:forward", "src/transformers/models/owlvit/processing_ow...
huggingface/transformers
21,345
huggingface__transformers-21345
['21344']
92ce53aab859012f7714dae6d6fce7a7d701e75f
diff --git a/src/transformers/activations.py b/src/transformers/activations.py --- a/src/transformers/activations.py +++ b/src/transformers/activations.py @@ -25,6 +25,27 @@ logger = logging.get_logger(__name__) +class PytorchGELUTanh(nn.Module): + """ + A fast C implementation of the tanh approximation of t...
diff --git a/tests/utils/test_activations.py b/tests/utils/test_activations.py --- a/tests/utils/test_activations.py +++ b/tests/utils/test_activations.py @@ -51,6 +51,7 @@ def test_get_activation(self): get_activation("gelu_fast") get_activation("gelu_new") get_activation("gelu_python") + ...
Add the pytorch implementation of the OpenAI GeLU approximation ### Feature request Add support for the pytorch implementation of OpenAI's approximation of the GeLU function, added in pytorch 1.12. This implementation is equivalent to `gelu_new` or `gelu_fast` but much faster. It can come as a separate activation fu...
null
2023-01-27 23:00:12+00:00
Python
# Use an official Python runtime as a parent image FROM public.ecr.aws/docker/library/python:3.10-slim RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* # Set the working directory in the container WORKDIR /testbed # Copy the current directory contents into the container at /testbed COPY . ...
['tests/utils/test_activations.py:TestActivations:test_gelu_versions', 'tests/utils/test_activations.py:TestActivations:test_activations_are_distinct_objects', 'tests/utils/test_activations.py:TestActivations:test_gelu_10']
['tests/utils/test_activations.py:TestActivations:test_get_activation']
null
pytest -v --tb=short --show-capture=no /testbed/tests/utils/test_activations.py --junitxml=test-results.xml
Feature
false
false
false
true
1
2
3
false
false
["src/transformers/activations.py->module->class_definition:PytorchGELUTanh", "src/transformers/activations.py->module->class_definition:PytorchGELUTanh->function_definition:forward", "src/transformers/activations.py->module->class_definition:PytorchGELUTanh->function_definition:__init__"]
huggingface/transformers
21,768
huggingface__transformers-21768
['21689']
99ba36e72fe7d1528e2c6572373a425967ee544f
diff --git a/src/transformers/optimization.py b/src/transformers/optimization.py --- a/src/transformers/optimization.py +++ b/src/transformers/optimization.py @@ -16,6 +16,7 @@ import math import warnings +from functools import partial from typing import Callable, Iterable, Optional, Tuple, Union import torch @...
diff --git a/tests/optimization/test_optimization.py b/tests/optimization/test_optimization.py --- a/tests/optimization/test_optimization.py +++ b/tests/optimization/test_optimization.py @@ -166,5 +166,21 @@ def test_schedulers(self): ) scheduler = scheduler_func(self.optimizer, **kwargs) + ...
Make schedulers picklable ### Feature request Change lambda functions passed to `LambdaLR` in `get_constant_schedule`, `get_constant_schedule_with_warmup`, `get_linear_schedule_with_warmup`, `get_cosine_schedule_with_warmup`, `get_cosine_with_hard_restarts_schedule_with_warmup` and `get_polynomial_decay_schedule_with_...
Thanks for explaining your issue in depth, and happy to review a PR!
2023-02-23 19:13:53+00:00
Python
# Use an official Python runtime as a parent image FROM public.ecr.aws/docker/library/python:3.10-slim RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* # Set the working directory in the container WORKDIR /testbed # Copy the current directory contents into the container at /testbed COPY . ...
['tests/optimization/test_optimization.py:OptimizationTest:test_adam_w', 'tests/optimization/test_optimization.py:OptimizationTest:test_adafactor']
['tests/optimization/test_optimization.py:ScheduleInitTest:test_schedulers']
null
pytest -v --tb=short --show-capture=no /testbed/tests/optimization/test_optimization.py --junitxml=test-results.xml
Feature
false
true
false
false
19
0
19
false
false
["src/transformers/optimization.py->module->function_definition:get_cosine_schedule_with_warmup->function_definition:lr_lambda", "src/transformers/optimization.py->module->function_definition:get_cosine_with_hard_restarts_schedule_with_warmup", "src/transformers/optimization.py->module->function_definition:get_constant...