WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Q
A

Bug report?
yes

Feature request?
no

RFC?
no

Symfony version
3.1 and 3.2

I found that the Symfony API documentation for versions 3.1 and 3.2 shows only 1 method which is the setContainer() and all other methods are missing.

http://api.symfony.com/3.2/Symfony/Bundle/FrameworkBundle/Controller/Controller.html

http://api.symfony.com/3.1/Symfony/Bundle/FrameworkBundle/Controller/Controller.html

But the file actually is full with the other methods Controller.php in github 3.2 branch

Regards,

Lachezar Lechev

Issue 2:
Hello,

I don't really know if this is the place to report this issue, but i've found something weird on symfony API doc :

Since Symfony 3.0, some public methods have been made private in Base Controller:

3.1 : https://github.com/symfony/symfony/blob/master/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php

2.8 : https://github.com/symfony/symfony/blob/2.8/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php

In consequence, the API documentation does not contain methods signature anymore :

http://api.symfony.com/3.1/Symfony/Bundle/FrameworkBundle/Controller/Controller.html

In consequence some links in Symfony Documentation for the Base Controller are broken, like in this page:

http://symfony.com/doc/current/controller.html

With link :

http://api.symfony.com/3.1/Symfony/Bundle/FrameworkBundle/Controller/Controller.html#method_generateUrl
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: 2.7.7

Operating System version: mac

Java version: 8

Steps to reproduce this issue

问题

ReferenceConfig.checkRegistry()时获取不到注册地址信息。

分析

2.7.7获取组册中心貌似都是通过ApplicationModel.getConfigManager().getDefaultRegistries()或者是 ApplicationModel.getConfigManager().getRegistry(id)，但是这两个目前都获取出来得是null。

这些数据是在AbstractConfig里面存放的，具体代码如下：

@PostConstruct
public void addIntoConfigManager() {
ApplicationModel.getConfigManager().addConfig(this);
}

原因

在AbstraceApplicationContext.invokeBeanFactoryPostProcessors时，会提前触发ReferenceConfig提前被加载，我这里是因为加载serviceAnnotationBeanPostProcessor触发的。

导致PostConstuct没加载。所以注册中心数据没进去。

Pls. provide [GitHub address] to reproduce this issue.

Expected Result

What do you expected from the above steps？

Actual Result

What actually happens?

If there is an exception, please attach the exception trace:

Just put your stack trace here!

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

[*] I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: 2.6.3

Operating System version: macos

Java version: 1.8.0

Steps to reproduce this issue

dubbo2.6.3 服务提供者中使用泛化调用时，绑定attachments时interface错误

dubbo服务提供者中使用泛化调用时，绑定attachments时interface错误，导致thrift encode失败：Could not encode request, the specified interface may be incorrect.

调用方调用 interfaceA.methodA方法

methodA中通过泛化调用interfaceB.methodB方法

attachements中的interface参数为interfaceA，而不是interfaceB

问题出现在AbstractClusterInvoker中的233行：

`

// binding attachments into invocation.

Map<String, String> contextAttachments = RpcContext.getContext().getAttachments();

if (contextAttachments != null && contextAttachments.size() != 0) {

((RpcInvocation) invocation).addAttachments(contextAttachments);

}

`
Issue 1:
Environment

Windows build number: [10.0.18363.900]
PowerToys version: 19.1
PowerToy module for which you are reporting the bug (if applicable): FancyZones

Steps to reproduce

Have task bar at the top of the screen or the left side of the screen

snap a window to a zone

Expected behavior

correctly places the window

Actual behavior

Places part of the window behind the taskbar

Previous versions (18.X) worked correctly

Issue 2:
Environment

Windows build number: 10.0.18363.900
PowerToys version: 0.19.0
PowerToy module for which you are reporting the bug (if applicable): FancyZones
Monitor(s): 2 side-by-side 4K monitors (one set to display scaling 100% and the other to 125%)

Steps to reproduce

Set Windows taskbar location to Top

Snap a window to a FancyZone (2 priority grid zones in my case)

Expected behavior

The window should snap to the full-height of the FancyZone below the task bar

Actual behavior

The window snaps behind the task bar (as shown with the green arrows)

The window leaves a gap underneath each window (as shown with the red arrows), which exposes the desktop background underneath

Screenshots
Issue 1:
From @Trikke76 on 2016-11-21T08:41:18Z

ISSUE TYPE

Feature Idea

COMPONENT NAME

monitoring/zabbix_maintenance.py

ANSIBLE VERSION

ansible 2.1.1.0

CONFIGURATION

OS / ENVIRONMENT

SUMMARY

The module creates or deletes a maintenance periode in zabbix. But it would be nice if the role would also give the option to update a role.

sometimes you want to deploy a system with a role name that is the same as another system that was deployed

STEPS TO REPRODUCE

Copied from original issue: ansible/ansible-modules-extras#3502

Issue 2:
ISSUE TYPE

Bug Report

COMPONENT NAME

zabbix_maintenance

ANSIBLE VERSION

ansible 2.2.2.0

CONFIGURATION

OS / ENVIRONMENT

SUMMARY

STEPS TO REPRODUCE

The module correctly creates and removes maintenance periods, however it cannot be used to update a maintenance period. The status is shown as OK instead of changed and no changes to the maintenance period occur.

- name: Start maintenance window
delegate_to: localhost
zabbix_maintenance:
name: test-window
server_url: http://example.org
login_user: "{{username}}"
login_password: "{{password}}"
host_name: "{{inventory_hostname}}"
state: present
minutes: 15
collect_data: false

- name: Update maintenance window
delegate_to: localhost
zabbix_maintenance:
name: test-window
server_url: http://example.org
login_user: "{{username}}"
login_password: "{{password}}"
host_name: "{{inventory_hostname}}"
state: present
minutes: 5
collect_data: false

EXPECTED RESULTS

I expect the first step to create the maintenance window for 15 minutes. I then expect the second step to reduce this maintenance window to 5 minutes.

ACTUAL RESULTS

The maintenance window is set to 15 minutes in the first step, then the second step does nothing.

TASK [Start maintenance window] ************************************************
changed: [test-host -> localhost]

TASK [Adjust maintenance window] ***********************************************
ok: [test-host -> localhost]
Issue 1:
I noticed copy.deepcopy() duplicates nested MutableList items.

Example

Let's say, we have a dictionary of this kind:

body = {
'key1': None,
'key2': {
'location': <sqlalchemy.ext.mutable.MutableDict> (for ex.: {'lat': 10.00, 'lng': 20.00, 'name': 'some name'}),
'tags': <sqlalchemy.ext.mutable.MutableList> (for ex.: ['tag1', 'tag2'])
}
}

tags declared as:

tags = Column(MutableList.as_mutable(JSON))

When I do:

msg_body = copy.deepcopy(body)

I get:

'tags' = ['tag1', 'tag2', 'tag1', 'tag2']

The same time location is being copied correctly.

Versions

OS: macOS 10.15.7

Python: 3.7.9

SQLAlchemy: 1.2.4

Database: MySQL 5.7

Issue 2:
Migrated issue, originally created by Michael Bayer (@zzzeek)

this script in http://docs.sqlalchemy.org/en/latest/dialects/sqlite.html#dotted-column-names now passes:

import sqlite3

conn = sqlite3.connect(":memory:")
cursor = conn.cursor()

cursor.execute("create table x (a integer, b integer)")
cursor.execute("insert into x (a, b) values (1, 1)")
cursor.execute("insert into x (a, b) values (2, 2)")

cursor.execute("select x.a, x.b from x")
assert [c[0] for c in cursor.description] == ['a', 'b']

cursor.execute('''
select x.a, x.b from x where a=1
union
select x.a, x.b from x where a=2
''')
assert [c[0] for c in cursor.description] == ['a', 'b'], \
[c[0] for c in cursor.description]

the sqlite checkin is http://www.sqlite.org/src/info/47f10b7e5d8c1d96. We need to turn off translate_colnames for this version and also some tests fail.
Issue 1:
Issue description

It is nice that pytorch now has dtype attribute for tensors and a default dtype so that we can easily switch between different precisions. However, as I understand it:

if we want to define e.g. a small value eps that is the smallest representable positive value of double, right now we have to switch to numpy and use sth like np.finfo(np.float64).tiny.

if we want this value to depend on the current default dtype, we have to call torch.get_default_dtype(), convert it somehow to numpy dtype, then use np.finfo. This must be performed every time we need this number unless we are sure the default dtype is not changed in between.

It would thus be very nice if we have sth like torch.finfo similar to np.finfo that additionally takes the current default pytorch dtype as the default argument so as to have a hassle-free and efficient way of solving the above problems.

Issue 2:
If you have two gpu cards, and you want train your model only on the second card.

Then you might write the following code

device = torch.device('cuda', 1)
net.cuda(device)

or simply

net.cuda(1)

But you can find the first gpu card was also filled with tensors.

This will not happen in v0.3.

Currently, my solution to this problem would be

with torch.cuda.device(1):
net.cuda()

Hope this bug will be solved in the future.
Issue 1:
Tray API seems to throw TypeErrors when the path passed in is an ASAR path.

Issue 2:
Hello,

Initializing a Tray menu with icon (on OSX Yosemite, so far) while using the asar method of packaging seems to be unable to find the icon. Every combination of image paths I have tried (listed below) has resulted in the same error message:

Uncaught Exception:
TypeError: Error processing argument 0.
at TypeError (native)
at EventEmitter.<anonymous> (PATH_TO_MAIN.JS:26:13)
at EventEmitter.emit (events.js:129:20)

This is with Node.js@0.13.0-pre and atom-shell@0.20.5 (again, on OSX 10.10.2 aka Yosemite). The main.js is below. What is missing? How can I access the correct image via Tray constructor?

var app = require('app');
var BrowserWindow = require('browser-window');
var Menu = require('menu');
var Tray = require('tray');

var mainWindow = null;
var appIcon = null;
var contextMenu = null;

app.on('window-all-closed', function() {
if (process.platform != 'darwin')
app.quit();
});

app.on('ready', function() {
mainWindow = new BrowserWindow({width: 800, height: 600});
mainWindow.loadUrl('asar://' + __dirname + '/index.html');

// var trayimage = '/assets/img/icon.png'; // doesn't work
// var trayimage = __dirname + '/assets/img/icon.png'; // doesn't work
// var trayimage = 'asar:' + __dirname + '/assets/img/icon.png'; // doesn't work
// also tried absolute path
var trayimage = 'asar:/assets/img/icon.png'; // doesn't work
console.log('dirname', __dirname);
console.log('trayimage', trayimage);
appIcon = new Tray(trayimage);
contextMenu = Menu.buildFromTemplate([
{ label: 'Item1', type: 'radio' },
{ label: 'Item2', type: 'radio' },
{ label: 'Item3', type: 'radio', checked: true },
{ label: 'Item4', type: 'radio' },
]);
appIcon.setToolTip('This is my application.');
appIcon.setContextMenu(contextMenu);

mainWindow.on('closed', function() {
mainWindow = null;
});
});
Issue 1:
I think you should create GitHub Discussion so people can ask question and more

Discussion is currently in beta

Issue 2:
Not sure if this is rooted in a V8 glitch, but it still causes Deno to terminate. Basically can't seem to 'catch' an exception when importing a module a second time. Exception flies right to the top and terminates Deno. Tried to make the smallest possible case reproducing the issue:

% deno run --allow-read test.js
about to import...
caught
about to import again...
error: Uncaught uh oh

test.js:

console.log('about to import...');
let a = await import('./test_module.js').catch(e => console.log("caught"));
console.log('about to import again...');
await import('./test_module.js').catch(e => console.log("caught again"));

test_module.js:

throw "uh oh";
Issue 1:
Describe your issue.

Starting with scipy 1.10.0 I'm having trouble interpolating with 32bit values. The below code crashes and previously worked with scipy 1.9.1. It looks related to this PR #17291

Reproducing Code Example

import numpy as np
import scipy

ys = np.linspace(0, 10, 100).astype(np.float64)
xs = np.linspace(0, 10, 100).astype(np.float64)

vals = np.arange(100 * 100).reshape((100, 100)).astype(np.float32)

interp = scipy.interpolate.RegularGridInterpolator((ys, xs), vals, method='linear')

print(interp((5.1, 6.2)))

Error message

Traceback (most recent call last):
File "t.py", line 11, in <module>
print(interp((5.1, 6.2)))
File "/home/docker_user/a3/lib/python3.8/site-packages/scipy/interpolate/_rgi.py", line 336, in __call__
result = evaluate_linear_2d(self.values,
File "_rgi_cython.pyx", line 19, in scipy.interpolate._rgi_cython.__pyx_fused_cpdef
TypeError: No matching signature found

SciPy/NumPy/Python version information

1.10.0 1.21.6 sys.version_info(major=3, minor=8, micro=15, releaselevel='final', serial=0)

Issue 2:
Describe your issue.

Invoking RegularGridInterpolator for a 2D interpolation problem where the data array is float32 crashes.

Reproducing Code Example

"""
Found our code tickled a bug. We have a mismatched type, but probably this shouldn't crash...

Reproducing code is copied (and reduced to 2d ) from the `scipy` tutorial:

https://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.RegularGridInterpolator.html
"""

from scipy.interpolate import RegularGridInterpolator
import numpy as np

def f(x, y):
return 2 * x**3 + 3 * y**2

x = np.linspace(1, 4, 11)
y = np.linspace(4, 7, 22)

xg, yg = np.meshgrid(x, y, indexing='ij', sparse=True)
data = f(xg, yg)

# This line tickles the issue.
data = data.astype(np.float32)

interp = RegularGridInterpolator((x, y), data)

pts = np.array([[2.1, 6.2],
[3.3, 5.2]])

q = interp(pts)

print(q) # expect [134.10469388 153.40069388]
print(f(*pts[0]), f(*pts[1])) # 133.842 152.994

Error message

# Traceback (most recent call last):
# File "repro_interp_issue.py", line 22, in <module>
# q = interp(pts)
# File "/Users/gbwright/opt/miniconda3/envs/sp110/lib/python3.8/site-packages/scipy/interpolate/_rgi.py", line 336, in __call__
# result = evaluate_linear_2d(self.values,
# File "_rgi_cython.pyx", line 19, in scipy.interpolate._rgi_cython.__pyx_fused_cpdef
# TypeError: No matching signature found

SciPy/NumPy/Python version information

1.10.0 1.24.1 sys.version_info(major=3, minor=8, micro=15, releaselevel='final', serial=0)
Issue 1:
In some applications, we need to repeat Tensors, so hopefully there could be a build-in function tf.repeat which is equivalent to np.repeat.

Example:

np.repeat([1, 2, 3], 2)
>> array([1, 1, 2, 2, 3, 3])

Issue 2:
This is a popular question on StackOverflow:

http://stackoverflow.com/questions/35361467/tensorflow-numpy-repeat-alternative

But note that the answer so far only works for some use cases (the one presented in the question).

The best I could come up with for a general solution uses tf.while_loop, which is pretty verbose (and maybe slower than necessary). I'll add a link to the implementation I wrote for tf.contrib.training.resample_at_rate after the next internal/github sync.
Issue 1:
I understand a component's key is no longer available on a component's props. But how does one get access to a component's own key?

...
componentWillMount: function() {
console.log(this.key); // Undefined.
},
...

Issue 2:
In React 0.12.0 if you attempt to use this.key inside a react component, it is undefined

Simple test case here: http://jsfiddle.net/jg2pd4ob/2/

In 0.11.x you could access this value via this.props.key which has been removed.
Issue 1:
[√] I have searched the issues of this repository and believe that this is not a duplicate.

[√] I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: 2.7.3

Operating System version: Windows 10

Java version: Oracle JDK 1.8

Steps to reproduce this issue

Inject a DubboService into a spring bean with @reference(async = true)

Inject the same DubboService into another spring bean with @reference(async = false)

Invoke the methods in these two beans

Pls. provide [GitHub address] to reproduce this issue.

Expected Result

One bean is an asynchronous call and the other is a synchronous call

Actual Result

They are all asynchronous or synchronous

@Component("demoServiceComponent")
public class DemoServiceComponent implements DemoService {

@Reference(async = true)
private DemoService demoService;

@Override
public String sayHello(String name) {
return demoService.sayHello(name);
}
}

@Service("helloService")
public class HelloService {

@Reference(async = false)
private DemoService demoService;

public String sayHello(String name) {
return demoService.sayHello(name);
}
}

public static void main(String[] args) {
AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(ConsumerConfiguration.class);
context.start();
DemoService service = context.getBean("demoServiceComponent", DemoServiceComponent.class);
HelloService helloService = context.getBean("helloService", HelloService.class);
System.out.println("result : " + service.sayHello("sync"));
System.out.println("result : " + helloService.sayHello("async"));
}

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

I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: all

Operating System version: all

Java version: 1.8

org.apache.dubbo.common.bytecode.Proxy use WeakHashMap to cache generated dynamic proxy, but the WeakHashMap's value be gced, so if we create many ReferenceConfig(for one service interface), then org.apache.dubbo.common.bytecode.Proxy would generate many dynamic proxy class.
Issue 1:
Sometimes when I select "Go to my next challenge" I get sent to a random challenge far ahead of where I should be, apparently at random. After "Waypoint: Use Clockwise Notation to Specify the Margin of an Element" I was sent to "Bonfire: Roman Numeral Converter" and after "Waypoint: Mobile Responsive Images" I was sent to "Zipline: Build a Random Quote Machine".

Issue 2:
Challenge adjusting-the-padding-of-an-element has an issue.

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

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

<style>
.injected-text {
margin-bottom: -25px;
text-align: center;
}

.box {
border-style: solid;
border-color: black;
border-width: 5px;
text-align: center;
}

.yellow-box {
background-color: yellow;
padding: 10px;
}

.red-box {
background-color: red;
padding: 20px;
}

.green-box {
background-color: green;
padding: 10px;
}
</style>
<h5 class="injected-text">margin</h5>

<div class="box yellow-box">
<h5 class="box red-box">padding</h5>
<h5 class="box green-box">padding</h5>
</div>

The "phone screen" where the code is shown doesn't update until after the run test button is pressed. Has been this way since I began the CSS section of the beta. It makes it awkward when working on the cat photo app, but when it gets to showing the margins, it gives me the picture of the cat photo app instead of the yellow, red, and green boxes.
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

The component should render from enzyme mount or test-utils mount but getting document.createRange is not a function.

Current Behavior

Using mui test utils or enzyme to mount a component that contains a Table component causes a document.createRange function to occur. Most of my code is from the demo API where it showcases the editable table. Also using the component directly in createMount() seems to bypass the error however i do not have access to methods that are part of the enzyme library. ie Find, Simulate etc.

Steps to Reproduce (for bugs)

Unsure how to do this for a jest test.

Context

I am trying to see if a button is click and a function is called.

Your Environment

Tech
Version

Material-UI
1.0.0-beta.23

React
16.2.0

browser
Chrome latest

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

Expected Behavior

As a disabled user I would expect the screen reader to be able to read labels defined for buttons that have no text inside them like the left and right arrows do for the pagination.

Current Behavior

Right now, there are no aria-labels so it triggers an accessibility issue when using a button with no text inside. Simple fix, add labels.

Steps to Reproduce (for bugs)

Visit table demos

Examine pagination section

Run axe plugin

Context

Your Environment

Tech
Version

Material-UI
1.0.0-beta.25

React
16

browser
chrome
Issue 1:
Hi,

I'm currently working on a #8063 to make assertions handle symbols correctly, but it seems to reveal a broken test case.

The test in question is responseFormData which is below :

unitTest(async function responseFormData() {
const input = new FormData();
input.append("hello", "world");
const response = new Response(input, {
headers: { "content-type": "application/x-www-form-urlencoded" },
});
const formDataPromise = response.formData();
assert(formDataPromise instanceof Promise);
const formData = await formDataPromise;
assert(formData instanceof FormData);
assertEquals(formData, input);
});

It fails with the following result when using symbol checks :

AssertionError: Values are not equal:
[Diff] Actual / Expected
FormData {
[Symbol(data)]: [
[
- "[object FormData]",
- "",
+ "hello",
+ "world",
],
],
}

With Deno.inspect , input returns FormData { [Symbol(data)]: [ [ "hello", "world" ] ] while formData returns FormData { [Symbol(data)]: [ [ "[object FormData]", "" ] ] } (like if the formData was casted to string mistakenly).

My guess is that since data are indexed with a symbol instead of a regular key, the assertEquals was actually ignoring it (because it uses for (const key in object) which doesn't include symbols).

It could possibly mean that response.formData() or this test case is actually broken.

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

Not a problem, but support for TypeScript 4.0 would be good in Deno - especially to test forward compatibility for modules written in TS <=3.9 and come up with a release schedule for TypeScript updates in future versions of Deno.

Typescript 4.0 is available on August 20th, 2020 https://devblogs.microsoft.com/typescript/announcing-typescript-4-0/

Deno 1.3.0 supports typescript 3.9.7

Console output

$ deno --version
deno 1.3.0
v8 8.6.334
typescript 3.9.7

Describe the solution you'd like

Support TypeScript 4.0 in future minor version of Deno (say 1.4.0?)

A WIP PR was posted on Jun 26 #6514, but deno_typescript was removed on Jul 19 in #6813 as a follow-up to porting internal TS code to JS #6793

Describe alternatives you've considered

Stick with TypeScript 3.9 in Deno in foreseeable future