WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Summary

Information can be lost during the parsing of some complex headers response, like for example these ones https://developers.google.com/search/reference/robots_meta_tag#xrobotstag

Simulating something like this with httpbin gives us: http://httpbin.org/response-headers?X-Robots-Tag=googlebot:%20nofollow&X-Robots-Tag=otherbot:%20noindex,%20nofollow&X-Robots-Tag=noarchive&X-Robots-Tag=unavailable_after:%2025%20Jun%202010%2015:00:00%20PST

Expected Result

Something like the httpbin output would be nice:

{ "Content-Length": "227", "Content-Type": "application/json", "X-Robots-Tag": [ "googlebot: nofollow", "otherbot: noindex, nofollow", "noarchive", "unavailable_after: 25 Jun 2010 15:00:00 PST" ] }

Actual Result

Instead response headers returned by requests are like this:

{'Date': 'Mon, 13 Jul 2020 15:14:21 GMT', 'Content-Type': 'application/json', 'Content-Length': '227', 'Connection': 'keep-alive', 'Server': 'gunicorn/19.9.0', 'X-Robots-Tag': 'googlebot: nofollow, otherbot: noindex, nofollow, noarchive, unavailable_after: 25 Jun 2010 15:00:00 PST', 'Access-Control-Allow-Origin': '*', 'Access-Control-Allow-Credentials': 'true'}

Note that using raw._original_response.getheaders() is returning more useful results:

[('Date', 'Mon, 13 Jul 2020 15:14:21 GMT'), ('Content-Type', 'application/json'), ('Content-Length', '227'), ('Connection', 'keep-alive'), ('Server', 'gunicorn/19.9.0'), ('X-Robots-Tag', 'googlebot: nofollow'), ('X-Robots-Tag', 'otherbot: noindex, nofollow'), ('X-Robots-Tag', 'noarchive'), ('X-Robots-Tag', 'unavailable_after: 25 Jun 2010 15:00:00 PST'), ('Access-Control-Allow-Origin', '*'), ('Access-Control-Allow-Credentials', 'true')]

Reproduction Steps

import requests
r=requests.get('http://httpbin.org/response-headers?X-Robots-Tag=googlebot:%20nofollow&X-Robots-Tag=otherbot:%20noindex,%20nofollow&X-Robots-Tag=noarchive&X-Robots-Tag=unavailable_after:%2025%20Jun%202010%2015:00:00%20PST')
print(r.headers)
print(r.raw._original_response.getheaders())

System Information

$ python -m requests.help

{
"chardet": {
"version": "3.0.4"
},
"cryptography": {
"version": ""
},
"idna": {
"version": "2.9"
},
"implementation": {
"name": "CPython",
"version": "3.8.3"
},
"platform": {
"release": "16.7.0",
"system": "Darwin"
},
"pyOpenSSL": {
"openssl_version": "",
"version": null
},
"requests": {
"version": "2.23.0"
},
"system_ssl": {
"version": "1010107f"
},
"urllib3": {
"version": "1.25.9"
},
"using_pyopenssl": false
}

Issue 2:
Hi,

I noticed URL encode issue in get() --

In [32]: r = requests.get(r'http://i.ebayimg.com/00/s/ODAzWDEyODA=/$%28KGrHqV,!o8E63YcElkoBPFMhH2vUQ~~60_1.JPG')

In [33]: r.status_code

Out[33]: 404

In [34]: r = urllib2.urlopen("http://i.ebayimg.com/00/s/ODAzWDEyODA=/$%28KGrHqV,!o8E63YcElkoBPFMhH2vUQ~~60_1.JPG")

In [35]: r.getcode()

Out[35]: 200

In Wireshark, I see that it's because requests further encodes the URL (path) to """/00/s/ODAzWDEyODA%3D/%24%28KGrHqV%2C%21o8E63YcElkoBPFMhH2vUQ%7E%7E60_1.JPG"""

Is it a bug?
Issue 1:
For a week now, sometines, the namespaces property in bootstrap.php.cache is null, which trigger this error:

Notice: Trying to get property of non-object in app/bootstrap.php.cache on line 1211

Warning: Invalid argument supplied for foreach() in app/bootstrap.php.cache on line 1211

Notice: Trying to get property of non-object in app/bootstrap.php.cache on line 1225

Warning: Invalid argument supplied for foreach() in app/bootstrap.php.cache on line 1225

Fatal error: Class 'Doctrine\Common\Annotations\AnnotationRegistry' not found in app/autoload.php on line 35

And after a few hours, without doing anything special, everything returns to normal, until the error reappears.

What makes me create a bug is that, a little annoyed by this error, I completely deleted my project, downloaded the latest symfony version, re-installed my vendors to get back on a clean. But the error is still there...

I checked three times, the class AnnotationRegistry exists in my project.

It can not be a issue between incompatible version bundle, since it is a clean symfony that is installed.

Is there a hidden cache in symfony | doctrine that I could empty ? How can it be that even after reinstalling my symfony version, the error is still there? More generally, how is it possible that the namespaces property is empty in bootstrap.php.cache ?

I am aware that github is not a support forum, but I feel that there is here an issue that goes beyond my Symfony installation. It's strange that the error persists even after reinstalling symfony.

Issue 2:
Some unexpected happens with my symfony2 app in production environment.

I always getting 500 Internal Sever Error with following log message:

PHP Fatal error: Class 'Doctrine\Common\ClassLoader' not found in /var/www/cosamui/app/autoload.php on line 47

Code on line 47:

$classLoader = new \Doctrine\Common\ClassLoader('DoctrineExtensions', DIR . '/../vendor/DoctrineExtensions');

I ensured that the doctrine extension exists... And It also work's some times. But every 5 request I get this error and a plain site :(

I've tried to comment out the this line above, because it's not really necessary... But if i to that it does the same... But I get this error:

Fatal error: Class 'Doctrine\Common\Annotations\AnnotationRegistry' not found in /var/www/cosamui/app/autoload.php on line 49

Now the AnnatationRegistry can't found at every 5 request...

Does anyone know what's going on there??
Issue 1:
Issue Type: Bug Report

Ansible Version: 2.0.0.2

Environment: OSX

Summary: Ansible 1x allowed the combination of lists using the + operator. Ansible 2x does not. Is this a wontfix?

Here is a playbook that fails in 2x but not 1.9x:

- hosts: all
gather_facts: false
vars:
fruit:
- apple
- pear
veggie:
- carrot
- onion
tasks:
- file: src={{item}} state=touch
delegate_to: localhost
with_items: fruit + veggie

Workarounds (use with_flattened or union filter):

- hosts: all
gather_facts: false
vars:
fruit:
- apple
- pear
veggie:
- carrot
- onion
tasks:
- file: path={{item}} state=touch
delegate_to: localhost
with_flattened:
- fruit
- veggie

- hosts: all
gather_facts: false
vars:
fruit:
- apple
- pear
veggie:
- carrot
- onion
tasks:
- file: path={{item}} state=touch
delegate_to: localhost
with_items: fruit | union(veggie)

Issue 2:
Enviroment:

Ansible: 2.0.0.2

OS: Ubuntu 14.04.3 LTS

Python: 2.7.6

Steps To Reproduce:

TASK:

- name: test_1
copy: src={{ secure_vault }}/google-authentificator/{{ item['name'] }}/.google_authenticator dest=/home/{{ item['name'] }}/.google_authenticator backup=yes owner={{ item['name'] }} mode=0400
with_items: administrators + developers

VARS:

administrators:
- { name: bob.ai, mail: bob_ai@test.com }
- { name: john, mail: john_pa@test.com }

developers:
- { name: frank_a, mail: office@test.com }
- { name: mario_a, mail: office@test.com }

When executing this on Ansible 2.0:

...
TASK [vpn-access-server | test_1] **********
fatal: [vpn03]: FAILED! => {"failed": true, "msg": "ERROR! 'unicode object' has no attribute 'name'"}
...

When executing this on Ansible 1.9.4:

TASK: [vpn-access-server | test_1] ********

ok: [vpn03] => (item={'mail': 'bob_ai@test.com', 'name': 'bob.ai'})

ok: [vpn03] => (item={'mail': 'john_pa@test.com', 'name': 'john'})

ok: [vpn03] => (item={'mail': 'office@test.com', 'name': 'frank_a'})

ok: [vpn03] => (item={'mail': 'office@test.com', 'name': 'mario_a'})
Issue 1:
In the subject line function, log probability is calculated as follows (lines 287-88):

proba[proba <= 0] = 1e-5
log_proba = np.log(proba)

Oftentimes one encounters probabilities significantly smaller than 1.0e-5 that are still nonzero. In the current implementation, for example, the log prob of 1.0e-6 will actually evaluate higher than log prob of 0.0. It seems to me that a better implementation of this would be a floor-like function as follows:

proba[proba < 1e-9] = 1.e-9

Issue 2:
This is an issue that I am opening for discussion.

Problem:

Sample weights (in various estimators), group labels (for cross-validation objects), group id (in learning to rank) are optional information that need to be passed to estimators and the CV framework, and that need to kept to the proper shape throughout the data processing pipeline.

Right now, the code to deal with this is inhomogeneous in the codebase, the APIs are not fully consistent (ie passing sample_weights to objects that do not support them will just crash).

This discussion attempt to address the problems above, and open the door to more flexibility to future evolution

Core idea

We could have an argument that is a dataframe-like object, ie a collection (dictionary) of 1D array-like object. This argument would be sliced and diced by any code that modifies the number of samples (CV objects, train_test_split), and passed along the data.

Proposal A

All objects could take as a signature fit(X, y, sample_props=None), with y optional for unsupervised learners.

sample_props (name to be debated) would be a dataframe like object (ie either a dict of arrays, or a dataframe). It would have a few predefined fields, such as "weight" for sample weight, "group" for sample groups used in cross validation. It would open the door to attaching domain-specific information to samples, and thus make scikit-learn easier to adapt to specific applications.

Proposal B

y could be optionally a dataframe-like object, which would have as a compulsory field "target", serving the purpose of the current y, and other fields such as "weight", "group"... In which case, arguments "sample_weights" and alike would disappear into it.

People at the Paris sprint (including me) seem to lean towards proposal A.

Implementation aspects

The different validation tools will have to be adapted to accept this type of argument. We should not depend on pandas. Thus we will accept dict of arrays (and build a helper function to slice them in the sample direction). Also, this helper should probably accept data frame (but given that data frames can be indexed like dictionaries, this will not be a problem.

Finally, the CV objects should be adapted to split the corresponding structure. Probably in a follow up to #4294
Issue 1:
Environment

Platform ServicePack Version VersionString
-------- ----------- ------- -------------
Win32NT 10.0.19018.0 Microsoft Windows NT 10.0.19018.0

Steps to reproduce

I deleted the profile to recreate automatically to make sure it isn't a profile specific issue

On a multimonitor system, drag the terminal to another monitor and it crashes

Expected behavior

It drags OK

Actual behavior

It crashes.

Application Log Error

Fault bucket 1825715257189852845, type 5
Event Name: MoAppCrash
Response: Not available
Cab Id: 0

Problem signature:
P1: Microsoft.WindowsTerminal_0.6.2951.0_x64__8wekyb3d8bbwe
P2: praid:App
P3: 1.0.1910.22001
P4: 5daf7ab2
P5: StackHash12_611
P6: 0.0.0.0
P7: 00000000
P8: 88000fa8
P9: 0
P10:

Attached files:
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERA4BB.tmp.mdmp
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERA577.tmp.WERInternalMetadata.xml
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERA598.tmp.xml
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERA5A0.tmp.csv
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERA5C0.tmp.txt

These files may be available here:
\\?\C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_Microsoft.Window_819db56bc4a492bff4a9ca442ef8eebdb785ee_b251fdb8_2f5cebaf-7a47-4e07-b4ec-1aafd5d9cfbd

Analysis symbol:
Rechecking for solution: 0
Report Id: d505dbdd-8398-4675-88be-2782a51f89ee
Report Status: 2147487744
Hashed bucket: 1c6494429e7d3de659563e5a75cfe6ad
Cab Guid: 0

---
Faulting application name: WindowsTerminal.exe, version: 1.0.1910.22001, time stamp: 0x5daf7ab2
Faulting module name: KERNELBASE.dll, version: 10.0.19018.1, time stamp: 0xece648ff
Exception code: 0xc000027b
Fault offset: 0x000000000010ab6c
Faulting process id: 0x278c
Faulting application start time: 0x01d59983f7240a48
Faulting application path: C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_0.6.2951.0_x64__8wekyb3d8bbwe\WindowsTerminal.exe
Faulting module path: C:\WINDOWS\System32\KERNELBASE.dll
Report Id: d505dbdd-8398-4675-88be-2782a51f89ee
Faulting package full name: Microsoft.WindowsTerminal_0.6.2951.0_x64__8wekyb3d8bbwe
Faulting package-relative application ID: App

Issue 2:
Environment

Windows build number: 10.0.18362.388
Windows Terminal version (if applicable): 0.5.2762.0

Any other software? SSH (from Windows 10), GNU screen on host

Steps to reproduce

Ssh into remote host.

Start GNU screen (screen)

Type cd and the first few non-unique characters of a directory.

Press tab key to trigger autocomplete

Expected behavior

The cursor should stay where it is, nothing should be autocompleted. Further keystrokes should continue from this location,

Actual behavior

The cursor jumps to the end of the current line, further keystrokes wrap on subsequent line, backspace makes a big mess.
Issue 1:
I am going to use loss information to update learning rate at each epoch by the following formula:

learning_rate = initial_learning_rate * exp(Loss)

How to get the loss at each epoch and then implement the above updating law? Thanks!

Issue 2:
I have large number of models (of different structure) that were built using the same input shape (but not the same InputLayer object).

Is it possible to merge their input into one of the same dimension?

I know I can do

m = Model(inputs=[m.input for m in models], output=....

But this approach requires duplication the x variable in fit method. I would like to avoid this as the number of models is very large.

Thanks
Issue 1:
It looks like it's also missing in any other JSX-expression context.

Issue 2:
var p = new Array<string>();
var q = true ? p : [];
q[0]

My reasoning follows, please correct me if I'm wrong.

According to 1.5 spec, type of q[0] was calculated in the following way:

Take union type of Array<string> and empty array (Array<Undefined>).

Reduce that union type, which gives us Array<string>, because string is a supertype of undefined.

Widen that type (changes nothing).

Type of q[0] is string.

According to 1.6 spec, type of q[0] should be calculated in the following way:

Take union type of Array<string> and empty array (Array<Undefined>).

No reduce is happening.

Widen that type, resulting in (Array<string> | Array<any>).

Type of q[0] is (string | any).

But that would break "no implicit any". Where did I make a mistake?
Issue 1:
I apologise for raising this issue again, I'm not intending to be annoying or disrespectful by this, but my previous issue #13034 was closed with a suggestion which I believe not does mitigate the feature request. I'm simply not aware if I should take the hint and go away, if there's a bit of a backlog and I should hang in there, or if it's been missed. I'm assuming the latter, but beg forgiveness if that is not the case. Should you want me to go away I will do so :) Thanks.

I'm trying to build a container component and child component, whereby the children can sit anywhere in the hierarchy beneath the container, but know their relative order/index within that hierarchy.

My use-case is to build a helper wrapper for CSS grids, allowing subcomponents to themselves render a "row" component which knows it must be the next index, and may or may not progress the row counter for the next "row" component found in order.

I've looked into two possible avenues - recursing using React.Children on the component, which stops when it hits a component without props.children (e.g. a redux-connect()-ed one), and passing some means of counting via context, which fails because it seems the render() methods of the child components isn't always called in "DOM order".

More background here - https://stackoverflow.com/questions/50776933/react-get-component-order-within-hierarchy

It would be great to have some feature in React which might allow for this.

@aweary had previously suggested in #13034 that context could do this with nesting, however I'd raised the thought that this would give an indication of recursion depth, not relative position.

Issue 2:
Hey,

It seems like there is currently no way to take two mounted component instances and tell which one of them is coming earlier in the application structure (they could have been mounted asynchronously, and tracking the instantiation/render/mount time is not enough). Ideologically I cannot traverse the application tree, that is understandable.

Though, the relative positions are needed sometimes. My use case — I track focusable elements in the application using context (each focusable element reports of its existence to a focus manager which is provided by the context). This is needed to be able to limit the focusablility/accessibility of all elements which are outside of the currently shown modal dialog/popup so that the focus is trapped inside. For the sake of better accessibility, I need to automatically focus first focusable in the modal dialog when I'm in the keyboard navigation mode. So, I have the references to all focusable elements inside the dialog, but I cannot tell which one comes first using public React API. For web there is a workaround to findDOMNode and compareDocumentPosition(), but that doesn't work with React Native.

Can we have something similar to compareDocumentPosition() but for React component instances?

Thanks!
Issue 1:
Original ticket http://projects.scipy.org/numpy/ticket/977 on 2008-12-26 by trac user raybaut, assigned to unknown.

Running unit tests for numpy

NumPy version 1.2.1

NumPy is installed in C:\Program Files\pythonxy\python\lib\site-packages\numpy

Python version 2.5.3 (r253:67855, Dec 19 2008, 16:58:30) [MSC v.1310 32 bit (Intel)]

nose version 0.10.4

FAIL: test_umath.TestComplexFunctions.test_against_cmath

Traceback (most recent call last):

File "nose\case.py", line 182, in runTest

self.test(*self.arg)

File "C:\Program Files\pythonxy\python\lib\site-packages\numpy\core\tests\test_umath.py", line 268

, in test_against_cmath

assert abs(a - b) < atol, "%s %s: %s; cmath: %s"%(fname,p,a,b)

AssertionError: arcsinh -2j: (-1.31695789692-1.57079632679j); cmath: (1.31695789692-1.57079632679j)

Ran 1592 tests in 11.484s

FAILED (KNOWNFAIL=3, failures=1)

Out[1]: <nose.result.TextTestResult run=1592 errors=0 failures=1>

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

python2,6

>>> numpy.__version__
'1.3.0.dev6173'

======================================================================
FAIL: test_umath.TestComplexFunctions.test_against_cmath
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/nwagner/local/lib64/python2.6/site-packages/nose-0.10.4-py2.6.egg/nose/case.py", line 182, in runTest
self.test(*self.arg)
File "/home/nwagner/local/lib64/python2.6/site-packages/numpy/core/tests/test_umath.py", line 423, in test_against_cmath
assert abs(a - b) < atol, "%s %s: %s; cmath: %s"%(fname,p,a,b)
AssertionError: arcsin 2: (1.57079632679-1.31695789692j); cmath: (1.57079632679+1.31695789692j)

>>> numpy.show_config()
atlas_threads_info:
libraries = ['lapack', 'ptf77blas', 'ptcblas', 'atlas']
library_dirs = ['/home/nwagner/src/ATLAS3.8.2/mybuild/lib']
language = f77
include_dirs = ['/home/nwagner/src/ATLAS3.8.2/include']

blas_opt_info:
libraries = ['ptf77blas', 'ptcblas', 'atlas']
library_dirs = ['/home/nwagner/src/ATLAS3.8.2/mybuild/lib']
define_macros = [('ATLAS_INFO', '"\\"3.8.2\\""')]
language = c
include_dirs = ['/home/nwagner/src/ATLAS3.8.2/include']

atlas_blas_threads_info:
libraries = ['ptf77blas', 'ptcblas', 'atlas']
library_dirs = ['/home/nwagner/src/ATLAS3.8.2/mybuild/lib']
language = c
include_dirs = ['/home/nwagner/src/ATLAS3.8.2/include']

lapack_opt_info:
libraries = ['lapack', 'ptf77blas', 'ptcblas', 'atlas']
library_dirs = ['/home/nwagner/src/ATLAS3.8.2/mybuild/lib']
define_macros = [('ATLAS_INFO', '"\\"3.8.2\\""')]
language = f77
include_dirs = ['/home/nwagner/src/ATLAS3.8.2/include']

lapack_mkl_info:
NOT AVAILABLE

blas_mkl_info:
NOT AVAILABLE

mkl_info:
NOT AVAILABLE
Issue 1:
Could you please provide official chart for your image.

The stable/airflow chart was created for image puckel/docker-airflow.

There are specific features in the puckel/docker-airflow entrypoint you don't have

such as

https://github.com/puckel/docker-airflow/blob/master/script/entrypoint.sh#L13

https://github.com/puckel/docker-airflow/blob/master/script/entrypoint.sh#L57

So your image won't work with stable/airflow correctly

Issue 2:
Apache Airflow version

2.6.2

What happened

I'm installing a python package that contains airflow.plugins.

For some reason when I run airflow plugins the plugins show duplicated twice.

This causes an issue loading blueprints:

ValueError: The name 'edit_run_conf' is already registered for this blueprint. Use 'name=' to provide a unique name.

Plugins are definitely being loaded only from python package. The plugins_dir is empty. Verified this also with DEBUG log.

[2023-07-05T14:14:56.911+0000] {plugins_manager.py:300} DEBUG - Loading plugins

[2023-07-05T14:14:56.911+0000] {plugins_manager.py:244} DEBUG - Loading plugins from directory: /airflow/plugins

[2023-07-05T14:14:56.912+0000] {plugins_manager.py:224} DEBUG - Loading plugins from entrypoints

[2023-07-05T14:14:56.920+0000] {plugins_manager.py:227} DEBUG - Importing entry_point plugin cron_display_timezone_plugin

[2023-07-05T14:14:56.921+0000] {plugins_manager.py:227} DEBUG - Importing entry_point plugin edit_runconf_plugin

[2023-07-05T14:14:56.992+0000] {plugins_manager.py:227} DEBUG - Importing entry_point plugin cron_display_timezone_plugin

[2023-07-05T14:14:56.993+0000] {plugins_manager.py:227} DEBUG - Importing entry_point plugin edit_runconf_plugin

Here is how the entrypoints look like in the python package:

./venv/lib/python3.9/site-packages/gr_airflow-0.0.3.dist-info/entry_points.txt

[airflow.plugins]
cron_display_timezone_plugin = gr_airflow.plugins.timezonetrigger.plugin:CronDisplayTimezonePlugin
edit_runconf_plugin = gr_airflow.plugins.edit_runconf.plugin:EditRunConfPlugin

Any one else having this issue?

What you think should happen instead

No response

How to reproduce

Install a package that contains plugin entry points in pyproject.toml

[project.entry-points."airflow.plugins"]
cron_display_timezone_plugin = "gr_airflow.plugins.timezonetrigger.plugin:CronDisplayTimezonePlugin"
edit_runconf_plugin = "gr_airflow.plugins.edit_runconf.plugin:EditRunConfPlugin"

Operating System

Centos 8

Versions of Apache Airflow Providers

No response

Deployment

Official Apache Airflow Helm Chart

Deployment details

No response

Anything else

No response

Are you willing to submit PR?

Yes I am willing to submit a PR!

Code of Conduct

I agree to follow this project's Code of Conduct
Issue 1:
Q
A

Bug report?
yes

Feature request?
no

BC Break report?
-

RFC?
-

Symfony version
3.4.x

First of all, sorry if it's not a bug, but it's worth creating an issue;

I've noticed that the profiler never shows the information about my pools in the right Request.

Facts:

The cache call are made on the main request.

Inside app, the menu is rendered via a {{ render(controller(...)) }} call so it triggers 1 subrequest. No cache calls were made on that subrequest.

After spending some time on understanding what was happening, I discovered that the data is showing on the profiler of the SUB REQUEST instead of the request itself.

to reproduce: https://github.com/tristanbes/symfony-cache-profiler-bug (ping @xabbuh)

cache pannel, where it should appear since the call were made on this request

cache pannel of the subrequest, where no cache calls were made

Thanks

Issue 2:
Q
A

Bug report?
yes

Feature request?
no

BC Break report?
no

RFC?
no

Symfony version
3.3.6

Empty symfony-standard project contains 5 cache calls in profile, but if I add simple render controller - the cache panel becomes empty (No cache calls were made.)

https://github.com/BoShurik/symfony-standard/commit/2b2a8c4935c1f751e9745ed7f9f24990e1826596