WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
@thestinger found this odd bug. This code:

enum Foo { C { a: int, b: int } }
struct C { a: int, b: int }
fn main() { }

properly errors out with:

test.rs:2:0: 2:27 error: duplicate definition of type C
test.rs:2 struct C { a: int, b: int }
^~~~~~~~~~~~~~~~~~~~~~~~~~~
test.rs:1:11: 1:31 note: first definition of type C here:
test.rs:1 enum Foo { C { a: int, b: int } }
^~~~~~~~~~~~~~~~~~~~

However, if you swap the enum and struct definition, it compiles fine with rust HEAD:

struct C { a: int, b: int }
enum Foo { C { a: int, b: int } }
fn main() { }

Issue 2:
Using std::net::lookup_host seems to duplicate each IP in the result set.

prompt> ./main rust-lang.org
V4(72.8.141.90:0)
V4(72.8.141.90:0)

prompt> ./main google.com | sort
V4(74.125.28.100:0)
V4(74.125.28.100:0)
V4(74.125.28.101:0)
V4(74.125.28.101:0)
V4(74.125.28.102:0)
V4(74.125.28.102:0)
V4(74.125.28.113:0)
V4(74.125.28.113:0)
V4(74.125.28.138:0)
V4(74.125.28.138:0)
V4(74.125.28.139:0)
V4(74.125.28.139:0)
V6([2607:f8b0:400e:c04::66]:0)
V6([2607:f8b0:400e:c04::66]:0)

The documentation snippet (https://doc.rust-lang.org/std/net/fn.lookup_host.html) is enough to reproduce.

I also have a simple gist here: https://gist.github.com/nieksand/9c42100be6dc52df3305

I'm using the latest Rust from master branch on MacOS X 10.9.5. I have not checked on other platforms. I see this for any hostname that I try, so I don't think it's a problem on the nameserver side.

Expected behavior is seeing each IP address listed only once.
Issue 1:
Do glide having the same method as picasso have??

Picasso.with(context).setIndicatorsEnabled(true);

this method can show some color on the top left cornor of the imageview to indicate weather this image is loaded from disk, memory or network.

Thanks!

Issue 2:
There should be an optionally available way of displaying an indicator on the target which tells you any feasible combination of these:

it was downloaded from the network

it was loaded from disk cache

it was loaded from memory cache

it was just put into disk cache

it was just put into memory cache

it's a thumbnail

it's a placeholder
Issue 1:
The current output of ClearStacktrace.jl is pretty good. I just wonder if the same technique discussed in #36026 can be used on how methods are printed in methods and methodswith? Considering the different result types of them, maybe we need to redefine how methods are shown?

julia> methodswith(Int) |> typeof
Array{Method,1}

julia> methods(Int) |> typeof
Base.MethodList

Issue 2:
The output of methods can be hard to read in the REPL

It would be good to use some colour (/bold)

to seperate the signature from the line-info.

You can see that in the stacktrace at the top of the image below.

Contrast how easy to read it is, vs the methods list at the bottom.
Issue 1:
Elasticsearch version: 5.0.0-beta1

Plugins installed: []

JVM version: 1.8.0_72

OS version: Ubuntu 15

Description of the problem including expected versus actual behavior:

As described here https://www.elastic.co/guide/en/elasticsearch/reference/5.0/search-suggesters-completion.html#querying one can use source filtering while returning suggestions under _suggest endpoint. However, using the source filtering returns following error to me.

Steps to reproduce:

Follow examples mentioned on the above mentioned url for creating index with mapping and indexing document.

Use following query for the suggestion

curl -XPOST "http://localhost:9200/music/_suggest" -d'

{

"_source": "completion.*",

"song-suggest" : {

"prefix" : "nir",

"completion" : {

"field" : "suggest"

}

}

}'

Looking at the documentation, i also wonder why to use completion.* as my source filtered field. Shouldn't it be the name of the field which exist in the document??

Surprisingly there is no exception thrown in Elasticsearch log file.

Issue 2:
I found this while going through snippets that aren't marked // CONSOLE. In this case the this snippet looks to suggest something that isn't implemented.
Issue 1:
❯ deno run does-not-exist.ts
Cannot resolve module "file:///<redacted>/does-not-exist.ts" from "."
Cannot resolve module "file:///<redacted>/does-not-exist.ts" from "."

Issue 2:
I might be missing something, but Deno doesn't appear to expose the number of rows and columns of a controlling terminal:

// Node
[width, height] = [process.stdout.columns, process.stdout.rows];

// QuickJS
[width, height] = os.ttyGetWinSize(1);

// Deno
[width, height] = ???;

Also, it'd be nice if we could configure a TTY stream to operate as a "raw" device (so that keystrokes like ^C could copy-to-clipboard in a terminal-based editing app). For example:

export function setRawTTY(fd = 0){
if(isQuickJS && "object" === typeof os)
os.ttySetRaw(fd);
else if(isNode)
[process.stdin, process.stdout, process.stderr][fd].setRawMode(true);
else unsupported(setRawTTY, fd);
}
Issue 1:
There are a few individual TypeScript definitions in the NuGet package library, but it would be neat to have a package for the whole DefinatelyTyped collection.

I could put it in a shared folder to be referenced by all different packages.

Just a thought.

Issue 2:
I tried using the @types/xxxx package and had problems.

I tried using the latest stable version of tsc. https://www.npmjs.com/package/typescript

I have a question that is inappropriate for StackOverflow. (Please ask any appropriate questions there).

Mention the authors (see Definitions by: in index.d.ts) so they can respond.

Authors: @Igorbek @Igmat @Lavoaster @Jessidhia @jkillian @eps1lon @flavordaaave

Given this tsconfig.json in a project using @types/styled-components, you get a bunch of errors like this:

node_modules/typescript/lib/lib.dom.iterable.d.ts:67:11 - error TS2300: Duplicate identifier 'FormData'.

67 interface FormData {
~~~~~~~~

node_modules/@types/react-native/globals.d.ts:40:15
40 declare class FormData {
~~~~~~~~
'FormData' was also declared here.

tsconfig.json

{
"compilerOptions": {
"target": "es6",
"allowJs": true,
"skipLibCheck": false,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"module": "commonjs",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"strictPropertyInitialization": false,
"noUnusedLocals": true,
"noUnusedParameters": false,
"removeComments": false,
"preserveConstEnums": true,
"sourceMap": true,
"jsx": "react",
"typeRoots": ["./types", "./node_modules/@types"],
"baseUrl": "src",
"paths": {
"@/*": ["*"]
}
},
"include": [
"types/*",
"src/*",
"node_modules/@/**/*"
]
}

I am not using react-native and there is absolutely no reason I can see that styled-components should be pulling this dependency into my project to begin with. Even though it is not inside the package.json of these types, my yarn.lock pulls it as a dependency:

"@types/styled-components@^4.1.18":
version "4.1.18"
dependencies:
"@types/react" "*"
"@types/react-native" "*"
csstype "^2.2.0"
Issue 1:
Starting with Release v0.12.0, FancyZones stopped interfering with fullscreen applications. For ultrawide single-monitor setups, being able to move fullscreen applications is incredibly useful.

I believe that the fullscreen application moving functionality from v0.11.0 should be added back, but as an additional option in PowerToys settings. For example,

Keep windows in their zones when they are in fullscreen mode

Issue 2:
Summary of the new feature/enhancement

It would be nice if it would be possible to split a screen to allow for multiple "full screen" windows.

This would enable for example to have You Tube in full screen mode without the rest of the UI together with for example the email program below for people using a PIVOTed Display.

This would allow to have a video playing like this:

Instead of having a lot of dead space from the UI>
Issue 1:
Thank you so much for this awesome framework. I've only been working with the framework for a couple of months now, and still unsure of all of the limitations. This looks like a limitation of the component system.

Vue.js version

1.0.26

Reproduction Link

https://jsfiddle.net/CristianGiordano/cdLp4uz2/

Steps to reproduce

Move a person from one list to another (The list component is re-rendered alongside the moved dom node)

What is Expected?

No duplication of elements. Here is a working version (same code) without a person component.

https://jsfiddle.net/CristianGiordano/ghwgzgtx/

What is actually happening?

It looks like VueJS cannot re-use existing nodes or find the node which was moved.

I have tried adding a track-by id with the relevant object properties.

I have tried SortableJS and Dragula sorting libraries with the same issue.

p.s. Apologies if this is not the right forum to raise such an issue.

Issue 2:
What problem does this feature solve?

If a user needs to implement a lifecycle hook that depends on async operations, vue should respect the async nature of the implemented hook and await it in vue land.

What does the proposed API look like?

The API does not change; only how it works now by awaiting async hooks.
Issue 1:
Please make sure that the boxes below are checked before you submit your issue. If your issue is an implementation question, please ask your question on StackOverflow or join the Keras Slack channel and ask there instead of filing a GitHub issue.

Thank you!

Check that you are up-to-date with the master branch of Keras. You can update with:

pip install git+git://github.com/keras-team/keras.git --upgrade --no-deps

If running on TensorFlow, check that you are up-to-date with the latest version. The installation instructions can be found here.

If running on Theano, check that you are up-to-date with the master branch of Theano. You can update with:

pip install git+git://github.com/Theano/Theano.git --upgrade --no-deps

Provide a link to a GitHub Gist of a Python script that can reproduce your issue (or just copy the script here if it is short).

If I create a layer which is shared by two models that are incorporated into another model, then when compiling against the CNTK backend, I get an exception when falling fit. The following simple example works fine against the Theano and Tensorflow backends, but fails against CNTK:

x1 = keras.layers.Input((1,))
x2 = keras.layers.Input((1,))
x3 = keras.layers.Input((1,))

l = keras.layers.Dense(2)

m1 = keras.Model([x1], [l(x1)])
m2 = keras.Model([x2], [l(x2)])

m = keras.Model([x3], [keras.layers.concatenate([m1(x3), m2(x3)])])
m.compile('sgd', 'mse')
m.summary()
m.fit([np.ones((1,1))], np.ones((1,4)))

Here's the error I get:

ValueError: Learner's parameters list must not contain duplicates.

[CALL STACK]

> CNTK::TrainingParameterSchedule:: GetMinibatchSize

- CNTK:: ZerosLike (x2)

- CNTK:: UniversalLearner

- PyInit__cntk_py (x2)

- PyCFunction_FastCallDict

- PyObject_GenericGetAttr

- PyEval_EvalFrameDefault

- PyErr_Occurred

- PyFunction_FastCallDict

- PyObject_CallFunctionObjArgs

- PyUnicode_AsUTF8AndSize

- PyFrame_New

- PyEval_EvalFrameDefault

- PyErr_Occurred

Note that the summary call correctly indicates that there are only 4 trainable parameters (because the layer is shared between the two models):

__________________________________________________________________________________________________
Layer (type) Output Shape Param # Connected to
==================================================================================================
input_3 (InputLayer) (None, 1) 0
__________________________________________________________________________________________________
model_1 (Model) (None, 2) 4 input_3[0][0]
__________________________________________________________________________________________________
model_2 (Model) (None, 2) 4 input_3[0][0]
__________________________________________________________________________________________________
concatenate_1 (Concatenate) (None, 4) 0 model_1[1][0]
model_2[1][0]
==================================================================================================
Total params: 4
Trainable params: 4
Non-trainable params: 0

Issue 2:
According to https://keras.io/preprocessing/image/#apply_transform , apply_transform is still under keras.preprocessing.image which is not the case.
Issue 1:
var a = {
b: {},
c: {}
}
var unwatch = vm.$watch('a', function (newVal, oldVal) {
// do something
}, { deep:true });

Is is possible to unwatch a specific key or in other words exclude a property when deep watch?

unwatch('a.b')

Thank you !

Issue 2:
I want something like this:

{
data() {
return {
song: {
tracks: [...]
}
}
},
computed: {
'song.duration'() {
return max(this.song.tracks.map(track => track.duration))
}
}
}

in such a way that duration is an actual (computed) property on the song object.

I have a feeling this may be quite easy to add. With some pointers where to start, I'd be happy to try to add this myself.
Issue 1:
Current Behavior:

I'm currently in the middle of trying to create a patch build for my prod env and my builds are failing because my lock file is not pinning my internal git dependencies like it used to. It also takes 5mins vs npm 6's 15sec.

Expected Behavior:

The lock file is respected and only it is consulted... no updates, no resolutions, no healing.

Steps To Reproduce:

Install a project that has a git dependency... observe the lock file has a git hash. Blow away the node_modules, use npm ci after making some obvious change in the git dependency and observe the locked version without the change is not present and the latest is.

Environment:

OS: linux

node: 15.12.0

npm: 7.8.0 (tested all the way back to 7.6...) npm 6 works as expected.

Issue 2:
Current Behavior:

put package-lock=false in .npmrc.

Run npm install --package-lock-only.

Expected Behavior:

a package-lock.json is generated.

Steps To Reproduce:

See above.

Environment:

npm: 7.5.4

This is a regression from #146 / v6.9.0.

(possibly related to #2358)
Issue 1:
bug - getDerivedStateFromProps is invoked after change state in the same component

CodeSandbox ( https://codesandbox.io/s/8k1v8xjq68 )

In my example you can see, that the ElementOne clear state after change state in this component, because the static function getDerivedStateFromProps is invoked (In the guide is: The static getDerivedStateFromProps lifecycle is invoked after a component is instantiated as well as when it receives new props. -> ElementOne received new state.). ElementTwo is same with component willReceiveProps, but this behavior is ok.

react 16.4

react-dom 16.4

Issue 2:
According to semver, only non-breaking changes are supposed to go into minor and patch version releases. With the release of 16.4, you have made breaking changes to getDerivedStateFromProps. Our entire codebase, running perfectly on 16.3.2 is a dumpster fire as soon as we raise that dependency to 16.4.

The only thing in your CHANGELOG about this breaking change is:

Properly call getDerivedStateFromProps() regardless of the reason for re-rendering. (@acdlite in #12600 and #12802)

Please revert this change and save it for 17.0.0, or provide proper documentation to what this change actually entails so that its use can be adjusted by those who have already implemented getDerivedStateFromProps.
Issue 1:
There is a bit of a UI bug when going from a selected dropdown item to one of its subitems. See:

Increasing the delay is one way to solve it, but the other is to detect the direction of the mouse cursor and apply a delay when the cursor is moving towards one of the submenus.

This repository implements this (see example of how it works here.

It would be nice to have this as Bootstrap's default behavior.

Issue 2:
Bootstrap's hierarchical menus are a lot like Mac OSX, i.e., broken. I'd like to suggest two changes that would greatly improve usability:

Don't hide the menu when you click on a divider or bottom/top padding.

Implement mouse movement tracked submenu display, like the one invented by Apple in the 80's and currently used prominently in Amazon's homepage. More info here.
Issue 1:
Hello, im trying to use the playwright test projects function, but seeing the page https://playwright.dev/docs/test-parameterize#parameterized-projects, the part

export const test = base.test.extend({

// Define an option and provide a default value.

// We can later override it in the config.

person: ['John', { option: true }],

// Override default "page" fixture.

page: async ({ page, person }, use) => {

await page.goto('/chat');

// We use "person" parameter as a "name" for the chat room.

await page.locator('#name').fill(person);

await page.click('text=Enter chat room');

// Each test will get a "page" that already has the person name.

await use(page);

},

});

In this code, i cant use "base.test.extend" the .test. is shown as an error

Issue 2:
System info

Playwright Version: [v 1.31.2]

Operating System: [Microsoft Windows 10 Enterprise Version	10.0.19042 Build 19042]

Browser: [Playwright codegen]

Other info:

If i take a screenshot with the devtools playwright is closed after the screenshot.

Steps to reproduce

in cmd.exe enter npx playwright codegen https://playwright.dev/docs/debug-selectors#using-devtools

on https://playwright.dev/docs/debug-selectors change the theme to dark by manually clicking one of the buttons document.querySelectorAll("button.toggleButton_gllP")

open the devtools of the browser

To run a command either press CTRL+SHIFT+P or click the three bullets

Type screenshot in the run input field and select Capture full size screenshot

Expected Result: screenshot is taken, stored and playwright stays open

Actual Result: playwright is closed, possibly the screenshot is not stored

Screenshots of step 4 and 5

Source code

I provided exact source code that allows reproducing the issue locally.

Link to the GitHub repository with the repro

[https://github.com/your_profile/playwright_issue_title]

or

Config file

// playwright.config.ts
import { defineConfig, devices } from '@playwright/test';

export default defineConfig({
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'], },
},
});

Test file (self-contained)

it('should check the box using setChecked', async ({ page }) => {
await page.setContent(`<input id='checkbox' type='checkbox'></input>`);
await page.getByRole('checkbox').check();
await expect(page.getByRole('checkbox')).toBeChecked();
});

Steps

[Run the test]

[...]

Expected

[Describe expected behavior]

Actual

[Describe actual behavior]
Issue 1:
What keywords did you search in Kubernetes issues before filing this one? (If you have found any duplicates, you should instead reply there.): Nothing(), selector, Nothing selector

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

Bug Report

Kubernetes version (use kubectl version):

HEAD

Environment:

Cloud provider or hardware configuration:

OS (e.g. from /etc/os-release):

Kernel (e.g. uname -a):

Install tools:

Others:

What happened:

code snippet: `labels.Parse(labels.Nothing().String())``

What you expected to happen:

I expected labels.Parse(labels.Nothing().String()) == labels.Nothing()

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

https://gist.github.com/rudle/d6225be92164fd235072ffa4a243c32d

Anything else do we need to know:

I have already written a patch for this issue. PR coming soon.

Issue 2:
Is this a request for help? (If yes, you should use our troubleshooting guide and community support channels, see http://kubernetes.io/docs/troubleshooting/.):

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

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

Kubernetes version (use kubectl version):

Environment:

Cloud provider or hardware configuration:

OS (e.g. from /etc/os-release):

Kernel (e.g. uname -a):

Install tools:

Others:

What happened:

What you expected to happen:

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

Anything else do we need to know:
Issue 1:
Challenge Name

Diff Two Arrays

Issue Description

Hi,

I have a problem with the Diff Two Arrays challenge - my code seems to give the following expected results, however they're not accepted by some reason:

[1, "calf", 3, "piglet", 7, "filly"]

["diorite", "pink wool"]

other results are accepted.

Thanks in advance!

Browser Information

Browser Name, Version: Chrome, Internet Explorer

Operating System: Windows 7

Mobile, Desktop, or Tablet: desktop

Your Code

var toRemove = [];

function diffArray(arr1, arr2) {
var newArr = arr1.concat(arr2);

for (var i = 0; i < newArr.length; i++) {
if (arr1.indexOf(newArr[i]) !== -1 && arr2.indexOf(newArr[i]) !== -1) {
toRemove.push(newArr[i]);
}
}

// Same, same; but different.
return newArr.filter(filterOutNewArr);
//return toRemove;
}

function filterOutNewArr(value) {
var pass = true;

for (var i = 0; i < toRemove.length; i++) {
if (toRemove[i] == value) {
pass = false;
}
}

return pass;

}

diffArray([1, "calf", 3, "piglet"], [7, "filly"]);

Issue 2:
Challenge Factorialize a Number has an issue.

User Agent is: Mozilla/5.0 (Windows NT 5.1; rv:47.0) Gecko/20100101 Firefox/47.0.

Please describe how to reproduce this issue, and include links to screenshots if possible.

My code:

var count=1;
function factorialize(num) {
for(var i=1; i<=num;i++){

count= count * i;

}
return count;

}

factorialize(0);
Issue 1:
hi everybody , i had this error after starting new projet in symfony 2.8 and after the following command : php app/console doctrine:generate:entity

Issue 2:
ClassNotFoundExceptionAttempted to load class "TestBundle" from namespace "TestBundle".Did you forget a "use" statement for "Symfony\Bundle\FrameworkBundle\Tests\Functional\Bundle\TestBundle\TestBundle"?

in AppKernel.php (line 19)
Issue 1:
CAP_PROP_FRAME_COUNT &

CAP_PROP_FRAME_WIDTH &

CAP_PROP_FRAME_HEIGHT &

CAP_PROP_FPS

all return 0

Android Opencv : 4.1.0

Is't a bug? please fix it.

Issue 2:
System information (version)

OpenCV => 3.4.1

Operating System macOS High Sierra 10.13.6 / Platform => Android 7.1.1 API 25

Compiler => Android NDK

Detailed description

Context

I'm writing a cross platform OpenCV based C++ library. The consuming code is a React Native Application through a react native native module.

To be perfectly clear, there is no access from Java Code to C++ OpenCV on Android. There are events with the result of the OpenCV C++ code sent to Javascript through the react native bridge.

My native library is compiled on Android as a SHARED library. It is dynamically linked to the libopencv_world.so that is produced by the compilation of OpenCV C++ for Android.

What it does

Basically, it opens the device's default camera and take snapshots.

The outcome

This code is then ran on iOS and Android.

This is working perfectly well on iOS.

It fails on Android.

Here is the failing part of C++ code on Adndroid:

Steps to reproduce

// cap is a cv::VideoCapture object
if (cap.open(0))
{
cap.set(cv::CAP_PROP_FRAME_WIDTH, CAM_WIDTH);
cap.set(cv::CAP_PROP_FRAME_HEIGHT, CAM_HEIGHT);
}
else
{
reject("false", "cap.open(0) returned false");
}