WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Choose one: is this a bug report or feature request? Bug

Given a rest property inside an object destructuring, Babel generates member expressions to access the inner object incorrectly.

Input Code

Gist: https://gist.github.com/also/578b123c2be5aecc53f7fd79c9547313

Repl: https://babeljs.io/repl/#?babili=false&evaluate=true&lineWrap=false&presets=stage-3&targets=&browsers=&builtIns=false&debug=false&code=const%20o%20%3D%20%7Ba%3A%20%7Bb%3A%20%7Bc%3A%20%7Bd%3A%20%7Bx%3A%201%2C%20y%3A%202%2C%20z%3A%203%7D%7D%7D%7D%7D%3B%0A%0Afunction%20works()%20%7B%0A%20%20const%20%7Ba%3A%20%7Bb%3A%20%7Bc%3A%20%7Bd%3A%20temp%7D%7D%7D%7D%20%3D%20o%3B%0A%20%20const%20%7Bx%2C%20y%2C%20...rest%7D%20%3D%20temp%3B%0A%20%20return%20rest%3B%0A%7D%0A%0Afunction%20broken()%20%7B%0A%20%20const%20%7Ba%3A%20%7Bb%3A%20%7Bc%3A%20%7Bd%3A%20%7Bx%2C%20y%2C%20...rest%7D%7D%7D%7D%7D%20%3D%20o%3B%0A%20%20return%20rest%3B%0A%7D%0A%0Aconsole.log(works())%3B%0Aconsole.log(broken())%3B%0A

Note that when testing in the repl, the bug is only apparent when es2015 is disabled, because es2015 compiles away the destructuring.

const {a: {b: {c: {d: {x, y, ...rest}}}}} = o;

Babel Configuration (.babelrc, package.json, cli command)

{
"plugins": [
"transform-object-rest-spread"
]
}

Expected Behavior

Babel should apply the _objectWithoutProperties helper to o.a.b.c.d.

Current Behavior

The generated member expressions o.d.c.b.a for the destructuring are backwards:

const { a: { b: { c: { d: { x, y } } } } } = o,
rest = _objectWithoutProperties(o.d.c.b.a, ["x", "y"]);

Issue 2:
Choose one: is this a bug report or feature request?

Bug

Input Code

https://github.com/daerion/babel-rest-spread-bug

const defunct = {
outer: {
inner: {
three: 'three',
four: 'four'
}
}
}

const { outer: { inner: { three, ...other } } } = defunct

Babel Configuration (.babelrc, package.json, cli command)

{
"plugins": [
[ "transform-object-rest-spread" ]
]
}

Expected Behavior

Using the above example, two constants should be assigned:

console.log('three: %s', three) // 'three'
console.dir(other) // { four: 'four' }

Or, more explicitly, other should be an object containing all values from defunct.outer.inner except for three.

Current Behavior

Transpiling the above code results in the following (declarations omitted for brevity, see repository linked above for full source):

const { outer: { inner: { three } } } = defunct,
other = _objectWithoutProperties(defunct.inner.outer, ['three']);

I.e. instead of constructing other from defunct.outer.inner, babel will attempt to use defunct.inner.outer, which is undefined. This happens also when nesting objects even further (again, see linked repo).

Your Environment

software
version(s)

Babel
6.24.1

transform-object-rest-spread
6.23.0

node
7.9.0 and 6.10.2

npm
4.2.0 and 3.10.10

Operating System
Ubuntu 16.10
Issue 1:
I want my keyboard to able to write number without any decimal points. How to achieve it? I've tried giving either true or false in decimal in TextInputType.numberWithOptions but didn't work.

Flutter doctor info.

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel dev, v0.5.7, on Mac OS X 10.13.6 17G65, locale en-KR)
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 9.4.1)
[✓] Android Studio (version 3.1)
[!] VS Code (version 1.25.1)
[✓] Connected devices (3 available)

! Doctor found issues in 1 category.

Issue 2:
Bug

I am using keyboardType: TextInputType.number

And the docs say that it doesn't include decimal point. But I am seeing decimal, tested on emulator, simulator and iPhone 6s Real device.

I even tried the other way

keyboardType: TextInputType.numberWithOptions(decimal: false),

That didn't help either.

So, it's a bug that needs to be fixed.

Flutter doctor

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v1.0.0, on Mac OS X 10.14 18A389, locale en-GB)
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
[✓] Android Studio (version 3.2)
[✓] Connected device (1 available)

• No issues found!

Devices

Simulator (12.1.0)

Emulator (API 27)

iPhone 6s (12.0.1)

All devices are using default keyboard app provided by their platform
Issue 1:
It appears that the Translation Component is present, but failing to operate properly. For example if I intentionally throw an exception, I get hundreds of rows saying WARNING - Translation not found.

this was not true before the upgrade to 2.6.x

this is in use in the Zikula project and in complete dev mode at the moment. We are also have composer issues since the changeover to 2.6.x

any help is appreciated.

ping @Guite @cmfcmf

Issue 2:
The PropertyPath class currently makes a list of assumptions:

1. Objects are treated by reference

When the path author.name is modified, the following methods are called:

getAuthor()
setName() // on the author

Note that setAuthor() is not called.

2. Adders and removers are used if they exist

If a collection is written into the path tags and the methods addTag() and removeTag() exist, these are used to merge into the old collection instead of accessing the old collection directly via its ArrayAccess interface. The following methods are called:

getTags()
addTag(...) // instead of $tags[] = ...
removeTag(...) // instead of unset($tags[...])

3. Adders and removers follow English singularization rules

If a property path is called children, the guessed adders and removers are addChild() and removeChild().

Limitations

The above assumptions do not hold in all applications:

Sometimes setters should be called (no by-reference handling, see #6965)

Sometimes elements should be written directly into collections even though adders/removers exist (#4158, #5257)

For other languages than English, singularization does not work

So, these assumptions should be made configurable. The challenge is how to build this API in an intuitive way.

Alternative 1: Option arrays

The first alternative is to pass the options in an array separately from the property path. For example:

Path: artikel.stichwörter (= article.tags)
Options: array(
'artikel' => array(
'by_reference' => false,
),
'artikel.stichwörter' => array(
'use_adders' => false,
// or
'singular' => 'stichwort',
),
)

Alternative 2: Path flags

The second alternative is to build the configuration options into the path:

artikel{!byref}.stichwörter{!adders}
// or
artikel{!byref}.stichwörter{singular=stichwort}

Alternative 3: Your suggestions

Do you have any other ideas? What approach do you prefer?
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Hi,

I tried this example : with-componentdidcatch

Basically, it's using componentDidCatch in the new _app.js. It intercepts the errors and does a console.log when it intercepts one :

https://github.com/zeit/next.js/blob/02bcfb21c81bbc0f76ec8af22d4197952bd9bc15/examples/with-componentdidcatch/pages/_app.js#L3-L9

Expected Behavior

I see CUSTOM ERROR HANDLING in the server logs

Current Behavior

I don't see CUSTOM ERROR HANDLING in the logs

it's not in server logs

it's not in client logs

Steps to Reproduce (for bugs)

npx create-next-app --example with-componentdidcatch with-componentdidcatch-app
cd with-componentdidcatch-app
yarn dev

Context

The bigger picture here is trying to use error boundaries with next.js.

Your Environment

Tech
Version

next
6.0.0

node
9.8.0

Issue 2:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

Normal start of nextjs

Current Behavior

I can't start my server after a update (npm update), I only get this error-message:

error in ./~/next/dist/pages/_document.js?entry

Module build failed: Error: Cannot find module 'string-hash' (While processing preset: "/../node_modules/next/dist/server/build/babel/preset.js")

Steps to Reproduce (for bugs)

install nextjs (2.4.6) everything works fine

update to the latest version, i get the error-message and the app won't start

Context

Your Environment

Tech
Version

next
2.4.9

node
7.9.0

OS
ubuntu

npm- dependencies:

"async": "^2.5.0",
"boom": "^4.3.1",
"chart.js": "^2.5.0",
"cookie": "^0.3.1",
"es6-promise": "^4.1.1",
"form-data": "^2.1.4",
"good": "^7.1.0",
"h2o2": "^5.4.0",
"hapi": "^16.1.1",
"hapi-auth-basic": "^4.2.0",
"immutability-helper": "^2.3.0",
"joi-browser": "^10.0.6",
"lodash": "^4.17.4",
"log4js": "^1.1.1",
"moment": "^2.18.1",
"next": "2.4.6",
"next-redux-saga": "^1.0.1",
"next-redux-wrapper": "^1.2.0",
"qs": "^6.5.0",
"rc-pagination": "^1.9.8",
"react": "^15.6.1",
"react-async-script-loader": "^0.2.2",
"react-chartjs2": "^1.1.1",
"react-countup": "^2.0.3",
"react-cropper": "^0.12.0",
"react-cropperjs": "^1.2.5",
"react-datepicker": "^0.46.0",
"react-datetime": "^2.8.10",
"react-dom": "^15.6.1",
"react-dropzone": "^3.13.3",
"react-image-crop": "^2.0.3",
"react-no-ssr": "^1.1.0",
"react-notification-system": "^0.2.13",
"react-redux": "^5.0.5",
"react-swal": "^2.0.0",
"redux": "^3.7.2",
"redux-actions": "^2.2.1",
"redux-devtools-extension": "^2.13.2",
"redux-saga": "0.15.4",
"redux-thunk": "^2.2.0",
"request": "^2.81.0",
"request-promise": "^4.2.0",
"semantic-ui-react": "^0.67.1",
"socket.io": "^2.0.3",
"socket.io-client": "^2.0.3",
"superagent": "^3.5.1",
"tai-password-strength": "^1.1.0",
"wreck": "^12.2.0"
Issue 1:
Steps to reproduce and a minimal demo of the problem

http://plnkr.co/edit/QcbOZCLEMxDqB9Hal0ef?p=preview

Current behavior

Just press a in the search field to get a list of options and then press down key. The selected result is constantly reset. Selecting one will keep the single result open.

Expected/desired behavior

Here's a version of the plunkr without angular2-polyfills.js to show the difference.

http://plnkr.co/edit/FIygVljA8bIWaoAFehDr?p=preview

Any insights in why just including angular2-polyfills.js causes this inwanted change would be great. At first I thought it was an issue which could be solved by ngZone.runOutsideAngular but that was before I narrowed it down to simply including angular2-polyfills.js

Issue 2:
I'm submitting a ... (check one with "x")

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior

:host(selector):before rules are rewritten to selector:before[_nghost_xyz_1], which never matches anything.

Note that :host:before without a selector was fixed in #12171 (issue #12165), it is now rewritten to [_nghost_xyz_1]:before.

Expected behavior

:host(.foo):before should match the :before of :host if it matches .foo. This plunkr contains a working example in native ShadowDOM.

In this case I'd expect the :host(selector):before rule to be rewritten to selector[_nghost_xyz_1]:before.

Minimal reproduction of the problem with instructions

Use any :host(selector):before CSS selector. Example found here (slightly modified the plunkr @krassx posted in #12165)

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

Angular version:

2.1.2

next (npm i @angular/{common,compiler,core,forms,http,platform-browser,platform-browser-dynamic}@next)

Browser: all

Language: all
Issue 1:
It would be useful to have auto complete for the commandand when fields in the keybindings.json.

I don't think this would be too hard for when as as far as I understand extensions cannot add new events. However commands may be slightly trickier as you would have to incorporate commands from extensions, but these are registered anyway so hopefully would not be a show stopper.

Thanks

Issue 2:
VSCode Version: 1.1.1

OS Version:RHEL 7 (kernel 3.10.0)

Steps to Reproduce:

Open a repository and keep a JS file open overnight

Next morning you'll get the "Not responding, Reopen" message

Clicking reopen doesn't help. I actually have to shut down and restart again. This is the VSCode Linux version - to be clear.
Issue 1:
System info

Playwright Version: [v1.35]

Operating System: [Windows 11]

Browser: [Chromium]

Other info:

Source code

I provided exact source code that allows reproducing the issue locally.

import time
import re
import asyncio
from playwright.async_api import async_playwright

def handle_request(req, ):
global code
url_regex = re.compile(r"xfinitydigitalhome://auth\?")
try:
url = req.headers['location']
print('response url:' + req.url)
if url_regex.search(url):
print("Request URL:", url)

regexp_1 = r'&code=(.*)'
match_2 = re.search(regexp_1, url)
code = match_2.group(1)
print("code")
print(code)
return code
except:
pass

async def main():
async with async_playwright() as pw:
url = 'https://xerxes-sub.xerxessecure.com/xerxes-ctrl/oauth/authorize?redirect_uri=xfinitydigitalhome%3A%2F%2Fauth&client_id=xfinity-digital-home&response_type=code&prompt=select_account&state=pcmI1pOdQC-sF-b2XSyNhg&code_challenge=plBIQIkEAuywK76tE4uTPI7yGIU0OTOjuvQHnlB7c3Q&code_challenge_method=S256&rm_hint=true&partner_id=comcast&mso_partner_hint=true'

browser = await pw.chromium.launch(headless=False)
context = await browser.new_context(
proxy={
'server': 'http://sample.com:port', # replace with your proxy server and port
'username': 'username', # replace with your username
'password': 'passwd'
}, ignore_https_errors=True)
page = await context.new_page()
page.set_default_navigation_timeout(0)
page.on("response", handle_request)
print('goto: ' + url)
await page.goto(url,
timeout=0, wait_until="networkidle")
await page.wait_for_selector('#user', timeout=30000)
await page.type('#user', username)
print('type username')
await page.click('#sign_in')
time.sleep(60)
await browser.close()

asyncio.get_event_loop().run_until_complete(main())

Expected

All the network responses should be intercepted in handle_request

Actual

I set a proxy to playwright as the code that I have listed above, it works, but not all the response are intercepted, some of the requests just weren't shown, I have also tried using page.route, it has the same issue too. I have no idea why, it works fine without a proxy.

I am %100 sure some of the requests are sent by the browser, I checked the network tab of Chromium, I saw the requests, but not intercepted by playwright.

Issue 2:
Context:

Playwright Version:1.29.1

Operating System: Windows

Node.js version:v16.13.0

Browser: [e.g. All, Chromium, Firefox, WebKit] WebKit

Extra: [any specific details about your environment]

Pre-requisites:

Create a copy of example.spec.ts and just rename the test name

Create another test in second file (I have just copied the same test and updated the test name)

Steps to reproduce:

Select Default Profile as Webkit

Click on Run all icon

Notice that, first test passed but second and third tests failed

Error details:
Issue 1:
Environment

Windows build number: [run "ver" at a command prompt]
PowerToys version:
PowerToy module for which you are reporting the bug (if applicable):

Steps to reproduce

Expected behavior

Actual behavior

Screenshots

Issue 2:
📝 In the FancyZone editor I would like to see the dimensions of each zone as they are resized.

While resizing each zone I would like to see the current dimensions in the center of each. Stickie points at standard resolutions (VGA, FHD, etc) or dimensions would also be a nice feature.

If you'd like to see this feature implemented, add a 👍 reaction to this post.
Issue 1:
With Firebase Hosting Example

Hi guys, when i deploy with-firebase-hosting example to firebase hosting, it has error "Internal Server Error"

Error Log:

Can anyone help me?

Thanks in advance!

Issue 2:
With Firebase Hosting Example

Hi guys, when i deploy with-firebase-hosting example to firebase hosting, it has error "Internal Server Error"

Error Log:

Can anyone help me?

Thanks in advance!
Issue 1:
Description

sklearn/utils/multiclass.type_of_target(y) returns different results for practically identical 'y' values when y a list and when y is an numpy array.

Steps/Code to Reproduce

from sklearn.utils import multiclass
import numpy as np
x = [[1, 1], [0, 1]]
y = np.asarray(x)
a = multiclass.type_of_target(x)
b = multiclass.type_of_target(y)
print(a, b)
assert a == b

Expected Results

'multilabel-indicator, multilabel-indicator'

No assertion error

Actual Results

'multiclass-multioutput, multilabel-indicator'

Throws assertion error

AssertionError

System Info

System:
python: 3.6.7rc2 (v3.6.7rc2:4893861ab5, Oct 13 2018, 05:25:29) [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)]
executable: /Users/maxwellaladago/Documents/pub/sklearn-dev/venv/bin/python
machine: Darwin-18.7.0-x86_64-i386-64bit
Python deps:
pip: 19.2.2
setuptools: 39.1.0
sklearn: 0.22.dev0
numpy: 1.17.0
scipy: 1.3.1
Cython: 0.29.13
pandas: None
matplotlib: None
joblib: 0.13.2

Will you consider a PR for this? Also, can you clarify what is_multilable's behaviour should be? The documentation says it Check if y is in a multilabel format but it seems to be checking whether y is a multi_label_indicator except that y is not restricted to be either 0 or 1.

Issue 2:
Multilabel Y is currently represented as a 2d np.ndarray or scipy.sparse matrix of binary indicators. We explicitly forbid a list of lists or list of arrays, even if it represents the same binary indicators, in sklearn.utils.multiclass.type_of_target etc. This prohibition is for legacy reasons (lists of lists used to indicate multilabel data with different semantics) and we should be able to safely support non-array array-likes as multilabel representations.

Everywhere that multilabel is supported (metrics, estimators), this format should be too.

Derived from #5959.
Issue 1:
On Windows 32 bit, current Python 2.7.8 from Python.org Python, numpy 1.9.1 superpack installer, scipy 0.14.0 superpack installer.

I run the following test.py Python script from the shell:

import scipy.sparse._sparsetools
import sys
sys.exit(2)

with c:\Python27\python.exe test.py. I check the return code with echo %errorlevel% and get 0, when I am expecting 2. I get 2 if I comment out the scipy import. This is after emptying out scipy.__init__.py and scipy.sparse.__init__.py. The import of _sparsetools appears to be removing control of the process exit code. This is a real problem for example with buildbot tests, because test runs that are failing nevertheless have an exit code of 0 - see for example the end of http://nipy.bic.berkeley.edu/builders/dipy-py2.7-win32/builds/106/steps/shell_6/logs/stdio

Any ideas what might be going on?

Issue 2:
Original ticket http://projects.scipy.org/scipy/ticket/1314 on 2010-10-18 by trac user markMiscavage, assigned to @wnbell.

I have this bug in a larger program but I've narrowed it down to a script consisting of just :

import sys
import scipy.sparse.sparsetools
sys.exit("EXIT")

This will always exit with code 0. It seems it is the .pyd files in the sparsetools folder that are the source of this problem. I have the same problem in both 0.7.1 and 0.8.0 builds of scipy. I am using python 2.6 on a Windows 7 - 64 bit system.
Issue 1:
A checkbox is checked if one clicks on the white space to the right from its label. We have checkboxes that control billing stuff and people are being charged by mistake because of this issue.

The issue appears in all browsers.

Is there a way to fix it in the library? If not - is there a simple workaround for this?

Thank you.

Issue 2:
In HTML5, <fieldset> gains support for the disabled attribute, allowing you to disable an entire fieldset at once. However, Bootstrap does not seem to style all input elements under disabled fieldsets appropriately; some aren't grayed-out like individually disabled input elements. They should be.
Issue 1:
Sometimes I'll get an element selector error and will be unsure why it's wrong, and will need to re-run the test, using page.pause before the failing step.

Would be nice to have the ability to just directly search the page on the failed step instead of needing to re-run the test with a pause.

Issue 2:
Feature request

it would be very useful if the same selector explorer thing that that's available in the inspector was also present for the dom snapshots in the trace viewer
Issue 1:
Wider gamuts and more bits

As I mentioned before in #864 and related to parts of what is being discussed in #5397, the new color picker power toy is limited to representations of sRGB with eight bits per channel, although screens and workflows are moving to color spaces with a wider gamut and to higher bit depths or representations with arbitrary precision. These should be supported natively.

Issue 2:
ℹ Computer information

PowerToys version: maybe each version (Tested v0.23.0 and v0.24.0)

PowerToy Utility: FZEditor

Running PowerToys as Admin: yes

Windows build number: 2004 (OS Build 19041.264)

✔️ Expected result

Open normally.

❌ Actual result

It cannot be opened

📷 Screenshots

Crash log's here

FZEditorCrashLog.txt
Issue 1:
<div id="test">
{{ message }}
<my-component></my-component>
</div>

<script>
var MyComponent = Vue.extend({
template: '<div>A custom component!</div>',
data: function () {
console.log('data');
return { a: 1 }
}
});
new Vue({
el: '#test',
data: {
message: 'Hello Vue.js!'
},
components: {
'my-component': MyComponent
}
});
</script>

这里面console.log('data');会执行2次，用1.0.18版本以下则不会，怎么回事呢？

Issue 2:
Vue.js version

1.0.21

Reproduction Link

http://jsbin.com/doxonuviwe/edit?html

Steps to reproduce

Register a Vue component with data function.

Vue.component('my-hello', {
data: function() {
console.log('hello')
return {};
}
});

new Vue({
el: 'body'
});

Instantiate the component.

<my-hello></my-hello>
<my-hello></my-hello>

You will see in the console (DevTool):

hello
hello
hello
hello

What is Expected?

Data function should be called twice since there is only two instances of Vue component.

What is actually happening?

Data function called four times.

Quick Fix

Set the data in the created hook.

Vue.component('my-component', {
created: function() {
this.$data = {}; // Set your data here.
},
});

Hope this helpful.