WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Three different FIXMEs in trans::tvec suggest improvements to be made to do with the representation types for vectors: "This is not the correct type" in both alloc_uniq_raw and duplicate_uniq, and "Optimize this when the size of the unit type is statically known" in iter_vec_raw.

Issue 2:
A recent change broke this code:

use a::*;
use b::*;

mod a { pub fn foo() {} }
mod b { pub fn foo() {} }

This gives an error:

test.rs:4:5: 4:10 error: a value named `foo` has already been imported in this module
test.rs:4 use b::*;

This makes globs a lot less useful than they were before. If globs are going to be only useful in isolation, why have them as a feature at all?
Issue 1:
On one of the pages that I'm parsing I got:

File "/usr/local/lib/python2.7/dist-packages/requests/models.py", line 777, in text

content = str(self.content, encoding, errors='replace')

LookupError: unknown encoding: ISO-LATIN-1

I think it would be more sensible to try a default encoding (utf-8 and windows-1252 as a fallback) when Python doesn't support the encoding defined in the page.

Also, using encoding.lower().replace('-latin-', '-8859-') will go a long way fixing the common case of pages using iso-latin-N instead of iso-8859-N.

Issue 2:
>>> url = 'http://dilbert.com'
>>> len(urllib2.urlopen(url).read())
30194
>>> len(requests.get(url).content)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "build/bdist.macosx-10.7-intel/egg/requests/models.py", line 713, in content
LookupError: unknown encoding: utf-8lias
>>>
Issue 1:
My workers quite often fail to start properly when mingle is enabled with no

"celery@worker ready" message to be seen. Celery Flower also doesn't show the worker as Online.

Celery 3.1.4 but has been happening in all versions of 3.1.x

Issue 2:
why waiting so long to "sync with me"?

Following is the log:

[2013-11-25 16:54:23,396: INFO/MainProcess] Connected to amqp://admin@rabbitmq_server:5672/zeus

[2013-11-25 16:54:23,421: INFO/MainProcess] mingle: searching for neighbors

[2013-11-25 16:54:23,564: INFO/MainProcess] normal@p-service-2 joined the party

[2013-11-25 16:54:23,714: INFO/MainProcess] fast@p-service-2 joined the party

[2013-11-25 16:54:23,995: INFO/MainProcess] ultraslow@p-service-2 joined the party

[2013-11-25 16:54:24,949: INFO/MainProcess] dms@p-service-2 joined the party

[2013-11-25 16:57:43,183: INFO/MainProcess] slow@p-service-1 joined the party

[2013-11-25 16:57:45,169: INFO/MainProcess] mingle: hello dms@p-service-2, ultraslow@p-service-2, normal@p-service-2, fast@p-service-2! sync with me

[2013-11-25 16:57:45,189: WARNING/MainProcess] slow@p-service-0 ready.
Issue 1:
Challenge escaping-literal-quotes-in-strings has an issue.

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.89 Safari/537.36.

In this challenge there is a single quote given in a single string that they used the escape method for. The challenge states to do it with two quotes within a single string. The lay out of my code is the same as the one in the example. There is no output appearing to even tell me what the error is it is just telling me to keep trying. There is no error icons where my code window is either so I don't even know what I'm doing wrong so I feel very strongly this is a bug issue rather than input issue.

var myStr=" I am a \"double quoted\" string inside \"double quotes\".";

Issue 2:
I think You should not be so strict with the expression with which the random number must be generated, forcing to use the expression Math.floor(Math.random( * (3 - 1 + 1)) + 1 (by the way is very silly -1+1 ) cuts creativity and interest in thinking in how to solve the problem the expression Math.floor(Math.random()*3)+1 is also valid but not accepted.
Issue 1:
hello

When using the mighty groupby function, I found myself quite disappointed by something:

indeed, it is very useful regarding operations, but one of the most basic one is not mathematical.

It is about getting the values associated to a column (or series of columns) per group.

Maybe I missed something about the split-apply-combine strategy*, but I don't get how to retrieve simply the content of some rows for all or part of groups.

get_group() does this beautifully for one but not for many (i tried to pass sets, lists at no effect),

I can come up easily with something like:

groups_dict= {k: list(grouped.get_group(k).loc[:,idcolumn]) for k in grouped.groups.keys()}

But I guess this is not computationally efficient, plus it has to be repeated for all columns you want to aggregate.

Are there any better methods or wouldn't this be relevant to have a setting to output the actual values instead of an index?

I actually came up with another solution (agg_df being the original dataframe, you may need resetting the df index in case you used some exploding strategy):

groups_dict2= {k: list(agg_df2.loc[v,'n']) for k,v in grouped.indices.items()}

It feels slower but it is maybe more error proof?

Anyway, a function using all the hidden workings in Pandas would be far better I guess.

Best Regards

(I am sorry, I try my best reading the docs, but Pandas is definitely not trivial to handle, docs are huge and when you think that you might find some problem's solution in one section or function domain, it can actually be something hugely different),

Issue 2:
Issues:

Index.difference and symmetric_difference raise for mixed types (solved by #13514)

Index._get_consensus_name incorrectly returns an empty index (solved by #13514)

bug in Index.union for non-unique indexes (see comment)

bug in Index.intersection for non-unique indexes (same comment)

inconsistent sorting in of mixed-int Indexes in python2 (see comment)

Index.difference and symmetric_difference raise for mixed types

Code Sample, a copy-pastable example if possible

idx1 = pd.Index([0, 1, 'A', 'B'])
idx2 = pd.Index([0, 2, 'A', 'C'])

idx1.difference(idx2)
...
File "/usr/local/lib64/python3.5/site-packages/pandas/indexes/base.py", line 1861, in difference
theDiff = sorted(set(self) - set(other))
TypeError: unorderable types: str() < int()

idx1.symmetric_difference(idx2)
...
File "/usr/local/lib64/python3.5/site-packages/pandas/indexes/base.py", line 1861, in difference
theDiff = sorted(set(self) - set(other))
TypeError: unorderable types: str() < int()

But union and intersection work:

idx1.union(idx2)
Out[14]: Index([0, 1, 'A', 'B', 2, 'C'], dtype='object')
idx1.intersection(idx2)
Out[15]: Index([0, 'A'], dtype='object')

Expected Output

idx1.difference(idx2)
Out[]: Index([1, 'B'], dtype='object')

idx1.symmetric_difference(idx2)
Out[]: Index([1, 'B', 2, 'C'], dtype='object')

output of pd.show_versions()

INSTALLED VERSIONS
------------------
commit: 4a6621fcaa9a3b98172b90a69de574ec94b108df
python: 3.5.1.final.0
python-bits: 64
OS: Linux
machine: x86_64
byteorder: little

pandas: 0.18.1
...
Issue 1:
Bug Report

Current behavior

A clear and concise description of the behavior.

REPL, Codesandbox, or GitHub Repo helps!

Input Code

function from(x) {
return x === x[Symbol.iterator]() ? Array.from(x) : x;
}
export default from;

Expected behavior

The above is a valid ES module and will execute in browsers, but throw when parsed by Babylon.

Babel version(s): [e.g. v6.0.0, v7.0.0-beta.34] 7.10.2

Possible Solution

Acorn handles this parsing fine, so it should be a relatively straightforward parser fix.

Issue 2:
💻

Would you like to work on a fix?

How are you using Babel?

@babel/eslint-parser

Input code

@babel/eslint-parser fails if Babel config in the host project relies on any preset / plugin using parserOverride. This happens because @babel/eslint-parser itself uses it to capture Babel options. Although there seems to be some code in place to safeguard against "More than one plugin attempted to override parsing" error when some other parsers/plugin rely on parserOverride, it does not seem to help in practice.

Configuration file name

No response

Configuration

No response

Current and expected behavior

@babel/eslint-parser fails to work in the described scenario, it should work though.

Environment

Babel 7.16.0

Possible solution

No response

Additional context

No response
Issue 1:
Preflight Checklist

I have read the Contributing Guidelines for this project.

I agree to follow the Code of Conduct that this project adheres to.

I have searched the issue tracker for an issue that matches the one I want to file, without success.

Issue Details

Electron Version:

4.1.1

Operating System:

Windows 10

Last Known Working Electron version:

not sure

Expected Behavior

While loading a pdf (either local or remote url) Electron (well, underlying Chrome browser) simply downloads it instead of preview.

<webview id="foo" src="http://www.pdf995.com/samples/pdf.pdf" style="width:400px; height:480px;">
<div class="indicator"></div>
</webview>

Actual Behavior

To Reproduce

Screenshots

Additional Information

Issue 2:
Electron version: 1.7.8

Operating system: macOS sierra, windows7, windows10

Expected behavior

Refreshing the page does not effect other opened windows.

Actual behavior

Refreshing the page will close other windows.

How to reproduce

Open a new BrowserWindow and refresh the main window then the opened BrowserWindow is closed.
Issue 1:
https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gke-serial/1973/

Failed: [k8s.io] [HPA] Horizontal pod autoscaling (scale resource: CPU) [k8s.io] [Serial] [Slow] ReplicationController Should scale from 5 pods to 3 pods and from 3 to 1 and verify decision stability {Kubernetes e2e suite}

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/horizontal_pod_autoscaling.go:73
Aug 12 10:17:36.640: timeout waiting 15m0s for pods size to be 3
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/autoscaling_utils.go:284

Previous issues for this test: #28657

Issue 2:
https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gce-serial/2033/

Failed: [k8s.io] [HPA] Horizontal pod autoscaling (scale resource: CPU) [k8s.io] [Serial] [Slow] Deployment Should scale from 1 pod to 3 pods and from 3 to 5 {Kubernetes e2e suite}

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/horizontal_pod_autoscaling.go:49
Aug 28 09:38:39.413: timeout waiting 15m0s for pods size to be 5
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/autoscaling_utils.go:284

Previous issues for this test: #30317
Issue 1:
Preflight Checklist

I have read the Contributing Guidelines for this project.

I agree to follow the Code of Conduct that this project adheres to.

I have searched the issue tracker for an issue that matches the one I want to file, without success.

Issue Details

This is incredibly similar to #26888 , but IMHO it cannot be a 100% duplicate since according to the bisect the last known good version is 3.1.13 and the first known bad version is 4.0.0-beta.1., whereas the other one has a different timeline. Also, this one is on the mac, while the other one is on Windows.

Electron Version:

4.0.0-beta.1. and above

Operating System:

macOS 10.15.7

Last Known Working Electron version:

3.1.13

Expected Behavior

When using a keyboard layout like Spanish - ISO on macOS, Cmd+Shift+7 in an accelerator should be rendered as Cmd+Shift+7 or as Cmd+/. Here is a screenshot of the Spanish - ISO keyboard layout. As you can see, Shift+7 on the Spanish - ISO keyboard layout produces / and not & (like on the US keyboard layout):

Actual Behavior

Since Electron 4.x, Cmd+Shift+7 is always rendered as Cmd+& (or for a while as Cmd+Shift+&?) which is only correct for keyboard layouts where Shift+7 produces &, such as the US keyboard layout, but is incorrect and misleading for any other keyboard layout.

To Reproduce

Electron Fiddle that uses cmd+shift+7 as an accelerator: https://gist.github.com/f9dd95b576133c293fe7ad9a5fccb154

Switch the keyboard layout to Spanish - ISO on macOS

relevant code snippet:

const template = [
{
label: 'Edit',
submenu: [
{ label: 'Test', accelerator: 'Cmd+Shift+7' },
]
}
]

const menu = Menu.buildFromTemplate(template)
Menu.setApplicationMenu(menu)

Screenshots

3.1.13 (last known good version):

4.0.0-beta.1 (first bad version):

12.0.0-beta.7 (latest version):

Additional Information

As I mentioned, this is incredibly similar to #26888 but appears to have been introduced one version later in Electron

Issue 2:
This is my simple code in index.js

globalShortcut.register("CmdOrCtrl+q", () => {
app.isQuiting = true;
app.quit();
})

This works fine. But when used via an azerty keyboard, CMD + A is triggering the actions inside this block.

Issue Details

Electron Version:

8

Operating System:

Mac 10.15.7

Expected Behavior

CMD + A should select all

Actual Behavior

CMD + A is triggering events for CMD + Q
Issue 1:
Context:

Playwright Version: 1.27.1

Operating System: Mac

Node.js version: n/a

Visual Studio Code version: 1.73.0

Playwright for VSCode extension version: 1.0.1

Browser: All

Hi - question about VSCode extension support for python (or other languages). I am commenting here since the Q&A section for the extension marketplace links here.

Is it possible to run python tests and explore locators, etc, in the middle of debug for python too? All the documentations and examples are in javascript (understandable).

I have installed the extension and it appears in the "testing" tab. But when I run my (pytest) tests, the "show browser" opens a different browser and not related to the current test. If I try pw.extension.command.inspect from command pallette similarly, a new chromium opens up (not the one in my test). I have to open a separate codegen window and follow along to explore locators, which is inconvenient.

I hope I am wrong and have missed some configuration steps. If not currently supported, is there a workaround? Or plan to support?

def test_goto_google(page):
page.goto("https://google.com")

^^^ I can debug my test here and with it stopped, I am trying to "inspect".

Issue 2:
i know playwright test is only available for nodejs, but some of the features in this extension would be useful when using playwright with other languages, such as the "Enable Playwright Debug" button
Issue 1:
Currently routing and ID values can be passed in the query string and url respectively, but they can also be extracted from fields within the document.

This has a significant performance impact because each doc needs to be parsed on the node which receives the index/get/update/delete request in order to know which node should handle the request.

On top of that, there are clashes between (eg) routing values set in fields and parent settings.

We should deprecate the functionality to extract these values from fields, and make it the responsibility of the client code instead.

It should still be possible to set _routing to required. Perhaps we should set this automatically if the user ever passes in a routing or parent value at index time?

Relates to #8870

Issue 2:
Describe the feature:

The way it works is that Elasticsearch keeps track of the 256 most recently used filters, and only caches those that appear 5 times or more in this history.

We currently tracks 256 in the history and caches only those that appear 5 times or more in the history, so it will end up caching maybe 50 or so distinct filters. In a multitenant environment, there can easily be more than 50 distinct filters for each customer id, so it will be nice to provide a way to tune this based on the use case.
Issue 1:
I am incorrectly getting the following error, "This can only be used with ES6. Make sure to have a jsconfig.json-file which sets the target to ES6".

Furthermore, I think I may have stumbled upon a weird case where if the start of the file name is "temp" as in "temp.js", "temporary.js", or "temp123.js" it will cause this error.

To reproduce:

Create a file called temp.js with some ES6 code, such as:

let x = 10

The above error is now showing. To fix it, create the jsconfig.json file which sets the target to ES6:

{
"compilerOptions": {
"target": "ES6"
}
}

The error is still showing, now incorrectly.

If I rename "temp.js" to "test.js" (or anything that doesn't start with 'temp') the error goes away. Or, if I create a files array in jsconfig.json which lists "temp.js", the error goes away:

{
"compilerOptions": {
"target": "ES6"
},
"files": [
"temp.js"
]
}

I don't want to have to do this for every file in my project.

I'm running on Windows 7, 64-bit.

Thanks

Issue 2:
Hi.

Thanks for your product, I really enjoy using it. However I have one problem:

When using ES6 features, like the arrow functions, I get the message "This can only be used with ES6. Make sure to have a jsconfig.json-file which sets the target to ES6".

However I have a jsconfig.json-file in my root (the folder opened in Visual Studio Code), which contains:

{
"compilerOptions": {
"target": "ES6",
"module": "commonjs"
}
}

The weird part is that I get it for some files, and not for others. Even if the files are in the same directory. Right now I have three files in the subdirectory /app/bpm names bpm.js, bpmController.js and enterClick.js. All three are written with ES6-functionality, but I only get the warning and red underlined text for bpm.js.

UPDATE:

I just restarted VS Code, and the red underline disappeared from bpm.js too. It was a new file I had created after the two others, however the red underline only went away after a restart.
Issue 1:
System information (version)

OpenCV => 4.1.1

Operating System / Platform => Ubuntu 18.04

Compiler => Python 3.6

Detailed description

Documentation for cv2.randn says Fills the array with normally distributed random numbers, so I expect it to fill whole array, but it actually works only with the channel 0. Later it says dst - output array of random numbers; the array must be pre-allocated and have 1 to 4 channels, means 3 channel images are allowed and it should fill the whole array. The same for cv2.randu.

Steps to reproduce

This code

noise = np.zeros((10,10,3), dtype=np.uint8)
print(cv2.randn(noise, 128, 50)[:,:,1:])
print(cv2.randu(noise, 0, 255)[:,:,1:])

prints only zeros.

Issue 2:
We seem to have found a bug in the JPEG image reading code (which is new in 3.1)

in the EXIF parsing functions.

The EXIF parser hangs in reading the JPEG orientation tag, and the

imread() function does not return (explanation see below) and hangs.

Probably the jpeg file was created wrong, but opencv should not hang, this

is the worst possible scenario for us.

Please state the information for your system

OpenCV version: 3.1 / Source file contains the problem

Host OS: Reproduced on Linux (Ubuntu 16.04) and Windows 10 MSVS 2015

In which part of the OpenCV library you got the issue?

The module affected is imgcodecs, imread() function.

Expected behaviour

imread() ignores the faulty JPEG tag, or returns an error.

Actual behaviour

Function imread() hangs indefinitely due to EXIF parsing source code error.

Additional description

Should read the JPEG tag length, but tries to fseek by -2 bytes which is casted to 0FFFFFFE. The resulting error is not taken care of and the while() loop runs

indefinitely.

The file affected is

jpeg_exif.cpp, line 202

Code example to reproduce the issue / Steps to reproduce the issue

See above.
Issue 1:
For my time propagation of PDEs, I need to find the eigenvectors/-values of a Krylov subspace matrix, every step (see e.g. my fork of Krylov.jl). As it is now, e.g. stegr! allocates the work and output arrays, every time. I wonder if there are any plans to provide for those functions who need it, a split version? I mean something in the spirit of

work = stegr_work(...)
for i = 1:steps
...
stegr!(other, args, work...)
end

thereby reducing the amount of (de)allocations.

I could of course implement the functions I need in a library for my own use, but I would prefer to reduce the amount of code duplication, and maybe other people than myself would find this useful?

Issue 2:
Some new convert method definitions cause substantial invalidation due to usage of convert in constructors. A good example is Pkg.Operations.load_direct_deps:

julia> using Pkg, Cthulhu

julia> descend(Pkg.Operations.load_direct_deps, (Pkg.Types.Context,))

From here, you can navigate to the "body method" where you get to the core issue:

│ %47 = uuid::Base.UUID
│ %48 = name::String
│ %49 = Base.getproperty(entry::Pkg.Types.PackageEntry, :path)::Union{Nothing, String}
│ %50 = Base.getproperty(entry::Pkg.Types.PackageEntry, :repo)::Pkg.Types.GitRepo
│ %51 = Base.getproperty(entry::Pkg.Types.PackageEntry, :pinned)::Bool
│ %52 = Base.getproperty(entry::Pkg.Types.PackageEntry, :tree_hash)::Union{Nothing, Base.SHA1}
│ %53 = Base.getproperty(entry::Pkg.Types.PackageEntry, :version)::Union{Nothing, VersionNumber}
│ %54 = Pkg.Operations.isfixed(entry::Pkg.Types.PackageEntry)::Bool
│ %55 = Pkg.Operations.load_version(%53, %54, preserve)::Union{Nothing, VersionNumber, Pkg.Types.VersionSpec}
│ %56 = Core.tuple(%47, %48, %49, %50, %51, %52, %55)::Tuple{Base.UUID,String,Union{Nothing, String},Pkg.Types.GitRepo,Bool,Union{Nothing, Base.SHA1},Union{Nothing, VersionNumber, Pkg.Types.VersionSpec}}
│ %57 = (%46)(%56)::NamedTuple{(:uuid, :name, :path, :repo, :pinned, :tree_hash, :version),_A} where _A<:Tuple
│ %58 = Core.kwfunc(Pkg.Operations.PackageSpec)::Core.Compiler.Const(Core.var"#Type##kw"(), false)
└─── (@_13 = (%58)(%57, Pkg.Operations.PackageSpec))

Here you can see that most of the inputs for creating the NamedTuple are already known to have the types needed for fields of PackageSpec. However, presumably due to specialization heuristics, that type info is lost with the constructor for NamedTuple.

I don't think this mode of invalidation is outrageously common, but I know I've seen it before, which is why I decided to report it as a systematic issue. Perhaps the NamedTuple constructor should get an extra Union-bonus in the specialization heuristics? Or is it one of the worst offenders desperately in need of limits?

There is a way to circumvent this: create a specialized PackageSpec(::PackageEntry, uuid, ver, pinned, mode) constructor. But I don't see a great way to avoid duplicating the field default specifications, which would be a bit of a code smell.