WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
In one of our screens with Material Scaffold no AppBar is set and the body is a ListView containing normal Flutter widgets and a WebView. The ListView is wrapped in a SafeArea.

When scrolling up, as expected, the normal Flutter widgets are not visible behind the statusbar. Unfortunately on iOS the WebView IS visible below the statusbar. It seems like the padding given by SafeArea is not working for WebViews/PlatformViews on iOS.

I created a simple version which you can see in attached gif.

Here is my output of flutter doctor -v:

[✓] Flutter (Channel beta, v1.0.0, on Mac OS X 10.14.1 18B75, locale de-DE)
• Flutter version 1.0.0 at /Users/basti/Coding/SDKs/flutter
• Framework revision 5391447fae (vor 12 Tagen), 2018-11-29 19:41:26 -0800
• Engine revision 7375a0f414
• Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)

[✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
• Android SDK at /Users/basti/Coding/SDKs/android-sdk-macosx/
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• ANDROID_HOME = /Users/basti/Coding/SDKs/android-sdk-macosx/
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
• All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 10.1, Build version 10B61
• ios-deploy 1.9.4
• CocoaPods version 1.5.3

[✓] Android Studio (version 3.2)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 31.1.1
• Dart plugin version 181.5656
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

Issue 2:
Can't clip NativeView(UIKitView) on iOS，Android is ok.

BorderRadius not work with ClipRRect、Card and so on.
Issue 1:
I want the ability to add a single full screen zone across multiple displays in a multi-monitor configuration

I use Visual Studio across 2 x 4K 32" monitors. I want to maximize the application across both displays, and treat both displays as a single screen/zone. Currently, I need to open the app, and manually align TopLeft/BottomRight.

The application would act as if it had been maximized (currently maximizing an app in a dual display configuration means it maximizes to a single screen). I can, of course, configure the NVidia display driver to appear as a single display device - but this gets a bit jenky when you introduce DisplayPort sleep/power/disconnection issues, and I don't want a single display for all applications - only this one (and maybe Davinci Resolve, when I'm doing a bit of video edition)

Issue 2:
Popup tells me to give y'all this.

2020-07-31.txt

Version: 1.0.0

OS Version: Microsoft Windows NT 10.0.19041.0

IntPtr Length: 8

x64: True

Date: 07/31/2020 17:29:59

Exception:

System.ObjectDisposedException: Cannot access a disposed object.

Object name: 'Timer'.

at System.Timers.Timer.set_Enabled(Boolean value)

at System.Timers.Timer.Start()

at PowerLauncher.MainWindow.OnVisibilityChanged(Object sender, DependencyPropertyChangedEventArgs e)

at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args)

at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)

at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)

at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)

at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)

at System.Windows.UIElement.UpdateIsVisibleCache()

at System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot)

at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)

at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)

at System.Windows.Window.SetRootVisual()

at System.Windows.Window.SetRootVisualAndUpdateSTC()

at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)

at System.Windows.Window.CreateSourceWindow(Boolean duringShow)

at System.Windows.Window.CreateSourceWindowDuringShow()

at System.Windows.Window.SafeCreateWindowDuringShow()

at System.Windows.Window.ShowHelper(Object booleanBox)

at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)

at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
Issue 1:
Documents of different types tend to have different fields, which can lead to problems of sparsity when documents are stored in the order that they were indexed. If we sort documents by type, then missing values (eg in doc values or norms) can be represented very efficiently.

On merge, documents should be sorted by type (assuming there is more than one type). Additionally, for certain use cases, it can make sense to apply a secondary sort (eg on timestamp). This secondary level should be customizable per index, and should probably be dynamically updatable (although it would only have effect on later merges).

Relates to #8870

Issue 2:
Lucene has index-time sorting and early query termination capabilities. It would be nice to integrate it into Elasticsearch in order to speed up queries whose sort order matches the index order. This presentation contains some information about these features and their implementation in Lucene.
Issue 1:
React version: 0.0.0-experimental-94c0244ba

Steps To Reproduce

import React from "react";
import Rating from "@material-ui/lab/Rating";
import "./styles.css";

export default function App() {
const [rating, setRating] = React.useState(null);

return (
<div>
Example
<Rating
name="rating"
size="large"
value={rating}
onChange={(event, newValue) => {
console.log(`change rating: ${newValue}`);

setRating(newValue);
}}
/>
</div>
);
}

ReactDOM
.unstable_createBlockingRoot(document.querySelector('#app'), {
hydrate: false,
})
.render(
<App />
)
;

Live Example

https://codesandbox.io/s/immutable-cloud-h3k2m?file=/src/App.js

Video (describe where is a bug)

https://www.youtube.com/watch?v=-jWTXdaIA6Y&t=1s

The current behavior

It's needed to click 2 times before onChange will be fired

The expected behavior

Should works as expected as it's working in legacy mode

ReactDOM.hydrate(
<App />,
document.querySelector('#app') as HTMLDivElement
);

Thanks

Issue 2:
React version: I think any experimental version.

Tested using:

0.0.0-experimental-5faf377df and

0.0.0-experimental-e5d06e34b at least.

Steps To Reproduce

Open CodeSandbox: https://codesandbox.io/s/createroot-broken-focus-onchange-ysrut?file=/src/App.js

Attempt to click on the label text for the checkbox in the createRoot section

Notice that the checkbox won't check - onChange isn't called

Attempt to click on the label text for the checkbox in the render section

Notice that the checkbox will check - onChange is called

Link to code example: https://codesandbox.io/s/createroot-broken-focus-onchange-ysrut?file=/src/App.js

The current behavior

When rendering using createRoot:

onFocus is called

onChange is not called

When rendering using render:

onFocus is called

onChange is called

My coworker and I spent a bit of time debugging this, if we at all schedule the onFocus setState handler (using setTimeout, or requestAnimationFrame for example), then onChange is always called from the input.

e.g.

handleFocus = () => {
setTimeout(() => this.setState({ isHovered: true }), 0)
// or
requestAnimationFrame(() => this.setState({ isHovered: true }))
}

Additionally, if the label is a sibling to the input:

return (
<>
<input id="id" onChange={} type="checkbox" checked={} />
<label htmlFor="id" onFocus={}>
label text
</label>
</>
)

then the onChange handler will be called as well (Note: onFocus won't be called in this case because there isn't a focusable element within it).

Also worth noting, re-implementing the checkbox component using hooks will still run into the same bug - no differences between using classes vs hooks.

The expected behavior

Calling setState in onFocus shouldn't prevent onChange on a nested input element to be called. Both onFocus and onChange should be called.
Issue 1:
Please see an example below. Should it generate same fingerprint? Thanks.

from scrapy.http import Request
from scrapy.utils.request import request_fingerprint

r1 = Request("http://www.example.com/123")
r2 = Request("http://example.com/123")

print request_fingerprint(r1)
print request_fingerprint(r2)

1577e4ad857665390d44cd04a638104d0575d903

a907c28bf08125b8a87535a117c2d8a4a629415c

Issue 2:
Currently when image download encounters redirect download fails. This is probably because of this line that sets handle_httpstatus_all. As a result image download handler gets to process response with status 3** and usually empty body, it is not able to download image, it fails. Is this expected behavior? Why not follow redirect in case like this?
Issue 1:
System information (version)

OpenCV =>Newest

Operating System / Platform => WIN10X64

Compiler =>VS2017X64

Detailed description

opencv_imgproc_AVX512_SKX:

D:\Eigen\src\Eigen\src/Core/GenericPacketMath.h(524): error C2665: 'log': none of the 3 overloads could convert all the argument types

D:\Eigen\src\Eigen\src/Core/GenericPacketMath.h(537): error C2665: “exp”: none of the 3 overloads could convert all the argument types

Steps to reproduce

Issue 2:
System information (version)

OpenCV => ❔

Operating System / Platform => ❔

Compiler => ❔

Detailed description

Steps to reproduce
Issue 1:
Hi, just reporting a problem,

I tried to run julia on Ubuntu 13.04 on a free EC2 instance (t1.micro) and got an Illegal instruction just after typing julia.

I tried both 32 and 64 bit Ubuntu.

Haven't tried this on a non-free instance.

Steps to reproduce:

create a t1.micro instance running the OS : Ubuntu server 13.04 (32 or 64 bits) ;

sudo apt-get install julia

execute 'julia'

"Illegal instruction (core dumped)"

Issue 2:
julia.bat crashes and test-julia.bat give the message :

Your OS does not support AVX instructions. OpenBLAS is using Nehalem

kernels as a fallback, which may give you poorer performance.

Please submit a bug report with steps to reproduce this fault, and any error mes

sages that follow . Thanks.

When I hit enter it just closes.

Windows XP Pro SP3 machine with Intel i5-2500 @ 3.30Ghz

C:\julia-2b22323495\julia.bat

Is there anything else that I can supply you with to help debug this problem?

I have also tried to install Juliastudio. It opens the interface, but doesn't fully load Julia.

Sorry, I am new to this. But I would love to be able to use it.

Thanks
Issue 1:
I think line 567 in tools/rplot.py "ax.contour(Z, extent=[x_min, x_max, y_min, y_max])" should be changed to "ax.contour(Z.T, extent=[x_min, x_max, y_min, y_max])"

When I plot a density map, the graph is rotated by 90 degrees.

Issue 2:
The axes drawn by rplot.GeomDensity2D are flipped.

line 565 reads:

ax.contour(Z, extent=[x_min, x_max, y_min, y_max])

but should read:

ax.contour(Z.T, extent=[x_min, x_max, y_min, y_max])

The following test code gives the results shown below:

import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import pandas.tools.rplot as rplot

x = np.arange(1,30)
y = x*x
x = x + np.random.normal(size=x.shape)
y = y + np.random.normal(size=y.shape)
data = data = pd.DataFrame({'x': x, 'y': y})
plot = rplot.RPlot(data, x='x', y='y')
plot.add(rplot.GeomScatter())
plot.add(rplot.GeomDensity2D())
plot.add(rplot.GeomPolyFit(degree=2))
plot.render(plt.gcf())
plt.show()
Issue 1:
[x] bug report => search github for a similar issue or PR before submitting
[x] feature request

Current behavior

I want basic inheritance concept:

export abstract class AbstractForm{
abstract data;
constructor(protected dialog: DialogService){}
}
//then use it in component
@Component({
selector: 'abc',
template: '...'
})
export class AbcComponent extends AbstractForm{
data = {}
// here I don't want create same constructor one more time and call super(dialog)
}

But here I get error:

Uncaught (in promise): Error: Can't resolve all parameters for AbcComponent : (?).

Error: Can't resolve all parameters for AbcComponent : (?).

I don't have error with language-service and in my webstorm all seems correct, I only get this response directly when launch app in browser, even ng serve and ng build --prod works well, BUT even when I decorate my AbstractClass with @Component({}) it doesn't works on build and angular language service tell me

Error:(9, 2) Angular: Component 'AbstractForm' is not included in a module and will not be available inside a template. Consider adding it to a NgModule declaration

I don't want add this abstract class into ngModule because it's only an abstraction and I will never use it inside a template, while on dev mod it works (even if angular-language-service awar from this)

Expected behavior

I juste want avoid set consctructor again while I don't need specify other DI it's annoying to always add duplicate code in each component extending this AbstractForm:

constructor(protected dialog : DialogService) {
super(dialog);
}

Minimal reproduction of the problem with instructions

see above ( can't reproduce on plunkr)

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

avoid annoying duplication of code : i don't want call abstract constructor using super()... when on child I don't have one; simply use existant constructor wirted in abstract class

Please tell us about your environment:

win10, webstorm 2017.1.3

Angular version:

@angular/cli: 1.0.2
node: 7.7.2
os: win32 x64
@angular/common: 4.1.1
@angular/compiler: 4.1.1
@angular/core: 4.1.1
@angular/forms: 4.1.1
@angular/http: 4.1.1
@angular/platform-browser: 4.1.1
@angular/platform-browser-dynamic: 4.1.1
@angular/router: 4.1.1
@angular/cli: 1.0.2
@angular/compiler-cli: 4.1.1
@angular/language-service: 4.1.1

Browser: [all]

Language: [ts 2.3]

Issue 2:
dashCaseToCamelCase and camelCaseToDashCase are duplicated:

angular/modules/angular2/src/core/compiler/property_setter_factory.js

Line 9
in
58dd75a

export function dashCaseToCamelCase(input:string): string {

& https://github.com/angular/angular/blob/58dd75a1c8abfa8396ead9b2b1c95dc6c6558668/modules/angular2/src/core/compiler/pipeline/util.js

Where should be move them and short support fns in general ?

/cc @pkozlowski-opensource @Mlaval
Issue 1:
Examples bug report

Example name

analyze-bundles

Describe the bug

After following the "Download manually" instructions, there is an error in the terminal and the page at http://localhost:3000/ displays "Internal Server Error"

To Reproduce

curl https://codeload.github.com/zeit/next.js/tar.gz/canary | tar -xz --strip=2 next.js-canary/examples/analyze-bundles

cd analyze-bundles

npm install

npm run dev

See the following error:

ERROR Failed to compile with 1 errors 6:03:15 PM

error in ./node_modules/next/dist/client/next-dev.js

Module parse failed: Unexpected token (34:6)
You may need an appropriate loader to handle this file type.
|
|
> import('./noop');
| var _window = window,
| assetPrefix = _window.__NEXT_DATA__.assetPrefix;

@ multi ./node_modules/next/dist/client/next-dev

Expected behavior

Expect to see no errors.

System information

OS: macOS 10.14.2

Browser: Chrome 72

Version of Next.js: 8.0.1

Node: v10.15.0

npm: v6.8.0

Additional context

Looks to be caused by #6259

Issue 2:
We need a sidebar which is a category tree of an e-commerce site, fetched from DB(pls check this example - ffshop : left menu - building the next version of it).

This should only load once - at very first time (server rendered) like react router example

How can I fetch this initially - using HOC? I use layout component and also checked HOC

I think this may be related to #3461, #3552.

I have searched the issues of this repository and believe that this is not a duplicate.

next.js match in every aspect of our need but looks like it falls a bit short in this use case. Building another site which also requires rendering dynamic menu from DB. I would like to contribute.
Issue 1:
Running numpy.dot normally produces the expected answer:

$ python -c "import numpy ; f=numpy.ones(2,dtype=numpy.float32);print f.dot(f)"
2.0

If I import a PyQt5 module first, I get a different answer:

$ python -c "import PyQt5.QtWidgets ; import numpy ; f=numpy.ones(2,dtype=numpy.float32);print f.dot(f)"
0.0

Other folks appear to have found the issue here, with an implied implication of the Accelerate library being loaded first. I could not discover the resolution they used, and I would prefer one that did not require fixing python import order.

Issue 2:
I've found a very strange bug. Under certain circumstances, a small number of the entries in the dot product of two 2D arrays will be wrong:

import numpy as np
nrow, ncol = 2, 69900
rows = np.random.normal(size=(nrow, 1)).astype(np.float32)
columns = np.random.normal(size=(1, ncol)).astype(np.float32)
np_outer = rows.dot(columns)
ind0, ind1 = 0, 69818
print(np_outer[ind0, ind1], rows[ind0, 0]*columns[0, ind1])

Most entries are fine. In this example, only columns 69818-69899 in the product are wrong.

This issue remains the same using np.matmul(rows,columns) and for different values of nrow. However it doesn't appear for an arbitrary values of ncol. There's a band of values around 69900 where errors appear, but there are none at 60000 or 70000. It's also not always the case that the last columns are the ones affected. For some values of ncol, there will be multiple bands of columns affected.

I have not seen this behavior with float64 arrays. It also disappears if you do the dot product in transposed order:

np_outer_t = columns.T.dot(rows.T).T
print(np_outer_t[ind0, ind1], rows[ind0, 0]*columns[0, ind1])

System info: numpy 1.12.1, python 3.6.1, Macbook Pro, OS 10.6.1
Issue 1:
I've got an account on your site and I've successfully added GitHub, Twitter and G+ to my profile, but when I try to add LinkedIn, nothing happens once I've logged in and authorized Free Code Camp. The problem seems to be on your side as the dialog closes after attempting to authorize and when the button is clicked in the future no dialog box pops up as it's already been authorised.

Issue 2:
Challenge http://www.freecodecamp.com/challenges/waypoint-target-a-specific-child-of-an-element-using-jquery has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

$(".well:nth-child(2)").addClass("animated bounce"); makes the whole 'well' bounce not the second child.
Issue 1:
Howdy!

Due to some unfortunate circumstances I'm currently stuck working on a project that's a subdirectory in part of a larger git repo. To open the entire repo directory would be a bit of a pain as well. I can work on the project just fine otherwise but none of the git features are currently available which is a disappointment.

What's preventing Code from being able to use Git regardless of the opened project folder location (relative to the git root)?

The contrived example layout:

/projects/engine/ <--- root of the repo
/projects/engine/tools/my_application/ <--- here sits a package.json, gulpfile.js, etc etc

Issue 2:
Ubuntu 12.04, vscode 0.10.1

The main reason I want this is to get around slow go to file indexing #55 by opening a sub-directory in Chromium so that indexing it doesn't take very long. Traversing the file path upwards to the root directory should be a fairly quick to perform action.

Repro:

mkdir -p foo/bar

cd foo

git init

Code bar

Open git integration tab

Expected:

Git integration realises that bar is part of the repo

Actual:

Git integration disabled
Issue 1:
react-scripts version: 3.4.1

Steps To Reproduce

Created project with CRA typescript

Added .eslintrc.js:

module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
tsconfigRootDir: __dirname,
project: ['./tsconfig.json'],
ecmaFeatures: {
jsx: true,
},
},
plugins: ['@typescript-eslint', 'jest', 'react', 'react-hooks', 'sonarjs'],
extends: [
'standard-with-typescript',
'plugin:jest/recommended',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:sonarjs/recommended',
],
settings: {
react: {
version: 'detect',
},
},
}

Added lints not included with react-scripts to devDependencies:

"eslint-config-standard-with-typescript": "^15.0.1",
"eslint-plugin-jest": "^23.8.2",
"eslint-plugin-node": "11",
"eslint-plugin-promise": "4",
"eslint-plugin-sonarjs": "^0.5.0",
"eslint-plugin-standard": "4"

Run with npx eslint --fix --ext .js,.jsx,.ts,.tsx .

Worked around adding rules individually:

rules: {
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
},

Issue 2:
When a state update causes the form's submit button to be displayed, the form's submit event fires even though the submit button has not been pressed.

React version: 18.2

Steps To Reproduce

Press the "Change Mode" button on the first linked sample.

Checking the console, you can see the submit event is fired.

Link to code example:

https://codesandbox.io/embed/friendly-alex-ehlut4?fontsize=14&hidenavigation=1&theme=dark

In the above sample, if the submit button is enclosed in <div>, this does not happen. Therefore, this phenomenon seems to be a bug related to React's re-rendering.

https://codesandbox.io/embed/cocky-frost-fwd7vm?fontsize=14&hidenavigation=1&theme=dark

The current behavior

When the "Change Mode" button is pressed while in mode A, the changeMode handler for the click event is executed, and after being re-rendered in mode B, the submit event fires with the "Submit" button as the submitter.

The expected behavior

When the Change Mode button is pressed while in mode A, only changeMode, the handler of the click event, is executed.
Issue 1:
Feature request

What is the expected behavior?

Every loader that uses [hash] needs to use [hash:10] to be consistent if webpack's options were set as output: { hashDigestLength: 10 } }. It would be better if loaders were able to use the same value by default if they choose to.

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

hashDigestLength should be able to be used by [hash] in file-loader and other loaders if they choose to, so that [hash] would by default have a length of 10.

How should this be implemented in your opinion?

In webpack/loader-utils#121 (comment) it says that the issue should be solved on the webpack side. There was also an issue in file-loader project which said it can't be solved there.

Are you willing to work on this yourself?

Issue 2:
Feature request

We all know that webapck can set the resolve.mainFields to read the node_modules package dependency file, but if I set {" es2015": "./fesm2015/core.js "} like @angluer/core package.json;

I will configure resolve.mainFields as[' es2015 ', 'module', 'main'];

If my build target is es5,

babel-loadershould exclude loading [' module', 'main ']; Including mainFields as [' es2015 ']; How can I fulfill this abnormal demand

What is the expected behavior?

I can filter module. rules freely according to resolve.mainFields

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

In order to embrace the future, convenient tree-string, reduce duplication of code

How should this be implemented in your opinion?

Rule exclude or some other conditional Rule that tells the Rule function whether the incoming file reads the mainFields field in the package.json, what's the name of the field?

e.g :

Scenario 1

{
"es2015":"./lib/es/index.js",
"main":"./lib/bundles/index.js"
}

node_models/a/lib/es/index.js(es2015:'./lib/es/index.js') {mainField: 'es2015'}

// lib/es/index.js
import b from "./b.js"

node_models/a/lib/es/b.js {mainField: [false?|undefined?]}

Scenario 2

{
"main":"./lib/bundles/index.js"
}

node_models/b/lib/bundles/index.js("main":"./lib/bundles/index.js") {mainField: 'mian'}

Are you willing to work on this yourself?

yes