WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
I reported this bug on the 3.x series and it was never addressed.

The community had a workaround by calling the callback via setTimeout.

#13519

... but now the workaround is dead in the 4.x.x series.

The devs NEED to take this seriously. This just killed my app and if it's not fixed I might as well shut down the entire project.

I tried to refactor my code to call the callback without setTimeout and that doesn't fix the problem.

Can someone from the Electron team prioritize this or let me know of a way to prioritize this. This is critical for may app...

Issue 2:
2.0.2 and 2.0.3:

Operating System (Platform and Version):

Ubuntu 18.04 and MacOS (latest)

Last known working Electron version:

None

Expected Behavior

Registering or intercepting a stream protocol should work and the browser should show the proper content.

Actual behavior

The browser actually shows an empty document with no content. No errors present.

I've verified that the same code works fine with 'string' protocols. Just not 'stream' protocols.

I created a repository here:

https://github.com/burtonator/electron-protocol-examples

With all my examples.

The key ones are:

intercept-stream-protocol-http.js : FAILS

intercept-string-protocol-http.js: WORKS

I simplified the code greatly and I use the examples in the documentation. I've read the protocol documentation 2-3x to see if I was missing something. Does't seem to be the case.

Additionally there is this case:

intercept-stream-protocol-with-default-protocol.js

... I'd like to have a way to revert to the default protocol handler if possible. A comment on my previous issue stated that this was possible but it still doesn't appear to work. Doesn't work with string protocols either.

To Reproduce

Just clone my repository and run the examples.

https://github.com/burtonator/electron-protocol-examples

git clone https://github.com/burtonator/electron-protocol-examples.git
cd electron-protocol-examples
npm install

## this will work and the content will be shown in the browser.
./node_modules/.bin/electron intercept-string-protocol-http.js

## this will NOT work and no content will be shown to the browser
./node_modules/.bin/electron intercept-stream-protocol-http.js

Screenshots

with sting protocol (working)

with stream protocol (not working)
Issue 1:
The option static_folder for blueprints only works correctly when the blueprint has been registered with a url_prefix, otherwise the application's default static URL takes precedence.

There is nothing wrong in that behavior, but it is not documented. It would be nice to have that fact mentioned at http://flask.pocoo.org/docs/blueprints/#static-files and/or http://flask.pocoo.org/docs/api/#blueprint-objects

Issue 2:
Hi,

I've encountered a strange bug while working with Flask. When I have two modules (say 'frontend' and 'admin') static files aren't found in frontend module. Admin module is url_prefixed with '/admin' and everything is fine with it.

The only workaround I found was to add a /static route in frontend module and serve files manually.

I've created a simple demo app to show the bug. It's available here: https://github.com/tomekwojcik/Flask-Module-Static-Files

Best ragards.
Issue 1:
This is a tracking issue for the deprecated std::io::Read::chars API.

Issue 2:
Hey there

Reading the parsing code to try to fix #9468, I noticed there was some redundancies in the code.

The logic for parsing comments is fully implemented in libsyntax/parse/comments.rs, but doesn't seem to be used out of the pretty printer (https://github.com/mozilla/rust/blob/master/src/libsyntax/parse/comments.rs#L344).

The same logic is also implemented in libsyntax/parse/lexer.rs. The implementations don't seem to share code, and have some different features (comments.rs supports nested block comments while lexer.rs does not).

They probably should be merged.

I'm new to rust, and I'm a little afraid to touch this problem. The two implementations looks like they have different goals, and I fear I might not have the kind of insight required to that kind of refactoring.
Issue 1:
ERROR: /home/wavy/Ten/tensorflow/tensorflow/contrib/factorization/BUILD:116:1: Linking of rule '//tensorflow/contrib/factorization:gen_gen_factorization_ops_py_wrappers_cc' failed (Exit 1)

This is the error output.

Thanks!

Issue 2:
I upgraded to tensorflow 1.4. I found that this version can not load "cudart64_90.dll" when i import tensorflow in python.

It can work when i use tensorflow 1.4 rc-0. But now it goes error: Could not find 'cudart64_80.dll'. TensorFlow requires that this DLL be installed in a directory that is named in your %PATH% environment variable. Download and install CUDA 8.0 from this URL: https://developer.nvidia.com/cuda-toolkit.
Issue 1:
I want to create all HTTP methods requests and fetch the response data with Playwright. Is there any way by which we can achieve this with Playwright or do we need to go for other API libraries for making API request?

Issue 2:
I currently use Cypress for my automation testing framework, however I am toying with the idea of moving over to Playwright. One feature of cypress that really shines in the ability to make HttpRequests using the cy.request() function, I use this many times throughout the current system however the most important request is used to setup my randomly generated user application state before I even visit the web-app itself (it makes the request to our webServer which responds with data that is then used for the user-specific localStorage items), this allows me to skip the login screen of my application entirely, saving a lot of time for each test.

I have read the docs about how Playwright can re-use application state but this is not really a viable solution for me because after each test I specifically use new application state.

TLDR: Is it possible to make an HttpRequest through Playwright and get its response?
Issue 1:
So my box in uni got upgraded and now I have this test failure:

======================================================================
FAIL: sklearn.manifold.tests.test_locally_linear.test_lle_simple_grid
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/local/lamueller/checkout/scikit-learn/sklearn/manifold/tests/test_locally_linear.py", line 68, in test_lle_simple_grid
assert_less(np.linalg.norm(X_reembedded - clf.embedding_), tol)
AssertionError: 0.12820616722921346 not less than 0.1
"""Fail immediately, with the given message."""
>> raise self.failureException('0.12820616722921346 not less than 0.1')

scipy 0.10.1, 32bit.

Issue 2:
Describe the issue linked to the documentation

when I look at the example given here, I got confused why the feature names are not sorted with respect to importance.

Suggest a potential alternative/fix

X, y = make_classification(random_state=0, n_features=5,
n_informative=3)
rf = RandomForestClassifier(random_state=0).fit(X, y)
result = permutation_importance(rf, X, y, n_repeats=10, random_state=0,
n_jobs=-1)

feature_names = np.array([f'x_{i}' for i in range(X.shape[1])])

fig, ax = plt.subplots()
sorted_idx = result.importances_mean.argsort()
ax.boxplot(result.importances[sorted_idx].T,
vert=False, labels=feature_names[sorted_idx])
ax.set_title("Permutation Importance of each feature")
ax.set_ylabel("Features")
fig.tight_layout()
plt.show()

Also, for clarity may be we can set n_redundant=0, hence emphasising that permutation_importance identifies the 3 informative features precisely.

X, y = make_classification(random_state=0, n_features=5,
n_informative=3, n_redundant=0)
rf = RandomForestClassifier(random_state=0).fit(X, y)
result = permutation_importance(rf, X, y, n_repeats=10, random_state=0,
n_jobs=-1)

feature_names = np.array([f'x_{i}' for i in range(X.shape[1])])

fig, ax = plt.subplots()
sorted_idx = result.importances_mean.argsort()
ax.boxplot(result.importances[sorted_idx].T,
vert=False, labels=feature_names[sorted_idx])
ax.set_title("Permutation Importance of each feature")
ax.set_ylabel("Features")
fig.tight_layout()
plt.show()
Issue 1:
What steps will reproduce the problem?

Use custom typescript 1.5 beta compiler.

Type a code snippet: let a: typeof DataView.

Get an error: Error:(1, 15) TS2304: Cannot find name 'DataView'.

What is the expected result?

It should be right.

What happens instead?

Get an error.

Please provide any additional information below.

When I use bounded typescript 1.4 compiler and the new typescript 1.5 alpha compiler, everything is OK. I don't know where I should put this issue, so I put it both in webstorm and typescript issue track platform. Please check and tell me what should I do.

Issue 2:
Looking at history : https://github.com/Microsoft/TypeScript/commits/master/bin/lib.d.ts

Was there on April 11 : https://github.com/Microsoft/TypeScript/blob/6f1feffe6710a3201fb46a0b01e16051bfc18a29/bin/lib.d.ts#L1689

Isn't there on April 18: https://github.com/Microsoft/TypeScript/blob/b8ebf561f94ea27ecfc6af3c2b20661e6fcd79ed/bin/lib.d.ts

Report by Atom-TypeScript user @vaughnroyko

The following code now fails (source from : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView):

var littleEndian = (function() {
var buffer = new ArrayBuffer(2);
new DataView(buffer).setInt16(0, 256, true);
return new Int16Array(buffer)[0] === 256;
})();
console.log(littleEndian); // true or false
Issue 1:
Hello Typescript!

In our typescript file, we have the following function implementation:

protected foo<A,B>(): {a: A; b: B;}[] {
return null;
}

When the compiler runs, it throws the following errors

Return type of public method from exported class has or is using private name 'A'.

Return type of public method from exported class has or is using private name 'B'.

Is this expected or is this a bug? My first instinct is that A/B are not private and thus should not have this error be thrown.

Note that if protected is changed to public, the error doesn't appear.

Issue 2:
The following code fails in TypeScript 1.4 with the below errors:

export class MyClass {
protected myMethod<T>(val: T): T {
return val;
}
}

Parameter 'val' of public method from exported class has or is using private name 'T'.

Return type of public method from exported class has or is using private name 'T'.
Issue 1:
What steps will reproduce the problem?
http://play.golang.org/p/bopaXuF1NJ

What is the expected output?
value
value
in this case, 's' always represent the out scope variable, or
key
in this case, 's' always represent the inner scope variable

What do you see instead?
value
key
this means, in statement 's, ok := m[s]', 's' represent the inner scope variable sometimes and represent the outer scope variable at other times

Which compiler are you using (5g, 6g, 8g, gccgo)?
8g

Which operating system are you using?
windows 7

Which version are you using? (run 'go version')
go version go1.1.1 windows/386

Please provide any additional information below.

Issue 2:
On Win7/amd64:

cd %GOPATH%\src\code.google.com\p\go.talks\2013
present

visit http://127.0.0.1:3999/advconc, click `pingpong1.go` link:
404 page not found

pingpong1.go file url:
http://127.0.0.1:3999/advconc%5cpingpong1.go

we should use `/` instead of `%5c` on Windows(`%5c` is `\`).
Issue 1:
Description

The first and second image of the doc of Variable Bayesian Gaussian Mixture are the same. This is due to a simple typo in the file name.

While fixing this, as per @tguillemot 's advice, it might be beneficial to modify plot_concentration_prior.py too, since the default value of the align parameter of ax.bar() has changed from edge to center in matplotlib 2.0 (changelog), so the bar charts are off when the script is run with matplotlib 2.

I am sending a PR.

Issue 2:
Describe the issue linked to the documentation

Some models have many parameters.

Some of those parameters are very important, some others much less so.

While sklearn provides sound defaults usually, it would be nice

if a potential user sees right away which parameters must

be optimized in order to get a significantly better model.

Suggest a potential alternative/fix

For example, in RandomForestsRegressor (and Classifier), n_trees

is a critical parameter (while I have no idea for the other ones, honestly).

In linearSVR, C is a critical parameter (epsilon is not, in my experience).

Let's define a way to tag such parameters in the documentation, and let expert users

tag the critical parameters for models they have experience working with.
Issue 1:
The common testing framework still needs some work that I think is quite important to ensure consistency and stability.

This issue is my wishlist, if any one wants to give it a shot (and so that I don't forget).

test how classifiers handle only one class being present

check clustering and transformer objects

check how non-numeric-contiguous labels are handled in classifiers

test for consistent output shapes in regressors / classifiers / transformers

test how methods handle non-float input (does uint8 give overflow errors?)

Issue 2:
Easy:

in test_common, check that the ValueError raise has a useful error message. (see sparse test for an example)

put as many of the "specific" tests in test_clustering, test_transformers, ... into test_non_meta_estimators.

Not so easy:

calling fit forgets the previous model if any

check how classifiers handle only one class being present

test how models handle non-float input (does uint8 cause overflows?)

Things done

We should factorize common tests in a new file test_common.py (or maybe test_input.py?). Things to check:

can pickle the object

raise an exception when data contains nans

raise an exception for invalid input (e.g., np.matrix or sp.csr_matrix if dense only implementation)

raise an exception if n_features is not the same in fit and predict or transform

__repr__ and clone work

check that we can pickle and unpickle estimators.

check that all classifiers have a classes_ attribute (needs some fixes)

Edit by @amueller!

Edit by @GaelVaroquaux on Aug 13th 2014 to reflect progress in the codebase.
Issue 1:
The form validators are nicely integrated with the translator. The only thing you have to do is set your language and the messages are automatically translated.

With the authentication system, this is not the case. A possible, simple, solution would be to add authMsg.xx.xliff files to Symfony/Bundle/FrameworkBundle/Resources/translations/ that contain translations for AuthenticationExceptions. Then you could translate the error like this:

{% if error %}

{{ error.message|trans({}, 'authMsg') }}

{% endif %}

This is how you should display the error according to the handbook http://symfony.com/doc/current/book/security.html

Here is an example authMsg.nl.xliff http://.../authMsg.nl.xliff

Issue 2:
There are two enhancements which could be made to the AuthenticationException:

add a getMessageKey(), getMessageData() which could be used by the translation component as the exception message itself cannot be safely displayed to the user

change the signature of the constructor to match that of \Exception and pass $extraInformation via a setter

@lsmith77, do you still plan to work on this?
Issue 1:
[Enter steps to reproduce below:]

Changed to a different branch in git repo

Atom Version: 0.165.0

System: Mac OS X 10.10.1

Thrown From: Atom Core

Stack Trace

Uncaught Error: ENOENT, open '/Users/jocampbell/Documents/github/sre_dev/repos/snapshotter/spec/lib/hip_chat_helper_spec.rb'

At /Applications/Atom.app/Contents/Resources/app/node_modules/pathwatcher/node_modules/q/q.js:126

Error: ENOENT, open '/Users/jocampbell/Documents/github/sre_dev/repos/snapshotter/spec/lib/hip_chat_helper_spec.rb'
at Error (native)

Commands

Config

{
"core": {
"themes": [
"atom-light-ui",
"solarized-light-syntax"
],
"audioBeep": false
},
"editor": {
"showIndentGuide": true,
"fontSize": 18
}
}

Installed Packages

# User
atom-lint, v0.20.0
autocomplete-plus, v0.21.0
preview-tabs, v0.1.6

# Dev
No dev packages

Issue 2:
switch the node_modules package from a version to a git repository

npm install

Atom Version: 0.165.0

System: Mac OS X 10.10.1

Thrown From: Atom Core

Stack Trace

Uncaught Error: ENOENT, open '/Users/joscha/Development/mailbutler/node_modules/grunt-crx/tasks/crx.js'

At /Applications/Atom.app/Contents/Resources/app/node_modules/pathwatcher/node_modules/q/q.js:126

Error: ENOENT, open '/Users/joscha/Development/mailbutler/node_modules/grunt-crx/tasks/crx.js'
at Error (native)

Commands

-0:28.1 find-and-replace:show (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
-0:26.0 core:confirm (input.hidden-input)
7x -0:19.3 core:move-left (input.hidden-input)
-0:14.9 core:backspace (input.hidden-input)
-0:14.2 core:move-left (input.hidden-input)
2x -0:13.7 core:move-right (input.hidden-input)
-0:13.1 core:move-left (input.hidden-input)
-0:12.8 core:backspace (input.hidden-input)
7x -0:12.5 core:move-right (input.hidden-input)
-0:11.3 core:backspace (input.hidden-input)
2x -0:10.9 core:move-right (input.hidden-input)
-0:09.7 core:backspace (input.hidden-input)
5x -0:09.3 core:move-left (input.hidden-input)
-0:02.6 core:copy (input.hidden-input)
-0:00.7 core:paste (input.hidden-input)
-0:00.0 core:save (input.hidden-input)

Config

{
"core": {
"ignoredNames": [
".git",
".svn",
".DS_Store"
]
},
"editor": {
"showInvisibles": true,
"autoIndentOnPaste": false
}
}

Installed Packages

# User
atom-jasmine, v0.4.0
editorconfig, v0.2.2
jsformat, v0.7.18
language-scala, v1.1.0
linter, v0.9.0
linter-coffeelint, v0.1.7
linter-jshint, v0.1.0
linter-php, v0.0.11
travis-ci-status, v0.11.1
visual-bell, v0.9.0

# Dev
No dev packages
Issue 1:
If the templates are authored in en then you will no translate the app for the en locale.

However when the app is not translated, the i18n specific markup (i18n attributes, ... ) is not removed.

The markup should always be removed even when the application is not translated.

Issue 2:
I'm submitting a feature request

Currently when I build an Angular application with internationalization, I add i18n attributes to many of my tags. After compilation, it would be nice for these tags to be removed and not included in the rendered site.
Issue 1:
Trying to compile the following code results in rustc stack overflowing

#[no_std];
#[lang="start"] fn main() {}

Tested using Rust 0.9. Other people on IRC reported they receive the same issue with master.

Issue 2:
These aren't currently well-defined by the language. If you define anything with a somewhat matching LLVM signature, it will compile. Not only does it not care about the type signatures matching what it expects, there is no handling for these being defined on the wrong types of AST nodes.
Issue 1:
Challenge Name

http://beta.freecodecamp.com/en/challenges/basic-css/change-the-color-of-text

Issue Description

When using inline style to change the h2 element to the color red, my output says "try again" and that I need to change the h2 color to red. I have tried both inline style and using style tags.

UPDATE: this also occurred a few challenges later, when directed to change h2 elements to 'blue' using CSS. Could possibly be an issue with the rest of the 'Basic CSS' section.

Browser Information

Browser Name, Version: Firefox version 51.0

Operating System: Windows 10

Mobile, Desktop, or Tablet: Desktop

Your Code

<style>
h2 {
color: red;
}
</style>
<h2>CatPhotoApp</h2>
<main>
<p>Click here to view more <a href="#">cat photos</a>.</p>

<a href="#"><img src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back."></a>

<div>
<p>Things cats love:</p>
<ul>
<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>
</div>

<form action="/submit-cat-photo">
<label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
<label><input type="radio" name="indoor-outdoor"> Outdoor</label><br>
<label><input type="checkbox" name="personality" checked> Loving</label>
<label><input type="checkbox" name="personality"> Lazy</label>
<label><input type="checkbox" name="personality"> Energetic</label><br>
<input type="text" placeholder="cat photo URL" required>
<button type="submit">Submit</button>
</form>
</main>

Screenshot

Issue 2:
Issue Description

This is for the feature/curriculum-expansion branch only when run locally, and NOT the staging branch.

For several challenges (challengeType: 0, using the code editor with the mobile-phone output layout), the jQuery method .css() doesn't seem to be accessing the styles applied in a style tag in the given code. This is affecting any assert tests that use a pattern of assert($('selector').css('propertyToCheck') == 'valueToCompare', 'message: ...');.Here's an example:

<style>
h2 {
position: relative;
top: 15px;
}
</style>
<body>
<h1>On Being Well-Positioned</h1>
<h2 class="testCode">Move me!</h2>
<p>I still think the h2 is where it normally sits.</p>
</body>
<script>
console.log($('h2').attr('class')); // Works great, returns testCode
console.log($('h2').css('position')); // returns undefined
console.log($('h2').css('top')); // returns undefined
</script>

Related assert tests that aren't passing:

assert($('h2').css('position') == 'relative', 'message: Add a CSS rule to specify that the <code>h2</code> has a <code>position</code> set to <code>relative</code>.');

assert($('h2').css('top') == '15px', 'message: Use a CSS offset to relatively position the <code>h2</code> 15px away from the <code>top</code> of where it normally sits.');

Browser Information

Browser Name, Version: Firefox 48.0.1

Operating System: Mac OS X, El Capitan v10.11.3

Mobile, Desktop, or Tablet:
Issue 1:
it could be so cool to open a folder on a network by providing an address like user@ip:address

is there such functionality already or are ou planning to add ?

Issue 2:
It could be great to put background color on each extension card to be consistent with the gallery banner.

You can have an example here (https://marketplace.visualstudio.com/vscode/Other) where my extension pomodoro-code does not look as expected (white image on white background).