WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Dan Abramov mentioned that Devtools v4 will be making react-hot-loader obsolete: https://twitter.com/dan_abramov/status/1144715740983046144?s=20

Me:

I have this hook:

require("react-reconciler")(hostConfig).injectIntoDevTools(opts);

But HMR has always worked completely without it. Is this now a new requirement?

Dan:

Yes, that's what the new mechanism uses. The new mechanism doesn't need "react-hot-loader" so by the time you update, you'd want to remove that package. (It's pretty invasive)

I can't see any mention of HMR in the Devtools documentation, however; now that react-hot-loader has become obsolete (and with it, the require("react-hot-loader/root").hot method), how should we set up apps for HMR in:

React DOM apps

React Native apps

React custom renderer apps

I'd be particularly interested in a migration guide specifically for anyone who's already set up HMR via react-hot-loader.

Also, for HMR, does it matter whether we're using the standalone Devtools or the browser-extension Devtools?

Issue 2:
Describe what you were doing when the bug occurred:

Was profiling component performance.

Please do not remove the text below this line

DevTools version: 4.2.0-a8b8ffb89

Call stack: at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:156567

at Map.forEach ()

at commitIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:156513)

at e.getRankedChartData (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:157036)

at gl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:314363)

at fi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:59263)

at lc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:103717)

at kc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:89467)

at wc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:89392)

at pc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:86341)

Component stack: in gl

in div

in div

in div

in _o

in Unknown

in n

in Unknown

in div

in div

in zi

in Ge

in un

in ba

in Rc
Issue 1:
At now Electron application store cache files near to config files in folders ~/.config/APP/Cache and ~/.config/APP/GPUCache, so config folder contains many useless files with large size (more than 200 mb).

Linux systems use separate ~/.cache folder for store cache files, so Google Chrome store configs in ~/.config/google-chrome but all cache files in ~/.cache/google-chrome.

We can find right location of cache folder via $XDG_CACHE_HOME environment variable.

Please move all Electron cache files from ~/.config/APP to ~/$XDG_CACHE_HOME/APP folder, like other apps do.

Issue 2:
Electron version: 1.6

Operating system: 10.11

Expected behavior

Actual behavior
Issue 1:
Q
A

Bug report?
yes

Feature request?
no

BC Break report?
yes

RFC?
no

Symfony version
3.2.0

Hello,

The CurrencyType isn't working the same way like in symfony 3.1.

In 3.1 CurrencyType choises weren't lazy loaded but now it is. There is a problem:

Symfony\Component\Form\Extension\Core\DataTransformer\ChoiceToValueTransformer:

public function reverseTransform($value)
{
if (null !== $value && !is_string($value)) {
throw new TransformationFailedException('Expected a string or null.');
}

$choices = $this->choiceList->getChoicesForValues(array((string) $value));

if (1 !== count($choices)) {
if (null === $value || '' === $value) {
return;
}

throw new TransformationFailedException(sprintf('The choice "%s" does not exist or is not unique', $value));
}

return current($choices);
}

$choices = $this->choiceList->getChoicesForValues(array((string) $value));

In 3.1 the value of $choices equals to [] is $value isn't present in the list of choices. For example if we use CurrencyType and we'll pass 'blablabla' as $value, it will return [].

In 3.1 $this->choiceList is Symfony\Component\Form\ChoiceList\ArrayChoiceList:

public function getChoicesForValues(array $values)
{
$choices = array();

foreach ($values as $i => $givenValue) {
if (array_key_exists($givenValue, $this->choices)) {
$choices[$i] = $this->choices[$givenValue];
}
}

return $choices;
}

if (array_key_exists($givenValue, $this->choices)) { checks whether the 'blablabla' is present in the list of currencies.

So the behaviour in 3.1 is fine. But.. Let's take a look on 3.2.0:

$this->choiceList in Symfony\Component\Form\Extension\Core\DataTransformer\ChoiceToValueTransformer is Symfony\Component\Form\ChoiceList\LazyChoiceList that calls the following function in Symfony\Component\Form\Extension\Core\Type\CurrencyType in this case:

public function loadChoicesForValues(array $values, $value = null)
{
// Optimize
if (empty($values)) {
return array();
}

// If no callable is set, values are the same as choices
if (null === $value) {
return $values;
}

return $this->loadChoiceList($value)->getChoicesForValues($values);
}

But if (null === $value) { happens because Symfony\Component\Form\Extension\Core\DataTransformer\ChoiceToValueTransformer did his best to prevent this (there is no a second parameter):

remember $choices = $this->choiceList->getChoicesForValues(array((string) $value));.

That's all. Is it a normal behaviour? How to deal with it with minimal loses?

Thank you.

Issue 2:
Q
A

Bug report?
yes

Feature request?
no

BC Break report?
no

RFC?
no

Symfony version
2.8.11

Hello.

Is it ok, when incorrect data submitted to ChoiceType and isValid returns true?

$form = $this->factory->create('Symfony\Component\Form\Extension\Core\Type\ChoiceType', null, array(
'expanded' => true
'choices' => [
'a' => 'a',
'b' => 'b'
],
));

$form->submit('c');
$form->isValid(); // returns true
$form->isSynchronized(); // returns false
$form->getData(); // returns null

It actually strange that this submission is valid.

It happens because ChoiceType throws TransformationFailedException on PRE_SUBMIT event.

I think in this case isValid should return false.

What do you think?
Issue 1:
given the following json code on editor (the pipeline | represents cursors position)

collections : {"profile": 'data.json', "users":[ |
]}

if I press ctrl + delete I would expect the code to look like this:

collections : {"profile": 'data.json', "users":[ | ]}

NOT like this

collections : {"profile": 'data.json', "users":[ |

Conclusion

the shortcut should only delete the white space not any other characters IMO, I may be wrong though and this may be down to preference, but I know most editors have this behaviour.

Issue 2:
Atom 0.141.0, Mac OS 10.9.5. When using alt-delete to delete to end of word, I feel like the natural thing should be to erase all the whitespace in one stop, without removing any visible characters. As you can see above, if I wanted to eliminate a bunch of whitespace by hitting alt-delete, it eats up some of the code in the process.
Issue 1:
Hello.

I can't open an xml file, this size 1,9 Mo.

"Editor is not responding"

Issue 2:
So, I use my text editor for all kinds of things (writing code, reading readmes, editing dotfiles, etc). One of the things I do most often during any given day is open up large log files to troubleshoot Enterprise problems. These files can sometimes get as large as 500-800MB.

I just tried viewing a 350MB log file and Atom locked up immediately -- the file selector didn't change and the entire window went completely white 4 seconds after I tried viewing the file. I could still close the top level window, but we should still have better handling for this kind of thing.

Sublime Text 2 took about 55 seconds to open the file, but gave a nice progress indicator while it was loading:

Once it loaded it was as responsive as any other file I load (scrolled fast, normal text highlight performance, etc). It would be nice if we set this as a baseline for expected behavior (progress bar + responsive after loading).
Issue 1:
Challenge Name

Inventory Update

Issue Description

I think i've found a solution for the challenge and when i test it, it always returns the correct answer, but there is any problem which doesn't let me continue. I've checked all the test guidelines and it works for all of them.

Browser Information

Browser Name, Vivaldi 1.2:

Operating System: Windows 7

Mobile, Desktop, or Tablet: Laptop SONY Vaio VGN-Z5

Your Code

// If relevant, paste all of your challenge code in here
var myInventory = {};

function updateInventory(arr1, arr2) {
// All inventory must be accounted for or you're fired!
arr1.reduce(function(anterior, actual){
//inventory += actual[1] + '////';
if(myInventory.hasOwnProperty(actual[1])){
myInventory[actual[1]] += actual[0];
} else {
myInventory[actual[1]] = actual[0];
}

}, []);

arr2.reduce(function(anterior, actual){
//inventory += actual[1] + '////';
if(myInventory.hasOwnProperty(actual[1])){
myInventory[actual[1]] += actual[0];
} else {
myInventory[actual[1]] = actual[0];
}

}, []);

var newInventory = [];

for(var propiedad in myInventory){
newInventory.push([myInventory[propiedad], propiedad]);
}

newInventory.sort(function (a, b) {
if (a[1] > b[1]) {
return 1;
}
if (a[1] < b[1]) {
return -1;
}
return 0;
});

arr1 = newInventory;

return arr1;
}

updateInventory([[21, "Bowling Ball"], [2, "Dirty Sock"], [1, "Hair Pin"], [5, "Microphone"]], [[2, "Hair Pin"], [3, "Half-Eaten Apple"], [67, "Bowling Ball"], [7, "Toothpaste"]]);

/*
// Example inventory lists
var curInv = [
[21, "Bowling Ball"],
[2, "Dirty Sock"],
[1, "Hair Pin"],
[5, "Microphone"]
];

var newInv = [
[2, "Hair Pin"],
[3, "Half-Eaten Apple"],
[67, "Bowling Ball"],
[7, "Toothpaste"]
];

//updateInventory(curInv, newInv);
*/

Screenshot

Issue 2:
Challenge Use a CSS Class to Style an Element has an issue.

User Agent is: Mozilla/5.0 (Linux; Android 5.0; P001 Build/LRX21M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.91 Safari/537.36.

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

My code:

<style>
.red-text {
color: red;
}
</style>

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

<p>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>
Issue 1:
Is there a way to include static assets alongside a module that can be installed using deno install?

Issue 2:
Problem

I often find myself needing to load non-JavaScript non-TypeScript assets, and various problems arise:

Local module (in git repo) has to use fs but remote module has to use fetch.

The assets cannot be cached.

The assets cannot be bundled.

Suggestion

Add some way to annotate assets using comments, and fetch should support those assets. For example:

// @deno-asset './assets/foo.wasm'
// @deno-asset './assets/bar.png'
await fetch(new URL('./assets/foo.wasm', import.meta.url))
await fetch(new URL('./assets/bar.png', import.meta.url))
// --allow-net is not required since it reads from cache

Alternatives

There is asset reference proposal that is likely not going to get to stage 3 anytime soon.

import assertion proposal had reached stage 3.
Issue 1:
Challenge Name

ES6: An Immutable Object a const does not make

Issue Description

Tried random code if that works. It does give me tons of errors but did let me pass the challenge.

Browser Information

Browser Name, Version: Chrome Version 52.0.2743.116 (64-bit)

Operating System: OS X 10.10

Mobile, Desktop, or Tablet: MacBook

Your Code

const s = [ 5, 7, 2 ];
s[0,1,2] = [2, 5, 7]

Screenshot

Issue 2:
Challenge arrow-functions passes tests with any or no input.

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36.

It seems that the tests will pass without changing any code (as pictured). All tests passed with a blank code editor and when gibberish was entered into the code editor as well. I've tried a hard refresh and incognito and the problem persists.
Issue 1:
Hi,

When I run Pkg.update(), it starts the update but when it reaches Compat, it does not move forward anymore. Then I interrupt and it "rolls bacl ColorType" (see below; In Compat's link, it mentions only v 0.07.12. While the attempted update is trying to fetch 0.07.13. ). This happened under v 4.3. I upgraded the julia core to 4.5 and still face the same issue. Any idea how to fix this or bypass this Compat issue?

Thank

julia> Pkg.update()

INFO: Updating METADATA...

INFO: Computing changes...

INFO: Upgrading ColorTypes: v0.2.1 => v0.2.2

INFO: Upgrading ColorVectorSpace: v0.1.1 => v0.1.2

INFO: Upgrading Compat: v0.7.12 => v0.7.13

^CINFO: Rolling back ColorVectorSpace from v0.1.2 to v0.1.1

INFO: Rolling back ColorTypes from v0.2.2 to v0.2.1

Issue 2:
I was surprised that this threw an error. I'm not 100% sure this is a bug, I can see how this might be intended behavior, but it would sure be nice if it would work.

julia> f(x)=any(true for y=1:x-1 for z=1:1);f(1)
ERROR: ArgumentError: argument to Flatten must contain at least one iterator
Stacktrace:
[1] start(::Base.Iterators.Flatten{Base.Generator{UnitRange{Int64},##37#39}}) at ./iterators.jl:696
[2] any(::Base.#identity, ::Base.Iterators.Flatten{Base.Generator{UnitRange{Int64},##37#39}}) at ./reduce.jl:573
[3] f(::Int64) at ./REPL[16]:1
Issue 1:
Currently cuDNN-based RNNs in TF are limited to GradientDescentOptimizer (#6620). This is a serious limitation given the widespread use of other optimizers. The claim that this cannot be supported in TF because cuDNN RNN don't have known shapes at static time seems overly pessimistic. Just like RNNParamsSaver provides a mechanism to convert between canonical shaped variables and the parameter buffer, a simple wrapper can be provided that does this automatically for cuDNN RNNs, so that the size of the parameter buffer is statically calculated and then used to define the variable, especially since the shape of the parameter buffer is just a 1D vector anyway.

Issue 2:
I am testing how to use CudnnLSTM, there is not a lot of documentation on this. In my own experiment, I found when use AdamOptimizer with CudnnLSTM, it always raises the following Exception.

I also found another repository using CudnnLSTM, and uploaded it here: https://github.com/boche/LM-PTB-CUDNNLSTM. It also raises the same exception.

File "ptb_word_lm.py", line 465, in main

m = PTBModel(is_training=True, config=config, debug=FLAGS.debug)

File "ptb_word_lm.py", line 254, in init

self._train_op = optimizer.apply_gradients(zip(allgrads, allvars))

File "/data/ASR1/ramons/anaconda2/envs/tensorflow/lib/python2.7/site-packages/tensorflow/python/training/optimizer.py", line 409, in apply_gradients

self._create_slots(var_list)

File "/data/ASR1/ramons/anaconda2/envs/tensorflow/lib/python2.7/site-packages/tensorflow/python/training/adam.py", line 119, in _create_slots

self._zeros_slot(v, "m", self._name)

File "/data/ASR1/ramons/anaconda2/envs/tensorflow/lib/python2.7/site-packages/tensorflow/python/training/optimizer.py", line 609, in _zeros_slot

named_slots[var] = slot_creator.create_zeros_slot(var, op_name)

File "/data/ASR1/ramons/anaconda2/envs/tensorflow/lib/python2.7/site-packages/tensorflow/python/training/slot_creator.py", line 121, in create_zeros_slot

val = array_ops.zeros(primary.get_shape().as_list(), dtype=dtype)

File "/data/ASR1/ramons/anaconda2/envs/tensorflow/lib/python2.7/site-packages/tensorflow/python/framework/tensor_shape.py", line 782, in as_list

raise ValueError("as_list() is not defined on an unknown TensorShape.")

ValueError: as_list() is not defined on an unknown TensorShape.

For now, using GradientDescentOptimizer is okay, but it seems all other fancy optimizers all have similar problems. I have looked up this problem on stackoverflow, and found a related thread: http://stackoverflow.com/questions/40698821/tensorflow-adamoptimizer-throws-error-when-variable-has-validate-shape-false .

It seems the problem is that parameter buffer used in CudnnLSTM doesn't have fixed shape (validate_shape=False, defined in line 145 of https://github.com/boche/LM-PTB-CUDNNLSTM/blob/master/ptb_word_lm.py ) , which is required by AdamOptimizer.

Cudnn seems to be faster (less time per epoch), but if we can't use better learning algorithms with it (meaning more epochs), then the total running time may not be improved so much.
Issue 1:
Electron Version: 2.0.0

Operating System (Platform and Version): Windows 10

Last known working Electron version:

Expected Behavior

I have a <webview> that points to a page with an <input> field. When I tab from that input field, I expect focus to wrap around back to the input field.

Actual behavior

Focus goes off screen and is lost forever (I can't Tab or Shift+Tab back to the input field like I can in a browser). I added a handler on the document to see what we're focused on and verified that we're not focused on anything:

document.addEventListener("keydown", function(e) {
console.log(document.activeElement);
});

After tabbing away from the input field (twice - the first tab gets me the input field itself), that line doesn't log an element.

To Reproduce

Create a test page:

<body>
<input type="text" width="200" />
</body>

In the electron-quick-start app, replace the contents of the body tag in index.html with:

<webview src="http://localhost:1234/testpage.html"/>

Focus on the <input> and tab a couple times. Focus never wraps around to the <input> like it would in Chrome.

Issue 2:
Electron Version: 2.0.0

Operating System (Platform and Version): Windows 10

Last known working Electron version: N/A

Expected Behavior

If the last focusable HTML element is focused and I press 'tab', then the next thing that is focused should either be the first focusable HTML element, or if not, then whatever is focused should have a visible focus.

Actual behavior

Something is being focused (I think it is the entire HTML document?) and there is no visual indication as to what it is. It is fine that this other thing is being focused, what is not fine is that I/a user does not know where the keyboard focus has gone.

To Reproduce

Checkout the electron-quick-start- Put an <input type="text"/> before the renderer.js script

Launch quick start

Set focus in the input

Press 'tab'
Issue 1:
On Mac OS X, many applications allow users to close tabs and windows with the same hotkey, Command + w. Could Atom respect this convention as well?

Issue 2:
When I have multiple buffers open in tabs and a tree view, my past editors (TextMate, Sublime) have conditioned me to expect that a repeated ⌘+w close each buffer's tab, then close the frame and its tree list after the last buffer has been closed. Atom does not behave this way, and I'm curious if this is by design.

It is worth noting that Brackets does also hold the frame open after repeated ⌘+w presses. Is this similarly by design in Atom? Must I switch fingers to ⌘+⇧+w to close the frame?
Issue 1:
Electron version: 1.4.3

Operating system: Windows 10 1607

On Electron 1.4.3, tweetdeck.twitter.com has a very weird typing lag. This has been present since 1.0.x, but I wasn't able to find any help regarding this issue. The latest version of Google Chrome and Chromium works fine on tweetdeck.twitter.com, but the lag only seems to be affecting Electron 1.4.3.

I built a sample app using Electron Quick Start, and it is lagging there as well:

Issue 2:
Electron version: 1.3.2

Operating system: Windows 10 Version 1607, x64

Hi guys, I built an app that uses the tag. It was using Electron 0.36 for a while now, but after upgrading to 1.3.2, the app starts to lag when the user tries to type something in the webview. It doesn't happen for everyone tho, only for some users.

Any ideas?
Issue 1:
I've been noticing lately that matplotlib's SVG output appears with incorrect clipping in a lot of SVG viewers (rsvg-view, Ristretto, gpicview), even though it does appear correctly in good SVG viewers like inkscape, firefox, chrome. The data curves peek outside of the axes. Luckily there is an fix in matplotlib that should be easy enough to implement:

Currently, the SVG structure looks more or less like this, with the clipPath defined at the end:

<svg ..>
<g id="figure_1">
<g id="axes_1">
.... curves drawn in here, referencing clip-path p7ff5b81e1d
</g>
</g>
<defs>
<clipPath id="p7ff5b81e1d">
<rect height="345.6" width="446.4" x="72.0" y="43.2"/>
</clipPath>
</defs>
</svg>

I found that if I simply moved the section containing that clipPath earlier in the file, then the SVG views just fine in any viewer that I can find. I guess that these basic SVG viewers don't like forward references.

For examples, this works:

<svg ..>
<g id="figure_1">
<defs>
<clipPath id="p7ff5b81e1d">
<rect height="345.6" width="446.4" x="72.0" y="43.2"/>
</clipPath>
</defs>
<g id="axes_1">
.... curves drawn in here, referencing clip-path p7ff5b81e1d
</g>
</g>
</svg>

I would attach an example SVG but github doesn't seem to support that...

Issue 2:
See my stackoverflow post: http://stackoverflow.com/questions/29616764/matplotlib-savefig-produces-incorrect-svg-image-for-bar-chart-with-log-scaled-y

A potential solution to the issue is described here: ipython/ipython#8133 (comment)
Issue 1:
I do not know how to fix a buggy Accelerate backend..

Input:

import numpy as np

or

import pandas as pd

Output:

init_dgelsd failed init
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
File "/Users/hannahwood/PycharmProjects/pythonProject/venv/lib/python3.9/site-packages/pandas/__init__.py", line 11, in <module>
__import__(dependency)
File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
File "/Users/hannahwood/PycharmProjects/pythonProject/venv/lib/python3.9/site-packages/numpy/__init__.py", line 286, in <module>
raise RuntimeError(msg)
RuntimeError: Polyfit sanity test emitted a warning, most likely due to using a buggy Accelerate backend. If you compiled yourself, see site.cfg.example for information. Otherwise report this to the vendor that provided NumPy.
RankWarning: Polyfit may be poorly conditioned

Issue 2:
Hello. Could you please release CPython 3.9 manylinux wheels on PyPI?

Python 3.9.0 final was released this week: https://www.python.org/downloads/release/python-390/

Thank You.