WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Our nodes run in an autoscaling group, but we don't currently autoscale them.

We should set up some rules to enable autoscaling. Ideally we would also publish custom metrics to enable k8s-specific autoscaling, or we would drive autoscaling from within k8s.

Issue 2:
We have an autoscaling group for the minions; we should consider enabling auto-scaling based e.g. on CPU or a custom metric we publish.
Issue 1:
Problem description

After onTouchTap was handled, button doesn't leave hover state, until you hove it once again.

Steps to reproduce

go over button, hover style takes place

click button, new tab is opened

go back to old tab

expected: button is in normal state

actual: button is in hover satte

Versions

Material-UI: 15.0 (commit: 06667b5)

React: 15.1.0

Browser: Chrome (Linux) 51.0.2704.79 (64-bit)

Images & references

Gist with modified code of example (commit see above): https://gist.github.com/hoschi/21e5fc25646615cf2ac153487f181b8e

Issue 2:
Problem description

On my mobile devices I touch a FloatingActionButton. In some cases the buttons state is set to hovered. This happens when handleTouchStart does not get called but only handleTouchEnd. The button is then hovered because a touch flag is only set in handleTouchStart but not in handleTouchEnd.

I guess there is no harm in also setting the touch flag to true in handleTouchEnd.

Steps to reproduce

I couldn't really find the reason why this only happens in one case. I tested it with FloatingActionButtons in other situations and this error didn't occur

Versions

Material-UI: 0.15.4

React: 15.1.0

Browser: Different version of Firefox, Chrome and Safari on mobile devices
Issue 1:
Requests fail while trying to format exception related to non-existent CA file.

Code to reproduce:

import requests
requests.get('https://google.com', verify='/some/some')

results in:

File "/Users/traut/.p/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 559, in urlopen
body=body, headers=headers)
File "/Users/traut/.p/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 348, in _make_request
self._raise_timeout(err=e, url=url, timeout_value=conn.timeout)
File "/Users/traut/.p/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 318, in _raise_timeout
if 'timed out' in str(err) or 'did not complete (read)' in str(err): # Python 2.6
TypeError: __str__ returned non-string (type Error)

Versions:

Python 2.7.10

Requests 2.8.1

Issue 2:
If an SSLError comes from pyOpenSSL, we attempt to determine if it's an error due to request timeouts on python 2.6 being raised as BaseSSLErrors here. If the handshake ends unexpectedly under pyOpenSSL, then we get an SSLError that has a captured SysCallError which when you call str(SSLError(msg, SysCallError(code, msg))) you get

TypeError: __str__ returned non-string (type SysCallError)

So we might want to update how we handle SSLErrors to accomodate pyOpenSSL. To be clear, I observed this on: python 2.7.9 with openssl 1.0.1l (from brew) and I was using requests to debug an issue with https://apissl.cloudfactory.com, e.g., requests.get('https://apissl.cloudfactory.com')
Issue 1:
Electron version: 1.3.3

Operating system: os x 10.11.4

Consider this scene:

let child = {name: 'hello'};
let foo = {id: 1, child: child};
let bar = {id: 2, child: child};
let message = [foo, bar];

i.e. both object boo and bar contains the same object child, when sends the object message from ipcMain to ipcRenderer (or from ipcRenderer to ipcMain), will get this result:

[
{id:1, child:{name:'hello'}},
{id:2, child:null}
]

The property value of 'child' in the second item is NULL instead of {name: 'hello'}.

But it's ok when send this message by event.returnValue = ... in the ipcMain.on event.

Issue 2:
I came across a very interesting scenario. There was some missing information in a collection that I sent between two processes.

Assume the scenario, Renderer and Process.

If I have an array that contains multiple entries of the same object reference, only the first object will be provided to the receiving side of the message -- the other entries will be null.

Renderer

import {ipcRenderer} from 'electron';
var theObject = {foo: 'bar'};
var theList = [theObject, theObject, theObject];
ipcRenderer.send('test', theList);

Main Process

import {ipcMain} from 'electron';

ipcMain.on('test', (evt, data) => {
console.log(data);
// this will output [{foo: 'bar'}, null, null];
});

It is only when the object references are distinct from each other does the information remain intact. For example, If we do

Renderer

import {ipcRenderer} from 'electron';
var theObject = {foo: 'bar'};
// create new object references for the other two entries, such that all entries are unique by reference
var theList = [theObject, {...theObject}, {...theObject}];
ipcRenderer.send('test', theList);

Main Process

import {ipcMain} from 'electron';

ipcMain.on('test', (evt, data) => {
console.log(data);
// this will output [{foo: 'bar'}, {foo: 'bar'}, {foo: 'bar'}];
});

Then the proper information will be received.

I'm not sure if this is a problem with Chromium, and how virtual address space between threads is propagated when sending information between two processes, but clearly a collection of the same object references struggles to be passed around unless they are all distinct references.
Issue 1:
why is there no log_cdf and log_sf in atleast pytorch normal distributions yet ? while even tensorflow and scipy has it

cc @vincentqb @fritzo @neerajprad @alicanb @vishwakftw

Issue 2:
🐛 Bug

To Reproduce

Steps to reproduce the behavior:

In [1]: import torch

In [2]: x = torch.randn(1, 2, 3).to("cuda:0")

In [3]: y = torch.randn(1, 2, 4).to("cuda:0")

In [4]: bindings = [x.clone().data_ptr(), y.clone().data_ptr()]

In [5]: bindings
Out[5]: [140582636749824, 140582636749824]

In [6]: y.clone().data_ptr()
Out[6]: 140582636749824

data_ptrs in bindings are same as y.clone().data_ptr()

Expected behavior

Environment

Please copy and paste the output from our

environment collection script

(or fill out the checklist below manually).

You can get the script and run it with:

wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py
# For security purposes, please check the contents of collect_env.py before running it.
python collect_env.py

PyTorch version: 1.3.0

Is debug build: No

CUDA used to build PyTorch: 10.1.243

OS: Ubuntu 16.04.6 LTS

GCC version: (Ubuntu 5.4.0-6ubuntu1~16.04.11) 5.4.0 20160609

CMake version: version 3.14.5

Python version: 3.5

Is CUDA available: Yes

CUDA runtime version: 10.1.243

GPU models and configuration: GPU 0: GeForce RTX 2080

Nvidia driver version: 440.33.01

cuDNN version: /usr/local/cuda-10.1/targets/x86_64-linux/lib/libcudnn.so.7

Versions of relevant libraries:

[pip3] numpy==1.16.3

[pip3] torch==1.3.0

[pip3] torch2trt==0.0.0

[pip3] torchsummary==1.5.1

[pip3] torchvision==0.4.1

[conda] Could not collect

Additional context
Issue 1:
There a few issues with the menu bar in Atom.

Even though Alt + E opens the Edit drop down menu...

Alt + H - does not open the Help drop down menu

Alt + F - does not open the File drop down menu

Also...

While a drop down menu is displayed (i.e. by pressing Alt + E or clicking to open the menu), the Left/Right arrow keys do not move to the previous/next menus. Up/Down arrow keys move up/down within the menu, but Left/Right do not work as expected. Generally, Left/Right can be used to expand/collapse a submenu, but when there is no submenu to the Left/Right to expand/collapse, the keys should navigate to the previous/next menu as you would find in many other applications that utilize a conventional menu bar.

EDIT: Bug is present in Atom 0.194, Linux Mint 17

Issue 2:
The normal Windows Alt+{letter} menu shortcuts don't work in Atom. Holding Alt highlights the relevant letter in each menu name, but then pressing the letter doesn't open the menu. For example, Alt+F should open the File menu, but instead the Key Binding Resolver shows it invoking the following:

editor:move-to-end-of-word atom-text-editor resources\app\keymaps\emacs.json

This is a vanilla install of Atom 0.141.0 in Windows 7 Home Premium x64. I haven't opted in to enabling anything Emacs related.

Pressing Alt also doesn't focus the menu bar and allow it to be navigated by arrow keys like it normally does in Windows.

I'm reporting this per this suggestion
Issue 1:
Tested and confirmed with Neo4j 2.1.6, 2.2.0-M01, 2.2.0-M02 using Neo4j.rb 4.1.0 and Neo4j-core 4.0.0 Ruby gems.

Given two completely independent sessions, queries against the Cypher transactional appear to be leaking IDs, resulting in errors in one session that reference nodes in the other.

In session 1:

Benchmark.ips do |x|
x.config(warmup: 3, time: 20)
x.report('create/destroy') do
s = Student.create
s.destroy
end
end

Benchmark.ips runs the given commands as many times as it can for the duration given.

The queries against the server are CREATE (s:Student { uuid: {uuid} ) RETURN s and MATCH (s) WHERE ID(s) = {id_of_s} OPTIONAL MATCH s-[r]-() DELETE s,r. Each is an independent transaction. Four queries total: cypher query then commit to create, cypher query then commit to destroy. Uniqueness on the Student's uuid is enforced through a constraint.

In session 2:

# Manually, repeatedly
Student.count

Session 2 will occasionally eventually return an org.neo4j.cypher.EntityNotFoundException error referencing Node with ID 429, which is a node created by session 1.

This appears to be the same issue as http://stackoverflow.com/questions/26133131/are-neo4js-cypher-transactions-broken. The poster said they would open an issue but if they did, I couldn't find it.

Issue 2:
neo4j-sh (0)$ CREATE CONSTRAINT ON (p:Person) ASSERT p.id IS UNIQUE;
+-------------------+
| No data returned. |
+-------------------+
Constraints added: 1
815 ms
neo4j-sh (0)$ MERGE (i:Item {id:1})
> MERGE (p:Person {id:1});
+-------------------+
| No data returned. |
+-------------------+
Nodes created: 2
Properties set: 2
Labels added: 2
268 ms
neo4j-sh (0)$ MERGE (i:Item {id:2})
> MERGE (p:Person {id:1});
CypherExecutionException: Node 2 already exists with label Person and property "id"=[1]
Issue 1:
Electron version: 1.3.5

Operating system: macOS 10.11

I noticed that Electron always returns NSTerminateCancel from applicationShouldTerminate and then exits manually.

Maybe it should use NSTerminateLater and then replyToApplicationShouldTerminate?

I think this is why when rebooting sometimes, you briefly get an "Atom interrupted the computer from restarting" (or whatever that thing says), but this is pure speculation.

Issue 2:
This is a side effect of b994ae8.
Issue 1:
It doesn't appear to be possible to return a FnBox which accepts references:

#![feature(fnbox)]

use std::boxed::FnBox;

type Callback = Box<FnBox(&mut usize, &usize)>;

fn get_cb() -> Callback {
Box::new(|a, b| {})
}

fn main() { }

produces the following error on rustc 1.4.0-nightly (cd138dc44 2015-09-02)

<anon>:8:5: 10:7 error: type mismatch resolving `for<'r, 'r> <[closure@<anon>:8:14: 10:6] as alloc::boxed::FnBox<(&'r mut usize, &'r usize)>>::Output == ()`:
expected bound lifetime parameter ,
found concrete lifetime [E0271]
<anon>: 8 Box::new(|a, b| {
<anon>: 9
<anon>:10 })
<anon>:8:5: 10:7 help: see the detailed explanation for E0271
<anon>:8:5: 10:7 note: required for the cast to the object type `for<'r, 'r> alloc::boxed::FnBox<(&'r mut usize, &'r usize), Output=()> + 'static`
<anon>: 8 Box::new(|a, b| {
<anon>: 9
<anon>:10 })
<anon>:8:5: 10:7 error: type mismatch: the type `[closure@<anon>:8:14: 10:6]` implements the trait `core::ops::FnOnce<(_, _)>`, but the trait `for<'r, 'r> core::ops::FnOnce<(&'r mut usize, &'r usize)>` is required (expected concrete lifetime, found bound lifetime parameter ) [E0281]
<anon>: 8 Box::new(|a, b| {
<anon>: 9
<anon>:10 })
<anon>:8:5: 10:7 help: see the detailed explanation for E0281
<anon>:8:5: 10:7 note: required for the cast to the object type `for<'r, 'r> alloc::boxed::FnBox<(&'r mut usize, &'r usize), Output=()> + 'static`
<anon>: 8 Box::new(|a, b| {
<anon>: 9
<anon>:10 })
error: aborting due to 2 previous errors

#25647 is a similar bug when calling FnBox.

Issue 2:
In the code below, type inference works in the first line of main(), but fails in the second one. Note also that the "kind" of the closure has to be given with explicit syntax when inside Box::new().

fn do_async<F>(_cb: Box<F>) where F: FnOnce(&i32) {
}

fn do_async_unboxed<F>(cb: F) where F: FnOnce(&i32) {
do_async(Box::new(cb))
}

fn main() {
do_async_unboxed(|x| { println!("{}", *x); });
do_async(Box::new(|: x| { println!("{}", *x); }));
}
Issue 1:
Glide Version:3.7.0

Device/Android Version:5.1

I'm using Glide to get Bitmap from network and use SimpleTarget to async draw the Bitmaps on my CustomView.And I use this view in RecyclerView.

code in my CustomView:

private void loadBitmap(int i) {
Glide.with(getContext()).load(mImageUrls.get(i)).asBitmap().dontAnimate().dontTransform().into(glideTarget);
}

private SimpleTarget<Bitmap> glideTarget = new SimpleTarget<Bitmap>() {
@Override
public void onResourceReady(Bitmap resource, GlideAnimation<? super Bitmap> glideAnimation) {
mBitmaps.add(resource);
invalidate();
};

@Override
protected void onDetachedFromWindow() {
super.onDetachedFromWindow();
Glide.clear(glideTarget);
}

@Override
protected void onDraw(Canvas canvas) {
//...do draw Bitmaps like gridview but in single view
}

The issue is if I declare glideTraget as fields and I scroll the RecyclerView ,some Image will missmatch.BUT if I create glideTraget each time for into,everything is fine.

full code is free to touch:

https://github.com/xufan/MultipleImageView

Issue 2:
Glide Version:3.6.1

Integration libraries:no

Device/Android Version:Fails on all devices

So I am using Glide to load a web url .into imageviews in a gridview successfully. In each of these grid elements, I have an onclick listener through which I want to pass the Glide bitmap to a new activity. I know I can aquire the bitmap from glide with a callback, but for memory reasons (there are a lot of images) I do not want essentially two copies of all the images in memory.

So I am trying to only load the one that actually needs to be passed by accessing it in the onClickListener of the gridview element:

gridElement.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
object.setBitmapt(((BitmapDrawable)cover.getDrawable()).);
...
}
}

However, I get an exception java.lang.ClassCastException: com.bumptech.glide.request.target.SquaringDrawable cannot be cast to android.graphics.drawable.BitmapDrawable, presumably because Glide has its own object in the ImageView. I cannot find any documentation on the SquaringDrawable.

tl;dr: How can I get a bitmap from an ImageView that Glide was used on in the far future, after Glide has done it's thing?
Issue 1:
From @tumbl3w33d on October 14, 2016 12:57

ISSUE TYPE

Bug Report

COMPONENT NAME

docker_container

ANSIBLE VERSION

ansible 2.2.0 (devel 28feba2fb3) last updated 2016/09/14 12:25:32 (GMT +200)
lib/ansible/modules/core: (detached HEAD ae6992bf8c) last updated 2016/09/14 12:25:32 (GMT +200)
lib/ansible/modules/extras: (detached HEAD afd0b23836) last updated 2016/09/14 12:25:32 (GMT +200)

CONFIGURATION

N/A

OS / ENVIRONMENT

N/A

SUMMARY

Docker uses the log driver 'json-file' by default (also stated in the docker_container documentation). If you want to provide log_options (e.g. for log rotation) you have to explicitly set the log_driver to json-file, else this module attribute is ignored, although it should IMHO assume the Docker default.

This behavior is probably caused by the following code

def _parse_log_config(self):
'''
Create a LogConfig object
'''
if self.log_driver is None:
return None

STEPS TO REPRODUCE

docker_container:
name: mongodb
image: bitnami/mongodb
log_options:
max-size: "512m"
max-file: "5"

EXPECTED RESULTS

When you check the specs of the running container (docker inspect) you see should see the passed log options.

"LogConfig": {
"Type": "json-file",
"Config": {
"max-file": "5",
"max-size": "512m"
}

ACTUAL RESULTS

When you check the specs of the running container you see that the log config block is empty.

"LogConfig": {
"Type": "json-file",
"Config": {}
},

Copied from original issue: ansible/ansible-modules-core#5269

Issue 2:
From @juju4 on November 27, 2015 2:47

ISSUE TYPE

Feature Idea

COMPONENT NAME

mount module

ANSIBLE VERSION

N/A

SUMMARY

Hello,

For temporary need, it should be possible to mount a filesystem without adding it to fstab

http://docs.ansible.com/ansible/mount_module.html

The state values should be updated

present

absent

mounted (just mount)

mountedandpresent (mount+fstab)

unmounted (unmount)

unmountedandpresent (unmount but keep in fstab; ex: with opts noauto - only manual usage)

My main use case is using ansible for mass forensics collections and try to minimize as much as possible modifications to the system

Thanks

Copied from original issue: ansible/ansible-modules-core#2571
Issue 1:
VSCode Version:1.0.0

OS Version:window7 sp1 build 7601

VS2015: commuity 2015 update1

system path: C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.7;

Steps to Reproduce:

1.add two ts file and compile

2.add new folder

move all ts file and js file to new folder

Issue 2:
VSCode Version:1.0

OS Version:windows 10 (1511)

Steps to Reproduce:

open New File.

2.Ctrl+H

USE \n

4.can not find ENTER OR newline
Issue 1:
Bug Report

mybatis plus 3.5.1 + shardingsphere 5.2.1 + druid 1.2.8

demo example：[demo example](https://github.com/Zhai6319/sbx-system)

Please use the maven settings file under the maven directory of the project

Issue 2:
Feature Request

For English only, other languages will not accept.

Please pay attention on issues you submitted, because we maybe need more details.

If no response anymore and we cannot make decision by current information, we will close it.

Please answer these questions before submitting your issue. Thanks!

Is your feature request related to a problem?

Yes, refer to #21351 .

Describe the feature you would like.

In #21351, a new method for serving LoaderOptions introduced since SnakeYAML 1.32 is enabled. This stems from a series of CVEs that have existed since SnakeYAML 1.30 and can be traced back to #15260 .

According to spring-projects/spring-boot#32221 , at present, Spring community ensures SnakeYAML <= 1.30 in Spring Boot OSS < 3.0.0-M5 version. Therefore, if the users of ShardingSphere JDBC use the version of SpringBoot OSS < 3.0.0-M5, they must manually specify the version of SnakeYAML in pom.xml and other files, similar to the following.

<dependencies>
<dependency>
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
<version>1.33</version>
</dependency>
</dependencies>

I think we should markup SpringBoot users need to specify SnakeYAML version in Github Wiki.

update in 2023.03.31: According to spring-projects/spring-boot#34405 (comment), if users are using Spring Boot OSS 2.x instead of Spring Boot OSS 3.x, they should use SnakeYAML 1.33 instead of SnakeYAML 2.0. Also, Spring Framework is not ready for SnakeYAML 2.0, refer to spring-projects/spring-framework#30048
Issue 1:
When JSON data is send in a POST (or PUT) body, if you don't consume this data, they appear in the method string of the next request and results in a 405 Method Not Allowed response.

This example code reproduces the error.

from flask import Flask, request, jsonify

app = Flask(__name__)

@app.post("/test_ajax")
def test_ajax():
return jsonify({"hello": "world"})

@app.get("/test")
def test():
return (
"<a href='javascript:test();'>Test</a>"
"<script>"
"function test() {"
" fetch('/test_ajax', {"
" method: 'POST',"
" headers: {'Content-Type': 'application/json'},"
" body: JSON.stringify({'foo': 'bar'})"
" });"
"}"
"</script>"
)

This is the log result

* Detected change in 'app.py', reloading
* Restarting with stat
* Debugger is active!
* Debugger PIN: 128-473-016
172.27.0.1 - - [21/Apr/2022 12:55:39] "GET /test HTTP/1.1" 200 -
172.27.0.1 - - [21/Apr/2022 12:55:41] "POST /test_ajax HTTP/1.1" 200 -
172.27.0.1 - - [21/Apr/2022 12:55:42] "{"foo":"bar"}POST /test_ajax HTTP/1.1" 405 -

Works ok for the first click, but not for the second.

If I consumes the data,

from flask import Flask, request, jsonify

app = Flask(__name__)

@app.post("/test_ajax")
def test_ajax():
app.logger.info(request.data) # <<<<<<<<<
return jsonify({"hello": "world"})

@app.get("/test")
def test():
return (
"<a href='javascript:test();'>Test</a>"
"<script>"
"function test() {"
" fetch('/test_ajax', {"
" method: 'POST',"
" headers: {'Content-Type': 'application/json'},"
" body: JSON.stringify({'foo': 'bar'})"
" });"
"}"
"</script>"
)

It works as expected:

* Detected change in 'app.py', reloading
* Restarting with stat
* Debugger is active!
* Debugger PIN: 128-473-016
172.27.0.1 - - [21/Apr/2022 13:01:10] "GET /test HTTP/1.1" 200 -
[2022-04-21 13:01:12,186] INFO in api: b'{"foo":"bar"}'
172.27.0.1 - - [21/Apr/2022 13:01:12] "POST /test_ajax HTTP/1.1" 200 -
[2022-04-21 13:01:12,904] INFO in api: b'{"foo":"bar"}'
172.27.0.1 - - [21/Apr/2022 13:01:12] "POST /test_ajax HTTP/1.1" 200 -

If I design a url to don't use data but the user send any, it will result in a hard to debug weird behaviour.

Environment:

Python version: Python 3.8.10

Flask version: Flask==2.1.1

Issue 2:
With the following example:

from flask import Flask

app = Flask(__name__)

@app.route('/', methods=['POST'])
def hello_world():
return 'Hello World!'

if __name__ == '__main__':
app.run()

When you set the request body to {} with Postman or any HTTP clients, the first request will return 200, while the second request will return a 405 error response. The log shows the request method is {}POST:

"{}POST / HTTP/1.1" 405

Notice the request body became the part of the request method.
Issue 1:
Please (partly) replicate VS 2015 code changes indicators. Those indicators are good way to track changes made by 'Replace All', helps to validate recent changes and locate to changes in the file.

In my opinion VS 2015 version is a little bit over engineered. Different colors add little value, difficult to decode and in some cases duplicates other indicators (changed file indicator next to file name)

VS Code might have single indicator, namely "line changed since file was opened".

Issue 2:
I'm using vs code behind a proxy with a self-signed certificate, when i try to install plugins and typing "ext install ", it shows an error "unable to verify the first certificate".