WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Updated to 0.189 and i see this :

there is one garbage char on the left side of each line number.

Issue 2:
Since the last update Atom is displaying what seems to be a control character on empty rows as well as in front of single row numbers. I am using this font in Atom for a long time and this only started showing recently / in the last version. Other fonts seem to have an empty symbol in place for this.
Issue 1:
I have a hard time replicating this issue since it will require me filling up the disk again, but in a nutshell the problem is that when I edit a file in Atom, if the disk space is not enough to save it, I find that the file content is erased.

This happened to me more than once (yeah I need more Gbs of disk space) so I can certify that it is Atom the one causing the issue. The issue appears whenever I edit the file, not when I just open it. The problem is not that Atom is not being able to save the file (that would make sense if there is no disk space available), the problem is that Atom removes all the content, and of course I'm afterwards not able to recover it.

I have no clue of why may this be happening

Issue 2:
Copying code from another source and pasting into an untitled doc causes Atom to crash with no error message. Still happening after restart.

Running Xubuntu 14.04
Issue 1:
Q
A

Bug report?
yes

Feature request?
no

BC Break report?
no

RFC?
yes/no

Symfony version
3.2.2

When executing a command which throws a null error the isSuccessFul() method of Symfony\Component\Process\Process returns true.

For example, when executing the following command:

class FailingCronCommand extends ContainerAwareCommand
{

protected function configure()
{
$this->setName('command:fail');
}

protected function execute(InputInterface $input, OutputInterface $output)
{
$testNull = null;
// throw new \Exception('FAIL');
if ($testNull->getName() === null) {
// never gets here because $testNull is null and trying getName() throws an error
}
}
}

using the following code:

/**
* $console contains the full path to bin/console
* @var Symfony\Component\Process\Process $process
*/
$process = new Process('php ' .self::$console. ' command:fail');
$process->run();
$process->isSuccessful(); // returns true
$process->getExitCode(); // returns 0 (OK)
$process->getErrorOutput();
/**
[Symfony\Component\Debug\Exception\FatalThrowableError]
Call to a member function getName() on null
**/

When throwing a custom exception in command:fail the process I get the following output:

$process->isSuccessful(); // returns false
$process->getExitCode(); // returns 1 (general error)

I also tried setting the "suppress_errors" option to false, but that did not seem to make any difference.

Issue 2:
Given an new symfony 3.2 project, with this simple Command :

<?php
namespace AppBundle\Command;

use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

class DemoCommand extends Command
{
protected function configure()
{
$this->setName('app:demo');
}

protected function execute(InputInterface $input, OutputInterface $output)
{
$input->checkYourself();
}
}

Running under PHP 5.6.24 :

bin/console app:demo
[output an UndefinedMethodException]
echo $?
255

Running under PHP 7.0.8 :

bin/console app:demo
[output an UndefinedMethodException]
echo $?
0
Issue 1:
Describe the bug

With the new version 1.4.0 the call engine.dialect.has_table fails for sqlite. This didn't happen in the previous version 1.3.23.

Note

Starting with version 1.4.0 it's recommended to use

sqlalchemy.inspect(engine).has_table(table_name)

this works OK.

This call

engine.has_table(table_name)

also works fine.

Expected behavior

This should not fail.

To Reproduce

Here's a self-contained example:

# check_table.py
import os
import sqlite3

import sqlalchemy

table_name = "test_table"
db_name = "example.db"

# Create a temporary SQLite database
if os.path.exists(db_name):
os.remove(db_name)
con = sqlite3.connect("example.db")
cur = con.cursor()
cur.execute(f"CREATE TABLE {table_name} (name TEXT)")
con.commit()
con.close()

# Create an engine and check if the table exists
engine = sqlalchemy.create_engine(f"sqlite:///{db_name}")
print(f"Does the table {table_name} exist:", engine.dialect.has_table(engine, table_name))

# Remove the temporary SQLite database
os.remove(db_name)

pip install sqlalchemy==1.4.0
python check_table.py

Error

Traceback (most recent call last):
File "check_table.py", line 21, in <module>
print(f"Does the table {table_name} exist:", engine.dialect.has_table(engine, table_name))
File "/Users/me/venv/lib/python3.8/site-packages/sqlalchemy/dialects/sqlite/base.py", line 1998, in has_table
info = self._get_table_pragma(
File "/Users/me/venv/lib/python3.8/site-packages/sqlalchemy/dialects/sqlite/base.py", line 2520, in _get_table_pragma
cursor = connection.exec_driver_sql(statement)
AttributeError: 'Engine' object has no attribute 'exec_driver_sql'

Versions

OS: macOS Catalina 10.15.7

Python: 3.8.6

SQLAlchemy: 1.4.0

Database: SQLite

DBAPI: sqlite

Issue 2:
Describe the bug

This code

import sqlalchemy

print(sqlalchemy.__version__)
engine = sqlalchemy.create_engine('sqlite://')
# this works on 1.3.20
engine.dialect.has_table(engine, 'mytable')

Raises the following exception:

% python bug.py
1.4.0b1
Traceback (most recent call last):
File "bug.py", line 6, in <module>
engine.dialect.has_table(engine, 'mytable')
File "/Users/gbrown/.virtualenvs/foo/lib/python3.8/site-packages/sqlalchemy/dialects/sqlite/base.py", line 1650, in has_table
info = self._get_table_pragma(
File "/Users/gbrown/.virtualenvs/foo/lib/python3.8/site-packages/sqlalchemy/dialects/sqlite/base.py", line 2172, in _get_table_pragma
cursor = connection.exec_driver_sql(statement)
AttributeError: 'Engine' object has no attribute 'exec_driver_sql'

Expected behavior

I expected it to return False with no traceback as it used to under 1.3.20.

To Reproduce

See bug description above.

Versions.

OS: macOS Catalina

Python: 3.8.6

SQLAlchemy: 1.4.0b1

Database: SQLite

DBAPI:

Additional context

Maybe I should have been using engine.has_table('mytable') and I see that is being deprecated. I know how to fix my code to avoid this. I just registering as an FYI. Thanks.

Have a nice day!

You too. Cheers.
Issue 1:
As a rule of thumb, naming conventions should always include some kind of a package/namespace/prefix/suffix to indicate which plugin objects belong to.

In this case, there was none of that and ".modal" was used which is now causing a conflict when you use any other plugins with the same name which, in this case, happens to occur quite often.

Issue 2:
http://jsfiddle.net/colllin/jZUbB/

Unless I'm using it incorrectly... sorry for the bad news :)
Issue 1:
Description

Just like the author of #731, I don't want a 307 temporary redirect which is automatically sent by uvicorn when there's a missing trailing slash in the api call. However, the solution given in that issue, i.e. route path like "/?" no longer works in the versions after this April as reported in in #1787, #1648 and else. Certain developers states this is an unexpected behavior and won't be supported in the future. In this case, I'm wondering what is the current elegant way to realize this. Or there's any way to handle both "" and "/" two paths simultaneously?

Issue 2:
First check

I added a very descriptive title to this issue.

I used the GitHub search to find a similar issue and didn't find it.

I searched the FastAPI documentation, with the integrated search.

I already searched in Google "How to X in FastAPI" and didn't find any information.

I already read and followed all the tutorial in the docs and didn't find an answer.

I already checked if it is not related to FastAPI but to Pydantic.

I already checked if it is not related to FastAPI but to Swagger UI.

I already checked if it is not related to FastAPI but to ReDoc.

After submitting this, I commit to one of:

Read open issues with questions until I find 2 issues where I can help someone and add a comment to help there.

I already hit the "watch" button in this repository to receive notifications and I commit to help at least 2 people that ask questions in the future.

Implement a Pull Request for a confirmed bug.

Example

Here's a self-contained, example with my use case. :

from fastapi import FastAPI

app = FastAPI()

@app.post("/{name}")
def read_root(name):
"""
Some descriptive doc-string
"""
return f"Hello {name}"

Description

Open the browser and call the endpoint /.

Navigate to the /docs

note that swagger can allow you to set examples for the query param, but there is no obvious way to do this with swagger docs generated from fast api.

Environment

osx, plus from pip freeze:

certifi==2020.12.5
click==7.1.2
fastapi==0.63.0
h11==0.12.0
pydantic==1.8
starlette==0.13.6
typing-extensions==3.7.4.3
uvicorn==0.13.4

Python version: 3.8

Additional context

Is there some pattern with pydoc or something with setting examples that I am mising? or with pydantic?

I would like to be able to use the swagger docs for some endpoint development, so it would be great to be able to use swagger to remember an example UUID for example, so speed up the tests, and let me skip duplicating all the endpoints to postman.
Issue 1:
Deno.bench(function a() {

});

Deno.bench(function b() {
});

xxx@xxx xxx % deno bench
Check file:///Users/xxx/WebstormProjects/radash/main_bench.ts
cpu: Apple M1 Pro
runtime: deno 1.29.1 (aarch64-apple-darwin)

file:///Users/xxx/WebstormProjects/xxx/main_bench.ts
benchmark time (avg) (min … max) p75 p99 p995
------------------------------------------------- -----------------------------
a 504.73 ps/iter (458.3 ps … 10.54 ns) 500 ps 654.2 ps 1.22 ns
b 4.2 ns/iter (4.08 ns … 16.21 ns) 4.23 ns 4.99 ns 7.39 ns

After adding the same code into a and b.

import { draw } from 'npm:radash';

Deno.bench(function a() {
draw(['test', '123', 'fff', 'ggg']);
});

Deno.bench(function b() {
draw(['test', '123', 'fff', 'ggg']);
});

xxx@xxx xxx % deno bench
Check file:///Users/xxx/WebstormProjects/xxx/main_bench.ts
cpu: Apple M1 Pro
runtime: deno 1.29.1 (aarch64-apple-darwin)

file:///Users/xxx/WebstormProjects/xxx/main_bench.ts
benchmark time (avg) (min … max) p75 p99 p995
------------------------------------------------- -----------------------------
a 7.56 ns/iter (6.8 ns … 92.49 ns) 7.48 ns 14.83 ns 16.84 ns
b 27.21 ns/iter (24.8 ns … 64.18 ns) 27.06 ns 42.39 ns 44.32 ns

Issue 2:
Hello,

I've a behavior in Deno.bench that I cannot explain :

Deno.bench("noop", () => {});
Deno.bench("noop", () => {});
Deno.bench("noop", () => {});

❯ deno bench --unstable noop.ts
cpu: Apple M1
runtime: deno 1.23.3 (aarch64-apple-darwin)

benchmark time (avg) (min … max) p75 p99 p995
------------------------------------------------- -----------------------------
noop 490.06 ps/iter (466.6 ps … 47.63 ns) 479.2 ps 516.7 ps 529.1 ps
noop 4.29 ns/iter (4.12 ns … 32.86 ns) 4.22 ns 4.67 ns 5.38 ns
noop 4.22 ns/iter (4.12 ns … 33.54 ns) 4.23 ns 4.58 ns 4.79 ns

Easy to say that second and third results are close and are explained by CPU activity, but why the first is ~10x faster ?

Maybe something like "reset" job between them, that are not executed for the first, but, in this case, is it possible to execute this "reset" before the first job too, to be consistent ? Or just don't monitor them ?

Best regards,

Gaël
Issue 1:
Okay, at risk of looking like a fool, I thought I would turn here for help. Using the versions of several popular javascript libraries below, I am attempting to run some basic tests to see if atom-shell would be useful to me.

Versions

atom-shell: 0.12.3

angularjs: 1.3.0

bootstrap: 3.1.1

d3js: 3.4.6

jquery: 2.1.1

The problem is that I'm receiving two javascript errors and the page isn't loading. The javascript errors are:

Uncaught Error: Bootstrap's JavaScript requires jQuery

Uncaught ReferenceError: d3 is not defined

I have the javascript files organized in to a "lib" directory under my app directory in resources, see index.html in the gist below for details. I assume you can download the relevant versions above and recreate the structure without my having to include these very common libs in the gist.

I'm attempting to recreate the following d3.js example: http://bl.ocks.org/mbostock/3943967

And here is the gist: https://gist.github.com/johningle/32d66f9751ebb9ec6f6a

Is anyone else experiencing this issue or am I just being a noob?

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:
The .col-md class is not present in precompiled build.

Issue 2:
When using the customizer, I made the following change:

@font-family-sans-serif - Lato, 'Helvetica Neue', Helvetica, Arial, sans-serif

Left everything else as default and downloaded it. When dropping it, noticed that no definitions for .navbar-collapse. I'm sure there are others, but that's what I noticed first

When checking out the code and building locally using grunt, it all appears in the minifed version. In fact, there's about an 8KB difference between the two filesizes, when comparing minimized versions, with the one I built using grunt being larger.
Issue 1:
Do you want to request a feature or report a bug? Feature

What is the current behavior?

The ref attribute passed to a DOM node can be either a callback or a RefObject, but not both. Sometimes, that's exactly what's required: for example, a library like react-pose demands ref forwarding to work with a React Component, but you'd also like to retain a reference to the same parent DOM node within that component itself for a different reason. It's often not possible to nest DOM nodes to achieve a similar thing using two different ref attributes as that breaks layout.

Here's a link to a naive attempt to achieve this: https://codesandbox.io/s/4jyw3q3v57

I'm not surprised this doesn't work as there's no reason for the parent ref callback to fire, but I don't know how else to go about it.

What is the expected behavior?

The callback provides the component with its own reference to the parent DOM node, whilst also providing it to the parent component via the passed RefObject.

Issue 2:
Before React 16.3 we were able to proxy the same element ref to multiple listeners, for example, to grab hold of the element for internal purposes and also expose it publicly, like so:

class MyComponent extends Component {
attachRef = el => {
this.buttonEl = el;
this.props.buttonRef(el);
}

// Do something with `this.buttonEl`

render () {
return <button ref={this.attachRef}>Button</button>;
}
}

After React 16.3 this is more complicated as the ref prop can be a function or an object:

class MyComponent extends Component {
buttonRef = React.createRef();

attachRef = el => {
this.buttonRef.current = el;

if (typeof this.props.inputRef === 'function') {
this.props.inputRef(el);
} else {
this.props.inputRef.current = el;
}
}

// Do something with `this.buttonRef.current`

render () {
return <button ref={this.attachRef}>Button</button>;
}
}

First, is this the right approach?

And if so, Typescript types say:

interface RefObject<T> {
readonly current: T | null;
}

Which prevents us from assigning to current. Shouldn't it not be readonly?
Issue 1:
this does not seem to work with multiple screens, any plans on extending that feature?

Issue 2:
Summary of the new feature/enhancement

Currently the new FZ editor only comes up and applies zone layouts to the primary monitor. In order to get a layout on a different monitor, the original custom editor is needed. Bret and Jeff have a design for this change and now they need to implement it.

Proposed technical implementation details (optional)

Note that when this is done the original editor should be removed as well as the setting to toggle between editors.
Issue 1:
Hi,

I have tried this steps but it fails to get minions.

core@kube-00 ~ $ kubectl get minions

Error: Get http://localhost:8080/api/v1beta3/minions: dial tcp 127.0.0.1:8080: connection refused

Deployment was successful without any errors and I can see the all nodes up and running in azure.

Please assist ..

Thank you

Issue 2:
I was trying to follow these instruction @ https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/getting-started-guides/azure.md to build some containers and manage it but I can’t get pass the step of deploying apps

Steps I am able to run until is cluster/kube-up.sh (

This step never finishes , loops on Validation step and never ends, but I can see master and Menons spin up in Azure portal and can SSH to master , It looks like the kube-up.sh is not successful.

But I tried Next steps of deploying a sample app on nginx container fails

https://github.com/GoogleCloudPlatform/kubernetes/blob/master/examples/simple-nginx.md

It basically can't connect to master node with error it can't connect to localhost:8080 api server

One thing other thing is doc is not clear about where to run this from ? Workstation , or kubernetes master ?

Also when run kubectl run my-nginx --image=nginx --replicas=2 --port=80 it says "run" is not recognized option.

Thanks
Issue 1:
Okay please check this fiddle out: http://jsfiddle.net/p97xS/3/

So the issue is, When you open or close a popover by clicking the element on which the popover is initiated everything works well. Good!

However problem arises when you plan to hide popover through another element (or button) using $('#example').popover('hide'). Sure the content and the popover is hidden but they are actually still present in the DOM. Which means if a popover data-content consists of buttons, you can still click them even if they are hidden!

So in the example fiddle, click the main button - a popover appears. Now hide it using the second button. Popover is hidden but its contents are still clickable!

Issue 2:
i searched for an already opened issue but did not found any that was reporting this exact problem.

I'm trying to use the destroy method on tooltip (bootstrap v3) but it does not remove the element from the DOM.

Any idea ?

Fiddle : http://jsfiddle.net/52VtD/59/

click on the button to trigger the tooltip destroy method
Issue 1:
$ cd fmt
$ go vet -x
/Users/r/go/pkg/tool/darwin_amd64/vet doc.go export_test.go fmt_test.go format.go
print.go scan.go scan_test.go stringer_test.go
$ # Add the -v flag
$ /Users/r/go/pkg/tool/darwin_amd64/vet -v doc.go export_test.go fmt_test.go format.go
print.go scan.go scan_test.go stringer_test.go

see lots of incorrect errors because:

vet: fmt_test.go:5:1: package fmt_test; expected fmt

$ # Do this instead, breaking the arguments into two runs of distinct packages.
$ # The warnings here are legitimate.
$
$ /Users/r/go/pkg/tool/darwin_amd64/vet -v doc.go export_test.go format.go print.go
scan.go
Checking file doc.go
Checking file export_test.go
Checking file format.go
Checking file print.go
print.go:229: can't check non-constant format in call to Fprintf
print.go:244: can't check non-constant format in call to Sprintf
Checking file scan.go
$ /Users/r/go/pkg/tool/darwin_amd64/vet -v fmt_test.go scan_test.go stringer_test.go
vet: fmt_test.go:957:6: undeclared name: IsSpace
Checking file fmt_test.go ##### This one is problematic; it's in export_test.go in
package fmt.
fmt_test.go:522: can't check non-constant format in call to Sprintf
fmt_test.go:596: can't check non-constant format in call to Sprintf
fmt_test.go:724: can't check non-constant format in call to Sprintf
fmt_test.go:748: can't check non-constant format in call to Sprintf
fmt_test.go:859: can't check non-constant format in call to Sprintf
fmt_test.go:912: can't check non-constant format in call to Sprintf
fmt_test.go:968: arg nil for printf verb %s of wrong type: untyped nil
Checking file scan_test.go
Checking file stringer_test.go
$

The question is, who should do this breakdown?

Issue 2:
by vinay.ys:

Fresh build of the latest tip (parent: 19011:ae14bde9ce3c tip) failed reflect test.
Build log is attached.

What steps will reproduce the problem?
Reran ./all.bash and it succeeded fine. So, no simple reproduction

Which compiler are you using (5g, 6g, 8g, gccgo)?

Which operating system are you using?
13.0.2 Darwin Kernel Version 13.0.2: Sun Sep 29 19:38:57 PDT 2013;
root:xnu-2422.75.4~1/RELEASE_X86_64 x86_64

Which version are you using? (run 'go version')
$ hg summary
parent: 19011:ae14bde9ce3c tip
A+C: Denis Brandolini (individual CLA)
branch: default
commit: (clean)
update: (current)

Please provide any additional information below.
Attached log file contains the crash trace.

Attachments:

golang-build-failure-ae14bde9ce3c.log (3316 bytes)
Issue 1:

Issue 2:
I have noticed that spider_idle signal is not called when the last issued request is filtered out by dedupe filter.

Example spider:

from scrapy import log, signals
from scrapy.http import Request
from scrapy.spider import BaseSpider

class IdleSpider(BaseSpider):
name = 'idle_spider'

def set_crawler(self, crawler):
super(IdleSpider, self).set_crawler(crawler)
self.crawler.signals.connect(self._spider_idle, signal=signals.spider_idle)

def _spider_idle(self, spider):
self.log('Enqueuing...', log.INFO)
self.crawler.engine.crawl(Request('http://httpbin.org/'), self)

def start_requests(self):
return []

def parse(self, response):
self.log('Parsing...', log.INFO)
pass

Message "Enqueuing..." is printed out exactly two times and "Parsing..." exactly once. After that spider_idle signal is sent no more. To me it seems like a bug, but if it is an intention, please reconsider it. It is rather unfortunate in the scenario, when _spider_idle is issuing new requests in batches and suddenly the last request was redirected to previously visited url (i.e. it wasn't even directly duplicate request).

Of course the simple solution can be to use dont_filter on the issued requests, but it doesn't seem right to me.
Issue 1:
This was a nice, though unexpected change with 3.2, but i have one request. Can we pretty please have table-related display options? Obviously I can just add these myself to my instance, but I would love to see this officially supported. The use case is legit to me; something like input group add-ons, which in some cases may not make sense to show in a mobile environment but add a nice touch in desktop. Since these are display: table-cell by default, to only that element in desktop you'd need something like

.visible-lg-table-cell {

display: table-cell !important;

}

Thanks for your consideration. I don't know how much table-row or others might be used, but display: table-cell would come in handy.

Issue 2:
I really need ".visible-*-table-cell".