WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
I posted this question to Stack Overflow the other day and have gotten no responses:

In some systems, there are ways to hook in to write-ahead log changes as they happen. For example, in HBase one can write a coprocessor to stream WAL edits out of the database as they happen. A extensions for PostgreSQL exist that lets you do the same thing.

I've Googled and I've not found a way to harness the Elasticsearch translog. I've looked at the plugin APIs but not found anything that lets you get at the translog. Is there a way?

Issue 2:
The analyze api currently hangs when e.g. you refer to a custom analyzer and you forget to specify the index in the url. I remember from previous versions a nice "analyzer not found" error but that now (2.0) just hangs and the logs show:

[2015-12-02 15:27:46,621][ERROR][transport ] [Smart Alec] failed to handle exception for action [indices:admin/analyze[s]], handler [org.elasticsearch.action.support.single.shard.TransportSingleShardAction$AsyncSingleAction$1@41c75d23]
java.lang.NullPointerException
at org.elasticsearch.action.support.single.shard.TransportSingleShardAction$AsyncSingleAction.perform(TransportSingleShardAction.java:195)
at org.elasticsearch.action.support.single.shard.TransportSingleShardAction$AsyncSingleAction.access$700(TransportSingleShardAction.java:115)
at org.elasticsearch.action.support.single.shard.TransportSingleShardAction$AsyncSingleAction$1.handleException(TransportSingleShardAction.java:174)
at org.elasticsearch.transport.TransportService$DirectResponseChannel.processException(TransportService.java:821)
at org.elasticsearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:799)
at org.elasticsearch.transport.TransportService$4.onFailure(TransportService.java:361)
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:42)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Issue 1:
*I'm submitting a ... *

[x ] bug report

I have a datamodel where Danish characters are used e.g. 'ø'. This works fine in my components. When I try to bind to a model entity which contains a Danish character, I get an error though.

Lexer Error: Unexpected character [Ø] at column 7 in expression [testVarØ] ("
<div>
<h2>Hello {{name}}</h2>
<input [ERROR ->][(ngModel)]="testVarØ" type="text"/>
</div>
"): App@3:13
Lexer Error: Unexpected character [Ø] at column 7 in expression [testVarØ=$event] ("
<div>
<h2>Hello {{name}}</h2>
<input [ERROR ->][(ngModel)]="testVarØ" type="text"/>
</div>
"): App@3:13
at new BaseException (https://code.angularjs.org/2.0.0-beta.8/angular2.dev.js:7385:21)
at TemplateParser.parse (https://code.angularjs.org/2.0.0-beta.8/angular2.dev.js:24039:15)
at https://code.angularjs.org/2.0.0-beta.8/angular2.dev.js:24744:54
at Zone.run (https://code.angularjs.org/2.0.0-beta.8/angular2-polyfills.js:1243:24)
at Zone.run (https://code.angularjs.org/2.0.0-beta.8/angular2.dev.js:13456:32)
at zoneBoundFn (https://code.angularjs.org/2.0.0-beta.8/angular2-polyfills.js:1220:26)
at lib$es6$promise$$internal$$tryCatch (https://code.angularjs.org/2.0.0-beta.8/angular2-polyfills.js:468:17)
at lib$es6$promise$$internal$$invokeCallback (https://code.angularjs.org/2.0.0-beta.8/angular2-polyfills.js:480:18)
at lib$es6$promise$$internal$$publish (https://code.angularjs.org/2.0.0-beta.8/angular2-polyfills.js:451:12)
at https://code.angularjs.org/2.0.0-beta.8/angular2-polyfills.js:123:10

I have reproduced the problem here:

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

Angular version: 2.0.0-beta.8

Browser: [all ]

Language: [all]

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

When using async validators together with sync validators, the errors from sync validators have no effect, when async validator is resolved

Expected behavior

Even when an async validator resolves without errors, the validation errors of the sync validators (e.g. required) should be reported

Minimal reproduction of the problem with instructions

here is the plunker https://plnkr.co/edit/JOVCMycssT0c7vcZa6jZ

initially the input field is marked as invalid due to the required validator. When input is changed, the custom async validator kicks in. When the input is cleared, the async validator reports a success and this marks the field as valid.
Issue 1:
Version

2.6.4

Reproduction link

https://jsfiddle.net/mu4q63db/1/

Steps to reproduce

Select a period radio button

Hit Monthly and Daily back and forth

Sometimes maybe select a period radio button again

What is expected?

the v-model for period should always select a radio button when being rendered

What is actually happening?

Sometimes, no radio button will be selected even when the corresponding v-model variable (period_month) still has its previous value.

This is reproducible, but sometimes it can take a few clicks to get it to happen.

Issue 2:
Vue.js version

Most recent

Reproduction Link

https://jsfiddle.net/mo48q36L/

Each custom select element has a togglable option to represent an option that might change in real-world conditions. I want to prevent the value in vue and the value in the select element from being out of sync.

To do this, I compare the value of the select element and the value in vue in the updated lifecycle hook. If they're not equal, that means that the corresponding option no longer exists, so I want to simply set the value of both to be null.

Steps to reproduce

Click the "Toggle option" buttons below each custom select element, which will remove the currently selected element.

The top element (custom-select) does emit the null value, but the dom isn't updated until something else triggers a dom update. If vue devtools worked on jsfiddle, you would also be able to notice that the corresponding data value in the parent component is immediately updated after emitting null, but the value prop in the child component is not updated until the dom updates.

The bottom element (custom-select-next-tick) emits the null value in $nextTick, and the dom is updated in the next tick as it should be.

What is Expected?

I expect that emitting a new value in updated should trigger a new dom update.

The docs suggest that the dom will be updated by manipulating state in updated: https://vuejs.org/v2/api/#updated

What is actually happening?

Emitting a new value in updated is not triggering a dom update or v-model value change unless it's wrapped in $nextTick.

Thank you!
Issue 1:
nosetests is no longer maintained and contains deprecated code (inspect.getargspec). It might not keep working with future versions of python. Should we create a plan to move to py.tests?

Issue 2:
Describe the workflow you want to enable

Hi all,

I regularly have to estimate Ridge regressions with a large number of different targets and vastly different signal-to-noise ratios across targets. The optimal regularization per target therefore differs quite a lot. RidgeCV currently estimates the optimal regularization across all targets, which can lead to quite sub-optimal performance in the situation I describe.

Describe your proposed solution

Since RidgeCV evaluates every possible for every target anyway, one can easily get the best alpha per target as well - however, this does not work with GridSearchCV as is. I'm not sure what the best approach to change this would be - I assume it would be necessary to allow multiple scores for a Ridge estimator, as well as adapting ParameterGrid to allow arrays as an individual parameter.

This might warrant too many changes to the inner working of sklearn's model_selection for a use-case that's too specialized (it's hard for me to judge that).

If you think it's worth having this feature, I'm happy to tackle it and discuss what solution might be best.

Additional context

This problem arises frequently in neuroimaging, where people solve this by either writing their own gridsearch or using individual Ridge estimators per target, but I assume this is a common problem in other fields as well.
Issue 1:
When I perform the following:

# Import relevant libraries
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
%matplotlib inline

# set up the dataframe
ids = range(12)
surv = [0,0,1,1] * 3
fare = list(range(3, 3*13, 3))
sex = ['m', 'f', 'f', 'm'] * 3
emb = ['A'] * 4 +['B']*4 + ['C'] * 4
titles = ['id', 'Survived', 'Fare', 'Sex', 'Embarked']

data = pd.DataFrame(columns=titles)

data['id'] = ids
data['Survived'] = surv
data['Fare'] = fare
data['Sex'] =sex
data['Embarked'] = emb

# inspect the data - esp. values for fare and sex
data

# plot the data - here the bug manifests
grid = sns.FacetGrid(data, row='Embarked', col='Survived', size=2.2, aspect=1.6)
grid.map(sns.barplot, 'Sex', 'Fare', alpha=.5, ci=None)
grid.add_legend()

As you can see, the order of the 'm' and 'f' bars in the graphs in the first columns have been switched, even though the labels on the axes suggest otherwise.

Versions:

pandas : 0.19.2

seaborn : 0.7.1

matplotlib: 2.0.0

Issue 2:
The area method for calculating the width of boxenplot letter-value boxes is:

'area': lambda h, i, k: (1 - 2**(-k + i - 2)) / h}

in https://github.com/mwaskom/seaborn/blob/master/seaborn/categorical.py#L1890

IIUC, in order for the area to be proportional to the percentage of data covered, as documented (https://github.com/mwaskom/seaborn/blob/master/seaborn/categorical.py#L2672), the formula should rather be:

'area': lambda h, i, k: (1 - 2**(-k + i - 1)) / h}
Issue 1:
The second comparison crashes. Probably due to weird alignment.

tag modlist = [int];

fn main() {
let ml = modlist([]);
assert ml == modlist([]);
assert ml == modlist([]);
}

==27842== Thread 2:
==27842== Invalid read of size 8
==27842== at 0x50FA892: shape::ctxt<shape::data<shape::cmp, shape::ptr_pair> >::walk_vec0() (rust_shape.h:964)
==27842== by 0x50FA084: shape::ctxt<shape::data<shape::cmp, shape::ptr_pair> >::walk() (rust_shape.h:372)
==27842== by 0x50F6879: shape::cmp::walk_variant2(shape::tag_info&, unsigned long, std::pair<unsigned char const*, unsigned char const*>) (rust_shape.cpp:423)
==27842== by 0x50F6914: shape::cmp::walk_tag2(shape::tag_info&, shape::data_pair<unsigned long> const&) (rust_shape.h:955)
==27842== by 0x50F98E5: shape::data<shape::cmp, shape::ptr_pair>::walk_tag1(shape::tag_info&) (rust_shape.h:993)
==27842== by 0x50F9A8C: shape::ctxt<shape::data<shape::cmp, shape::ptr_pair> >::walk_tag0() (rust_shape.h:468)
==27842== by 0x50F9F6C: shape::ctxt<shape::data<shape::cmp, shape::ptr_pair> >::walk() (rust_shape.h:373)
==27842== by 0x50F6732: shape_cmp_type (rust_shape.cpp:542)
==27842== by 0x5101E48: ??? (in /home/brian/dev/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustc/x86_64-unknown-linux-gnu/lib/librustrt.so)
==27842== by 0x64A06AF: ???
==27842== by 0x64A5FEF: ???
==27842== by 0x533482F: ??? (in /home/brian/dev/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustc/x86_64-unknown-linux-gnu/lib/librustrt.so)
==27842== Address 0x100000000064ac1 is not stack'd, malloc'd or (recently) free'd

Issue 2:
Issue 1:
why?

Issue 2:
jQuery contains something along this lines:

if ( typeof module === "object" && typeof module.exports === "object" ) {
// set jQuery in `module`
} else {
// set jQuery in `window`
}

module is defined, even in the browser-side scripts. This causes jQuery to ignore the window object and use module, so the other scripts won't find $ nor jQuery in global scope..

I am not sure if this is a jQuery or atom-shell bug, but I wanted to put this on the web, so others won't search as long as I did.
Issue 1:
Hi, I am building a desktop app with Electron and I am using electron-prebuit in development.

My issue is that I would like to use the ⌘ + W shortcut (on my Mac)..

This does not happen in the built version of my app though. Happens only in development.

I mentioned this in electron-userland/electron-prebuilt#129, but I was prompted to mention in here actually.

Issue 2:
Electron version: 1.0.1

Operating system: OS X 10.11.2

After using electron-packager@7.0.1 cmd-w doesn't close windows on mac, you have to click the red circle to close the window. However, it works when you execute the app with electron .
Issue 1:
Challenge Name

Issue Description

Open Map and go to the Basic Algorithm Scripting.

Api and Microservices Project first challenge is also missing

Browser Information

Browser Name, Version: 55.0.2883.87 m

Operating System: Windows 10

Mobile, Desktop, or Tablet: Desktop

Screenshot

Issue 2:
For an example, see Challenge Record Collection.

You first describe a primary key for a particular collection of album data but and call it "its key"—which linguistically applies that key to the item and all its children.

Then you call something else a key altogether, without making the transition to refer to to the key for a specific child. That's equivocating on what you've already defined as "key" in context.

The vagueness and dropped transitions are linguistically sloppy and sabotage your stated target audience of newbies. As things stand, a person has to already know/understand at least some of the jargon and concepts in order to even understand what some of your lessons are trying to convey—and even then, what you're even asking for isn't always clear unless someone already knows what you're looking for, because you could mean multiple things.

For the record, this is not an uncommon problem, when experts are building something for beginners. Identifying and fixing this sort of linguistic issue = part of my day job.
Issue 1:
On a histogram with a single value repeated for 100 times I get an extra tiny box.

The code to reproduce the issue:

from matplotlib import pylab as plt
plt.hist([33]*100)
plt.show()

Here you can see a black line next to 32.6.

Matplolib: 1.5.1-1ubuntu1 (from repository), Python 2.7.12, Ubuntu 16.04.1

The same problem can be reproduced in python 3.5.2.

Issue 2:
There is a visualization glitch with matplotlib hist function.

Running this code on an ipython notebook:

from __future__ import print_function
import numpy as np
import scipy.stats as stats
import matplotlib.pyplot as plt
%matplotlib inline

tau = 10
N = 1000
exp_fraction = 0.1
N_exp = int(N*exp_fraction)

sample = stats.expon.rvs(0, tau, size=N_exp)
print(sample.shape, sample.mean(), sample.std())
plt.hist(sample, bins=np.arange(-10, 50, 4))
sample[sample < 0]

results in the following histogram:

figure

You can see the first bin (close to -10) is not exactly 0 even if sample has no negative values.
Issue 1:
Environment

Windows build number: 10.0.18363.0
Windows Terminal version (if applicable): 0.6.2951.0

Any other software? PowerShell 6.

PSVersionTable:
Name Value
---- -----
PSVersion 6.2.3
PSEdition Core
GitCommitId 6.2.3
OS Microsoft Windows 10.0.18363
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0

Steps to reproduce

The equals sign does not appear in certain operations in PowerShell core windows.

Typing: $a = 4 results in this:

They render normally as part of strings:

Expected behavior

The equals sign renders normally, as it does on non-pwsh Windows.

The same input in the Powershell tab works normally:

Additional Notes:

Changing the font settings appeared to have no effect. For reference, here is the entry for Powershell Core in my settings.json:

{
"guid": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
"hidden": false,
"name": "PowerShell Core",
"source": "Windows.Terminal.PowershellCore",
"colorScheme": "Solarized Dark",
"fontFace": "Cascadia Code",
"fontSize": 10,
"cursorShape": "bar"
}

Issue 2:
Description of the new feature/enhancement

The OS X Terminal has a setting for “Use bright colors for bold text”. If it is disabled I always get normal colors for bold text, which I have found to be quite useful for readability on a terminal with bright background (which I personally prefer).

I can of course change the color scheme, which solves the issue locally. However, when I connect to a Linux server with ssh, it has a color scheme of its own. (Which I can also change, but it would be more practical if the terminal were able to handle it.)

Perhaps some time after Windows Terminal is able to display actual bold text?
Issue 1:
I know there are already issues about it but they are all closed. I checked out the solution in this issue #3159 — which would have been ok for me to use.

But my investigation showed that next-js is actually not using the plugin anymore, hence atm there is not way of disabling the clearing at all.

Shouldn't there be an option in the next-js-config now since you implemented this feature into next-js itself?

Issue 2:
(There may be a way to do this currently, but after asking a few times on Spectrum and looking through the changes for adding Webpackbar I haven't found anything)

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

When running Next in something like docker-compose the refreshing output constantly clears and mangles the log output.

Describe the solution you'd like

I'd like a way to disable this so that log output is just a stream and not constantly rerendered.

Edit: This includes local development as well.
Issue 1:
Not sure if this is fixed on master, but on 0.4.3:

function ff()
gg(x,y)=1.0*(x==y)
xx=[(i,i) for i=1:2]
yy=xx'
broadcast(gg,xx,yy)
end

ff()

> ERROR: LoadError: MethodError: `convert` has no method matching
> convert(::Type{Tuple{Int64,Int64}}, ::Float64)

Issue 2:
With current 0.5 master:

julia> map(Float32, [3,4,5])
3-element Array{Float32,1}:
3.0
4.0
5.0

julia> broadcast(Float32, [3,4,5])
3-element Array{Int64,1}:
3
4
5

We presumably want to return a Float32 array in both cases?

cc: @ViralBShah: this affects the case you asked about in #8450, since my f.(x...) implementation in #15032 is equivalent to broadcast.
Issue 1:
When defining a route like this:

/foo/{param}

with a default value for param, you can omit the param and Symfony will match a URL like /foo. But it won't match /foo/.

Would it make sense to allow it? What are the consequences on BC?

Or do we need to introduce a special syntax for optional parameters:

/foo/{?param}

/foo{/?param}

see fabpot/Silex#485

Issue 2:
hey,

i stumbled upon this field option and think it's not the right way to solve it

http://symfony.com/doc/current/reference/forms/types/text.html#read-only

the docs say, that the read_only parameter renders the field with a disabled attribute. even if disabled is the favored method of setting the field "not-editable" the parameter should be called disabled because there actually is a readonly attribute since html4 and it allows some kind of interaction that a disabled field does not.

in my case i have a text input that is filled with a value by a colorpicker. the color picker is triggered by the user clicking on that field. in contrast to a readonly input a disabled input is not clickable.

this is not a blocker as the readonly attribute can still be created by adding it to the attr parameter. i guess its still confusing though.

kind regards (and thanks for creating this)

konrad
Issue 1:
Summary

We try request module with below code spinet

Our Proxy srver running on https

import requests
url = 'https://google.com'
roxies = {'https': '10.x.x.x:443'}
if __name__ == '__main__':
print(url)
print(roxies)
response = requests.get(url, proxies=roxies)
if response.status_code == 200:
print(response.text)
else:
print ('Response ERROR', response.status_code)

Same connection we tried from curl its working fine.

curl -v -x https://10.x.x.x:443 https://google.com

Expected Result

Request module should connect to proxy server over https

What you expected.

Request module should connect to proxy server over https

Actual Result

Request module giving following error while connecting to proxy server over https

OSError('Tunnel connection failed: 400 Bad Request')))

What happened instead.

Reproduction Steps

import requests

System Information

$ python -m requests.help

<paste here>

This command is only available on Requests v2.16.4 and greater. Otherwise,

please provide some basic information about your system (Python version,

operating system, &c).

Issue 2:
Hi,

I described it here:

http://stackoverflow.com/questions/20325571/python-requests-failing-over-integer-in-cookie

But basically this creates an error:

import requests
r = requests.get('http://www.c1000.nl/kies-uw-winkel.aspx')
...
File "/srv/www/li/venv/local/lib/python2.7/site-packages/requests/cookies.py", line 270, in set_cookie
if cookie.value.startswith('"') and cookie.value.endswith('"'):
AttributeError: 'int' object has no attribute 'startswith'

Is this a known issue? Is there any workaround? (i.e. do not parse cookies?)
Issue 1:
Hi all,

First of all let me say that i am just now exploring react and typescript. So as i was reading all about both ecosystems i found out about this great project, thank you all for making all these great definitions.

I'm starting a project where i also want to use react-router, but immediately found out while i was coding that the definitions for the react-router were wrong. I forked this repository to update the react-router.d.ts and as i was editing i realise that the react-router.d.ts relates to the 0.13 version of react-router. I want to contribute to this repository by updating react-router.d.ts definitions as i need them, but i find it wrong to overwrite the 0.13 version with 1.0 definitions. So, what to do? Should i create another file for the 1.0 version or overwrite the 0.13?

Thank you all!

Issue 2:
Upgrade guide:

https://github.com/rackt/react-router/blob/master/UPGRADE_GUIDE.md

Glossary:

https://github.com/rackt/react-router/blob/master/docs/Glossary.md
Issue 1:
Is there an existing issue for this?

I have searched the existing issues

This issue exists in the latest npm version

I am using the latest npm

Current Behavior

Running npm config set expands all environment variables in .npmrc, permanently.

The documentation says you can do this:

All npm config files are an ini-formatted list of key = value parameters. Environment variables can be replaced using ${VARIABLE_NAME}. For example:

prefix = ${HOME}/.npm-packages

However if you do this, it gets expanded permanently the first time you run npm config:

$ cat .npmrc
prefix = ${HOME}/.npm-packages
$ npm config set dummy=true --location=project
$ cat .npmrc
prefix = /home/example/.npm-packages
dummy=true

Expected Behavior

Environment variables in .npmrc should be left alone. They are often placeholders for things like authentication tokens for private repositories, so replacing them with the current value is undesirable and breaks functionality.

Steps To Reproduce

echo 'prefix = ${HOME}/.npm-packages' >> .npmrc

cat .npmrc

Confirm ${HOME} is contained in the file

npm config set dummy=true --location=project

cat .npmrc

Observe ${HOME} has been replaced with the current user's actual home directory.

Environment

npm: 8.18.0

Node.js: 18.4.0

OS Name: Arch Linux

Issue 2:
Is there an existing issue for this?

I have searched the existing issues

This issue exists in the latest npm version

I am using the latest npm

Current Behavior

I found that npm create <initializer> behaves the same way as npm init <initializer>, but there seems to be no mention of it in the documentation

Expected Behavior

To have Documentation

Steps To Reproduce

npm v8.3.0

Run npm create vue

It works fine. create-vue

Environment

npm: