WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Contrast: https://github.com/elastic/elasticsearch/blob/master/rest-api-spec/api/search.json#L160-L162

with (admittedly incomplete but not more so than your spec)

https://github.com/bitemyapp/bloodhound/blob/master/src/Database/Bloodhound/Types.hs#L536-L544

https://github.com/bitemyapp/bloodhound/blob/master/src/Database/Bloodhound/Types.hs#L601-L629

https://github.com/bitemyapp/bloodhound/blob/master/src/Database/Bloodhound/Types.hs#L823-L832

https://github.com/bitemyapp/bloodhound/blob/master/src/Database/Bloodhound/Types.hs#L1729-L1742

People are using Bloodhound in production.

I would suggest that a more complete spec is needed to assist client library authors, but I know how annoying maintaining documentation is. Given that, consider that Bloodhound (which has tests) can be tested against Elasticsearch to ensure spec correctness. Have you considered making an explicit spec via a client library in a language with explicit datatypes that was high enough level to make it usable for a casual reader?

Part of what exacerbates the situation with the spec is that your docs do not show complete or working examples, they show fragments of the complete JSON document that would be required to work, the reader is expected to

Know this

Manually inject the fragment you're showing them into the rest of the structure which is not well explained or connected to the individual doc page they're on

The problems with 1 and 2 are compounded by the fact that it's extremely easy to get the JSON structure wrong, then you are now faced with the prospect of making fiddly little changes to the JSON over and over until works.

Thus, datatypes that take care of the JSON for you.

The primary complaints I hear from people about Elasticsearch are the docs & API. It makes what is otherwise a very useful product considerably more frustrating to use than it needs to be.

Issue 2:
Requests/queries/etc currently have custom parsers, which make it more difficult to be certain that they are error free. We should replace all this hand parsing with some form of grammar, which defines exactly what syntax is allowed. This will also benefit those implementing clients, as they will have a grammar that can be interrogated programmatically.

Any unknown parameters should throw a parsing exception.

We can add custom rules where needed (eg to disallow certain combinations of parameters like using fuzzy in the multi_match query with type cross_fields).
Issue 1:
Original report at SourceForge, opened Tue Jan 4 04:52:13 2011

If the boxplot is called with a small number of discrete, not unique values it shows a different median value than the median command. I consider this a bug.

How to reproduce:

example data

d = array([ 13., 9., 16., 8., 7., 14., 15., 5., 10., 16., 8., 15., 14., 19., 10., 10.], dtype=float32)

q1, med, q3 = mlab.prctile(d,[25,50,75]) # axes.py line 5005 axes.py (0.99.3 Rev 8345)

med_default = median(d) # for comparison

print((med,med_default)) # med = 13.0 med_default = 11.5

In the example I took the line in axes.py where the median value is computed and compare to a median directly computed. In my opinion the boxplot should use the median function to determine the median such that the same value is reported. I think the reason is in the different handling of equal values of prctile and median.

Anyway: Here is how to fix it:

Replace line 5005 with:

q1, q3 = mlab.prctile(d,[25,75])

And add a new line directly after it (new 5006):

med = np.median(d)

SourceForge Comments

On Thu Jan 13 04:42:32 2011, jmdb wrote:

And to add another point: matlab reports 8.5 for q1.

On Thu Jan 13 04:37:33 2011, jmdb wrote:

In addition: if one also computes:

from scipy import stats

stats.scoreatpercentile(d,25)

results in 8.75 while q1 from the example (which should be the same) is 9.0

I think either the mlab.prctle function should be fixed or be replaced by the function from the stats package.

On Tue Jan 4 05:03:55 2011, jmdb wrote:

Seems like this is also discussed here: http://permalink.gmane.org/gmane.comp.python.matplotlib.general/25835

I can add that the median function agrees with f.ex. matlab while the prctile function gives different results.

Issue 2:
Bug report

Bug summary

Triangulation misses data points when data is far from the origin (eg example attached is in terms of a projection coordinate system with a false origin).

Code for reproduction

import numpy as np
import matplotlib.pyplot as plt
import matplotlib.tri as tri

data=np.loadtxt('tricont.dat')
print data.shape
x=data[:,0]
y=data[:,1]
t=tri.Triangulation(x,y)
plt.triplot(t)
plt.plot(x,y,'k+')
plt.show()
x -= (x.min()+x.max())/2.0
y -= (y.min()+y.max())/2.0
t=tri.Triangulation(x,y)
plt.triplot(t)
plt.plot(x,y,'k+')
plt.show()

Data in: tricont.zip

Actual outcome

Triangulation misses most data points

Expected outcome

Triangulation includes all data points

Matplotlib version

Seen in version 1.5.1 and higher.

Not seen in version 1.3.1

Operating System: Ubuntu 16.04

Matplotlib Version: 1.5.1

Python Version: 2.7.12

Jupyter Version (if applicable):

Other Libraries:

Installed from Ubuntu package repository
Issue 1:
Issue originally reported by @nicolo-ribaudo in babel/babylon#591

Input Code

(a, a) => b

Expected Behavior

Babylon should throw something like Argument name clash in arrow function

Current Behavior

Argument name clash in strict mode (even if that code is not in strict mode)

Your Environment

software
version

Babylon
7.0.0-beta.14, 6.25.0

Issue 2:
browserslist provides a way for projects to describe the browsers they need to support which is then used by tools like Autoprefixer to generate the appropriate CSS for that set of browsers.

6to5 could use this metadata + caniusedb to selectively transpile features based on browser support.
Issue 1:
#858 FancyZones

Windows build number: Microsoft Windows [Version 10.0.18363.476]
PowerToys version: 0.14.0.0
PowerToy module for which you are reporting the bug (if applicable):Fancy Zones

Steps to reproduce

Snap Explorer.exe to a new zone, eventually the files and folders stop showing up. Sometimes the toolbar disappears. Happens to 3rd party tools such as explore++ as well. The hidden files and folders does not happen if the file explorer window is not snapped to a "fancy zone".

Expected behavior

Powertoys 0.13.0.0 does not exhibit the hiding behavior in explorer.exe, you can always see your files and folders regardless of snap position / screen.

Actual behavior

Hidden files and folders in file explorer making selecting a file impossible.

Screenshots

Unsnapped

Fancy Zone 0.14.0.0 - Snapped to zone.

Issue 2:
Environment

Windows build number:[Version 10.0.19033.1]

PowerToys version: 14

Only with/since version 14!

Steps to reproduce

open powertoys

open Outlook Office 365 MSO (16.0.12130)

Expected behavior

Outlooks open

Actual behavior

outlooks hang on a black screen and several (unknown) windows are open in Taskmanager but are not really visible

beaviour reproducible

Kill outlook, exit Powertoys an reopen Outlook => Outlook open correct

Close outlook, start Powertoys, reopen Outlook => Outlook can't start
Issue 1:
See Plunker and select its Launch the preview in a separate window in order to see resulting url:

['/Parent', {}, 'Child']">/Parent', {}, 'Child'] raises runtime error during application start

['/Parent2', {par:1, w:0, x:1}, 'Child2', {id:2, y:10, z:11}] produces this url: #/parent2/1/child2/2;y=10;z=11?w=0&x=1, with some incostincency in processing extra parent-child attributes. I can expect #/parent2/1/child2/2?y=10&z=11&w=0&x=1

Issue 2:
Using the routerLink directive as documented here.

<a [routerLink]="['Hub', {}, 'Child']">Hub/Child</a>

It results in a SyntaxError:

dom_element_schema_registry.ts:43 EXCEPTION: SyntaxError: Unexpected token )

This only happens if the parameter 'object' is left empty.

<a [routerLink]="['Hub', {something: 333}, 'Child']">Hub/Child</a> -- Works
<a [routerLink]="['Hub', 'Child']">Hub/Child</a> -- Works
<a [routerLink]="['Hub', {}, 'Child']">Hub</a> -- Fails
<a [routerLink]="['Hub', {}]">Hub</a> -- Fails
Issue 1:
Issue Type: Bug report

Ansible Version: 1.6.6

Environment: OS X 10.9.4

Summary: Duplicate entires in output

Steps To Reproduce: Used "when" conditional for variable

Expected Results: For ansible to be able to parse and act upon result of testing variable

Actual Results: Duplicate info in error message:

ERROR: Syntax Error while loading YAML script, roundcube.yml

Note: The error may actually appear before this position: line 129, column 28

command: /usr/sbin/setsebool -P httpd_can_network_connect_db 1
when: "{{rc_db_host}}" == "localhost"
^

We could be wrong, but this one looks like it might be an issue with

unbalanced quotes. If starting a value with a quote, make sure the

line ends with the same set of quotes. For instance this arbitrary

example:

foo: "bad" "wolf"

Could be written as:

foo: '"bad" "wolf"'

We could be wrong, but this one looks like it might be an issue with

missing quotes. Always quote template expression brackets when they

start a value. For instance:

with_items:
- {{ foo }}

Should be written as:

with_items:
- "{{ foo }}"

We could be wrong, but this one looks like it might be an issue with

unbalanced quotes. If starting a value with a quote, make sure the

line ends with the same set of quotes. For instance this arbitrary

example:

foo: "bad" "wolf"

Could be written as:

foo: '"bad" "wolf"'

Issue 2:
The user module uses a list operation (extend) on a set, which causes ansible to crash (stacktrace). I will create a pull request.
Issue 1:
I use the following command to run my scripts:

deno run --watch --allow-net --allow-env --allow-read --unstable ./src/index.ts

// index.ts
Deno.serve(opts, (req) => {
return new Response()
})

Whenever I change the code in that file, I will get an error like this:

error: Uncaught (in promise) AddrInUse: Address already in use (os error 48)
Watcher Process finished. Restarting on file change...

Which does not happen for the std/http api

Issue 2:
Deno.serve(() => new Response("Hello, world!"));

$ deno run --allow-all --unstable --watch test.js

Deno.serve(() => new Response("Hello, world!2")); //Save

Platform: linux x86_64
Version: 1.25.0
Args: ["deno", "run", "--allow-all", "--unstable", "--watch", "test.js"]

thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', ext/flash/lib.rs:1316:42
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Issue 1:
Code Sample, a copy-pastable example if possible

a = pd.DataFrame({
'ID': [1, 1, 2, 2],
'GENDER': ['male', 'male', 'female', 'female'],
})

a.GENDER = a.GENDER.astype('category')

a.groupby('ID').last().GENDER

Output

ID
1 male
2 female
Name: GENDER, dtype: object

Problem description

I would expect that categoricals are preserved by such transformations. At best, the transformation returns an updated categorical if some categories are missing in the process.

Expected output

ID
1 male
2 female
Name: GENDER, dtype: category
Categories (2, object): [female, male]

Output of pd.show_versions()

INSTALLED VERSIONS

commit: None

python: 3.6.3.final.0

python-bits: 64

OS: Windows

OS-release: 10

machine: AMD64

processor: Intel64 Family 6 Model 69 Stepping 1, GenuineIntel

byteorder: little

LC_ALL: None

LANG: None

LOCALE: None.None

pandas: 0.21.0

pytest: 3.2.1

pip: 9.0.1

setuptools: 36.5.0.post20170921

Cython: 0.26.1

numpy: 1.13.3

scipy: 0.19.1

pyarrow: None

xarray: None

IPython: 6.1.0

sphinx: 1.6.3

patsy: 0.4.1

dateutil: 2.6.1

pytz: 2017.3

blosc: None

bottleneck: 1.2.1

tables: 3.4.2

numexpr: 2.6.2

feather: None

matplotlib: 2.1.0

openpyxl: 2.4.8

xlrd: 1.1.0

xlwt: 1.3.0

xlsxwriter: 1.0.2

lxml: 4.1.0

bs4: 4.6.0

html5lib: 0.999999999

sqlalchemy: 1.1.13

pymysql: None

psycopg2: None

jinja2: 2.9.6

s3fs: None

fastparquet: None

pandas_gbq: None

pandas_datareader: None

Issue 2:
Code Sample, a copy-pastable example if possible

# Your code here

In [1]: df=pd.DataFrame(dict(payload=[-1,-2,-1,-2], col=pd.Categorical(["foo", "bar", "bar", "qux"], ordered=True)));df
Out[1]:
col payload
0 foo -1
1 bar -2
2 bar -1
3 qux -2

In [2]: df.groupby("payload").first().col.dtype
Out[2]: dtype('O')

Problem description

Grouping shouldn't coerce a categorical into object. Categorical dtypes should be preserved as long as possible for efficiency and correctness.

Expected Output

The result dtype should be CategoricalDtype(categories=['bar', 'foo', 'qux'], ordered=True), just like it is here:

In [6]: df.groupby("payload").head().col.dtype
Out[6]: CategoricalDtype(categories=['bar', 'foo', 'qux'], ordered=True

#### Output of ``pd.show_versions()``

<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.4.3.final.0
python-bits: 64
OS: Linux
OS-release: 4.4.0-98-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8

pandas: 0.21.0
pytest: 3.2.5
pip: 9.0.1
setuptools: 36.5.0
Cython: 0.20.1post0
numpy: 1.13.3
scipy: 0.13.3
pyarrow: None
xarray: 0.9.6
IPython: 6.2.0
sphinx: None
patsy: None
dateutil: 2.6.1
pytz: 2017.3
blosc: None
bottleneck: None
tables: 3.1.1
numexpr: 2.6.4
feather: None
matplotlib: 1.3.1
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: 4.2.1
html5lib: 0.999
sqlalchemy: 0.8.4
pymysql: None
psycopg2: None
jinja2: 2.7.2
s3fs: 0.1.2
fastparquet: None
pandas_gbq: None
pandas_datareader: None
[paste the output of ``pd.show_versions()`` here below this line]

</details>
Issue 1:
Challenge update-the-height-of-an-element-dynamically has an issue.

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

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

One key bug I am noticing on the beta is that it doesnt reset variables for every iteration you test so it faults every time unless you define a new variable for each iteration.

<style>
.bar {
width: 25px;
height: 100px;
display: inline-block;
background-color: blue;
}
</style>
<body>
<script>
const dataset = [12, 31, 22, 17, 25, 18, 29, 14, 9];

d3.select("body").selectAll("div")
.data(dataset)
.enter()
.append("div")
.attr("class", "bar")
// Add your code below this line

// Add your code above this line
</script>
</body>

Issue 2:
Challenge http://freecodecamp.com/challenges/waypoint-use-clockwise-notation-to-specify-the-margin-of-an-element has an issue.

Just thought the instructions at the end would benefit from being a bit more specific to prevent the camper having to look at the tests. Something like:

"Use Clockwise Notation to give the element with a class of green-box a margin of 40px on its top and left side, but only 20px on its bottom and right side."
Issue 1:
Current Behavior:

When using npm version from-git, the command should not fail.

Expected Behavior:

The command fails, because it tries to create a git tag (which already exists)

Steps To Reproduce:

npm i -g npm@7
mkdir foo && cd foo
git init .
npm init -y
git add package.json
git commit -m 'initial commit'
git tag -m 1.0.1 v1.0.1
npm version from-git

npm ERR! code 128
npm ERR! command failed
npm ERR! command /usr/bin/git tag -m 1.0.1 v1.0.1
npm ERR! fatal: tag 'v5.0.0' already exists

npm ERR! A complete log of this run can be found in:

Environment:

Node: 15.0.1

npm: 7.6.3

Issue 2:
I have found many and many issues related to this breaking change:

#4589

#4095

#3773

#3110

Giving that there is no workaround to this except changing the directory permissions before running a command (that looks awful) could someone consider adding a flag to npm command or/and npm config that allows to override this?

The change is explained here

cc @wraithgar @ruyadorno @lukekarrys @fritzy

I can consider creating a PR if you agree with this
Issue 1:
Hello,

when import tensorflow it will output some info which is boring to me , how to disable this dispaly without compile again? set CUDA_VISIBLE_DEVICES seems no work.

In [1]: import tensorflow as tf;
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcublas.so.7.5 locally
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcudnn.so.5.1 locally
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcufft.so.7.5 locally
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcuda.so.1 locally
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcurand.so.7.5 locally

thanks

Issue 2:
I am using TF 0.6.0 with python 2.7.10 on both ubuntu linux and osx 10.9.5. TF base functionality is working fine. The issue is logging - I want to suppress the following messages that are emitted whenever I construct the first tensorflow Session:

I tensorflow/core/common_runtime/local_device.cc:40] Local device intra op parallelism threads: 2

I tensorflow/core/common_runtime/direct_session.cc:58] Direct session inter op parallelism threads: 2

They do not appear to be transmitted through the normal python logging mechanism. Any ideas? Did I just miss something?

I don't want to turn off all log messages, I just want TF to stop generating these two specific messages - and perhaps if you can tell me how to turn off all INFO messages from this particular (seemingly non-pythonic) source, that would be fine too.
Issue 1:
Hi,

I am a student and I can not install and use Atom since I do not have root access on any school computer.

Is there a way to download directly a binary like Sublime Text?

This could be also useful for anyone that would like Atom on a thumb drive.

May be this join #2939

Issue 2:
I don’t really stick to one computer to program, and some computers don’t have editors. Currently I use Sublime Text portable, but it would be great if there was a portable version of Atom.
Issue 1:
VSCode Version:1.2

OS Version:win10 10240

Steps to Reproduce:

ctrl+`

terminal doesn't have scrollbar (not working on my laptop except mouse scroll)

Issue 2:
VSCode Version: 0.10.11

OS Version: Win 7 , SP 1

Steps to Reproduce:

Assume you have a document with the following lines:

// 1

// 2

// 3

Open search window (ctrl+f) and activate search with regex ( alt+R)

type in search box : //\s1

Expected Result : One match

add \n or \r to the end of search regex (now search regex will be : //\s1(\n|\r)

Bug: No Result!!
Issue 1:
Shouldn't below code give me red squiggles on the duplicate overloaded signature?

function f(a: string, b: number): boolean;
function f(a: string, b: number): boolean;
function f(a: string, b?: string | number, c?: string): boolean {
return true;
}

Issue 2:
interface A {
a();
a();
a();
}

Expected:

file.ts(2,5): error TSxxxx: Duplicate overload signature for 'a'.
file.ts(3,5): error TSxxxx: Duplicate overload signature for 'a'.
file.ts(4,5): error TSxxxx: Duplicate overload signature for 'a'.

Actual:

(no error)

Apparently the following also gives no error:

function f();
function f();
function f() {
}
Issue 1:
According to https://firebase.google.com/docs/auth/admin/custom-claims#propagate_custom_claims_to_the_client one can update the claims locally by calling currentUser.getIdToken(true).

In flutter I guess one should be able to do the same with:

final user = await FirebaseAuth.instance.currentUser();
await user.getIdToken(refresh: true);

Sadly this seems not reflected when I try to use firestore. After updating claims through a cloud function and then calling getIdToken as above it will still not have the claims correct in firestore rules. It returns "PERMISSION_DENIED". When I then close the app and reopen the app, firestore rules go through correctly though (seems like claims then get updated).

Additional problem is, that I can not see if the claims locally got updated or not because the API for that is not yet implemented (see separate issue #20238).

Now the issue is: How can force propagation of the claims in flutter? The way the documentation says seems not to be correct. Is this a bug in the documentation or a bug in the flutter client?

flutter: v0.8.2

cloud_firestore: 0.8.1

firebase_auth: 0.5.20

Edit

After further investigations it seems to only be happening on Android. On iOS the claims seem to be updated nicely (seems to work even without calling getIdToken() ). So this problem seems Android specific.

Issue 2:
Hi community, I don't know if it's the right place to ask this. I use firebase for authenticating my users and I really need access to custom claims to have different behaviors in my applications based on some informations inside the custom claims.

The doc https://firebase.google.com/docs/auth/admin/custom-claims provides example for android, I've looked into the firebase_auth doc and code and found nothing related.

In my opinion it's a really important feature, maybe I've missed something somewhere, if it's the case I'm sorry.
Issue 1:
I'm hoping to utilize the storageState functionality discussed here: https://playwright.dev/docs/auth#session-storage

I want to log in once, store the state in a json file, and then use it for all subsequent tests in a spec.

The problem is that the login credentials json / state info is only valid in our application for a few hours. It will then fail to login in when I try to use it.

As a result, I cannot just store it in a hard coded manner indefinitely. I need an initial test to log in, save the storageState to JSON, and then for my tests to use it.

The page linked above refers to this flow but provides no working example:

Logging in via the UI and then reusing authentication state can be combined to implement login once and run multiple scenarios. The lifecycle looks like:

Run tests (for example, with npm run test).
Login via UI and retrieve authentication state.
In Jest, this can be executed in globalSetup.
In each test, load authentication state in beforeEach or beforeAll step.
This approach will also work in CI environments, since it does not rely on any external state.

Could some example code be added? How do you implement it so an initial log in test will always run first, store the data, and then let all tests use it?

Issue 2:
Do you support any version of Internet Explorer?