WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Please consider adding an automation language for Visual Studio Code, so that common operations, such as installing many extensions, performing search & replaces, opening folders / files, Git operations, etc. can be streamlined.

Not a priority, but certainly something that would be helpful and make VSCode much more powerful.

Cheers,

Trevor Sullivan

Microsoft MVP: Cloud & Data Center Management

https://trevorsullivan.net

https://twitter.com/pcgeek86

Issue 2:
Need VIM Mode,Thanks
Issue 1:
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 an issue that matches the one I want to file, without success.

Issue Details

As screenshot, electron sends out a http request to get dictionary even if spellcheck is disabled.

Electron Version:

9.0.5

Operating System:

Last Known Working Electron version:

latest

Expected Behavior

There is no any request out if spellcheck is disabled

Actual Behavior

To Reproduce

Screenshots

Additional Information

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 an issue that matches the one I want to file, without success.

Issue Details

Electron Version:

11.2.0

Operating System:

macOS10.14.6

Last Known Working Electron version:

N/A

Expected Behavior

I should be able to serve content from multiple protocols. i.e. using the standard file:// as well as my custom protocol foo://.

Actual Behavior

If I use win.loadFile('index.html') and stay within file://, there is no crash.

If I use win.loadURL('foo://abc/deep.htm') and stay within foo://, there is no crash.

If index.html has an href-link to foo://.... then Electron crashes.

To Reproduce

A very simple commit provided on the electron-quick-start: nkavian/electron-quick-start@7b49ad9

$ git clone git@github.com:nkavian/electron-quick-start.git
$ cd electron-quick-start
$ npm install
$ npm start
Issue 1:
I'm submitting a ... (check one with "x")

[X] bug report => search github for a similar issue or PR before submitting
[ ] 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

When running ngc while some modules have default exports:

some-module.ts

export default { foo, bar };

another-module.ts

import someModule from "./some-module";

The compiler fails to find someModule inside some-module.ts with the following error:

can't resolve module .some-module from D:/path/to/another-module.ts

Error: can't find symbol undefined exported from module D:/path/to/some-module.ts

If changed to explicitly-named exports:

some-module.ts

export var someModule = { foo, bar };

another-module.ts

import { someModule } from "./some-module";

It now works fine. Obviously, the code does not handle the case of an unnamed default export.

Expected behavior

The default export should also work.

Reproduction of the problem

See above example.

Please tell us about your environment:

Windows 10.

Angular version: 2.0.0

Browser: all

Language: all

Node (for AoT issues): node --version = v4.3.1

Issue 2:
I'm submitting a ...

[x] bug report => search github for a similar issue or PR before submitting

Current behavior

To allow a module to be loaded lazily, I define its route like so:

{
path: 'report',
loadChildren: '/app/report/report.module'
}

And I declare it as the default class in report.module.ts so the router will know what to load:

export default class ReportModule {}

Using export default class ReportModule {} instead of export class ReportModule {} when declaring modules breaks ngc. During compilation I get error:

can't resolve module C:/path/to/report.module.ts from C:/path/to/report.module.ts
Error: can't find symbol ReportModule exported from module C:/path/to/report.module.ts
at ReflectorHost.findDeclaration (C:\path\to\@angular\compiler-cli\src\reflector_host.js:174:23)
at _loop_1 (C:\path\to\@angular\compiler-cli\src\codegen.js:52:51)
...
Compilation failed

I left the orientation of the slashes (forward / and back \) as they appear in the console

Expected/desired behavior

An earlier version of the docs on ngModule suggested using export default to expose lazy-loaded modules. This works well with Just-in-Time compilation. So I expected the AoT compiler to be able to parse them as well

Reproduction of the problem

Try compiling an application with a module declared with export default

Please tell us about your environment:

Angular version: 2.0.0-rc.6

Browser: [all]

Language: [TypeScript 2]
Issue 1:
Uncaught Error: spawn pep8 ENOENT

Atom Version: 0.155.0

System: Mac OS X 10.10.1

Thrown From: Atom Core

Steps To Reproduce

...

...

Stack Trace

At events.js:85

Error: spawn pep8 ENOENT
at exports._errnoException (util.js:742:11)
at Process.ChildProcess._handle.onexit (child_process.js:1051:32)
at child_process.js:1142:20
at process._tickCallback (node.js:378:11)

Issue 2:
Uncaught Error: spawn pep8 ENOENT

Atom Version: 0.153.0

System: linux 3.13.0-39-generic

Thrown From: Atom Core
Issue 1:
Description of the problem

This form is for three.js bug reports and feature requests only.

This is NOT a help site. Do not ask help questions here.

If you need help, please use the forum or stackoverflow.

Describe the bug or feature request in detail.

Are there any plans to port the three.js library to WebGL 2.0?

Always include a code snippet, screenshots, and any relevant models or textures to help us understand your issue.

Please also include a live example if possible. You can start from these templates:

jsfiddle (latest release branch)

jsfiddle (dev branch)

codepen (latest release branch)

codepen (dev branch)

Three.js version

Dev

r97

...

Browser

All of them

Chrome

Firefox

Internet Explorer

OS

All of them

Windows

macOS

Linux

Android

iOS

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

Are there any plans to port the three.js library to WebGL 2.0?

Issue 2:
This week Chrome announced their intent to ship WebGL 2.0 so I guess it's about time to start adding support!

There are already some PRs that add support to WebGLRenderer for some of the new features but, somehow, it didn't feel it was good idea to make WebGLRenderer support both webgl and webgl2.

Say hello to WebGL2Renderer! 2ff9d41 👋

A new renderer not only will save us from tons of conditionals but also will give us the chance of cleaning things up; starting with only supporting BufferGeometry ✌️

Sorry for all the people which PRs didn't got merged because of my indecision! 😔
Issue 1:
The use case:

I'm running FastAPI behind a nginx reverse proxy, at the path http://localhost/api/. The documentation front ends (swagger and redoc) are expecting openapi.json at http://localhost/openapi.json but it's actually routed at http://localhost/api/openapi.json.

Setting openapi_url to /api/openapi.json also changes the openapi.json path, so now it's looking for (through the proxy) http://localhost/api/api/openapi.json.

Ideally, it'd be great if we could specify the "public path" for the api. That's how e.g. vue does it

Issue 2:
I have a model that include an ID field, which I return in responses. However, in requests (when POSTing new instances), I don't want the user to be able to specify the ID.

Similarly to how we can include/exclude fields in the response, we should be able to exclude fields in the request. Declaring more classes just to exclude specific fields is a bit cumbersome, and making the property optional is semantically wrong, since I don't want to let the user specify it at all.
Issue 1:
It is very common to read random rows in a large csv file, typically for testing with a small dataset, or fit the limit of memory. The parameter nrows is used for read the first n lines, but I didn't find any feature to read random lines. Such parameter might be named keeprows (opposite to skiprows), which supports:

int, e.g. keeprows=100 means keep 100 random lines (uniformly)

float in (0, 1), e.g. keeprows=0.05 means keep 5% of total lines

list of int(or iterable), e.g. keeprows=[1, 3, 8] mean to keep line 1, 3, and 8

Issue 2:
propose an option, sample or keeprows (#14285)

maybe taking a callable, for really just something like sample=10

to return you every 10th row

if it takes a callbale couuld use something like: lambda x: x % 10

easy way to get a sample of the csv file

useful to avoid specifying skiprows with a big list

and to solve an issue like this:

http://stackoverflow.com/questions/15555005/get-inferred-dataframe-types-iteratively-using-chunksize
Issue 1:
ISSUE TYPE

Bug Report

COMPONENT NAME

include and include_tasks

ANSIBLE VERSION

ansible 2.4.3.0
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/site-packages/ansible
executable location = /bin/ansible
python version = 2.7.5 (default, Aug 4 2017, 00:39:18) [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)]

CONFIGURATION

No change

SUMMARY

If I run a playbook importing many tasks with "include_tasks" (ansible-loop_include_tasks.tar.gz), it hangs with the error:

OSError: [Errno 12] Cannot allocate memory

However, if I run the same playbook with "include" (ansible-loop_include.tar.gz) instead of "include_tasks", it finishes successfully.

STEPS TO REPRODUCE

Attached the following playbooks to replicate this:

Using "include_tasks":

ansible-loop_include_tasks.tar.gz

Using "include":

ansible-loop_include.tar.gz

EXPECTED RESULTS

Both of playbooks finishes correctly.

ACTUAL RESULTS

When I ran the playbook with "include_tasks" (ansible-loop_include_tasks.tar.gz), I am getting the following error:

TASK [loop : Hello Message] ******************************************************************************************************************************************************************
task path: /home/vagrant/ansible-projects/ansible-loop/loop/tasks/hello-world-32.yml:2
ERROR! Unexpected Exception, this is probably a bug: [Errno 12] Cannot allocate memory
the full traceback was:

Traceback (most recent call last):
File "/bin/ansible-playbook", line 106, in <module>
exit_code = cli.run()
File "/usr/lib/python2.7/site-packages/ansible/cli/playbook.py", line 122, in run
results = pbex.run()
File "/usr/lib/python2.7/site-packages/ansible/executor/playbook_executor.py", line 154, in run
result = self._tqm.run(play=play)
File "/usr/lib/python2.7/site-packages/ansible/executor/task_queue_manager.py", line 290, in run
play_return = strategy.run(iterator, play_context)
File "/usr/lib/python2.7/site-packages/ansible/plugins/strategy/linear.py", line 277, in run
self._queue_task(host, task, task_vars, play_context)
File "/usr/lib/python2.7/site-packages/ansible/plugins/strategy/__init__.py", line 254, in _queue_task
worker_prc.start()
File "/usr/lib64/python2.7/multiprocessing/process.py", line 130, in start
self._popen = Popen(self)
File "/usr/lib64/python2.7/multiprocessing/forking.py", line 121, in __init__
self.pid = os.fork()
OSError: [Errno 12] Cannot allocate memory

Issue 2:
Relative to the setup dir, ansible should treat the following paths just like they were in vars_files:

./groups/groupname.yml

./vars/hostname.yml

This will allow people to not have to explicitly duplicate this kind of magic in each playbook, and will give the INI format users a very good way to have complex per-group or per-host data (lists and hashes) if they need it.

This is step 1 of 2 in allowing us to deprecate the YAML inventory format -- step 2 is to write a migration script.
Issue 1:
Seems to be caused at the model merge stage:

https://github.com/keras-team/keras/blob/45c838cc7a0a5830c0a54a2f58f48fc61950eb68/keras/utils/training_utils.py#L172_L177

Reproduction of the issue here along with possible change that would suffix the model names running on the GPUs uniquely by index:

https://gist.github.com/BAXTER001/5b2bb9e65b587f893298f09102436ca1

master...BAXTER001:patch-1

Issue 2:
Hi,

I am using Keras to segment images to road and background pixels. As you can imagine percentage of road pixels are much lower than that of background pixels. Hence, I want to use class_weight= {0:0.05, 1:0.95} while fitting the model so that cnn won't predict every pixel as background. But, when I do this I got the following error:

File "/usr/local/lib/python2.7/dist-packages/keras/models.py", line 597, in fit

sample_weight=sample_weight)

File "/usr/local/lib/python2.7/dist-packages/keras/engine/training.py", line 1035, in fit

batch_size=batch_size)

File "/usr/local/lib/python2.7/dist-packages/keras/engine/training.py", line 973, in _standardize_user_data

in zip(y, sample_weights, class_weights, self.sample_weight_modes)]

File "/usr/local/lib/python2.7/dist-packages/keras/engine/training.py", line 387, in standardize_weights

raise Exception('class_weight not supported for '

Exception: class_weight not supported for 3+ dimensional targets.

My training labels are in this form: (number_of_training_samples=10000, number_of_pixels_in_patch=16384, number_of_classes=2). How can I weight the classes in Keras?

Thanks in advance.
Issue 1:
I've encountered a very severe bug (Atom 0.198.0) where if you attempt to close a window with tabs with unsaved changes, and you hit cancel in the warning dialog that appears, it closes the window anyway (presumably without saving).

Issue 2:
It looks like the same issue as #1989.

I'm runing 0.142.0 on Windows 7.

I've tracked it down to three 'beforeunload' handlers being called, one of them honoring the Cancel request but only to have its result flag trampled by the third handler. Could not go further for now.

It behaves as if "Don't Save" was chosen. 😱

(Dismissing the dialog using the close icon does the same, as you would expect.)
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

I wanted to move styled-jsx code to a dedicated variable and then inject it into the render() method like this:

const divstyle = (
<style jsx>{`
div {
color: red;
}
`}
</style>
);

return (
<div>
<div>foo</div>
{divstyle}
</div>
);

This will inject the style into the DOM but not scoped. In console I see this error:

Warning: Received `true` for a non-boolean attribute `jsx`.
If you want to write it to the DOM, pass a string instead: jsx="true" or jsx={value.toString()}.

If I move the <style jsx> part from the variable back into the render method, everything works perfectly.

What's wrong? Isn't it possible to to use styled-jsx outside of render() ?

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

I'm struggling to make the isomorphic routing work with an express server.

The routing works just fine on the server, but when I try to do client side routing via the Link tag I get the flashing 404 and then the page.

I've read all about the 404 flashing issue in other tickets (like this #2833), nothing have worked for me.

I'm wondering if isomorphic routing is possible with express router or I need to use NextJs default router for that?

Your Environment

Tech
Version

next
4.1.4

node
8.6.0

OS
HighSierra

browser
Chrome 62

Express
4.15.3

Thanks!!!
Issue 1:
Problem description

If there is already an issue concerning this topic, feel free to close.

When inserting text into the text input component, the IE11 and Edge show a (very large) reset X. Other browsers don't show the x. The size of the x is also not appropriate to the rest of the text(input). It just looks weird.

IE 11

Edge

Link to minimally-working code that reproduces the issue

http://www.material-ui.com/#/components/text-field

Versions

Material-UI: 0.17.0

React: 15.4.2

Browser: Internet Explorer 11

OS: Windows 10

Issue 2:
Problem description

Single-line TextField components render a large 'X', floated to the right, on IE 11 when the field is focused and the code was built with 'process.env.NODE_ENV': JSON.stringify('production').

In my project:

In the documentation site:

### Steps to reproduce

In an IE 11 browser, go to http://www.material-ui.com/#/components/text-field and select the 3rd example (the one with text "Default Value").

Versions

Material-UI: 0.15.4

React: 15.3.1

Browser: IE 11, Windows 8.1, in VMWare Fusion on OS X

Note

The 'X' is not present in builds with a JSON.stringify('development') value. It's also not present when setting the multiLine prop. It seems to only present in very specific situations.

I'm not sure if IE 11 is officially supported by material-ui. In the case it's not, I would still find it valuable to have a discussion of how those of us who wish to support it can monkey-patch our own builds.
Issue 1:
Proposal

Allow projects to specify list of recommended/required extensions.

Proposed solution

For example, vscode may have in the .vscode/settings.json

{
"extensions.extendedConfigurations": {
"chrome.debugger": {
"required": True
}
}
}

When user will open this project - he will see a message if extension has not been installed

Current project recommend you to install chrome.debugger extension (tasks, debugger or syntax may depend on this extension). Do you want to install it?

Issue 2:
Similar to what atom provides in the project explorer:

New files are displayed green.

Modified are displayed yellow/orange.

Ignored files are displayed transparent-ish.

Thanks
Issue 1:
Hi, I'm using camera plugin to capture video. I changed multiple lines, but the problem exists in the sample as well. I'm using an Oneplus 2 (real device) and the quality of the saved video is way to bad.

I get 1MB for 10 seconds of video recording. The resolution is fine (1080x1440) but i think the bitrate is not high enough.

Is there a way to change it?

In the CameraPlugin there is this line:

mediaRecorder.setVideoEncodingBitRate(1024 * 1000);

Or am i the only person facing this problem?

Question 2: The recorded video has an aspect ratio of 0.75 ( according to the resolution 1080x1440 ).

Is there a way to make a portrait video (full height 16 / 9)).

Greetings Markus

[√] Flutter (Channel dev, v0.7.0, on Microsoft Windows [Version 10.0.17134.228], locale de-DE)
• Flutter version 0.7.0 at C:\src\flutter
• Framework revision 09fe34708f (2 days ago), 2018-08-22 10:20:51 -0700
• Engine revision 4b271b2e02
• Dart version 2.1.0-dev.1.0.flutter-69fce633b7

[√] Android toolchain - develop for Android devices (Android SDK 28.0.2)
• Android SDK at C:\Users\marku\AppData\Local\Android\sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.2
• Java binary at: C:\src\android-studio3.3C6\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
• All Android licenses accepted.

[√] Android Studio (version 3.2)
• Android Studio at C:\Program Files (x86)\android-studio
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)

[√] Android Studio (version 3.3)
• Android Studio at C:\src\android-studio3.3C6
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

[√] Connected devices (1 available)
• ONE A2003 • 500fbec4 • android-arm64 • Android 8.1.0 (API 27)

• No issues found!

Issue 2:
I have a TextFormField with attribute textAlign: TextAlign.right, but when i run the app, the cursor indicator is on the left only if contains 1 character, for more character the cursor go to right
Issue 1:
I think there is a bug in the method predict of the class _PLS. More specifically, if I choose to scale the dataset during training (scale=True), then the method "predict" does not seem to reverse the scaling operation:

return Ypred + self.y_mean_

(line 435 of the source code available at https://github.com/scikit-learn/scikit-learn/blob/c957249/sklearn/cross_decomposition/pls_.py#L437)

I believe that the we should first reverse the scaling operation in each column of Ypred (by using the corresponding component of self.y_std_) :

return Ypred * self.y_std_ + self.y_mean_

Am I missing anything here?

Issue 2:
I am trying to fit some spectral data using PLS, and am having difficulties with the module.

Essentially, when I use the default value of scale=False, I get a prediction, BUT all my predictions are scaled, and I just cannot figure out how to convert back to my original data space. The same is true for the example code. As you see, the scaled prediction is just off. I assumed that I should be able to revert back to the "unscaled" data using pls_scaled.y_mean_ and pls_scaled.y_std_, but that doesn't seem to work for me. Any suggestions would be highly appreciated.

Y = np.array([[0.1, -0.2], [0.9, 1.1], [6.2, 5.9], [11.9, 12.3]])
X = np.array([[0., 0., 1.], [1.,0.,0.], [2.,2.,2.], [2.,5.,4.]])
pls_not_scaled=PLSRegression(n_components=2, scale=False)
pls_scaled=PLSRegression(n_components=2, scale=True)
pls_not_scaled.fit(X,Y)
Out[]: PLSRegression(copy=True, max_iter=500, n_components=2, scale=False, tol=1e-06)
pls_scaled.fit(X,Y)
Out[]: PLSRegression(copy=True, max_iter=500, n_components=2, scale=True, tol=1e-06)
Out[]: PLSRegression(copy=True, max_iter=500, n_components=2, scale=False, tol=1e-06)
Y_not_scaled_pred = pls_not_scaled.predict(X)
Y_scaled_pred = pls_scaled.predict(X)

print(Y)
[[ 0.1 -0.2]
[ 0.9 1.1]
[ 6.2 5.9]
[ 11.9 12.3]]

print(Y_not_scaled_pred)
[[ 0.11029323 -0.09323388]
[ 0.86825958 0.77077371]
[ 6.24049125 6.31999396]
[ 11.88095594 12.1024662 ]]

print(Y_scaled_pred)
[[ 1.52568016 1.47577156]
[ 2.43367318 2.3584298 ]
[ 6.25638942 6.26638408]
[ 8.88425724 8.99941456]]

For those with a more visual bend:

plt.grid('on')
plt.scatter(Y[:, 0], Y_not_scaled_pred[:, 0], color='blue')
plt.scatter(Y[:, 0], Y_scaled_pred[:, 0], color='red')
plt.xlabel('Predicted')
plt.ylabel('Measured')
plt.legend(['not_scaled','scaled'],'lower right')
Issue 1:
Description of the new feature/enhancement

settings/preference gui please

Proposed technical implementation details (optional)

i want gui settings

Issue 2:
Environment

Windows build number: Microsoft Windows [Versión 10.0.18362.295]
Windows Terminal version: 0.4.2382.0

Steps to reproduce

Set the initialRows value to something like 30 rows (a value that makes the openned window has less rows than the maximized window should have).

Maximize the window.

Run some command with a lot of output (like ps, lsor dir).

Expected behavior

The buffersize setted with initialRows gets updated after window size changes.

Behavior on PowerShell.

Actual behavior

After maximizing the window and running ps the buffer size setted with the initialRows value doesn't get updated after the window size changes.

The problem gets solved if I open a new tab and run the command again.