WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
@TWiStErRob

Me again. I also have a UI demand like #1124?

Can you give me some suggestion? Thanks.

Maybe like below, but attention to glide internal drawable animation: .crossFade()

Glide.with(mCOn)
.load(model.url)
.placeholder(R.drawable.inventory_placeholder)
.diskCacheStrategy(DiskCacheStrategy.RESULT)
.crossFade()
.tint(Color.RED) // <------------------ I am here!
.into(holder.res_pic);

Issue 2:
i am using Glide 3.6.1

i am showing the images with GridLayoutManager and using Glide to load images.

meanwhile i load the images i am showing the placeholder drawable.

i am providing the user option of selection and for that purpose if item is selected i am adding the color filter to the particular imageview. but that works perfectly fine if the image is loaded into the memory.

but when placeholder is displayed and user clicks on particular image then color filter is not getting applied to imageview. so user has to wait until glide finishes the image loading.

in the screenshot consider the requirement as i want to show Guitar Tuner selected when user taps on it.

Glide.with(mCOn)
.load(model.url)
.placeholder(R.drawable.inventory_placeholder)
.diskCacheStrategy(DiskCacheStrategy.RESULT)
.crossFade()
.into(holder.res_pic);
if (model.status) {
// selected tint
holder.res_pic.setColorFilter(ContextCompat.getColor(mCOn, R.color.orange_tint), PorterDuff.Mode.MULTIPLY);
} else {
holder.res_pic.clearColorFilter();
}
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?

I'd like to define a shortcut to each of my 4 FancyZones to directly move a window to the right position on screen (instead of hitting WIN+RIGHT 4 times to move a window to the lower right corner)

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

Issue 2:
I want to hit a user definable shortcut and the focused window should resize to the zone which is mapped to this shortcut .

I would map some keys e.g. on the numpad to my e.g. 4 zones. Now I can just press one of these keys and my windows is resized to the chosen zone.

Cycling with WIN + arrow is nice, but just hitting a key is a lot faster!
Issue 1:
What problem does this feature solve?

Allows you to create a scoped block of HTML without having to create a component (similar to petite-vue).

This has already been mentioned here. However after searching for the issue/PR for hours I still cannot find it.

Please could you either keep this issue, re-open the original issue or add a comment which atleast links to the issue/pr.

What does the proposed API look like?

<div v-scope="{ count: 0 }">
{{ count }}
<button @click="count++">inc</button>
</div>

Issue 2:
<!-- somewhere in a component named 'tl-login' -->
<div v-text="str(me)">

Vue = require 'vue'

Vue.component 'login',
template: '#tl-login'
data: {}
methods:
str: (x) ->
JSON.stringify x

But as it began to run, this.str is undefined:

(function() {
this.str;this.$parent.me;return this.str(this.$parent.me)
})

Code(before compilation) can be found at https://github.com/jiyinyiyong/meal-ordering

The code running online: http://repo.tiye.me/meal-ordering/

This usage is not in the docs but talked at: vuejs/Discussion#29
Issue 1:
Challenge http://www.freecodecamp.com/challenges/waypoint-bring-your-javascript-slot-machine-to-life has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

Okay typing $($( into the code editor crashes it. The tab hangs; I can't click any of the buttons in the left sidebar like reset, and I can't type any more into the code editor.

There were three other people in the chat with the same problem, so it's not just me. I'm using the latest Opera on Mac OSX; one of them said she was using Chrome and the other said he was using Firefox. So it's everyone and every browser!

The fix that worked for all of us was to clear the browser cache and reload the page, and then copy and paste the

And we are all afraid to try typing it in any of the other lessons and are just copy/pasting it from here on out. So in my screenshot it's there because I copied and pasted it over three times, but actually when I typed the very first $($( at the top it froze.

Issue 2:
Challenge http://www.freecodecamp.com/challenges/waypoint-learn-how-script-tags-and-document-ready-work has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

I can get all tests to pass but last - it will not accept my closing tags no matter what!

FIX - i can only get it to work with odd spacings
Issue 1:
Challenge http://freecodecamp.com/challenges/waypoint-iterate-with-javascript-while-loops has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

This isn't a bug but a problem with the wording in the instructions. The exercise is for a while loop, but at the bottom of the instructions it says "Let's try getting a FOR loop to work..."

Nothing major but I figure you would like to correct it for clarity.

Thanks!

Enrique

Issue 2:
Challenge http://freecodecamp.com/challenges/waypoint-iterate-with-javascript-while-loops has an issue.

Text reads, "Let's try getting a for loop to work by pushing values to an array." It should instead read, "Let's try getting a while loop to work by pushing values to an array."
Issue 1:
I'm submitting a feature request

Current behavior

The HostListener decorator is a very useful feature. We use it a lot. Very often the events we subscribe to come from the document.

Very often, when the HostListener fires for document level events, we need to perform additional checks before performing any change to the application. Most times the handler is invoked, nothing happens to the app. Since HostListener marks the component tree as dirty, it leads to heavy re-evaluation of many components, and hurts performance (the tree is on Push but some paths are very long with HostListener near the leafs).

Expected behavior

I would appreciate a way to use the HostListener without triggering a change detection for the sub tree.

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

An example use-case is in directives checking for clicks outside a component. They are very common and have few implementations such as https://github.com/chliebel/angular2-click-outside/blob/master/clickOutside.directive.ts and https://christianliebel.com/2016/05/angular-2-a-simple-click-outside-directive/.

Using these directives leads to heavy evaluation of many components.

Angular version: 4.0.2

Issue 2:
I'm submitting a ... (check one with "x")

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

Currently if one binds lots of event listeners on document or window, i.e. components/directives used via ngFor, application can crawl to a slow

Expected behavior

Binding event listeners should be simple without having to architect around performance concerns

Minimal reproduction of the problem with instructions

Warning: If running the preview, run when not afraid of browser crashing (even on the desktop)

http://plnkr.co/edit/oMMi6tFR3YZMKtMqvSys?p=info

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

I believe a good opportunity lies here to have Angular optimize handling the event delegation through binding single event listeners on document and window for global events and iterating through event listeners in order to allow for simpler application design around management of global events.

Please tell us about your environment:

macOS Sierra 10.12.3

Angular version: 4.0.1

Browser: all

Language: all

Node (for AoT issues): node --version = N/A
Issue 1:
Feature request

Is your feature request related to a problem? Please describe.

My use case is that we have a 1MB json file that is needed to render the page. No problem on the server, but we don't want to send this data to client from getInitialProps as it'll make the pagesize huge.

So, we want to SSR initially, then load the JSON file via ajax on the client and only then trigger the initial client-side hydration/render once the file has loaded.

Describe the solution you'd like

A way to supply a promise to next/client that can awaited before the client-side hydration takes place.

Describe alternatives you've considered

If we cannot wait to delay the render, the initial SSR completes, then we have to replace it with a loading spinner on the client side while the file finishes loading. That's obviously not ideal, as it means that:

The content renders server-side.

Then it disappears on the client initial render, replaced by a spinner.

And then returns as before, on a client later render after the file has loaded.

You can imagine how that gives a pretty confusing experience for the user.

I've got it working by either:

Directly adding another await call inside the next/client/index render method in node_modules

Using a hacky innerHTML workaround (see comment below),

Both these ways have problems, and so I'd prefer a real solution.

Additional context

I'm happy to do a PR if you can suggest me on the right approach to take.

Issue 2:
I just wanted to see if there was a reason why the nextjs scripts like page/ and app.js load in as High priority assets. It seems to me that as high priority, they block DOMContentLoaded, and we could get quicker page rendering if we made them low priority assets.

It also seems like there was some intention to have them as low priority assets in #1436: the scripts all have async="" on them in production, which should make them low priority, but the presence of these preload links makes them high priority. For instance this is next-news.now.sh:

More on priorities in chrome: https://medium.com/reloading/preload-prefetch-and-priorities-in-chrome-776165961bbf

I did an experiment with throttling on my project, with throttling to simulate a 3G connection (Regular 3G preset in Chrome).

var rendered = await nextApp.renderToHTML(req, res, '/', '');
rendered = rendered.replace(/<link rel="preload" href="\/_next\/[a-zA-Z0-9\-]+\/.+?" as="script"\/>/g, '');
res.send(rendered);

Standard next.js (high priority): DOMContentLoaded in 10.26 seconds

Removing rel=preload links (this makes them medium priority): DOMContentLoaded in 7.87 seconds

This seems to make a big difference for mobile users.

[x ] I have searched the issues of this repository and believe that this is not a duplicate.
Issue 1:
We currently use scientific notation (E-notation) to print large integer tensors. We shouldn't do this because it hides meaningful digits and because E-notation corresponds to floating point data types in Python.

>>> x = torch.ones(525076, dtype=torch.int)
>>> x.sum()
tensor(5.2508e+05)
>>> x.sum().item()
525076

Issue 2:
🚀 Feature

It'd be great for developer productivity if file lists were shared among build systems.

Motivation

We're maintaining 3 different build systems right now (CMake, two FB-internal flavors of Buck) and Bazel support is on the way - #35316 . Parts of buck build are exposed as https://github.com/pytorch/pytorch/blob/master/tools/build_variables.bzl . Today they duplicate lists of files manually (including upcoming #35220). It's bad for developer productivity as it's easy to forget to add new file.

Pitch

We could put the lists of files in a very simple format - just a text file with file names would do, or a very simple python program. All major build systems support importing external file lists. For buck/bazel it can be done by writing .bzl function and importing results.

For CMake simple proof of concept is https://gist.github.com/dzhulgakov/8f6cc0a7fd710b8f29689ba5e5858f7d

Alternatives

Alternative is to use globs aggressively. It's not a full solution as we currently mix different targets in the same directory (e.g. python and no-python sources). And globs can be tricky with triggering incremental rebuilds correctly.

cc @kostmo @malfet
Issue 1:
I am calling a service like this:

import requests
resp = requests.get('http://example.com/some/url', params={'id': 1})

The service responds with a series of 302 redirects.

I am seeing this exchange.

client> GET /some/url?id=1 HTTP/1.1
client> Host: example.com

server< HTTP/1.1 302 Moved Temporarily
server< Location: http://example.com/some/url?id=1&extra_data=2

## this is the bad request right here. Note the [('id', 1)] stuck on the end
client> GET /some/url?id=1&extra_data=2&[('id', 1)] HTTP/1.1.
client> Host: example.com

# the server of course doesn't like it
server< HTTP/1.0 400 Bad request.

Any ideas why this may be happening?

Issue 2:
Hello,

I have just attempted to install requests into a virtualenv environment and am getting the error:

NameError: name 'CERT_NONE' is not defined

The full stacktrace is below. I tried to install requests with the command pip install -U requests in my virtual environment. An admittedly quick Google search didn't turn up anything, but I am assuming its user error. Am I doing it wrong somehow?

This is on Red Hat Enterprise Linux 5 with Python 2.7.3. I have tried virtualenv with and without site packages, same error either way. If there is any more information I can provide, feel free to let me know.

Thanks,

Brian

Full Stack trace from error:

249 File "requests/packages/init.py", line 3, in

250

251 from . import urllib3

252

253 File "requests/packages/urllib3/init.py", line 16, in

254

255 from .connectionpool import (

256

257 File "requests/packages/urllib3/connectionpool.py", line 45, in

258

259 from .util import get_host, is_connection_dropped, ssl_wrap_socket

260

261 File "requests/packages/urllib3/util.py", line 293, in

262

263 def ssl_wrap_socket(sock, keyfile=None, certfile=None, cert_reqs=CERT_NONE,

264

265 NameError: name 'CERT_NONE' is not defined

266

267 ----------------------------------------

268

269 Command python setup.py egg_info failed with error code 1 in /home/bneal/pyv/build/requests

270

271 Exception information:

272 Traceback (most recent call last):

273 File "/home/bneal/pyv/lib/python2.7/site-packages/pip-1.2.1-py2.7.egg/pip/basecommand.py", line 107, in main

274 status = self.run(options, args)

275 File "/home/bneal/pyv/lib/python2.7/site-packages/pip-1.2.1-py2.7.egg/pip/commands/install.py", line 256, in run

276 requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)

277 File "/home/bneal/pyv/lib/python2.7/site-packages/pip-1.2.1-py2.7.egg/pip/req.py", line 1042, in prepare_files

278 req_to_install.run_egg_info()

279 File "/home/bneal/pyv/lib/python2.7/site-packages/pip-1.2.1-py2.7.egg/pip/req.py", line 236, in run_egg_info

280 command_desc='python setup.py egg_info')

281 File "/home/bneal/pyv/lib/python2.7/site-packages/pip-1.2.1-py2.7.egg/pip/util.py", line 612, in call_subprocess

282 % (command_desc, proc.returncode, cwd))

283 InstallationError: Command python setup.py egg_info failed with error code 1 in /home/bneal/pyv/build/requests
Issue 1:
It seems that there is an issue with the displayed text in the editor loading a duplicate line that also forces the cursors initial location to be above where it actually is applying the keystrokes. This only happens the first time I select something then both the duplicate code and the cursor function normally.

Screenshot

On load the 3rd row is duplicated, it disappears when it refreshes the preview

cursor positioned after line 9 @ "red");

hitting enter creates a space below cursor

Issue 2:
Challenge http://www.freecodecamp.com/challenges/bonfire-steamroller has an issue. Please describe how to reproduce it, and include links to screen shots if possible.

My code is returning the correct value in the console as well as in an external editor, but when I look at the test cases they compare the expected result to a different value than my code output in the console. I have ran it with several of the test cases and it seems to either duplicate the values in the final array or attach the values from the previously ran test to the current array. Please fix.

My code:

var newArr = [];

function steamroller(arr) {
for (var i = 0; i < arr.length; i++){
console.log(Array.isArray(arr[i]));
if (Array.isArray(arr[i])){
steamroller(arr[i]);
}else{
newArr.push(arr[i]);
}
}
console.log(newArr);
return newArr;
}

steamroller([[['a']], [['b']]]);

console output: ['a','b']

frecodecamp test result: expected [ 'a', 'b', 'a', 'b' ] to deeply equal [ 'a', 'b' ]
Issue 1:
What problem does this feature solve?

Both I and a colleague have spent hours debugging issues caused by having two refs with the same name. Two cases where this can happen:

Simple stupidity:

<comp1 ref='comp'/>
<comp2 ref='comp/>

Not realizing that refs don't seem to work in a v-for:

<tabs v-for='title of titles'>
<fubar v-if='title==="FUBAR"' ref='fubar'/>
</tabs>

In this case, it is reasonable to assume the ref would work correctly because there will only be one "fubar" component instantiated assuming 'titles' has no duplicates. But the ref does not work right, either because ref ignores "v-if" or because ref doesn't work right in v-for.

What does the proposed API look like?

Simply issue a Vue warning when multiple refs with the same name are encountered.

Issue 2:
Version

2.4.2

Reproduction link

https://github.com/vuejs-templates/pwa

Steps to reproduce

Clone official vue-pwa template

Add one more entry point in line #L12 which includes vue

entry: {
app: './src/main.js',
vendor: ['vue']
}

Run npm run dev and check console. You can see that although productionTip option is disabled in main.js, the warning still appears in the console.

What is expected?

config.productionTip to working properly

What is actually happening?

When vue is imported in multiple entry points, it's impossible to disable productionTip.
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

This is my Switch component

`<Switch
checked={isSubscriptionStatusActive}
onChange={onHandleChangeSubscriptionStatus}
disabled={subscriptionStatus === 'deactive'}
aria-label="subscribption-status"
classes={{
root: classes.root,
bar: classes.bar,
}}
>`

root: {
display: 'inline-flex',
width: 0,
position: 'relative',
flexShrink: 0,
},
bar: {
borderRadius: 7,
display: 'block',
position: 'absolute',
width: 34,
height: 14,
top: '50%',
marginTop: -7,
left: '50%',
marginLeft: 0,
},
};```

## Steps to Reproduce (for bugs)
https://codesandbox.io/s/x2wom4pm9z
https://codesandbox.io/embed/x2wom4pm9z

## Context
I want to have a Switch component without extra height, width, padding, margin

## Environment
| Tech | Version |
|--------------|---------|
| Material-UI | beta 24 |
| React | 16.2 |

Issue 2:
Problem description

Ripple effect freeze in Button(when focus)

Versions

0.18.7

http://www.material-ui.com/#/components/flat-button
Issue 1:
Original ticket http://projects.scipy.org/scipy/ticket/988 on 2009-08-17 by trac user chtito, assigned to unknown.

Using a german locale and the gtk backend induces and error in mmwrite. This bug was already reported in gh-1329 and the responsability of gtk was alluded to in http://projects.scipy.org/numpy/ticket/902#comment:1.

This bug has however never been fixed. It might be a bug of gtk only, but I submit it anyway here because it has devastating consequences when using the scipy.io package.

Here is a test case:

#!python
import os
os.environ['LANG'] = 'de_DE.UTF-8'

import gtk._gtk

def test_locale():
from numpy import array
a = array([[1.,2.],[0.,4.5]])
from scipy.sparse import coo_matrix
asparse = coo_matrix(a)
# figure out a temporary file name:
from tempfile import NamedTemporaryFile as tempfile
f = tempfile()
name = f.name
f.close()
# mmwrite on that tmp file
from scipy.io import mmread, mmwrite
mmwrite(f.name, asparse)
# read
read = mmread(f.name)
# compare
print a
print read.todense()
from numpy.testing import assert_array_almost_equal
assert_array_almost_equal(read.todense(), a)

test_locale()

Issue 2:
Original ticket http://projects.scipy.org/scipy/ticket/828 on 2008-12-28 by @nilswagner01, assigned to unknown.

>>> scipy.__version__
'0.7.0.dev5294'
>>> numpy.__version__
'1.3.0.dev6221'

======================================================================
ERROR: test_complex_write_read (test_mmio.TestMMIOCoordinate)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/tests/test_mmio.py", line 290, in test_complex_write_read
b = mmread(fn).todense()
File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/mmio.py", line 52, in mmread
return MMFile().read(source)
File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/mmio.py", line 273, in read
return self._parse_body(stream)
File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/mmio.py", line 407, in _parse_body
flat_data = flat_data.reshape(-1,4)
ValueError: total size of new array must be unchanged

======================================================================
ERROR: read a hermitian matrix
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/tests/test_mmio.py", line 213, in test_read_hermitian
b = mmread(fn).todense()
File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/mmio.py", line 52, in mmread
return MMFile().read(source)
File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/mmio.py", line 273, in read
return self._parse_body(stream)
File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/mmio.py", line 407, in _parse_body
flat_data = flat_data.reshape(-1,4)
ValueError: total size of new array must be unchanged
Issue 1:
version

System ==> windows x86_64.

opencv:==>download from OpenCV website.

First use cmake to download, and then use GCC to compile in CMD.

Error reporting:

gcc: error: long: No such file or directory

D:\MinGW_x86_64\bin\windres.exe: preprocessing failed.

mingw32-make[2]: *** [modules\world\CMakeFiles\opencv_world.dir\build.make:6680: modules/world/CMakeFiles/opencv_world.dir/vs_version.rc.obj] Error 1.

mingw32-make[1]: *** [CMakeFiles\Makefile2:3415: modules/world/CMakeFiles/opencv_world.dir/all] Error 2.

mingw32-make: *** [Makefile:181: all] Error 2.

After setting the environment variables and configuration files, we are stuck in this step.

:(

Issue 2:
System information (version)

OpenCV => 4.2.0

Operating System / Platform => :macOS

Compiler => cmake inside Clion

Detailed description

Steps to reproduce

I use a macOS and Xcode along with Clion, I firstly installed using home brew, however that was not a success, something went wrong with a library inside the clang(that time I used Xcode ).

so ,this time I tried by downloading the source code and compiled with make, nevertheless it still didn't work.

after the installation, the entire set of dylib are missing, I managed to copy the old ones from the version of home brew and tried to wrong, I have tried evertthing I could ,and all I get is still an error