WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
I already have LLVM installed. I'd rather not download, configure, compile, and install a duplicate LLVM, wasting several hours. I realize that it's an incredible help to do this automatically for Julia users, but for those that already have LLVM version Whatever, could the Makefiles be modified to only install LLVM if it's not already on the system? E.g. which llvm-gcc.

Issue 2:
Currently, you can only access global variables by a combination of dlsym and dlopen: convert(Ptr{T}, dlsym(dlopen("libname"), "varname")). Not only is this ugly, but it will also make things difficult for future static compilation (where we would like to directly link any needed shared libraries with ld, rather than requiring them to be dlopened at runtime).

I'd like to suggest a cglobal(symbol, T=Void) intrinsic, returning a Ptr{T}, that mirrors ccall(symbol, ...). That is, the symbol argument could be a symbol, a (symbol,library) pair, or a pointer returned by dlsym (although in that case cglobal wouldn't do much, just a typecast).

(See #961 for some pre-history of this problem.)
Issue 1:
I accidentally left the "Use Regex" option for "Find in Project" on and searched for a string that resulted in an invalid regular expression, and the resulting exception bubbled to the top of the stack:

Uncaught SyntaxError: Invalid regular expression: /.run (DsEvent/: Unterminated group - results-model.coffee:180

I'd be happy to address this, but I'm not sure what the desired end behavior is.

Issue 2:
When trying to create a new file or a new folder from the right-click menu, Atom crashes.

The bug remains even when Atom is launched with atom --safe.

OS: Windows 8.1 x64

Atom Version: 0.168.0
Issue 1:
example-deno/file_usage.js

example-deno/sort_worka.js

Issue 2:
The most widely available global is self as it is in both workers and in the main window in browsers.

It would be very useful to define this global for cross-platform support.

As a further point it could even be worth having it replace window since typeof window is typically done for an isBrowser detection, while the same cannot necessarily be said of self.
Issue 1:
8329381051

#@

transformers/src/transformers/utils/hub.py

Line 734
in
fe861e5

def push_to_hub(

/

```python`

#23655 [WlP] add transfer script

Issue 2:
🌟 New model addition

Model description

Facebook AI is introducing,

M2M-100

the first multilingual machine translation (MMT) model that translates between any pair of 100 languages without relying on English data.

Open source status

the model implementation is available: (give details) https://github.com/pytorch/fairseq/tree/master/examples/m2m_100?fbclid=IwAR2Oqew-PAwZpTmHMrq_yiXN2dwdzzbTMZ-4HfbNKfdoZ_M5TpQiPY3dYFo

the model weights are available: (give details) https://dl.fbaipublicfiles.com/m2m_100/12b_last_checkpoint.pt

who are the authors: (mention them, if possible by @gh-username)
Issue 1:
Drag and drop .bat file to Windows PowerShell/CMD and start execution of script. This will make running of .bat scripts much more convenient.

Issue 2:
Hi Guys.

I have an profile with ssh.exe which connects to one of my linux boxes. All works fine but i would like to adjust it a little bit.

My problem is that when i connect to that linux box then tab title is automatically changed to 'OpenSSH SSH client". I would like to to keep it as i named it "My linux box".

I tried to use:

"name" : "My linux box",
"tabTitle" : "My Linux Box",

in profile config but tab title still changes.

Is there any way of getting rid off dynamically changed tab titles or setting up static tab title which never changes?

Thank you.
Issue 1:
Bug Report

Current Behavior

Using webpack + preset-env with useBuiltIns: usage + corejs3 does not work on IE11 without additional configuration of webpack entries.

The generated code currently fails with "Unhandled promise rejection TypeError: Target is not iterable" raised from core-js/internal/iterate.js.

To make it work I have to manually add 'core-js/modules/es.array.iterator' to my webpack entry:

entry: [
'core-js/modules/es.array.iterator',
path.join(__dirname, 'src', 'index.js')
],

Input Code

A repro project can be found here:

https://github.com/sarod/bugs-repro/tree/master/babel-bugs/dynamic-import-ie11

Run yarn install && yarn serve and access localhost:8080 using ie11.

Expected behavior/code

According to @zloirock with core-js3 + useBuiltins:usage this should work without additional configuration.

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

{
presets: [
[
'@babel/preset-env',
{
"modules": false,
"useBuiltIns": "usage",
"corejs": {
version: 3
}
}
]
],
plugins: ['@babel/plugin-syntax-dynamic-import']
}

Environment

Babel version(s): [e.g. v7.4.3]

Node/yarn version: [e.g. Node 8.12.0/yarn 1.15.2]

OS: [e.g. Ubuntu 18.04]

Monorepo: [e.g. no]

How you are using Babel: loader

Possible Solution

It looks like webpack is using Promise.all which requires Promise to be iterable.

So preset-env should probably import "core-js/modules/es.array.iterator"

in addition to "core-js/modules/es.object.to-string" and "core-js/modules/es.promise" when finding a dynamic import statement.

Issue 2:
Bug Report

Current Behavior

Dynamic imports are not working in IE10. The following error is shown in the console: "Unhandled promise rejectionTypeError: Target is not iterable". @babel/preset-env is used with core-js@3. .browserslistrc contains ie <= 10.

Input Code

https://github.com/jorenvanhee/dynamic-imports-with-preset-env-test

Run npm i && npm run build and visit /index.html in IE10.

import('./answer').then((module) => {
console.log(module.default);
});

Expected behavior/code

42 should be logged in the console.

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

https://github.com/jorenvanhee/dynamic-imports-with-preset-env-test

Environment

Babel version(s): 7.4.3

Node/npm version: Node 10.15.1/npm 6.5

How you are using Babel: loader

Additional context/Screenshots
Issue 1:
[x ] I have searched the issues of this repository and believe that this is not a duplicate.

Context

I want to inline style Dialog's Backdrop and Paper (actually only Paper but same question can be posed for Backdrop).

<Dialog
open={this.state.open}
onRequestClose={this.handleClose}
fullWidth={true}
style={{...some style...}}
>

</Dialog>

But setting style sets the Dialogue root element's style. Can I inline set style of Backdrop and Paper?

Your Environment

Tech
Version

Material-UI
v1.0.0-beta.21

Issue 2:
Problem description

When switching a LinearProgress's mode, the indeterminate mode is not indeterminate anymore but instead acts as determinate progress bar that is fully filled.

Link to minimal working code that reproduces the issue

https://www.webpackbin.com/bins/-KgQZpihdEJ0etZArvl9

This switches mode every 5 seconds. You can see that the initial indeterminate mode works correctly, but gets stuck after being called again (after 10 seconds).

Versions

Material-UI: 0.17.1

React: 15.4.2

Browser: Opera (same engine as Chrome)

Essentially a duplicate of the stale issue #5252 as it seems, but this time with a working live demo half a year later.
Issue 1:
Docker 1.12 is going to be relased in a week and it will contain feature "The option --dns and --net=host should not be mutually exclusive" (moby/moby#22408)

Let's enable using this functionality in kubelet. For now in case of "hostNetwork: true" set all dns settings are ignored if any.

Issue 2:
With 1.1, we allow pods to be created with hostNetwork = true.

These pods should be allowed to use Cluster DNS, if the pod spec says so.

We have already wired the kube-proxy to support traffic from the host machine to be directed to kube-services. We should similarly allow cluster dns names to be looked up by pods with hostNetwork=true.

This way, pods can use hostNetwork = true and still leverage kubernetes' service discovery mechanisms.

I currently have a use case, where I am writing a GCE Firewall pod, that configures iptables on the nodes. This pod needs to run with hostNetwork=true to configure iptables and the same time needs to look up a kubernetes pod service to read some metadata.

Refer to #17405

https://github.com/ArtfulCoder/kubernetes/blob/prototype2/contrib/gce-firewall/client.yaml#L19

Currently, I have hard-coded a Kubernetes service-ip since we dont have cluster dns for hostNetworked-pods. This is hardly a workable solution.

I would imagine that third-party network plugins would also face similar issues if they try to do a clean implementation.

Option 2:

The other option is to query API server to do service discovery. But this doesn't seem like a clean solution, especially since we have put in so much effort into our DNS based service discovery approach.
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: 3.7.6

Operating System version: Mac os

Java version: java8

nacos1.1.4

Steps to reproduce this issue

同一个nacos下，配置了多个namespace

dubbo配置多注册中心后，项目启动后只注册到一个namespace下

另外一个namespace没有任何provider，配置如下

dubbo:

registries:

test1:

address: nacos://127.0.0.1:8848?namespace=3d064614-057d-4298-a6ce-34ed39e053e1

test2:

address: nacos://127.0.0.1:8848?namespace=1ca1de39-870c-497f-9ac2-f67bb3665691

default: true

Pls. provide [GitHub address] to reproduce this issue.

Expected Result

What do you expected from the above steps？

希望能分别注册到2个namespace下。另外经过实验 当两个address配置的ip:port不一样时是可以成功注册到2个namespace下，是不是dubbo注册时认为ip+port一样就是相同的注册中心

Actual Result

What actually happens?

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.5

Operating System version: xxx

Java version: 1.8

dubbo 2.7.5+nacos 1.1.4启动应用会在nacos配置列表中用服务命创建配置，一个服务会创建一个配置

在nacos logs/config.log日志中发现发布配置的日志：

INFO [main :config.NacosConfigService] [addr-hz-internal.edas.aliyun.com-c1d6921b-00bd-4f3f-b46e-3a44b407c036] [publish-single] ok, dataId=edas-provider, group=mapping-com.zfxf.app.dubbo.service.DemoService, tenant=c1d6921b-00bd-4f3f-b46e-3a44b407c036, config=1590738418788

把dubbo 2.7.5降到2.7.3不会出现创建配置的问题，测试了2.7.6和2.7.5都会出现创建配置的情况。

这个应该是个bug吧。
Issue 1:
We have an Electron app which launches a new window containing a Flash application from the main window. We set plugins to true in the BrowserWindow options and away it goes. All good.

However, the Flash app itself then launches another window containing a Flash component. The Flash component fails because it cannot find the Flash plugin.

This child app works fine if we just launch it directly in a browser OR if we launch it directly from Electron with plugins set to true.

Could Electron be modified to either:

a) allow these child windows to inherit the options of the parent window, or...

b) allow option defaults to be specified for these child windows

or have I missed something and there's an easy way to currently do this?

Thanks.

Issue 2:
If we initialize a browser window with { show: false }, but the browser window runs JS code that opens a javascript window, then a new browser window will open, regardless of { show: false }

Here's an example:

var app = require('app')
var BrowserWindow = require('browser-window');

app.on('ready', function() {
win = new BrowserWindow({ show: false });
win.webContents.loadUrl('http://output.jsbin.com/cekonip/1');
win.webContents.once('did-finish-load', function() {
console.log('loaded!');
})
})

The jsbin runs the following code:

window.open('http://google.com')
Issue 1:
When I plot a heatmap and want to show the given values on top of the cells, only the cell at the bottom/left of the heatmap gets annotated.

import numpy as np
import seaborn as sns
import matplotlib.pyplot as plt
m = np.array([[1, 2, 3], [4, 5, 6], [7, 8 ,9]])
sns.heatmap(m, annot=True, fmt='d')
plt.show()

Another problem is that the text color is poorly chosen, like in this example:

m = np.array([[50000, 50000, 50000], [50000, 50000, 50000], [1, 50000, 50000]])
sns.heatmap(m, annot=True, fmt='d')
plt.show()

I'm using seaborn 0.6.0 with Python 3.4.3 (tried with Python 2.7.9 too, and I have the same bug)

Issue 2:
In version 0.6.0, annotations do not show up on the heatmap (for me at least). Here is a minimal example to reproduce the problem:

import numpy as np
import seaborn
import matplotlib.pyplot as plt

data = np.random.random((5, 5))
seaborn.heatmap(data, annot=True)
plt.savefig("test.png")

Resulting in the following image:

From what I understand, annot=True should write the matrix entries on the heatmap, like symmatplot used to do (and as shown in the documentation). Interestingly, there seems to be only one value in the bottom left corner.
Issue 1:
System information (version)

OpenCV => 4.1.0

Operating System / Platform => Ubuntu 5.4.0-6ubuntu1~16.04.10

Compiler => Java

Detailed description

I use jdk1.8 and opencv410 to read webp picture，I can open and write webp format from file with no problem, but I can't decode from memory. The code (at the end) returns:

imdecode_(''): can't read data: OpenCV(4.1.0) /home/yuxiaoyang/repo_test/xmss_3rdparty/opencv-4.1.0-imsize/modules/imgcodecs/src/grfmt_webp.cpp:164: error: (-215:Assertion failed) data.rows == 1 in function 'readData'

However, it works with opencv 3.1.0

Code：,

System.loadLibrary(Core.NATIVE_LIBRARY_NAME);

String rotate6 = "/tmp/webp.webp";

Mat imdecode = Imgcodecs.imdecode(new MatOfByte(FileUtils.readFileToByteArray(new File(rotate6))), Imgcodecs.IMREAD_UNCHANGED);

System.out.println("imdecode width=" + imdecode.width());

System.out.println("imdecode height=" + imdecode.height());

Code Return：

imdecode_(''): can't read data: OpenCV(4.1.0) /home/yuxiaoyang/repo_test/xmss_3rdparty/opencv-4.1.0-imsize/modules/imgcodecs/src/grfmt_webp.cpp:164: error: (-215:Assertion failed) data.rows == 1 in function 'readData'

imdecode width=0

imdecode height=0

Steps to reproduce

Issue 2:
Python 3.7.3

opencv-python 4.1.0.25 from pip install opencv-python

I can open and write webp format from file with no problem, but I can't decode from memory. The code (at the end) returns:

imdecode_(''): can't read data: OpenCV(4.1.0) /io/opencv/modules/imgcodecs/src/grfmt_webp.cpp:164: error: (-215:Assertion failed) data.rows == 1 in function 'readData'

However, it works with opencv 3.4.2 from conda install opencv.

Also, Kaggle kernel environment (Python 3.6.6 and opencv-python 4.1.0.25) just returns None object without throwing an error.

img = cv2.imread(file)
retval, buf = cv2.imencode(".webp", img, [cv2.IMWRITE_WEBP_QUALITY, 100])
img = cv2.imdecode(buf, 1)
Issue 1:
Hi,

I'm working on node.js with npm. I've written a TS library and I want to use it in another project by doing npm install.

I'm not sure what will should be the contents in my npm package:

should it be only .js, only .ts, or .js with additional declaration files (d.ts)?

Furthermore if I'm using the third option, what exactly am I writing in the definition file? how exactly am I using it?I'm not sure what's the connection between d.ts and the actual javascript.

I see a lot of different answers but most them didn't help me.

Thanks,

Omer

Issue 2:
TypeScript Version:

1.8.0

Code

interface Class<T> {
new(): T;
}
declare function create1<T>(ctor: Class<T>): T;
declare function create2<T, C extends Class<T>>(ctor: C): T;

class A {}
let a1 = create1(A); // a: A --> OK
let a2 = create2(A); // a: {} --> Should be A

Context

The example above is simplified to illustrate the difference between create1 and create2. I need both type parameters for the use case I have in mind (React) because it returns a type which is parameterized by both T and C:

declare function createElement<T, C extends Class<T>>(type: C): Element<T, C>;
var e = createElement(A); // e: Element<{}, typeof A> --> Should be Element<A, typeof A>

declare function render<T>(e: Element<T, any>): T;
var a = render(e); // a: {} --> Should be A

Again, this is simplified, but the motivation is to improve the return type inference of ReactDOM.render.
Issue 1:
Uncaught Error: spawn pyflakes ENOENT

Atom Version: 0.154.0

System: Mac OS X 10.10.1

Thrown From: Atom Core

Steps To Reproduce

apm install linter linter-pyflakes

Open any Python file

$ pyflakes --version
0.8.1

Stack Trace

At events.js:85

Error: spawn pyflakes ENOENT
at exports._errnoException (util.js:742:11)
at Process.ChildProcess._handle.onexit (child_process.js:1051:32)
at child_process.js:1142:20
at process._tickCallback (node.js:378:11)

Issue 2:
Uncaught Error: spawn pyflakes ENOENT

Atom Version: 0.154.0

System: Mac OS X 10.9.5

Thrown From: Atom Core

$ pyflakes --version
0.8.1

Linter 0.8.0, Linter Python Pyflakes 0.1.0 (bsnux)

Steps To Reproduce

Started atom in a (mostly python) project with the following storage file:

https://gist.github.com/jagill/833eac508959d3f1cf1b

Split pane vertically.

Saw error which told me to report it.

Possibly of note: The shell session which launched atom was also running under a python virtualenv.

$ which python
/Users/jag/euler/venv/bin/python
$ which pyflakes
/usr/local/bin/pyflakes

Stack Trace

At events.js:85

Error: spawn pyflakes ENOENT
at exports._errnoException (util.js:742:11)
at Process.ChildProcess._handle.onexit (child_process.js:1051:32)
at child_process.js:1142:20
at process._tickCallback (node.js:378:11)
Issue 1:
hi,

here is my site

richer-poorer.com/devsite.

its in magento. magento use prototype.js file. but with that file included my reponsive menu only work one time. after that clicking on collapse button does nothing.

I cant remove the prototype.js because that causes magento to stop.

Can anyone help about it?

I have tried both (Placing jquery file before prototype as well as in the footer) but result is same.

Issue 2:
Hi everyone,

i'm using Prototype and bootstrap. So i have to use jQuery noConflict.

The Problem: Responsive Navbar doesn't work correctly. It works one time and than it get height:0px and display:none. When i delete noConflict it works fine (except prototype). I've tried to load jquery and bootstrap in head or before body end with same result. Replace $ to other variable in bootstrap.js doesn't work too.

Can anybody help?
Issue 1:
I want to place this error message to center. This is not possible with currently. I tried almost every approach.

textAlign: TextAlign.center,

is not helping to move error message to center. It moves the input text and placeholder to center not an error message

We need this in our current design spec. It would be good if you fix it as early as possible.

Thanks.

Issue 2:
When used with the TextField the InputDecorator 'errorText' uses the TextField's textAlign property (I suspect).

This is a problem when the TextField is used to show numerical values in which case the value should be right-aligned but the error message should be left-aligned.
Issue 1:
I'm submitting a ... (check one with "x")

[ ] bug report
[x] 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

Due to script tags being stripped from component templates, there is no way to implement JSON-LD tags.

Further discussion on this topic can be found here and #2766

Expected/desired behavior

Using angular-universal and on sites implementing pure client side rendering, there needs to be a way for users of angular2 to implement JSON-LD tags for SEO purposes. At the moment this is not possible.

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

Google recommend JSON-LD for structured data. The alternative of using micro data is also not a very good idea as this data would be disseminated throughout the templates of many, if not all components.

Issue 2:
I'm submitting a...

[x] Bug report
[x] Feature request

Background

Imagine you have the following webcomponent:

<expression>
<script type='text/plain'>
If(var1 < var2,
Sum([Field 1])
,
Sum([Field 2])
)
</script>
</expression>

The component reads the text inside the script tag and sends it to a server which evaluates the result.

The webcomponent should be embedded in an Angular App. It is no Angular component and should just rendered as is.

It has to contain a script tag because 'text/plain' allows it not to be parsed as HTML and like this, it is possible for expressions to contain characters like < as in var1 < var2 without being recognized as the beginning of a html tag.

Current behavior

Angular deletes all script tags inside templates, also those with text/plain. I read, that this is because you shouldn't mix JavaScript with Angular Templates, but this is just plain text.

Expected behavior

<script type="text/plain" should not be deleted. It is the only way to integrate text without having to escape all html characters.

Minimal reproduction of the problem with instructions

Insert the following code into a template and see if it will be deleted.

<script type='text/plain'>
If(var1 < var2,
Sum([Field 1])
,
Sum([Field 2])
)
</script>

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

If <script type="text/plain" would not be deleted it is possible to insert everything which is not html without having to escape it. HTML 5 supports it and as far as I know there is no alternative. Also it isn't a security vulnerability.

Environment

Angular version: 6.1.0
Browser:
- [x] Chrome (desktop) version 69
Issue 1:
if the PC has

"helvetica" font,

and

css sais

font-family: "helvetica";

IE 9&10 can not display anything.

so I think it is important,

"helvetica" should be removed from defolt "font-family".

thank you.

Issue 2:
as a developer I got helvetica Neue install in my win7.

ie8 are okay

in ie9/ie10 it just show a blank page, even official bootstrap webpage

possibly due to

http://bobbyjoneswebdesign.blogspot.hk/2011/12/internet-explorer-9-type-1-font-bug.html

currently I am override font setting with

body, input,

button,

select ,.navbar-search .search-query {

font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;

}

to fix the issue
Issue 1:
As discussed on the mailing list, adding type information to an array of tuples actually slows down Julia. This doesn't seem right:

f = rand(Float64,10^6)
i = rand(Int,10^6)
v1 = collect(zip(f,i)) # Vector{(Float64,Int64)}
v2 = convert(Vector{Any}, v1)
@time sort(v1);
@time sort(v2);

gives 23sec for the typed array and 9sec for the untyped array (with Julia 0.4).

cc: @StefanKarpinski

Issue 2:
Hi all,

The following code seems to allocate a lot of memory:

function test!(arr::Array{(Int, Int)})
for i = 1:10_000_000
arr[1] = arr[2]
end
end

a = [(1, 1), (2, 2)]
test!(a)

Here are the results of @time test!(a) (using HEAD on the master branch, commit ce29d78) :

elapsed time: 0.439144953 seconds (320013808 bytes allocated, 40.35% gc time)

On the other hand, using a composite type works as expected:

immutable Pair{T1, T2}
a::T1
b::T2
end

function test!(arr::Array{Pair{Int, Int}})
for i = 1:10_000_000
arr[1] = arr[2]
end
end

a = [Pair(1, 1), Pair(2, 2)]
test!(a)

Here @time test!(a) yields

elapsed time: 0.022649237 seconds (80 bytes allocated)

Am I missing something obvious? It seems that each assignment triggers an allocation in the case of tuples (adding @time before the assignment suggests a 32 bytes allocation). Why is that? Is this documented somewhere?

(I ran into this problem when trying to use a heap to extract the top n elements from a list of tuples without sorting it first, as done in Python's heapq.nlargest method)