WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
I don't see any reason why the first input ar1 needs to be one dimensional. If not for this limitation, I think it would perfectly answer my question here: http://stackoverflow.com/q/41318942/125507

Issue 2:
in1d takes two arrays, ar1 and ar2, and returns a 1d array with the same number of elements as ar1. The logical extension would be a function that does the same thing but returns a (possibly multi-dimensional) array of the same shape as ar1. Effectively, it would be equivalent to this:

def in(ar1, ar2, **kwargs):
return np.in1d(ar1, ar2, **kwargs).reshape(ar1.shape)

although it might be implemented differently.
Issue 1:
In 0.11, the code

<div>
<div key={null}>foo</div>
<div key={null}>bar</div>
</div>

assigned implicit keys to both children. In 0.12, it gives the error

Warning: flattenChildren(...): Encountered two children with the same key, .$null. Child keys must be unique; when two children share a key, only the first child will be used.

and renders only "foo", because the key is cast to a string in ReactElement

react/src/core/ReactElement.js

Line 140
in
be468c2

key = config.key === undefined ? null : '' + config.key;

before it gets checked against null in traverseAllChildren:

react/src/utils/traverseAllChildren.js

Line 50
in
be468c2

if (component && component.key != null) {

I guess it's okay if this is intentional but it broke a part of KA in the upgrade.

@sebmarkbage? (cc @jdan)

Issue 2:
I created the app by npx create-app order //not this problem Mismatching Versions of React and React DOM and not this Duplicate React

here is my code

First,I created a hook usePre.js which is copied from https://reactjs.org/docs/hooks-faq.html#how-to-get-the-previous-props-or-state

import React,{useRef,useEffect} from "react"; export default function useTest(value) { const ref=useRef(); useEffect(()=>{ ref.current=value; }); return ref.current; }

then I fixed the App.js to

import React from "react"; import useTest from "./useTest"; function App() { const a = useTest(1); return (<div>test</div>); } export default App;

and fixed the index.js

import ReactDOM from 'react-dom'; import App from './App'; const app = App(); ReactDOM.render( app, document.getElementById('root') );

then the error of Invalid hook call happened

I don't think I have broken the hooks rules

no call Hooks in class components.

no call in event handlers.

no call Hooks inside functions passed to useMemo, useReducer, or useEffect

I just use it in the root app?maybe it's the new rule?
Issue 1:
Input Code

function f(...[a, b, c]) {
return a + b + c;
}

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

{
"presets": ["es2015", "stage-0"]
}

Expected Behavior

It should compile.

Current Behavior

repl: Unexpected token (1:14)
> 1 | function f(...[a, b, c]) {
| ^
2 | return a + b + c;
3 | }

Context

The sample code is taken from MDN (here) and runs just fine on Chrome natively.

Your Environment

software
version

Babel
6.18.0

node
6.3.1

npm
3.10.3

Operating System
macOS 10.11.5

Issue 2:
((...[, y, z]) => console.log(y, z))(1, 2, 3);

However, this code is valid in ES2016. It even works in Chrome 50.

For more information, see https://esdiscuss.org/topic/ignoring-arguments

https://phabricator.babeljs.io/T7396
Issue 1:
Currently it is impossible to modify the Host header when calling fetch().

This is not a duplicate of #11017 , because that asked to disallow the header to be modified, while I am requesting for a way to allow modifying it.

It is needed for us to communicate with an internal system that only ever expects the Host header to be an external-facing domain. (a reverse proxy or changing the machines /etc/hosts seems a bit overkill)

It could be part of Deno.createHttpClient ({allowCustomHost: true} or similar) as described in #6868 (comment)

Issue 2:
I think this would make deno.land/x way more usable outside Deno too. Currently Deno works well with ES Modules, but deno.land/x does not provide JS files that could be used in vanilla browser script tags or JS files.

For instance sometimes I find a nice Deno library, and because most Deno code follows standards, I could import it in the browser. But I can't because deno.land/x/ does not provide JS files, it only provides TS files, e.g.

<script type="module">
import { pathToRegexp, match, parse, compile } from "https://deno.land/x/path_to_regexp@v6.2.0/index.js"
</script>

Does not work, because https://deno.land/x/path_to_regexp@v6.2.0/index.ts is just a TS file. Then I have to jump hoops to get it in my adhoc script tags.

Third Party Modules library could just compile all TS files to JS files when updated, then they would be usable in the browser as well.
Issue 1:
sharding-proxy 4.0.0.RC

postgresql 10.4

when i use the sharding-proxy manage two node pg server

the console log show that

Issue 2:
Bug Report

Which version of Sharding-Sphere did you use?

3.0.0.M3

Which project did you use? Sharding-JDBC or Sharding-Proxy?

Sharding-JDBC

Expected behavior

The construction of ShardingDataSource costs less than 10 sec.

Actual behavior

Base on Oracle, it costs 23 seconds to initialize an object of ShardingDataSource when the count of tables in default datasource is 167.

Reason analyze (If you can)

During the initialization process, the ShardingMetaData will be construcated, in which the TableMetaData of all tables comming from default-datasource would be loaded. As there are 167 tables in my default datasource, the times of database access would be 167*3. Meanwhile the database access is in turn, which is very time-consuming.

The key code is as follows:

io.shardingsphere.core.metadata.table.executor.TableMetaDataInitializer

public Map<String, TableMetaData> load(final ShardingRule shardingRule) {
Map<String, TableMetaData> result = new HashMap<>();
try {
result.putAll(loadShardingTables(shardingRule));
result.putAll(loadDefaultTables(shardingRule)); // the entry
} catch (final SQLException ex) {
throw new ShardingException(ex);
}
return result;
}

io.shardingsphere.core.metadata.table.executor.TableMetaDataLoader

The method isTableExist() costs one database access

The method getColumnMetaDataList() costs two database access. One is getPrimaryKeys and the other is getColumns.

private Collection<TableMetaData> load(final String dataSourceName, final String catalog, final Collection<DataNode> dataNodes) throws SQLException {
Collection<TableMetaData> result = new LinkedList<>();
try (Connection connection = connectionManager.getConnection(dataSourceName)) {
for (DataNode each : dataNodes) {
result.add(new TableMetaData(
isTableExist(connection, catalog, each.getTableName()) ? getColumnMetaDataList(connection, catalog, each.getTableName()) : Collections.<ColumnMetaData>emptyList()));
}
}
return result;
}

Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.

Just find an Oracle database such as db1 and create 100+ tables. It appears when initializing a ShardingDatasource.

sharding.jdbc.config.sharding.default-data-source-name=db1

Could you explain the reason of loading the TableMetaData of default datasource? Is it necessary？

Looking forward for your reply. Thanks a lot!

Example codes for reproduce this issue (such as a github link).

I will write a sample on github if you need.
Issue 1:
Q
A

Bug report?
no

Feature request?
no

BC Break report?
no

RFC?
yes

Symfony version
4.1

While talking with @mbabker, we figured out that the "internal" flag on the Inflector component discourages ppl from relying on it (obviously). Is there any remaining reason why we keep the flag?

Issue 2:
I can't see any discussions of ADR in regards to Symfony, so forgive me if I'm duplicating.

With the changes to the way developers are using MVC, and the increase in "thin controllers" recommendations, has the time come to adopt a slightly different way of doing things?

As many of you no doubt know, Paul M. Jones has proposed an alternative to MVC that he is calling ADR - Action-Domain-Response.

The main considerations for Symfony that I can see is that actions are classes and the Response contains headers/metadata as well as the content.

I appreciate that these changes will cause a BC break, but if BC is required then both can be supported at the same time, as far as I can see (using a different routing type). It might be possible to do it via a bundle, but not sure.

So, any thoughts?
Issue 1:
let abortController = new AbortController()
abortController.abort()
await fetch("https://www.blockchain.com/ticker", { signal: abortController.signal }).catch(console.log)

The web browser (Google Chrome 84.0.4147.125) will output the correct result:

--> DOMException: The user aborted a request.

But the Deno (1.2.3) will not output anything:

According to the Web API Standard Documentation:

https://developer.mozilla.org/en-US/docs/Web/API/AbortController

https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal

[Note: When abort() is called, the fetch() promise rejects with a DOMException named AbortError.]

Because of Deno is aim to implementing Web APIs on server side, So the problem is on Deno.

I hope this bug can be fix as soon as possible, because this is the recommeded method to abort the fetch at the Web API Standard Documentation

https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API

(See "Aborting a fetch")

Issue 2:
Reference: https://developers.google.com/web/updates/2017/09/abortable-fetch

Also Request should have a signal property.
Issue 1:
function f()
for i in [1,2,3,4]

println("i = $i")
try
[1,2][i]
catch e
println("catch!")
if (rand() > 0.5)
break
else
return
end
finally
println("finally!")
end

println("")
end
end

return from the catch block results in the finally block being executed.

However, break from the catch block causes the finally block to be skipped.

Issue 2:
I expect the below code to print "finally", but nothing gets printed. It seems as though the break statement results in the finally block never executing.

for i=1:10
try
break
finally
println("finally")
end
end

versioninfo():

Julia Version 0.4.0-dev+6971
Commit c7809f8 (2015-08-25 22:51 UTC)
Platform Info:
System: Linux (x86_64-amazon-linux)
CPU: Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Sandybridge)
LAPACK: libopenblas
LIBM: libopenlibm
LLVM: libLLVM-3.3
Issue 1:
unsafe.Sizeof(image.RGBAColor{}) == 8

this means that a 32-bit-per-pixel image actually
uses 64 bits, which seems a harsh price to pay.

in general, i'd hope that a struct size be padded
to fulfill the alignment requirement of its largest member
and no more.

Issue 2:
Following program using Fscanf panics,

http://play.golang.org/p/0vdaUh2hJp

panic: unexpected newline

goroutine 1 [running]:
main.main()
/tmp/sandbox/1.go:19 +0x3af
exit status 2

Another similar program using Scanf seems to work fine,

http://play.golang.org/p/rrBjFXuC0a

$ go run 2.go < input

$ hexdump input
0000000 31 0a 32 0a
0000004

on commit 335e44d

Am I doing something terribly wrong or there is a legit bug? I've also file one relevant bug - #10853
Issue 1:
cb() never called!

Issue 2:
Is there an existing issue for this?

I have searched the existing issues

Current Behavior

I run npm install optoolco/tonic#v13.3.0 but instead v13.3.2 is installed.

The wrong version is installed.

Expected Behavior

Expected the right version to be installed ( v13.3.0 )

Steps To Reproduce

raynos at raynos-Precision-5530
~/optoolco/async-level on master
$ npm -v
6.14.13
raynos at raynos-Precision-5530
~/optoolco/async-level on master
$ npm i npm@7 -g
npm http fetch GET 304 https://registry.npmjs.org/npm 147ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/npm/-/npm-7.17.0.tgz 237ms
/home/raynos/projects/nvm/versions/node/v14.15.4/bin/npm -> /home/raynos/projects/nvm/versions/node/v14.15.4/lib/node_modules/npm/bin/npm-cli.js
/home/raynos/projects/nvm/versions/node/v14.15.4/bin/npx -> /home/raynos/projects/nvm/versions/node/v14.15.4/lib/node_modules/npm/bin/npx-cli.js
+ npm@7.17.0
added 62 packages from 25 contributors, removed 242 packages and updated 193 packages in 4.238s
raynos at raynos-Precision-5530
~/optoolco/async-level on master
$ npm i optoolco/tonic#v13.3.2 -S
npm http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/advisories/bulk 380ms
npm http fetch GET 200 https://codeload.github.com/optoolco/tonic/tar.gz/191fd38b3c3eaf6b419ce8f5f38fa4a26940cdaf 366ms (cache miss)
pm[ .........] / reify:@optoolco/tonic: http fetch GET 200 https://codeload.github.com/optool[ .........] / reify:@optoolco/tonic: http fetch GET 200 https://codeload.github.com/optoolc

added 1 package, and audited 13 packages in 16s

found 0 vulnerabilities
raynos at raynos-Precision-5530
~/optoolco/async-level on master*
$ npm -v
7.17.0
raynos at raynos-Precision-5530
~/optoolco/async-level on master*
$ cat node_modules/@optoolco/tonic/package.json | jq .version
"13.3.2"
raynos at raynos-Precision-5530
~/optoolco/async-level on master*
$ npm i optoolco/tonic#v13.3.0 -S
npm http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/advisories/bulk 354ms

up to date, audited 13 packages in 2s

found 0 vulnerabilities
raynos at raynos-Precision-5530
~/optoolco/async-level on master*
$ cat node_modules/@optoolco/tonic/package.json | jq .version
"13.3.2"

Environment

OS: Ubuntu 18

Node: 14.15.4

npm: 7.17.0
Issue 1:
Bug summary

Instead of inverting the yaxis, invert_yaxis actually has the same effect as invert_xaxis:

The demo code is derived from the demo here.

Code for reproduction

import matplotlib
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt

fig = plt.figure(figsize=(9,3.5), dpi=80)
ax1 = fig.add_subplot(141, projection='3d')
ax2 = fig.add_subplot(142, projection='3d')
ax3 = fig.add_subplot(143, projection='3d')
ax4 = fig.add_subplot(144, projection='3d')

fig.suptitle(f"matplotlib v{matplotlib.__version__}")

ax1.plot([1,1,10,10], [1,10,10,10], [1,1,1,10], marker="o")
ax2.plot([1,1,10,10], [1,10,10,10], [1,1,1,10], marker="o")
ax3.plot([1,1,10,10], [1,10,10,10], [1,1,1,10], marker="o")
ax4.plot([1,1,10,10], [1,10,10,10], [1,1,1,10], marker="o")

ax2.invert_xaxis()
ax3.invert_yaxis()
ax4.invert_zaxis()

plt.show()

Actual outcome

Expected outcome

(well ... somewhat like this)

Additional information

This was worked on here, but apparently did not fix my issue, or am I missing something?

0e41317

#14579

Matplotlib Version

3.5.0

Installation

conda

Issue 2:
Bug summary

The ax.invertxaxis() and ax.invert_yaxis() function both produce the same output, a scatterplot with a flipped X axis.

Code for reproduction

from mpl_toolkits import mplot3d
import matplotlib.pyplot as plt

ax = plt.axes(projection='3d')
plt.title("Invert Z")
ax.scatter3D(1,1,1)
# ax.invert_xaxis()
ax.invert_yaxis()
# ax.invert_zaxis()

Actual outcome

No inversions:

X Inversion:

Y Inversion:

Z Inversion behaves as expected:

Expected outcome

I would expect the y axis to be inverted

Operating system

No response

Matplotlib Version

3.2.2

Matplotlib Backend

No response

Python version

No response

Jupyter version

No response

Other libraries

mpl_toolkits.mplot3d

Installation

No response

Conda channel

No response
Issue 1:
Browser: Chrome.

After any interaction with page this effect disappears.

Component's code:

<TextField

errorStyle={{ top: '7px' }}

floatingLabelStyle={{ fontSize: '14px', fontWeight: 300, color: '#dddede' }}

floatingLabelFocusStyle={{ fontSize: 12, fontWeight: 300, transform: 'perspective(1px) scale(1) translate3d(0px, -28px, 0px)' }}

floatingLabelText="Password"

inputStyle={{ height: 28, marginTop: 36 }}

style={{ width: '100%' }}

type="password"

errorText={error(password)}

{...password}

/>

Issue 2:
It will be fine to have theme properties available when overriding component style.

Example of usage:

const theme = createMuiTheme({
overrides: {
MuiButton: theme => ({
root: { backgroundColor: theme.palette.secondary }
})
}
})

May I create PR? Solution is to add

if (typeof overrides == 'function') overrides = overrides(theme)

after line 14 in styles/getStylesCreator.js
Issue 1:
Environment

Windows build number: Microsoft Windows [Versión 10.0.18362.295]
Windows Terminal version: Windows Terminal Preview v0.3.2171.0

Steps to reproduce

Install Windows Terminal from Microsoft Store.

Launch Windows Terminal.

Expected behavior

Open a Windows Terminal window.

Actual behavior

Application Icon apears on tray, but doesn't show any window. Process DesktopWindowXamlSourcein Task Manager shows "not respoding" status.

There is no error in event viewer. profile.json is not created.

Issue 2:
Windows Terminal doesn't start after reboot. It was working on current machine, but suddenly stop working and now it run only a zero size window with "DesktopWindowXamlSource" caption, that hangs immediately after start. I can close it only from task manager.

It was working fine but after another windows update it just doesn't start. I've rebooted my PC several times, deleted profile.json, try to install Preview terminal version - nothing of this doesn't helps to me.

I'm located in secure local network and don't have administrator rights on my PC.

Link on feddback hub: https://aka.ms/AA8xqz6

Environment

Windows 10 2004
Microsoft Windows NT 10.0.19041.0
Windows Terminal version 1.0.1211.0

Steps to reproduce

Run Windows Terminal from desktop icon.

Expected behavior

It start and work

Actual behavior

It start and nothing happen. Just empty window with caption "DesktopWindowXamlSource", that i can't close.
Issue 1:
In at least one case (and presumably more), FromStr::from_str() produces a result that is off by one ulp.

Example:

pub fn main() {
use std::str::FromStr;
let literal: f64 = 0.123f64;
let fromstr: f64 = FromStr::from_str("0.123").unwrap();
println!("Literal: {:16X}", as_int(literal)); // Literal: 3FBF7CED916872B0
println!("FromStr: {:16X}", as_int(fromstr)); // FromStr: 3FBF7CED916872B1
println!("Equal: {}", literal == fromstr); // Equal: false
}

pub fn as_int(f: f64) -> u64 {
unsafe{ std::mem::transmute::<f64,u64>(f) }
}

Here the compiler produces the correct result for the literal value but the runtime parsing function produces a different, incorrect result. The difference is tiny, but of course it is enough to cause problems :)

For the record, here is the output of rustc --version --verbose on my system:

rustc 1.0.0-nightly (30e1f9a1c 2015-03-14) (built 2015-03-15)
binary: rustc
commit-hash: 30e1f9a1c2bf7134135800bc9afd082773defadc
commit-date: 2015-03-14
build-date: 2015-03-15
host: x86_64-unknown-linux-gnu
release: 1.0.0-nightly

Issue 2:
Some inputs to std::float::from_str give a value that prints as an integer, but does not compare equal to it:

rusti> std::float::from_str("0.67e3").get()
670
rusti> std::float::from_str("0.67e3").get() == 670f
false
rusti> std::float::to_str_hex(670f)
~"29e"
rusti> std::float::to_str_hex(std::float::from_str("0.67e3").get())
~"29e.00000000002"

For comparison, Python does not have this issue:

>>> float('.67e3') == 670
True
Issue 1:
When saving a protected file, such as http-vhosts.conf, Atom displays an authentication dialog. But the password field is unfocused requiring the user to click on the dialog and the field. It would be much more convenient of Atom would focus on that password field automatically.

Issue 2:
On Mac, if I make changes to a file to which I don’t have write access and attempt to save them, the dialog that pops up asking for an administrator password is not focussed, and if you start typing your password without noticing you end up typing it into the file you are trying to save. Neither Sublime Text nor TextMate do this.
Issue 1:
Current Behavior:

Expected Behavior:

Steps To Reproduce:

NPM can not install updates

Environment:

OS：Window10

Node：v14.15.4

Issue 2:
Current Behavior:

Installing latest npm version when on 7.5.3 generates an error:

npm -v
7.5.3

npm i -g npm
npm ERR! code EPERM
npm ERR! syscall rename
npm ERR! path C:\Program Files\nodejs\node_modules\npm
npm ERR! dest C:\Program Files\nodejs\node_modules\.npm-QXjMEw5N
npm ERR! errno -4048
npm ERR! Error: EPERM: operation not permitted, rename 'C:\Program Files\nodejs\node_modules\npm' -> 'C:\Program Files\nodejs\node_modules\.npm-QXjMEw5N'
npm ERR! [Error: EPERM: operation not permitted, rename 'C:\Program Files\nodejs\node_modules\npm' -> 'C:\Program Files\nodejs\node_modules\.npm-QXjMEw5N'] {
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'rename',
npm ERR! path: 'C:\\Program Files\\nodejs\\node_modules\\npm',
npm ERR! dest: 'C:\\Program Files\\nodejs\\node_modules\\.npm-QXjMEw5N'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It's possible that the file was already in use (by a text editor or antivirus),
npm ERR! or that you lack permissions to access it.
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.

Expected Behavior:

npm should be installed globally without error. If 7.5.3 is (still) the latest version, no change occurs

Steps To Reproduce:

Windows 10 x64 environment with node 14.5.4 and npm 7.5.3 installed

Run npm i -g npm

See error with regard to renaming a file

Environment:

OS: Windows 10 x64

Node: 14.5.4

npm: 7.5.3
Issue 1:
i am not sure if this is a feature request or a documentation bug. my first thought upon discovering FancyZones was how does it interact with a virtual desktop? my second question was can it be used to record the applications and their grid positions so that the apps can be started at login and their grid positions restored (along with their virtual desktop locations)?

Issue 2:
By default, if we restart the computer, (and we have apps in autostart) all previously launched apps appear on the first desktop and must be redeployed on virtual desktops.

(I don't know if I explained it correctly)
Issue 1:
VSCode Version:1.0

OS Version:Windows 8.1

Steps to Reproduce:

Open a txt file which file size is 90MB

Can not open it

Issue 2:
Basically, I tried to open a 250 MB log file and got a message that vscode doesn't support this. vs2015 opened the file in a second.

I like that it didn't hang or crash, like many other editors, but I don't see why opening large log files is a hard problem. Log files generally have a simple structure: a sequence of reasonably long text lines; vscode could detect if the file looks like a good log file and render a part of it that is visible. Obviously, then I'll want all the cool features like regexp search and highlighting, but I believe that this can be nicely abstracted at the fs level.