WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
When faceting on more than one index, each with one shard, no replicas, and containing the same data structure, TermsFacet will return the wrong counts. This can be easily verified by running a simple query with the facet value. Additionally, changing the size parameter will cause facet results to change (while we only expected to get a shorter/longer list , we actually see values change and terms disappear).

Our faceting query:

{
"from" : 0,
"size" : 0,
"query" : {
"filtered" : {
"query" : {
"query_string" : {
"query" : "test",
"fields" : [ "title", "topic" ]
}
},
"filter" : {
"numeric_range" : {
"topic_date" : {
"from" : "2012-12-17T00:00:00.000+02:00",
"to" : "2013-03-17T23:59:59.999+02:00",
"include_lower" : true,
"include_upper" : true
}
}
}
}
},
"facets" : {
"termFacet" : {
"terms" : {
"fields" : [ "author" ],
"size" : 10
},
"facet_filter" : {
"numeric_range" : {
"topic_date" : {
"from" : "2012-12-17T00:00:00.000+02:00",
"to" : "2013-03-17T23:59:59.999+02:00",
"include_lower" : true,
"include_upper" : true
}
}
}
}
}
}

Issue 2:
I'm working with nested documents and have noticed that my faceted search interface is giving the wrong counts when I have more than one shard. To be more specific, I'm working with RDF triples (entity > attribute > value) and I'm nesting the attributes (called predicates in my example):

{
"_id" : "512a2c022f0b4e3daa341e6c8bcf6c2f",
"url": "http://dbpedia.org/resource/Alan_Shepard",
"predicates": [
{
"type": "type",
"string_value": ["thing", "person", "astronaut"]
}, {
"type": "label",
"string_value": ["Alan Shepard"]
}, {
"type": "time in space",
"float_value": [216.950]
},
... lots more
]
}

I've created a shell script (https://gist.github.com/1196986) that recreates the problem with a fresh index. The created data set has these totals:

thing (30)

creative work (20)

video game (10)

tv show (10)

people (10)

With only one shard the following query gives the correct counts no matter what the size parameter is set to:

{
"size": 0,
"query": {
"match_all": {}
},
"facets": {
"type_counts": {
"terms": {
"field": "string_value",
"size": 5
},
"nested": "predicates",
"facet_filter": {
"term": {
"type": "type"
}
}
}
}
}

However, with more than one shard the size parameter affects the accuracy of the counts. If it is equal to or greater than the number of terms returned by the facet query (5 in this case) then it works fine. However, the terms at the bottom of the list start to display low counts as you reduce the size parameter:

With "size" : 4

thing (30)

creative work (20)

video game (10)

tv show (9)

With "size" : 3

thing (30)

creative work (15)

video game (9)

With "size" : 2

thing (30)

creative work (15)

So it looks like the sub-totals from some of the shards aren't being included for some reason. BTW I'm on ubuntu and the problem seems to affect all versions of ES I've tried (17.0, 17.1 and 17.6). Any ideas...?

P.S. absolutely loving ES - it's made my life a lot easier :)
Issue 1:
react/src/renderers/dom/shared/ReactDOMComponent.js

Lines 178 to 184
in
0e8db6b

warning(

!props.contentEditable || props.children == null,

'A component is `contentEditable` and contains `children` managed by ' +

'React. It is now your responsibility to guarantee that none of ' +

'those nodes are unexpectedly modified or duplicated. This is ' +

'probably not intentional.'

);

React warns:

A component is contentEditable and contains children managed by

React. It is now your responsibility to guarantee that none of

those nodes are unexpectedly modified or duplicated. This is

probably not intentional.

I am writing a rich text editor using React, and have written it to ensure that the nodes are not modified by the browser by capturing all input events, performing the modifications on my internal document format, and re-rendering using React. However, on each render, React still warns me about this.

I would be awesome to be able to disable this warning somehow, such as with a specific value to the contentEditable prop, another name or something. I'm not sure the best approach to take here, so I thought I'd create an issue for discussion around this.

Issue 2:
We're writing a WYSIWYG editor in React, and in order to place a cursor inside the rich document we use contentEditable. Understandably, React doesn't fare well with contentEditable - to get around the framework's confusion once contentEditable children are modified, we force re-renders with new keys and do other work to restore the selection. In practice, we have this working pretty well.

With 0.12, we're getting the new warning:

A component is contentEditable and contains children managed by React. It is now your responsibility to guarantee that none of these nodes are unexpectedly modified or duplicated. This is probably not intentional.

In our case, we do guarantee that nodes are unexpectedly modified or duplicated, and it is intentional. Is there any way to suppress that warning? Unlike the Factory warning, this warning appears each time the component is instantiated (I think) - at the very least, it slowly fills up our consoles.

(We've considered an alternative of not using children on the contentEditable, and on component update we set the innerHTML outside of React - this would likely sidestep the warning, but not get us much else.)
Issue 1:
I followed the local Docker getting started guide on Ubuntu 15.10, and found myself experiencing a host of issues with /dev/pts, most notably being unable to start any terminal emulator, being greeted with

There was an error creating the child process for this terminal
getpt failed: No such file or directory

Stopping Kubernetes and rebooting consistently fixed the issue.

It seems the likely culprit is the mounting of the entire /dev path as a volume in the container per the run command given in the instructions. Is this necessary? What is Kubernetes looking for that it needs in the host /dev? Perhaps it could be a more explicit mount?

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/.): no

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

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

Kubernetes version (use kubectl version):

Client Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.5", GitCommit:"5a0a696437ad35c133c0c8493f7e9d22b0f9b81b", GitTreeState:"clean", BuildDate:"2016-10-29T01:38:40Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"}

Server Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.5", GitCommit:"5a0a696437ad35c133c0c8493f7e9d22b0f9b81b", GitTreeState:"clean", BuildDate:"2016-10-29T01:32:42Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"}

Environment:

Cloud provider or hardware configuration: Microsoft Azure Container Service

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

Kernel (e.g. uname -a): Linux 4.4.0-28-generic #47-Ubuntu SMP Fri Jun 24 10:09:13 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

What happened:

I attempted to set up an Azure File Volume using the built-in volume type azureFile. Everything works, except that the files and directories defaults to permission 0777, always.

When I tried to manually mount within the container, I could customise dir_mode and file_mode, meaning that this change should be possible. Reading the source code confirms it - dir_mode=0777 and file_mode=0777 seem hardcoded.

What you expected to happen:

Being able to supply dir_mode and file_mode to the mount. e.g.

- name: myvolume
azureFile:
secretName: supersecret
shareName: myshare
readOnly: false
dirMode: 0400
fileMode: 0400

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

N/A. This is a feature request.

Anything else do we need to know:

N/A
Issue 1:
Environment

Windows 10

Windows build number: Microsoft Windows [Version 10.0.18362.175]
Windows Terminal version (if applicable): 0.2.1715.0

# Steps to reproduce

Clicking on Settings menu not opening settings.

# Expected behavior

Settings window or tab or any action should happen to view the current settings.

# Actual behavior

Nothing happens.
<!-- What's actually happening? -->

Issue 2:
Environment

Windows build number: 10.0.18362.0
Windows Terminal version (if applicable): 0.4.2382.0

Any other software?
tmux v2.6
zsh 5.4.2 (x86_64-ubuntu-linux-gnu)

Steps to reproduce

Run the following script to show full colour and font styles: curl -s -L https://git.gnome.org/browse/vte/plain/perf/256test.sh\?h\=vte-0-38 | bash

Expected behaviour

Expect that the emboldened text to appear as below:

Actual behaviour

No bold text is shown in the output.

Note: This has been tested with MesloLGM and Consolas.

MelsoLGM repo link: https://github.com/andreberg/Meslo-Font

Licence: https://github.com/andreberg/Meslo-Font#license
Issue 1:
my-app.zip

Annotation 2021-11-26 130117)

This is my code and permission function inside renderer folder -> helpers -> permission.jsx

and permission function use inside renderer folder -> components folder -> permission.jsx

and permission component use inside renderer folder -> pages folder

** I need camera, microphone and screen recording permission so I'm using systemPreferences But Getting undefined for system preference mediaType as a 'camera', 'microphone' and 'screen'**

Originally posted by @dipaksavaliya04 in #31875 (comment)

Issue 2:
Preflight Checklist

I have read the Contributing Guidelines for this project.

I agree to follow the Code of Conduct that this project adheres to.

I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Electron Version

15.0.0

What operating system are you using?

macOS

Operating System Version

macos catalina 1.01507

What arch are you using?

Other (specify below)

Last Known Working Electron version

No response

Expected Behavior

i should be able to run project successfully and want to remove this preference error

Actual Behavior

I'm creating a desktop application using electron. I need camera, microphone and screen recording permission so I'm using systemPreferences But Getting undefined for system preference mediaType as a 'camera', 'microphone' and 'screen'

Testcase Gist URL

No response

Additional Information

Here is the full function we use to request media access. It is called when the Permission Request Handler is invoked with the media permission. The app does not reach the catch Block, so the error is not logged. We tested this behavior on 3 different machines

mediaType as a 'camera', 'microphone' and 'screen'

Below is a code

export default async function onPermission(mediaType) {

try {

console.log("systemPreferences", systemPreferences);

const status = await systemPreferences.getMediaAccessStatus(mediaType);

console.log(Current ${mediaType} access status:, status);

if (status === "not-determined") {
const success = await systemPreferences.askForMediaAccess(mediaType);
console.log(
`Result of ${mediaType} access:`,
success.valueOf() ? "granted" : "denied"
);
return success.valueOf();
}
return status === "granted";

} catch (error) {

console.log(Could not get ${mediaType} permission:, error.message);

}

return false;

}
Issue 1:
Q
A

Bug report?
yes

if there is child with name parent and I want to know if FormView has parent FormView, then it is impossible to find it

FormView should have new method isParent

Issue 2:
How can know if a form has a parent or not, in a view?

The fast answer is:

{{ form.parent }}

but if the form has a child called parent the above statement always return a result, even when they do not have a real parent.

then the only way to know if has a real parent is something like:

{% set hasParent = (form.parent is not null and (not form.offsetExists('parent') or form.parent != form.offsetGet('parent'))) %}

I'm missing something?

a method hasParent() is needed in the FormView to avoid the \ArrayAccess.
Issue 1:
AMD support so that individual components such as popover, etc. can be required using requirejs

Issue 2:
AMD together with module loaders such as require.js are increasingly being used for front end web development.

Has anyone at bootstrap considered supporting AMD in bootstrap's Javascript modules?

I'd be happy to help out if there is support for the idea. The UMD repo contains boilerplate examples of how one makes modules AMD compatible without losing backward compatibility.
Issue 1:
Hi guys,

This might be related to chrome rather than webpack, but I'm not really sure about that.

I have a problem related to js files getting partially duplicated by the browser.

The following part of the minified js can visually seen duplicated:

Checks if an event is supported in the current execution environment.

*

NOTE: This will not work correctly for non-generic events such as change,

This happens when chrome is loading the js but I quickly navigate to another link in the website.

When I come back, and the files start to load again, then the file gets this duplication problem, this causes a js error that can be seen on console.

commonChunk.54cef61….bundle.js:41 Uncaught SyntaxError: Unexpected token !

The worst problem is that I'm caching files, so the user doesn't get rid of the error until he clears the cache.

If I wait for the file to load, then the file gets received perfectly by the user.

This seems only to be affecting commonChunk.

Issue 2:
Bug report

What is the current behavior?

The splitChunks feature (using chunks: 'all') doesn't take into account CSS extraction (via mini-css-extract-plugin) when deciding whether to create a new inital chunk. A new chunk can end up being created that is empty (other than the webpack functions) and under the default 30KB splitChunks.minSize threshold so shouldn't have been created.

eg:

dist/vendors~pageA~pageB.js

For webpack build log output see:

https://github.com/edmorley/testcase-webpack-splitchunks-css#actual

If the current behavior is a bug, please provide the steps to reproduce.

git clone https://github.com/edmorley/testcase-webpack-splitchunks-css.git

yarn install

yarn build

What is the expected behavior?

There is no dist/vendors~pageA~pageB.js chunk generated, since after the CSS is extracted, there should be no common JS code between the two pages.

Other relevant information:

webpack version: 4.8.3

Node.js version: 10.1.0

Operating System: Windows 10

Additional tools: mini-css-extract-plugin@0.4.0
Issue 1:
String templates should be colorizes like string literals.

Issue 2:
I'm playing with the new support for template strings in release-1.4 and seeing potential issues with syntax highlighting.

In a single-line template string it looks like the string is classified as a keyword.

In a multi-line template string like this:

var template = `/hello/
/world/`;

It looks like the "/hello/" is classified as a keyword and the "/world/" as a regexp.

Sorry if this is just not implemented yet. I looked for an issue first but didn't see one.
Issue 1:
Consider a widget that conditionally depends on an InheritedModel aspect:

if (foo) {
return Text("Foo", MyModel.of(context, aspect: MyAspect));
}

It seems that if foo requirement is met once. Then even if that condition fails in the future; the widget will stay dependent on the MyModel.

This leads to unnecessary builds. I'd expect the list of dependencies to be cleared before build call

Issue 2:
Suppose widget W depends on InheritedWidget D based some condition be true. After a asynchronous operation, condition changed from true to false. From now on, W doesn't depend on D actually, but W still got rebuilt due to changes in D. condition can be internal state of W or information from other InheritedWidget.

I post a test gist to show this.
Issue 1:
(using Rust compiled from commit dc4560d)

The following code fails to compile:

fn main() {
'outer: loop {
match () {
() => {
for std::uint::iterate(0, 8) |_| {
loop {
break 'outer;
}
}
},
}
}
}

with the following error:

/tmp/test.rs:7:24: 7:37 error: internal compiler error: Break to unknown label
/tmp/test.rs:7 break 'outer;
^~~~~~~~~~~~~

If you comment out the for loop, it compiles fine.

Issue 2:
Rust should expose the full standard C99 math library through the Float trait. The cmath module will then be an implementation detail we don't need to expose. This will allow Rust to move to a specific math library in the future too rather than using the standard C library provided by the OS.

At the moment, a macro is used to generate a whole bunch of wrappers around these functions. This actually makes the code longer, rather than shorter, so I don't see a point in keeping it around.
Issue 1:
System info

Playwright Version: [v1.33 and v1.32]

Operating System: [Windows 11, Ubuntu 20]

Browser: [Chromium]

Other info:

Source code

import { test, expect } from '@playwright/test';

test('keyboard', async ({ page }) => {
// await page.goto('https://www.keyboardtester.com/tester.html');
// await page.goto('https://keyboard-test.space/');
// await page.goto('https://en.key-test.ru/');
// await page.goto('https://www.onlinemictest.com/keyboard-test/');

await page.goto('https://www.rapidtables.com/tools/notepad.html');
// await page.goto('https://www.memonotepad.com/');
// await page.goto('https://justnotepad.com/');
// await page.goto('https://www.online-notepad.net/');

await page.waitForLoadState();
await page.keyboard.press('Shift+r');

await page.screenshot({ path: 'screenshot1.png' })

});

I'm not sure if this is a valid bug. Hopefully someone could shed your light on it. Thank you.

We are now testing an internal map tool on web with canvas element, with lots of keyboard shortcut for users.

Unfortunately exposure is not allowed so difficult for reproduction.

The symptom is that when we press Shift plus a character(let's say 'r'), it always triggers Shift+r and then r.

Reproducible on Windows 11 desktop, Ubuntu 20 container and Playwright v1.33/1.32(earlier version not tested).

NOT reproducible for human user, and step over debug mode. So I guess it's related to keyboard timing.

I tried above sample code on some keyboard test and notepad sites.

All the keyboard test sites recorded both Shift key and r key.

But all notepad sites only recorded 'r'. This seems related to my scenario. Should they record 'R'?

Thank you.

Issue 2:
System info

Playwright Version: [v1.34 / latest]

Operating System: [Windows 10]

Browser: [ Chromium]

Other info: codegen only

Source code

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

** Shell command **

npx playwright@latest codegen https://saw.trixti.com.br/saw

Steps

npx playwright@latest codegen https://saw.trixti.com.br/saw or npx playwright codegen https://saw.trixti.com.br/saw

Expected

I could use codegen features (record, pick locator etc)

Actual

Codegen is unusable. The site triggers alerts with text "TypeError: cache.has is not a function (Page: - Line: 399)" in loop: i click ok a new alert appears

More Info

Its specific for codegen . Using the playwright library/automation or directly in browser works without issues

The page has the following DOCTYPE:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

Looking at call stack, the error is triggered by a function of the Recorder. Yesterday when i first spotted the error i could inspect the callstack. Today the callstack is not show in the devtools
Issue 1:
The 24 hour time format resets itself to default after a full restart.

My emulator is set to 24h format and ui.window.alwaysUse24HourFormat says TRUE the first time the app starts after assemble. I can switch to another app and come back or do a hot reload and it stays TRUE. However, when doing a full restart alwaysUse24HourFormat will give FALSE.

Version:

Flutter 0.3.5 • channel dev • https://github.com/flutter/flutter.git

Framework • revision 7ffcd3d (7 days ago) • 2018-04-24 14:03:41 -0700

Engine • revision ec61147

Tools • Dart 2.0.0-dev.48.0.flutter-fe606f890b

Issue 2:
When there are multiple PlatformViews, we don't have a way for Mojo service clients to specific which view they are associated with. There's a comment in PlatformViewAndroid:

// TODO(eseidel): We need per-view services!
Issue 1:
The following program crashes 6c

struct s {int m;} void f(void) {}

Here is the stacktrace according to gdb

$ gdb --args ../pkg/tool/linux_amd64/6c crash.c
Reading symbols from /usr/local/google/home/cshapiro/go/pkg/tool/linux_amd64/6c...done.
(gdb) run
Starting program: /usr/local/google/home/cshapiro/go/pkg/tool/linux_amd64/6c crash.c

Program received signal SIGSEGV, Segmentation fault.
0x00000000004393bd in __quotesetup (s=0x0, r=0x10000, nin=-1, nout=163,
q=0x7fffffffbc60, sharp=0,
runesout=0) at /usr/local/google/home/cshapiro/go/src/lib9/fmt/fmtquote.c:47
��/usr/local/google/home/cshapiro/go/src/lib9/fmt/fmtquote.c:47:1643:beg:0x4393bd
(gdb) where
#0 0x00000000004393bd in __quotesetup (s=0x0, r=0x10000, nin=-1, nout=163,
q=0x7fffffffbc60, sharp=0,
runesout=0) at /usr/local/google/home/cshapiro/go/src/lib9/fmt/fmtquote.c:47
#1 0x0000000000439e72 in __quotestrfmt (runesin=1, f=0x7fffffffbd80)
at /usr/local/google/home/cshapiro/go/src/lib9/fmt/fmtquote.c:221
#2 0x0000000000439f28 in quoterunestrfmt (f=0x7fffffffbd80)
at /usr/local/google/home/cshapiro/go/src/lib9/fmt/fmtquote.c:244
#3 0x0000000000439154 in __fmtdispatch (f=0x7fffffffbd80, fmt=0x44b598, isrunes=0)
at /usr/local/google/home/cshapiro/go/src/lib9/fmt/fmt.c:229
#4 0x0000000000437070 in dofmt (f=0x7fffffffbd80, fmt=0x44b597 "Q")
at /usr/local/google/home/cshapiro/go/src/lib9/fmt/dofmt.c:80
#5 0x000000000043b973 in vseprint (buf=0x7fffffffbe40 "duplicate types given:
STRUCT s and ",
e=0x7fffffffbf08 "", fmt=0x44b578 "duplicate types given: %T and %Q", args=0x7fffffffbe28)
at /usr/local/google/home/cshapiro/go/src/lib9/fmt/vseprint.c:39
#6 0x000000000043036c in diag (n=0x0, fmt=0x44b578 "duplicate types given: %T and
%Q")
at /usr/local/google/home/cshapiro/go/src/cmd/cc/sub.c:1196
#7 0x0000000000433b0f in yyparse () at cc.y:984
#8 0x000000000042694b in compile (file=0x7fffffffe23e "crash.c", defs=0x0,
ndef=0)
at /usr/local/google/home/cshapiro/go/src/cmd/cc/lex.c:325
#9 0x000000000042613d in p9main (argc=1, argv=0x7fffffffddf0)
at /usr/local/google/home/cshapiro/go/src/cmd/cc/lex.c:196
#10 0x000000000043bffc in main (argc=2, argv=0x7fffffffdde8)
at /usr/local/google/home/cshapiro/go/src/lib9/main.c:55
(gdb)

Issue 2:
by alex@zylman.com:

Similar to issue #6258, but not the same.

What steps will reproduce the problem?
Try to read a CSV file where the fields are unquoted and one of them begins in something
that would need lazy quotes, e.g.
Field1,Field2,"LazyQuotes" Field3,Field4,Field5

What is the expected output?
["Field1", "Field2", "\"LazyQuotes\" Field3",
"Field4", "Field5"]
Length 5

What do you see instead?
["Field1", "Field2", "LazyQuotes\"
Field3,Field4,Field5"]
Length 3

Which compiler are you using (5g, 6g, 8g, gccgo)?
Whatever the default is from https://code.google.com/p/go/downloads/list

Which operating system are you using?
Mac OS X 10.8

Which version are you using? (run 'go version')
go version go1.1.2 darwin/amd64