WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Problem:

At the moment in the documentation page of Flutter, we do not have a button to navigate to the related dart file in Flutter project. e.g. with FloatingActionButton, if we want to see the related dart file, we are not able to navigate easily. We need to go to GitHub and find the related file.

I know we can see class related data easily but sometimes seeing the overview of the file is more helpful than usual documentation.

Solution:

Adding a GitHub button to navigate to related dart file would be useful.

Issue 2:
If flutter doctor is run in a directory containing a project, it should run checks for that project. Things like verifying the engine version, that some dirs exist (android/AndroidManifest.xml, android/res/, ios/), that pub has been run, ...
Issue 1:
Please add support for searching and opening .msc files like gpedit.msc.

I want to open the gpedit.msc by typing gpedit.msc or Group Policy Editor.

crutkas note:

This would add in items like device manager and other MMC items

Additional hint

In start menu this command is marked as type "control panel" (de: "Systemsteuerung").

Issue 2:
Environment

Windows build number: 10.0.18363.836
PowerToys version: 0.18.1
PowerToy module for which you are reporting the bug (if applicable): Launcher

Steps to reproduce

Launch Launcher

Search any Windows Administrative Tools programs, such as Disk Management, Device Manager, Services, Defragment and Optimize Drives, etc.

Expected behavior

You can't find those programs.

Actual behavior

You should be able to find them (unless it's a desired behaviour).

Screenshots
Issue 1:
Challenge Waypoint: Add Borders Around your Elements has an issue.

User Agent is: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.93 Safari/537.36.

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

problem url: http://www.freecodecamp.com/challenges/waypoint-add-borders-around-your-elements

passes every test except:

Give your image a border width of 10px.

Tried hard refresh, opening in new browser etc.

My code:

<link href="http://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
.red-text {
color: red;
}

h2 {
font-family: Lobster, Monospace;
}

p {
font-size: 16px;
font-family: Monospace;
}

.smaller-image {
width: 100px;

}

.thick-green-border{
border-color: green;
border-style: solid;
border-width: 10px;
}

</style>

<h2 class="red-text">CatPhotoApp</h2>

<img class="smaller-image thick-green-border" src="https://bit.ly/fcc-relaxing-cat">

<p class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p class="red-text">Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>

Issue 2:
Challenge http://freecodecamp.com/challenges/waypoint-add-borders-around-your-elements has an issue. "Give your image a border width of 10px doesn't work.
Issue 1:
Describe the issue:

Implicit type casting for binary operators seems to ignore types of scalar values, see code example below where the left operand is passed a 0D scalar and 1D array respectively.

This behaviour provokes unexpected overflow errors in corner cases of empty shape tuples that can be easily overseen.

Reproduce the code example:

import numpy as np
type_w_scalar = (np.ones((), dtype=np.int32) + np.ones(5, dtype=np.int16)).dtype
type_wo_scalar = (np.ones(1, dtype=np.int32) + np.ones(5, dtype=np.int16)).dtype
promoted_type = np.promote_types(np.int32, np.int16)
# Note that promoted_type == type_wo_scalar != type_w_scalar
# promoted_type == np.int32
# type_wo_scalar == np.int32
# type_w_scalar == np.int16
print(type_w_scalar, type_wo_scalar, promoted_type)

Error message:

No response

NumPy/Python version information:

1.20.3 3.8.8 (default, Feb 24 2021, 21:46:12)

[GCC 7.3.0]

Issue 2:
Using direct ufunc calls below to eliminate operator overloading from the test case:

>>> one_eps = 1.00000001
>>> np.greater_equal(np.array(1.0, np.float32), np.array(one_eps, np.float64))
False
>>> np.greater_equal(np.array([1.0], np.float32), np.array(one_eps, np.float64))
array([ True]) # wrong!
>>> np.greater_equal(np.array([1.0], np.float32), np.array([one_eps], np.float64))
array([False])
>>> np.greater_equal(np.array(1.0, np.float32), np.array([one_eps], np.float64))
array([False])

Caused by result_type having some unusual rules:

>>> np.result_type(np.float32, np.float64)
dtype('float64') # ok
>>> np.result_type(np.float32, np.float64([1]))
dtype('float64') # ok
>>> np.result_type(np.float32, np.float64(1))
dtype('float32') # what

This seems wrong to me, but appears to be deliberate.

It seems the goal here is to interpret python scalars as loosely-typed (in the presence of arrays). This handles thing like:

letting integer literals choose between signed and unsigned

letting number literals have smaller representations than float64 and int_ if they'd fit

However, the method is too greedy, and also (in the presence of arrays) discards type information from:

np.number instances with an explicit type, like np.int64(1) and np.float32(1)

0d ndarray instances, by decaying them to their scalars

The problem is that PyArray_ResultType (and the ufunc type resolver) has lost the information about where it's array arguments came from, and whether their types are explicit or implicit.
Issue 1:
Steps to reproduce:

Click on the currently open file in the sidebar so its tab becomes active.

Press Ctrl+A to select all text.

Expected result: all text selected

Actual result: nothing selected, the focus is not set on the active tab.

Issue 2:
when i select a file in the folder view (left side)... why this do not change the focus to the content of the file??

because my workflow is:

select a file

press Ctrl+f to search something (but nothing happens because the focus is still on the folder view)

everytime i have to click on the content of the file to get the focus... this is a bit disadvantageous
Issue 1:
Environment

Windows build number: Microsoft Windows NT 10.0.18362.0
Windows Terminal version (if applicable): 0.6.2951.0

Steps to reproduce

Open Terminal and look at the window title bar.

Expected behavior

I would expect the title bar to use the same color/theme as the other apps in the system.

Actual behavior

The title bar is of a different color (a light gray).

Issue 2:
Environment

Windows build number: 10.0.18362.0
Windows Terminal version: 0.5.2681.0

Steps to reproduce

Set that profiles in settings:

{
"guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"name": "Windows PowerShell",
"backgroundImage": "ms-appdata:///roaming/arthas.jpg", //any Image
"backgroundImageOpacity": 0.25,
"backgroundImageStretchMode": "uniformToFill"
},
{
"guid": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
"name": "PowerShell Core",
"source": "Windows.Terminal.PowershellCore",
"backgroundImage": "ms-appdata:///roaming/arthas.jpg", //any Image
"backgroundImageOpacity": 0.25,
"backgroundImageStretchMode": "uniformToFill"
}

Expected behavior

Both profiles should look the same

Actual behavior

In the Windows Powershell profile the image is more whitish than in the Powershell Core profile

Powershell Core Profile

Windows Powershell profile
Issue 1:
Hello,

I'm a CG artist and I'm working in 3d studio max (among other software) and the program has a lot of separate windows that need to be in view all the time. Therefore I bought a new big 45" monitor so I can view all the windows and settings at once. Unfortunately Fance zones doesn't work with programs that have multiple windows within the same program so snapping the main window to a zone works but snapping the other ones to other zones doesn't work.

When I saw PowerToys for the first time and noticed that Fancy Zones feature it actually had me come up with the idea to buy such a big monitor. I would very much like to be able to snap those windows to their zones and improve my workflow this way.

Thanks in advance.

Regarsd,

Joep Swagemakers

Issue 2:
Environment

Windows build number: Microsoft Windows [Version 10.0.17763.1039]
PowerToys version: 0.14 - 0.15
PowerToy module for which you are reporting the bug (if applicable): FancyZones

Steps to reproduce

Create FancyZone layout, use mouse to drag-and-drop "Solution Explorer" or any other window from Visual Studio (except main window) into a zone.

Expected behavior

The window resizes to the zone accordingly, works in v0.13 of PowerToys.

Actual behavior

The window does not resize to the zone.

In version 0.14 it is still possible to arrange the window by activating the "Override Windows snap hotkeys..."-option and using hotkeys to arrange it into place. Drag-and-drop does not work.

In version 0.15+ there is no option to arrange these windows into a zone.
Issue 1:
After few seconds working on a PHP file, the editor panel hangs and the whole program needs to be killed.

Only the editor panel stops responding, while the menu bar can be clicked (but clicking on "Exit" doesn't produce any effect).

Task manager shows a stable 40% CPU load coming from code.exe process.

Windows 10 Pro x64 build 1511

VSCode 0.10.1

Issue 2:
Sometimes editor just freeze. Kill task helps only. Have this problem at work and home.

I noticed that this started after latest update (0.10.1).

Working in PHP files.

Windows 10 64.
Issue 1:
📝 Provide a description of the new feature

What is the expected behavior of the proposed feature? What is the scenario this would be used?

---Now PowerToys can only run after installing the installer. Could we have a portable version? A folder contains all the essential components would do the job. A single file executable would be the best. Thus we could throw it in OneDrive and keep the configuration consistent across multiple machines.

If you'd like to see this feature implemented, add a 👍 reaction to this post.

Issue 2:
Environment

Windows build number: Microsoft Windows [version 10.0.18363.836]
PowerToys version: 0.18.0
PowerToy module for which you are reporting the bug (if applicable): PowerToysRun

Steps to reproduce

start powertoys

once the quicklaunch icon is there, attempt to press alt + space

Expected behavior

The run dialog should appear.

Actual behavior

The window menu appears instead (which usually gets triggered by pressing alt + space:

Only after a rather long (5-10 seconds) delay PowerToysRun appears to work.

Screenshots
Issue 1:
Describe the issue

Just upgrading a project from quasar 1 to 2. Have a simple Axios integration but have isolated the problem to an even smaller example. I get double base urls on my requests.

Example Code

I have a boot.ts file exports a boot function like this:

export default boot(() => {
axios.defaults.baseURL = process.env.REMOTE;
void axios.get('/user/renewToken')
.then((response) => {
console.log('got response');
console.log(response);
});
});

Expected behavior, if applicable

I expect to get a simple request to http://localhost:8081/user/renewToken

Environment

Axios Version [e.g. 0.21.1]

Adapter [e.g. XHR/HTTP]

Browser [Safari]

Browser Version [e.g. 14.1.1]

Node.js Version [e.g. 14.17.3]

OS: [MacOS 14.4]

Quasar v2

Additional context/Screenshots

Add any other context about the problem here. If applicable, add screenshots to help explain.

Issue 2:
Describe the bug

In version 1.1.0 (via unpkg cdn https://unpkg.com/axios/dist/axios.min.js)

axios.create is undefined.

To Reproduce

Create an html document with

<script src="https://unpkg.com/axios/dist/axios.min.js"></script>

From JS, attempt to access axios.create

Result: undefined.

Expected behavior

axios.create To be defined and point to where it should.

Environment

Axios Version 1.1.0

Electron/10.2.0 Chrome/85.0.4183.121

Node/12.16.3

OS: Win10 2004 19041.985
Issue 1:
The code in this gist triggers a strange error on OSX.

Array(Float64,(6,6)) 6x6 Array{Float64,2}:
ERROR: LoadError: ArgumentError: can't repeat a string -1 times
in repeat at ./strings/types.jl:176
in print_matrix_row at show.jl:1017
in print_matrix at show.jl:1061
in showarray at show.jl:1229
in xdump at show.jl:908
in anonymous at show.jl:913
in with_output_limit at ./show.jl:1246
in xdump at show.jl:913
in truncate! at 12899.jl:176
in thickrestartbidiag at 12899.jl:52
in thickrestartbidiag at 12899.jl:44
in include at ./boot.jl:259
in include_from_node1 at ./loading.jl:271
in process_options at ./client.jl:308
in _start at ./client.jl:411
while loading 12899.jl, in expression starting on line 235

I can reliably reproduce this error on OSX (but not Linux). It always happens on Iteration 143 of this algorithm, and removing any of the printing statements in this code makes this error go away.

julia> versioninfo()
Julia Version 0.4.0-pre+7122
Commit 62d570f (2015-08-31 23:19 UTC)
Platform Info:
System: Darwin (x86_64-apple-darwin14.5.0)
CPU: Intel(R) Core(TM) i5-4258U CPU @ 2.40GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
LAPACK: libopenblas
LIBM: libopenlibm
LLVM: libLLVM-3.3

Issue 2:
Something is amiss with the formula used to calculate the number of digits in the entries of an array used in the repl.

julia> [2.,3.]
2-element Array{Float64,1}:
02.0
03.0

julia> [2.0,2.3]
2-element Array{Float64,1}:
02.0
2.3

Edit:

Julia Version 0.4.0-dev+3967
Commit b8a510d* (2015-03-23 13:19 UTC)
Platform Info:
System: Linux (x86_64-redhat-linux)
CPU: Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Sandybridge)
LAPACK: libopenblas
LIBM: libopenlibm
LLVM: libLLVM-3.3
Issue 1:
Vue.js version

1.0.19

Reproduction Link

Example using v1.0.19 (not working as expected)

https://jsfiddle.net/ps6vrun1/1/

Example using v1.0.18 (working as expected)

https://jsfiddle.net/jhapcwy1/1/

Steps to reproduce

Add a class to an element, and also a binding which will toggle the class

<div class="loader" :class="{'loader': hasClass}">

What is Expected?

class loader should be removed when hasClass is false

What is actually happening?

class loader remains on the div when hasClass is false

Issue 2:
When using an object in a v-bind:class ,classes are not removed from the element :

https://jsfiddle.net/arasharg/tLef7wfh/
Issue 1:
Running 0.176.0 on Mac OS X 10.10.1

The following is highlighted incorrectly:

const char* f(const char *s)
{
switch((s[0] << 8) + s[1]) {
case 'B': case 'C': case 'D': case 'E': case 'F': case 'G':
return "XX";
case 'H': case 'I': case 'J': case 'K': case 'L': case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R':
return "XX";
case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': case 'Y': case 'Z': case '[':case '\\': case ']': case '^': case '_': case '`': case 'a': case 'b': case 'c': case 'd': case 'e': case 'f':
return "XX";
case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': case 's': case 't': case 'u':
return "XX";
case 'v':
return "XX";
case 'w': case 'x':
return "XX";
case 'y':
return "XX";
default:
case 0:
return s;
}
}

Issue 2:
I opened a Python file with the following line (#963):

PrintAndLog(u"SSID: " + RememberedNetwork["SSIDString"].decode("utf-8") + u" - BSSID: " + RememberedNetwork["CachedScanRecord"]["BSSID"] + u" - RSSI: " + str(RememberedNetwork["CachedScanRecord"]["RSSI"]) + u" - Last connected: " + str(RememberedNetwork["LastConnected"]) + u" - Security type: " + RememberedNetwork["SecurityType"] + u" - Geolocation: " + Geolocation, "INFO")

Which led to the following bug:

You can find this as the main file in osxauditor.py.
Issue 1:
The code is extremely simple:

<!DOCTYPE html>
<html lang="en" ng-app="app">
<head>
<meta charset="UTF-8">
</head>
<body ng-controller="TestController">

<input type="text" ng-model="state.addr" ng-click="openDialog()">

<script src="angular.js" charset="utf-8"></script>
<script src="app.js" charset="utf-8"></script>
</body>
</html>

app.js

var mainWindow = require('electron').remote.getCurrentWindow();
var dialog = require('electron').remote.require('dialog');

var app = angular.module('app', []);

app.controller('TestController', function($scope) {
$scope.state = {};
$scope.openDialog = function() {
dialog.showOpenDialog(mainWindow, {
title: 'open file',
properties: [
'openDirectory'
]
}, function(files) {
if (files && files.length) {
$scope.state.addr = files[0];
$scope.$apply();
}
});
};
});

My expectation:

User can click in the input element, a dialog would be shown.

User can select a directory or just cancel the dialog

The selected directory path will be placed in the input element.

But actually:

Once i click the input, no matter i select a directory or cancel the dialog, following error occurs:

But the code works just perfect in 0.35.0. This error gets hurt me while i upgraded to 0.35.1

Issue 2:
Hey folks—in Electron 0.34.3, it was possible to do this:

showOpenDialog: (options, callback) ->
dialog = remote.require('dialog')
dialog.showOpenDialog(@getCurrentWindow(), options, callback)

However, in 0.35.1, the open dialog appears and the callback is run, but user interaction with the BrowserWindow fails in really strange way after you're finished selecting files. You can type into the selected text input and scroll, but you can't click anything on the page. As far as I can tell, it's permanently borked.

On the other hand, using the synchronous version of showOpenDialog works just fine. This code does not exhibit the problem:

showOpenDialog: (options, callback) ->
dialog = remote.require('dialog')
callback(dialog.showOpenDialog(@getCurrentWindow(), options))

I know that passing callbacks through remote is "bad", but I feel like something else may be the issue here?
Issue 1:
I have a specific use case where I animate an ImageView it does a flip animation and I see the next image. The issue is that while the next image is loading there is a bunch of white space.

I tried this implementation here:

Glide
.with(context)
.load(imageUrl)
.thumbnail(Glide // this thumbnail request has to have the same RESULT cache key
.with(context) // as the outer request, which usually simply means
.load(oldImage) // same size/transformation(e.g. centerCrop)/format(e.g. asBitmap)
.fitCenter() // have to be explicit here to match outer load exactly
)
.listener(new RequestListener<String, GlideDrawable>() {
@Override public boolean onResourceReady(GlideDrawable resource, String model, Target<GlideDrawable> target, boolean isFromMemoryCache, boolean isFirstResource) {
if (isFirstResource) {
return false; // thumbnail was not shown, do as usual
}
return new DrawableCrossFadeFactory<Drawable>(/* customize animation here */)
.build(false, false) // force crossFade() even if coming from memory cache
.animate(resource, (ViewAdapter)target);
}
})
//.fitCenter() // this is implicitly added when .into() is called if there's no scaleType in xml or the value is fitCenter there
.into(imageView);

oldImage = imageUrl;

But while this makes the previous image stick around and not disappear when the animation occurs and the next image loads, the previous image sticks around and the user is kind of stuck waiting looking at the previous image AFTER the animation is complete which is somewhat awkward.

I was wondering if there is a way to preload the next image and save it in memory and upon animation start just set the next image in Glide.with(...).load(mNextImageRequest)....

Is this possible?

Issue 2:
Glide Version:4.4.0

Device/Android Version: Xiomi mi A1/ 7.1.2

Issue details / Repro steps / Use case background: I am serving local phone images for casting but in some phones captured images have wrong orientation, so need to save file with correct orientation as, displaying same images with glide in ImageView produced correct orientation.

FutureTarget<Bitmap> target = null;
RequestManager requestManager = Glide.with(context);
target = requestManager.asBitmap().load(metadataCompat.getString(MediaMetadataCompat.METADATA_KEY_MEDIA_URI)).submit();
try {
serve = new File(Util.getAppDir(), "temp.jpg");
FileOutputStream fOut = new FileOutputStream(serve);
Bitmap bitmap = target.get();
bitmap.compress(Bitmap.CompressFormat.JPEG, 100, fOut);
fOut.close();
fOut.flush();
} catch (Exception e) {
e.printStackTrace();
serve = new File(metadataCompat.getString(MediaMetadataCompat.METADATA_KEY_MEDIA_URI));
} finally {
if(target != null) {
target.cancel(true);
}
}

I am asking is there any better way to achieve above functionality?
Issue 1:
We should use detect-port, which would basically make it much easier to develop because the app will stop throwing an error if the port is in use and just go with a random one instead.

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

I'm trying to see if I can wrap the Document inside Redux, using withRedux HOC.

But when I do, I get Error: _document.js is not exporting a React element

import React from 'react';
import classnames from 'classnames';
import _Document, { Head, Main, NextScript } from 'next/document'
import withRedux from 'next-redux-wrapper';
import configureStore from '../store/configureStore';

class Document extends _Document {

render() {
console.log('----------- document props', this.props);

return (
<html>
<body className={classnames('loan-advisor')}>
<Main/>
<NextScript/>
</body>
</html>
)
}
}

// export default Document;
const EnhancedDocument = withRedux(
configureStore
)(Document);
console.log(EnhancedDocument)

export default EnhancedDocument; // I tried rendering a <EnhancedDocument /> too but doesn't work either

I get the following server output:

{ [Function: WrappedCmp] getInitialProps: [Function] }
next Error: _document.js is not exporting a React element
next at _callee3$ (/Users/vadorequest/dev/student-loan-simulator-serverless/aws/loan-advisor/node_modules/next/dist/server/render.js:209:19)
next at tryCatch (/Users/vadorequest/dev/student-loan-simulator-serverless/aws/loan-advisor/node_modules/regenerator-runtime/runtime.js:62:40)

Is what I try to do possible? And is it a good idea?

My goal is to do the following:

Load redux automatically for all pages (which fetch some data in getInitialProps

Load react-jss automatically for all pages (depends on redux)

Make react-jss work with SSR (I currently have a blank effect because server doesn't inject styles)

I've achieved this behaviour already, but with boilerplate in every page that I don't like much, hence the fact I'm trying to simplify all this stuff using the _document.js
Issue 1:
I'm submitting a ... (check one with "x")

[X] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior

In Hybrid mode (when using upgradeAdapter.bootstrap()), <ng-content> doesn't work if placed inside an *ngIF

Expected/desired behavior

it should be possible to include the light DOM children conditionally using *ngIF

Reproduction of the problem

Here is the plunk : https://plnkr.co/edit/LaNrcc?p=preview

What is the expected behavior?

it should be possible to include the light DOM children conditionally using *ngIF

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

Due to this bug, it's not possible to include the light DOM children conditionally.

Please tell us about your environment:

Angular version: 2.0.0-rc.1

Browser: [Chrome XX ]

Tested in Chrome Version 51.0.2704.103 m

Language: [all | TypeScript X.X | ES6/7 | ES5 | Dart]

https://code.angularjs.org/tools/typescript.js

Issue 2:
When there is <ng-content> tag in <template>, the component could not been correctly downgraded.

During initialization, the <ng-content> inside a <template> may corresponds to no element in DOM. DowngradeNg2ComponentAdapter.contentInsertionPoint.parentNode is null. After has been rendered into DOM, DowngradeNg2ComponentAdapter.prototype.projectContent won't been triggered again. So Angular 1 contents won't get projected after initialization.

For example:

@Component({
selector: 'cannot-be-downgraded',
template: `
<div *ngIf="show">
<ng-content></ng-content>
</div>`
})
export class CannotBeDowngraded {
@Input() show: boolean = false;
}