WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Hi,

in my system configuration windows 7,32 bit.

I have installed deno on my machine using this command

iwr https://deno.land/x/install/install.ps1 -useb | iex

My pwershell version is 5.1

I got this error.

Program 'deno.exe' failed to run: The specified executable is not a valid application for this OS platform.At line:1

How can i fix this pblm.Please advice me,

Thanks & regards,

Anitha.G

Issue 2:
Could you please support windows 32 bit machines for the build.

I'm using Windows NT 10 15063

Building the app is quite a sassle for me (as win32 users) because:

My windows version does not support symlinks even though I enabled developer options.

Installing MSVC is quite a sassle (I tried 5 times; the download can't finish)

By the way, I have very limited resources; RAM, CPU even Storage

Needed requirements

Updated Windows version with Dev Options enabled (.symlinks not working for me)

Cargo or Rust in general (not installable for me since it needs MSVC)

MSVC (not installable for me)

Python version 2, not 3 (working for me)

I think anyone with the listed above resources .

can build it NOW and send it because I think it is not a difficult task and

I'm not even trying to go into node and I NEED it desperately. PLEASE HELP.
Issue 1:
Describe the bug

When using an imputer, after training on a data frame with at least one of the columns completely missing, the imputer will drop this feature after a transform.

I would expect at least a warning or an option to fall back to a constant value fill.

Steps/Code to Reproduce

import pandas as pd
from sklearn.impute import SimpleImputer
df = pd.DataFrame({'a':[1,2,3],'b':[None,None,None]})
print(SimpleImputer().fit_transform(df).shape)

Expected Results

(3, 2)

Actual Results

(3, 1)

Versions

Issue 2:
Code sample

In the sample code below, a column is removed from the dataset during the pipeline

>>> from sklearn.impute import SimpleImputer
>>> import numpy as np
>>> imp = SimpleImputer()
>>> imp.fit([[0, np.nan], [1, np.nan]])
>>> imp.transform([[0, np.nan], [1, 1]])
array([[0.],
[1.]])

Problem description

Currently sklearn.impute.SimpleImputer silently removes features that are np.nan on every training sample.

This may cause further issues on pipelines because the dataset's shape has changed, e.g.

dataset[:, columns_to_impute_with_median] = imp.fit_transform(dataset[:, columns_to_impute_with_median])

Possible solutions

For the problematic features, either keep their values if valid or impute the fill_value during transform. I suggest adding a new parameter to trigger this behaviour with a warning highlighting the referred features.

As I'm willing to implement this feature, I look forward advices.
Issue 1:
Hi,

I have been trying to run wildcard queries against .kibana indices on ES 1.4.4. I am querying on _id. While prefix query runs, wildcard queries don't.

Example

curl localhost:9200/,kibana/_search?pretty -d '{"query":{"prefix":{"_id":"TC"}}}'

Gives results, but

curl localhost:9200/,kibana/_search?pretty -d '{"query":{"wildcard":{"_id":"TC*"}}}'

Gives me an empty result.

Issue 2:
I'm using Elasticsearch 1.3.4. Occasionally I see the following DEBUG stack trace (few of them are logged sequentially) in the log file. No search requests are failing around the same time though. There was nothing wrong with the cluster too when this exception was logged. Is this exception harmless? If not, what are the repercussions? I did some digging around the same exception on the internet and in the Issues list of Elasticsearch but I found most of those issues were related to scan and scroll. We don't use scan and scroll search requests. Let me know if you need more data.

DEBUG!!default!![2015-02-16 19:41:54,432][DEBUG][action.search.type ] [<Query Node Name>] [27419] Failed to execute fetch phase
org.elasticsearch.transport.RemoteTransportException: [<Data Node Name>][inet[/xx.x.x.xxx:9300]][search/phase/fetch/id]
Caused by: org.elasticsearch.search.SearchContextMissingException: No search context found for id [27419]
at org.elasticsearch.search.SearchService.findContext(SearchService.java:481)
at org.elasticsearch.search.SearchService.executeFetchPhase(SearchService.java:451)
at org.elasticsearch.search.action.SearchServiceTransportAction$SearchFetchByIdTransportHandler.messageReceived(SearchServiceTransportAction.java:793)
at org.elasticsearch.search.action.SearchServiceTransportAction$SearchFetchByIdTransportHandler.messageReceived(SearchServiceTransportAction.java:782)
at org.elasticsearch.transport.netty.MessageChannelHandler$RequestHandler.run(MessageChannelHandler.java:275)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
Issue 1:
Requires additional selector added to CSS rule to ensure correct top margin as shown here

https://gist.github.com/1721864

Issue 2:
There are (too) many differences and enhancements in the upcoming v3, plus there are a lot more things to be done, so I'd like to suggest a maintainance v2.3.2 for a few of the most important bugs/features, so people with the current version of bootstrap get some more support for their pages.
Issue 1:
Babel transpiled subclasses of Promise had been working as intended for as recent as the last nodejs version (6.4.0), however with 6.5.0, I'm seeing errors like:

return _possibleConstructorReturn(this, (subPromise.__proto__ || Object.getPrototypeOf(subPromise)).call(this, executor));

^

TypeError: #<subPromise> is not a promise

Subclassing itself works fine if I run the code as is on nodejs. This issue happens regardless of whether I import polyfill or not.

Input Code

"use strict";

class subPromise extends Promise {
constructor(executor) {
super(executor);
}
}

const testPromise = new subPromise((resolve, reject) => {
resolve(42);
});

testPromise.then(console.log);

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

{
"presets": ["es2015"]
}

Expected Behavior

The test promise resolves into 42.

Current Behavior

Throws a type error.

Possible Solution

Must be some sort of extra type checking introduced in 6.5.0? Bigger worry is how semantics of vanilla class keyword from nodejs and transpiled classes can diverge.

Context

I'm working on a library that extends Promise. Which I opened an issue (google/chained-promise#6). I've also opened an issue with NodeJS, initially thinking this might to do with nodejs itself regressing in any way. (nodejs/node#8474)

Your Environment

software
version

Babel
tested on 6.4.0 and 6.14.0

node
6.5.0

npm
3.5.2

Operating System
Tested on Windows and Linux

Issue 2:
Input Code

class ReadError extends Error {}

new ReadError('Boom') instanceof ReadError // => false

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

https://babeljs.io/repl/#?babili=false&evaluate=true&lineWrap=false&presets=es2015&experimental=true&loose=false&spec=false&playground=false&code=class%20ReadError%20extends%20Error%20%7B%7D%0A%0Aalert(new%20ReadError('Boom')%20instanceof%20ReadError)%20%2F%2F%20%3D%3E%20false

Expected Behavior

should alert true

Current Behavior

alerts false
Issue 1:
Hi,

would be great if one could pass arguments to issymmetric, which specifies the absolut and/or relative tolerance between the upper and lower triangle, similar to isapprox(x,y; atol=..., rtol=...).

Thanks!

Issue 2:
I was expecting the following code print two trues.

using LinearAlgebra
siz = 8
base_space = qr(randn(Float64, siz, siz)).Q
phases = rand(siz)
signs = Diagonal(phases)
A = base_space*signs*base_space'
println(A ≈ A')
println(ishermitian(A))

Instead, I get true and false.

The ishermitian turns out using ==. Isn't it better to use ≈ or add an atol keyword parameter?

julia/stdlib/LinearAlgebra/src/generic.jl

Line 971
in
4498d27

function ishermitian(A::AbstractMatrix)
Issue 1:
Is there any particular reason to have product return different values depending on the number of iterators provided?

Demo

julia> Base.iteratorsize(Base.product(1:2))
Base.HasShape()

julia> Base.iteratorsize(Base.product(1:2, 1:2))
Base.HasLength()

This currently happens because Base.product(itr) calls the Zip1 constructor which has a different behaviour.

julia> Base.product(1:2)
Base.Zip1{UnitRange{Int64}}(1:2)

julia> Base.product(1:2, 1:2)
Base.Prod2{UnitRange{Int64},UnitRange{Int64}}(1:2,1:2)

At the cost of some code duplication the alternative would be to implement a Prod1 type and add the required behaviour instead of calling the Zip1 constructor.

(this is on master)

Issue 2:
Right now any Pkg.add can lead to a downgrade of some other installed package. That seems like a bad user experience: when I add a new package, I probably don't want my other packages to revert to an old version.

I think a better solution would be if Pkg.add detects that it needs to do some package downgrades, it should show the user the list of packages that would be downgraded and then confirm whether the user actually really wants to proceed or not. And then there could be a force argument to Pkg.add that would just go ahead without user confirmation.

The same logic might also apply to some other package commands. Probably Pkg.clone. Not sure about Pkg.update...
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: 2.7.6-SNAPSHOT

Operating System version: Mac

Java version: 1.8

Steps to reproduce this issue

run dubbo-samples-stub sample

Expected Result

"stub - greeting dubbo"

Actual Result

return "greeting dubbo"

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

I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: 2.7.3

Operating System version: mac

Java version: 1.8

org.apache.dubbo.rpc.cluster.support.ClusterUtils#mergeUrl 这个里面写死了哪些provider key不可被consumer覆盖，比如TagRouter 需要的tag字段不可覆盖:copyOfLocalMap.remove(TAG_KEY);。

能否把这个能力开放出来，来定制provider url 中哪些key不可覆盖。
Issue 1:
trait MyTY {
fn my_y(&self) -> uint;
}

trait MyTXY: MyTY {
fn my_x(&self) -> uint;
}

fn bar(mt: &MyTXY) {
mt.my_x();
mt.my_y();
}

fn main() {
}

Issue 2:
Bound type parameters can call supertrait methods, objects should be able to as well.

trait A { fn f() }
trait B: A { }

fn foo(b: &B) {
b.f()
}
Issue 1:
https://developer.mozilla.org/en-US/docs/Web/API/Navigator/hardwareConcurrency

Issue 2:
We currently have an invented syntax for referencing a d.ts file. Here's an example:

// @deno-types="./vendor/parser_typescript.d.ts"
import "./vendor/parser_typescript.js";

I'm not so happy with this - but not sure what to replace it with. Adding this as an API to figure out before 1.0.
Issue 1:
Original ticket http://projects.scipy.org/numpy/ticket/922 on 2008-10-02 by @josef-pkt, assigned to unknown.

In my fuzz testing of scipy stats, I get sometimes a test failure. I think there is something wrong, random numbers are outside of support of the distribution, with numpy.random.hypergeometric for some cases:

>>> np.version.version
'1.2.0rc2'

signature:

hypergeometric(ngood, nbad, nsample, size=None)

when sample size (number of draws, nsample) is small then random numbers look ok:

>>> np.random.hypergeometric(3,18,8,size=10)
array([2, 1, 0, 2, 1, 1, 2, 1, 0, 3])
>>> np.random.hypergeometric(3,18,9,size=10)
array([2, 2, 0, 0, 1, 0, 1, 1, 3, 1])
>>> np.random.hypergeometric(3,18,10,size=10)
array([0, 2, 2, 0, 2, 2, 2, 0, 0, 2])

for sample size larger than 11 the random number are larger than possible (there are only 3 good balls in urn):

>>> np.random.hypergeometric(3,18,11,size=10)
array([18, 16, 16, 17, 18, 17, 18, 17, 17, 16])
>>> np.random.hypergeometric(3,18,12,size=10)
array([17, 16, 16, 18, 17, 17, 18, 17, 16, 17])
>>> np.random.hypergeometric(3,18,13,size=10)
array([18, 17, 17, 16, 17, 17, 16, 16, 18, 16])
>>> np.random.hypergeometric(3,18,14,size=10)
array([16, 17, 17, 17, 17, 18, 17, 16, 18, 17])
>>> np.random.hypergeometric(3,18,15,size=10)
array([18, 18, 17, 16, 17, 16, 17, 17, 18, 18])

reversing the number of good and bad balls -> ok for small sample size:

>>> np.random.hypergeometric(18,3,5,size=10) #ok
array([5, 4, 5, 5, 4, 4, 4, 4, 5, 5])
>>> np.random.hypergeometric(18,3,10,size=10) #ok
array([9, 8, 9, 7, 8, 8, 7, 8, 8, 9])

negative numbers for sample size >= 11:

>>> np.random.hypergeometric(18,3,11,size=10)
array([-5, -5, -5, -7, -4, -5, -5, -4, -6, -6])
>>> np.random.hypergeometric(18,3,13,size=10)
array([-3, -5, -5, -4, -4, -4, -5, -5, -3, -4])
>>> np.random.hypergeometric(18,3,14,size=10)
array([-4, -3, -4, -3, -2, -4, -3, -4, -2, -4])
>>> np.random.hypergeometric(18,3,15,size=10)
array([-2, -2, -1, -1, -3, -2, -2, -2, -1, -2])
>>> np.random.hypergeometric(18,3,16,size=10)
array([-1, -1, 0, -1, 0, -2, -1, -2, -1, -2])

Issue 2:
Creating an array out of a list that (accidentally) has a circular reference sometimes causes the Python terminal to hang, and can not be terminated even by ctrl-C.

Ideally, this should be detected, and an exception should be raised.

Reproducing code example:

import numpy as np
a = []
a.append(a)
np.array(a) # outputs `array([[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[list([[...]])]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]], dtype=object)`
a.append(a)
np.array(a) # hangs

Error message:

No error - python simply hangs

Numpy/Python version information:

1.16.4 3.6.8 (default, Apr 25 2019, 21:02:35)

[GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]
Issue 1:
Is this a request for help? (If yes, you should use our troubleshooting guide and community support channels, see http://kubernetes.io/docs/troubleshooting/.): NO

What keywords did you search in Kubernetes issues before filing this one? (If you have found any duplicates, you should instead reply there.): kubelet socat ubuntu

Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG REPORT

Kubernetes version (use kubectl version):

v1.4.4

Environment:

Ubuntu 16.04 with latest patches, running in a VMware VM

Kernel (e.g. uname -a): 4.4.0-47-generic #68-Ubuntu SMP Wed Oct 26 19:39:52 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

Install tools: http://apt.kubernetes.io/ kubernetes-xenial main via apt-get

What happened:

apt-get install -y kubelet kubeadm kubectl kubernetes-cni

Reading package lists... Done

Building dependency tree

Reading state information... Done

Some packages could not be installed. This may mean that you have

requested an impossible situation or if you are using the unstable

distribution that some required packages have not yet been created

or been moved out of Incoming.

The following information may help to resolve the situation:

The following packages have unmet dependencies:

kubelet : Depends: socat but it is not installable

E: Unable to correct problems, you have held broken packages.

What you expected to happen:

Installation should succeed.

How to reproduce it (as minimally and precisely as possible):

Use plain Ubuntu 16.04 with latest patches and follow this guide: http://kubernetes.io/docs/getting-started-guides/kubeadm/

Issue 2:
We have performance testing infrastructure ready for use in GCE, all scripts are in test/kubemark, and the rest of the code is spread around cluster directory. Currently there's a performance problem, which causes kubemark to be a lot slower than ordinary cluster. We need to find a root cause for this if we want this tool to be useful.

cc @fgrzadkowski @wojtek-t @lavalamp @quinton-hoole @timothysc
Issue 1:
Migrated issue, originally created by jan.budinsky (@janbudinsky)

Default column value is not overridden by NULL in Declarative API as it should be.

If a column has a non-null default value that is overridden by another non-null value, everything works as expected - the specified value is always inserted as the value of the column instead of the default one.

This however does not seem to be the case when overriding non-null default value with NULL. If a matching row (via primary key) has been already created (merge does UPDATE), the column will have NULL filled as its value, as expected. But if a matching row hasn't been created yet (merge does INSERT INTO), the column will have default value instead of expected NULL.

The issue is the same using both postgresql and in-memory sqlite.

Please see the script below reproducing the issue, thank you.

from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker, scoped_session
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import Column
from sqlalchemy.dialects.postgresql import BIGINT, VARCHAR

CONN_STR = "sqlite:///:memory:"
Base = declarative_base()

class Table(Base):
__tablename__ = "table"

id = Column(BIGINT, primary_key=True)
field = Column(VARCHAR, default="placeholder")

def merge(session, row):
session.begin()
try:
session.merge(row)
session.commit()
except:
session.rollback()
raise

def select(session, table, **criteria):
return session.query(table).filter_by(**criteria).all()

def delete(session, table, **criteria):
return session.query(table).filter_by(**criteria).delete()

def main():
engine = create_engine(CONN_STR, echo=False)
Base.metadata.create_all(engine) # create table
session = scoped_session(sessionmaker(bind=engine, autocommit=True))()

data_null = {
"id": 1,
"field": None
}
data_value = {
"id": 2,
"field": "value"
}

# cleanup
delete(session=session, table=Table, id=data_null["id"])
delete(session=session, table=Table, id=data_value["id"])

merge(session=session, row=Table(**data_null))
print(select(session=session, table=Table, id=data_null["id"])[0].field) # "placeholder" ???
merge(session=session, row=Table(**data_null))
print(select(session=session, table=Table, id=data_null["id"])[0].field) # None

merge(session=session, row=Table(**data_value))
print(select(session=session, table=Table, id=data_value["id"])[0].field) # "value"
merge(session=session, row=Table(**data_value))
print(select(session=session, table=Table, id=data_value["id"])[0].field) # "value"

if __name__ == "__main__":
main()

Environment:

python version - 3.6.3
SQLAlchemy version - 1.2.8

Issue 2:
Migrated issue, originally created by Oleg Pidsadnyi (@olegp)

Mike, I've encountered a behavior that is a bit unexpected:

class Model(Base):
a = Column(Integer, nullable=True, default=1)

m = Model()
m.a = None
session.add(m)

In: print m.a
Out: None

session.commit()

In: print m.a
Out: 1

None is expected :(

I understand that the configuration is silly, but this is the existing code. Setting None to the column doesn't cancel the default and the default thinks that the column wasn't set, so it uses the default value in the end.
Issue 1:
When trying to redirect from a POST request to another page it seems that the request goes wrong. The redirect seems fine in the browser network debug tab and seems to pass normally from the POST method handling but when it tries to go to the new url it gets a status code of |405 Method Not Allowed|. The reason for this it seems by looking at the log is that the request gets mashed up with the query parameter somehow which seems like a bug:

Also it seems to work normally if there is no inputs in the form (but that is of no matter as there are no real life forms without any input).

Replication steps:

Happens on Edge, Chrome and Firefox for sure.

from flask import Flask, request, redirect

app: Flask = Flask(__name__)

@app.route("/", methods=["GET"])
def hello():
return "<a href='/my_form'>to form</a>"

@app.route("/my_form", methods=["GET", "POST"])
def my_form():
if request.method == "GET":
return "<form action='/my_form' method='POST' ><input type='hidden' name='id' value='0'><button type='submit'>Submit</button></form>"
else:
return redirect("/")

# app.run(host="127.0.0.1", port=80, debug=True)

I would expect that the submission of a form allows for a redirect to the home page without any errors like 405. I don't expect any of the arguments to be passed to the redirected request.

Environment:

Python version: 3.9

Flask version: 2.1.1

Issue 2:
With the following example:

from flask import Flask

app = Flask(__name__)

@app.route('/', methods=['POST'])
def hello_world():
return 'Hello World!'

if __name__ == '__main__':
app.run()

When you set the request body to {} with Postman or any HTTP clients, the first request will return 200, while the second request will return a 405 error response. The log shows the request method is {}POST:

"{}POST / HTTP/1.1" 405

Notice the request body became the part of the request method.
Issue 1:
ℹ Computer information

PowerToys version: 0.21.1

PowerToy Utility: Fancy Zones

Running PowerToys as Admin: Yes

Windows build number: 19041.508

📝 Provide detailed reproduction steps (if any)

(Checked) )Hold Shift key to activate zones while dragging

Holds shift key to activate it

Nothing happens

✔️ Expected result

Activate Zones While Dragging

❌ Actual result

Does nothing

📷 Screenshots

Are there any useful screenshots? WinKey+Shift+S and then just paste them directly into the form

Issue 2:
ℹ Computer information

PowerToys version: v0.21.1

PowerToy Utility: FancyZones

Running PowerToys as Admin: No

Windows build number: Windows 10 Version 2004: 19041.450

📝 Provide detailed reproduction steps (if any)

Check the Allow zones to span across monitors checkbox

Configure a zone which uses multiple monitors via the Launch zones editor and Apply

Attempt to snap window to zones, or use Shift key to highlight zones while dragging

✔️ Expected result

A window should snap to a zone

Zone highlighting ought to be functional

The Allow zones to span across monitors setting should persist even when closing settings

If there are errors "Activating" the zones, these should be raised to the user

❌ Actual result

A window will not snap to a zone when the Allow zones to span across monitors is configured

Window zone highlighting is also not functional

When FancyZones settings is closed and re-opened, the Allow zones to span across monitors checkbox is unchecked

When Allow zones to span across monitors is toggled to checked, then unchecked, zone highlighting and snapping functions, though obviously not with the multi-monitor zones

📝 Other Notes

There is a difference in framerate/refresh rate between the two monitors--could that be an issue?

System is a SurfaceBook 2 in a Surface Dock which drives a 2560 x 1440 monitor at 60 fps and a 2560 x 1440 monitor at 30 fps

The fps cannot be made the same as far as I can tell. Likely a hardware limitation.

Display is an LG 49 ultra-wide ( 5120 x 1440)

📷 Screenshots

FancyZones Settings:

Zone Editor spanning monitors:

Monitor configuration: