WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
TestInterfaces fails on freebsd-arm:

--- FAIL: TestInterfaces (0.00s)
interface_test.go:74: route ip+net: invalid network interface name
FAIL
FAIL net 4.727s

/cc @mikioh

Issue 2:
by smith.winston.101:

Building Go 1.3-beta1 on FreeBSD-CURRENT-r264670/armv6 (Beaglebone Black) fails the
following tests (see below for details):
1) math
2) net
3) strconv

Go 1.3beta1 was built as follows:

CC=clang ./all.bash

`go version` shows:

go version devel +f8b50ad4cac4 Mon Apr 21 17:00:27 2014 -0700 + freebsd/arm

`clang --version` shows:

FreeBSD clang version 3.4 (tags/RELEASE_34/final 197956) 20140216
Target: armv6--freebsd11.0-gnueabi
Thread model: posix

NOTES:
1) Go 1.3-beta1 compiled and ran tests OK on FreeBSD-RELEASE-10 using Clang 3.3 (tags/RELEASE_33/final 183502)
2) Go 1.3-beta1 compiled and ran tests OK on the same BeagleBone Black hardware running Linux (Debian Wheezy, GCC 4.6.3).

--- FAIL: TestFrexp (0.00 seconds)
all_test.go:2048: Frexp(0) = 0, 0, want 0.9999999999999998, -1022
all_test.go:2048: Frexp(0) = 0, 0, want 0.5, -1073
all_test.go:2048: Frexp(0) = 0, 0, want -0.9999999999999998, -1022
all_test.go:2048: Frexp(0) = 0, 0, want -0.5, -1073
--- FAIL: TestIlogb (0.00 seconds)
all_test.go:2108: Ilogb(0) = -2147483648, want -1023
all_test.go:2108: Ilogb(0) = -2147483648, want -1074
all_test.go:2108: Ilogb(0) = -2147483648, want -1023
all_test.go:2108: Ilogb(0) = -2147483648, want -1074
--- FAIL: TestLdexp (0.00 seconds)
all_test.go:2169: Ldexp(0.9999999999999998, -1022) = 2.225073858507201e-308, want 0
all_test.go:2169: Ldexp(0.5, -1073) = 5e-324, want 0
all_test.go:2169: Ldexp(-0.9999999999999998, -1022) = -2.225073858507201e-308, want 0
all_test.go:2169: Ldexp(-0.5, -1073) = -5e-324, want 0
all_test.go:2169: Ldexp(2.2250738585072014e-308, -52) = 5e-324, want 0
all_test.go:2169: Ldexp(0, 1074) = 0, want 1
all_test.go:2169: Ldexp(1.7976931348623157e+308, -2097) = 1e-323, want 0
--- FAIL: TestLogb (0.00 seconds)
all_test.go:2229: Logb(0) = -Inf, want -1023
all_test.go:2229: Logb(0) = -Inf, want -1074
all_test.go:2229: Logb(0) = -Inf, want -1023
all_test.go:2229: Logb(0) = -Inf, want -1074
--- FAIL: TestNextafter (0.00 seconds)
all_test.go:2314: Nextafter(0, -1) = -5e-324 want 0
all_test.go:2314: Nextafter(-0, 1) = 5e-324 want 0
all_test.go:2314: Nextafter(-0, -1) = -5e-324 want 0
--- FAIL: TestFloatMinMax (0.00 seconds)
all_test.go:2577: Sprint(SmallestNonzeroFloat64) = 0, want 5e-324
all_test.go:2577: Sprint(SmallestNonzeroFloat32) = 0, want 1e-45
FAIL
FAIL math 1.036s

--- FAIL: TestInterfaces (0.00 seconds)
interface_test.go:59: table: len/cap = 2/2
interface_test.go:71: InterfaceByName("") failed: invalid network interface name
FAIL
FAIL net 5.944s

--- FAIL: TestFtoa (0.01 seconds)
ftoa_test.go:149: testN=64 0 g -1 want 2.225073858507201e-308 got 0
ftoa_test.go:149: AppendFloat testN=64 0 g -1 want abc2.225073858507201e-308 got abc0
ftoa_test.go:147: testN=32 0 g -1 want 2.225073858507201e-308 got 0
ftoa_test.go:151: AppendFloat testN=32 0 g -1 want abc2.225073858507201e-308 got abc0
FAIL
FAIL strconv 6.168s
Issue 1:
Description of the problem

MeshDepthMaterial with THREE.RGBADepthPacking doesn't work correctly on iOS.

How to reproduce:

Simply open https://threejs.org/examples/?q=chann#webgl_materials_channels on a iOS device and set the material to "depthRGBA".

The issue with the depth packing can be also seen when opening the SAO example.

Works fine on Chrome (Mobile), Firefox, Internet Explorer, Microsoft Edge, Safari.

Doesn't work on Safari Mobile

What to expect (screenshot from android device):

What I get:

Seems to be a problem with the RGBADepthPacking packing. will investigate it a bit further.

Three.js version

Dev

Browser

iOS Safari Mobile

OS

iOS (11?)

Hardware Requirements (graphics card, VR Device, ...)

Device with iOS (iPhone), only tested iPhone X so far.

Issue 2:
I read the folder of /doc and the list.js ,the category of api is writed in JSON.

I want to know how the document be built. Do you write html of document directly, Or write text of docment in some software then built the folder of doc/ automatically.

I can write html, but maybe there is a easy way to do this.
Issue 1:
export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.12.1-cp27-none-linux_x86_64.whl

pip install --upgrade $TF_BINARY_URL

then got errors!

Issue 2:
The TensorFlow 1.0.0 alpha binaries require SSE4.1, which was not necessary to run the binaries of earlier versions (e.g. 0.12.1). SSE4.1 is only supported by a few AMD architectures. In particular, it is not supported by the "Barcelona" and the "Bobcat" architecture. They support SSE4a, which is not supported by Intel processors.

Therefore, running the 1.0.0 binaries on our workstations with "AMD Opteron(tm) Processor 6174" fails with the following error:

The TensorFlow library was compiled to use SSE4.1 instructions, but these aren't available on your machine.

Is it possible to make the official TensorFlow 1.0.0 binaries not dependent on vendor specific SSE4.1 instructions? I am aware that these AMD processors are not the newest ones and that it's possible to compile TensorFlow without the SSE4.1 requirement (at least, I assume so), but I wanted to raise this issue to see if you think it might be possible to make the official 1.0.0 binaries work without SSE4.1. Alternatively, would you consider offering alternative binaries without SSE4.1 similar to how you offer different binaries for different python versions?
Issue 1:
We have huge volumes of runs in visual comparison. We often face the problem that it is necessary to assign a new screenshot as a reference. It will be very convenient to have a button in the report for reassigning a screenshot.

Issue 2:
Hey, at one of my projects there was a custom CLI tool that allowed interactive reviewing snapshot test results and updating the baseline images/texts. As far as I know there is something similar available for snapshot tests in Jest (Interactive Snapshot Mode).

What I mean is a CLI that will go through the test results one by one and give options to open files for review (expected, actual, diff), skip, or update the baseline (copy the actual result to the snapshots).

Is something like this already available in playwright?

And if there isn't - do you think it could be valuable to playwright users? If yes, then maybe I could write some proof of concept and create a PR.
Issue 1:
Describe the issue:

if the input data is a list which has float value and str value, then use stack function, the line which has both float value and str value will convert to str.

suggest:

pass in the dtype into asanyarray function in below line:

arrays = [asanyarray(arr, dtype=dtype) for arr in arrays]

Reproduce the code example:

e.g., the input list is:
list1 =
[[1.0, 34.4, 56.6],
[2.0, 'abc', 35.1],
[3.0, 234, 45.9]]
then:
data = empty((3,3), dtype=object)
np.stack(list1, out=data, dtype = object)
result: the second row's values will be converted to str.

Error message:

No response

NumPy/Python version information:

mian branch, 1.24

Context for the issue:

No response

Issue 2:
I've reproduced this behavior on macOS and Linux with numpy 1.12.1:

>>> import numpy as np
>>> np.argsort(np.array([115, 70, 29]))
array([2, 1, 0])
>>> np.argsort(np.array([115, 70, 29, 0, 0]))
array([3, 4, 2, 1, 0])
>>> np.argsort(np.array([115, 70, 29, 0, 0]), axis=-1, kind='mergesort')
array([3, 4, 2, 1, 0])
>>> np.argsort(np.array([115, 70, 29, 0, 0]), axis=-1, kind='heapsort')
array([4, 3, 2, 1, 0])
>>> np.argsort(np.array([0, 0, 115, 70, 29, 0, 0]), axis=-1, kind='heapsort')
array([5, 0, 1, 6, 4, 3, 2])
>>> np.argsort(np.array([0, 0, 115, 70, 29, 0, 0]), axis=-1, kind='mergesort')
array([0, 1, 5, 6, 4, 3, 2])

TFM states: "numpy.argsort: Returns the indices that would sort an array." I expect the indices corresponding to 29, 70, and 115 to be the highest three in the result and appear in that order. They do not do so predictably.
Issue 1:
Currently, the react-hooks/exhaustive-deps is all or nothing. I leave the rule turned on (for a particular set of dependencies), or I disable it. Clearly this rule is beneficial in preventing bugs, but there are also definitely times when a dependency needs to be purposefully excluded from a dependency array.

When those situations come up, the rule then has to be disabled for ALL of the dependencies

// eslint-disable-next-line react-hooks/exhaustive-deps

So now if someone comes along later and adds an additional dependency to this effect (or memo etc.), there is no linting rule there to notify them of the need to add that dependency to the dependency array.

One approach to accomplishing this might be by using block comments. For example, if I have three dependencies to an effect, foo, bar, and baz, I can disable the dependency check for bar only, and leave the dependency checking in place for all other dependencies.

useEffect(() => {
foo()
bar()
baz()
}, [foo, /*bar*/, baz])
// ^
// No linting error because I have explicitly stated that I wish to disable dependency checking for `bar`

Issue 2:
The react-hooks/exhaustive-deps eslint rule is great, until you consciously want to ignore a specific dependency. For those cases the only current option (that I'm aware of) is to disable the rule for the line. It would be great if it was possible to explicitly ignore one or more dependencies while keeping the rule enabled. That way it would still warn if I added a new dependency without also including it in either list.

One potential approach would be to allow devs to list these ignored dependencies using /* comments */, for example:

React.useEffect(() => {
doSomething(a, b, c)
}, [a] /* ignore-deps: b, c */)

In this fictional example I'd only like to doSomething in response to changes to a, while changes to b and c by themselves should be ignored. Using the comment I can explicitly state that this behaviour is intended, while still being warned if the call changes to doSomething(a, b, c, d) - notifying me that I need to add d to either the dependencies or the ingore-deps comment.

The proposed style and location of the comment is based off the idea that it should be in close proximity to the dependency list (developer experience), while hopefully also somewhat simple to access via the AST (implementation complexity). Alternative suggestions are appreciated!
Issue 1:
Sometimes an in-place division where the denominator comes from the same tensor will yield unpredictable results. For example, if you want an array that counts from 0 to 100 in each of 50 rows, but actually you want to normalize to the range [0..1], it seems natural to write:

import torch
c = torch.arange(101)[None,:].repeat(50, 1)
c /= c[:,100:]
print(c.max())

However, running this on CPU repeatedly will produce an unpredictable max, e.g., 82, 95, 87, etc, rather than the expected 1.0.

This operation appears to be reliable on numpy, and for many array shapes it also works fine in pytorch. But it fails on certain sizes, leading to oddly rare and difficult-to-find bugs.

Should c /= c[:,-1:] be reliable? If not, would it be reasonable to warn on such operations?

Issue 2:
t = torch.range(1,10)
t[1:] = t[:-1] # wrong result
print(t)
t = torch.range(1,10)
t[1:] = t[:-1].clone() # right result
print(t)
t = torch.range(1, 10).numpy()
t[1:] = t[:-1] # right result
print(t)

Note that the same (wrong?) behaviour is present in lua torch.
Issue 1:
Challenge http://www.freecodecamp.com/challenges/bonfire-convert-html-entities has an issue. Please describe how to reproduce it, and include links to screen shots if possible.

Below is the test structure for the second code test:

assert.strictEqual('<>', '<>', 'should escape characters');should escape characters: expected '<>' to equal '<>'

I believe the assertion strictEqual is missing the convert function part. I believe it should contain the following code assertion:

assert.strictEqual(convert('<>'), '<>', 'should escape characters');

Thank you for looking into the issue.

Issue 2:
Challenge http://www.freecodecamp.com/challenges/bonfire-convert-html-entities has an issue.

The following chai test does not pass for a correct conversion:

assert.strictEqual('<>', '<>', 'should escape characters');

I think it should look like this:

assert.strictEqual(convert('<>'), '<>', 'should escape characters');

To reproduce, press "Run code".

My code:

function convert(str) {
re = new RegExp('(&|<|>|"|\')', 'g');
str = str.replace(re, function(match) {
switch (match) {
case '&':
return '&amp;';
case '<':
return '&lt;';
case '>':
return '&gt;';
case '"':
return '&quot;';
case '\'':
return '&apos;';
}
});

return str;
}

Really enjoying the course so far. Thank you!
Issue 1:
Screenshot

I'm experiencing the following issue of test text disappearing:

Issue 2:
For the feature/curriculum-expansion branch only. When this branch is running locally, the challenge tests are all passing, even when no answer / incorrect code is typed into the editor. The assert messages aren't showing on screen anymore either - it's just the green check mark. This started happening sometime after the Monday, Sept 26th merges for the branch.

Update: confirmed issue on both feature/curriculum-expansion and staging branches.

Browser Information

Browser Name, Version: Both Chrome (53.0.2785.116 (64-bit)) and Firefox (49.0.1) are showing the same behavior.

Operating System: Mac OS X 10.11.3

Mobile, Desktop, or Tablet: Desktop
Issue 1:
Describe the bug

config.paramsSerializer.indexes = false (default) adds indexes if an object is inside an array but it shouldn't.

To Reproduce

https://runkit.com/doits/634530f2d3a446000813ef73

var axios = require("axios")

const req = await axios.get('https://www.example.com', { params: { a: [{ name: 'abc' }], b: ['x', 'y'] } })

console.log(req.request.path)

// => "/?a[0][name]=abc&b[]=x&b[]=y"

Expected behavior

No a[0] but a[]:

// => "/?a[][name]=abc&b[]=x&b[]=y"

Environment

Axios Version 1.1.2

Additional context/Screenshots

None

Issue 2:
Axios - fails

axios('https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js', {
method: 'HEAD',
mode: 'no-cors',
headers: {
'Access-Control-Allow-Origin': '*',
Accept: 'application/json',
'Content-Type': 'application/json',
},
withCredentials: true,
credentials: 'same-origin',
crossdomain: true,
}).then((response) => {
console.log(response);
}).catch((e) => {
console.log(e);
});

Fetch - works

const testURL = 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js';
const myInit = {
method: 'HEAD',
mode: 'no-cors',
};

const myRequest = new Request(testURL, myInit);

fetch(myRequest).then(function(response) {
return response;
}).then(function(response) {
console.log(response);
}).catch(function(e){
console.log(e);
});

Summary

in Axios I get the following cors error but if I replace with standard fetch it works fine.

I've tried a few different configurations with axios and must be missing something?

Error:

Failed to load https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access.

Context

axios version: * axios v0.17.1

Environment: * Chrome 63.0.3239.132 (Official Build) (64-bit)
Issue 1:
In OS X (Yosemite), saving a file through a dialog can generally prompt the user for the password of any closed (and recently used) disk image (for which no password was saved). The user can then choose to dismiss the password prompt.

The OS X backend of Matplotlib 1.4.2. instead does not show the password prompt dialog, but prints (when in IPython) Enter password to access "…" (with the name of the disk image) and blocks: IPython cannot be used anymore (no command can be entered).

Issue 2:
I install matplotlib on OS X using a Gentoo prefix install. Everything seems to work ok. The only problem I've encountered so far is that when I try to save something to a file, I can't change the filename on the dialog box, because the keyboard strokes go to the terminal where I am running python. I don't know if this is a matplotlib issue or a issue in tkinter from Python, but matplotlib is the only place where I have this problem.
Issue 1:
shardingsphere/pom.xml

Line 108
in
ee0fade

<mysql-connector-java.version>5.1.47</mysql-connector-java.version>

CVE-2021-3711 CVE-2020-1967 CVE-2021-3712 CVE-2021-3450 VE-2018-3258

Recommended upgrade version：8.0.29

Issue 2:
Bug Report

Which version of ShardingSphere did you use?

5.0-Beta

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

ShardingSphere-JDBC

Expected behavior

The database field length is only 50, however when inserting test data , the length of data is more than 50. It should have thrown

an exception. There should be exception and rollback.

Actual behavior

No exception ,the log runs well without err log and the program continue to run and no rollback happen. There should throw an exception

Reason analyze (If you can)

I assume in the ShardingSphere-JDBC source code, there may try catch the sql exception ,so we can't rollback.

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

code:

log:

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

only the sharding-jdbc-tables example, and in java code , insert the status field more than 50 charcaters.
Issue 1:
Version

2.6.11

Reproduction link

https://codesandbox.io/s/happy-pascal-reiyx?fontsize=14&hidenavigation=1&theme=dark

Steps to reproduce

Please see linked minimal example.

Create a component A which uses a functional component B inside a default slot.

Use Component A, but slot in something else so the functional component B does not appear.

What is expected?

The render() function of the functional component should not be called. As it does not appear, I shouldn't expect its render function to be called.

What is actually happening?

The render() function is called, as seen by the console output which logs when the function is called.

Issues:

I encountered this when I was creating a table with 10,000 cells and each <\td> was a functional component. However the table was able to slot in its own component over the <\td>. Doing so meant the slotted clotted was created along with 10,000 unnecessary renders() from the functional component. This added about ~1s load time.

Workarounds:

Don't put the functional component inside the slot. Instead, the functional component should be used outside and have a v-if on it checking if the slot has not been used. It is the same end result, but render() is not called.

Issue 2:
Version

2.5.16

Reproduction link

https://jsfiddle.net/86us8zxz/2/

Steps to reproduce

Attach a new Set() object to the data attribute of a component and modify it by using the set's methods (add, delete, etc).

What is expected?

Changes in the set would reflect in the rendered HTML, just like they do for arrays.

What is actually happening?

Nothing - the change of the set isn't picked up by Vue, making this property not reactive. This is unusual because mutations of an array works as expected (see link).

Additional notes

https://jsfiddle.net/86us8zxz/3/ shows that the change in the set seems to be detected (unless the reactive system of Vue works different to my understanding) as the view updates when the set is converted to an array.
Issue 1:
What problem does this feature solve?

Sometimes when I'm using v-for, I feel the need to have a local variable to store the intermediate result from a function call to avoid duplication and unnecessary calls. Others may find the need to give an alias to a property deep in an object.

Begin with the code:

<tbody>
<tr v-for="hour in HOURS" :key="hour.key">
<td v-for="day in DAYS" :key="day.key">
<input
:id="`classTime_${makeTime(day, hour)}`"
v-model="filters.classTimes"
:value="makeTime(day, hour)"
type="checkbox"
>
<label :for="`classTime_${makeTime(day, hour)}`">
{{ makeTime(day, hour) }}
</label>
</td>
</tr>
</tbody>

The makeTime() function was written and called with the same arguments 4x times in each iteration.

In order to simplify this code, I use a workaround that uses v-for with a single-value array:

<tbody>
<tr v-for="hour in HOURS" :key="hour.key">
<td v-for="day in DAYS" :key="day.key">
<template v-for="time in [makeTime(day, hour)]" :key="time">
<input
:id="`classTime_${time}`"
v-model="filters.classTimes"
:value="time"
type="checkbox"
>
<label :for="`classTime_${time}`">
{{ time }}
</label>
</template>
</td>
</tr>
</tbody>

It would be nice to have a dedicated directive to add the local variables.

What does the proposed API look like?

I'd like to add a dedicated directive for using local variables like this:

<template v-local="{ time: makeTime(day, hour), myLocal: my.property.within.a.deep.deep.object }">
<!-- templates inside will have access to the `time` and `myLocal` variables -->
</template>

Issue 2:
What problem does this feature solve?

This option would allow a user to override the filter that determines what JS files get automatically injected into the generated HTML. Presently, I think this can be achieved by Manual Asset Injection (https://ssr.vuejs.org/guide/build-config.html#client-config) but if the only thing a user wants to control is which bundle gets injected in a multi-compiler Webpack setup, then this creates A LOT of extra work for them as they try to duplicate all the things that vue-server-renderer would do for them by default.

My specific use case is that I'm generating a JS bundle for each language that we want our application to support using i18n-webpack-plugin. When using vue-server-renderer, the last language bundle generated is automatically injected. This feature would allow me to instead add logic to createContext that looks at a request's locale header, generates a filter function based on that header, and uses that filter function to assure that a matching (or a default) bundle is injected in the returned page.

What does the proposed API look like?

Adding this variable to the renderScripts method:

const jsFilter = context.jsFilter || (({ file }) => isJS(file))

And passing jsFilter to the filter calls in that method instead of the default, ({ file }) => isJS(file).
Issue 1:
Been learning a bit about Points. I have a series of points that make up a shape and rotate slowly. Each point is one of 6 colours.

I want to make them circular rather than square, but all of the examples I've seen to do that don't use Points at all. Should I change to a Sprite (as per this example: https://github.com/mrdoob/three.js/blob/master/examples/canvas_lines_sphere.html#L65-L90) and re-factor my code in order to get circular points, or is there another way?

Using r84

Issue 2:
Description of the problem

[Not sure if this is a Doc issue or a Feature request]

I have several tests for features to be migrated into a project.

Here is a BufferGeometry of quads uv mapping a 4 sprite sheet:

http://backspaces.net/temp/three/bufftexs.html

Here is a Points geometry with colors

http://backspaces.net/temp/three/points.html

I am unable to combine them: uv mapped point sprite. I do understand how individual uv sprites can be a texture for a point sprite but this requires a render-per-sprite. There is an example/ of this and SO shows how:

https://stackoverflow.com/questions/29526855/how-to-do-uv-mapping-on-a-threejs-sprite-r71

For me one-sprite-per-render is awkward to manage and liable to be slow (I easily reach 100 or more sprites). I realize this would require more than a single uv per point rather than the 1 uv per quad vertex, possibly BL & TR would suffice?

#8441 mentioned using ShaderMaterial but I did not see an example/ of this. (There's a jsbin).

Is it possible to do this now and I missed it? [Doc issue]

Is there an example/ of ShaderMaterial for one-render sprite sheet use? [Doc issue]

Is this a desired capability that could be added to PointGeometry? [Feature issue]

Three.js version

Dev

r84

...

Browser

All of them

Chrome

Firefox

Internet Explorer

OS

All of them

Windows

macOS

Linux

Android

iOS

Hardware Requirements (graphics card, VR Device, ...)

Early 2015 MBP, Sierra.