WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
In a new IPython Notebook session:

import pandas as pd

import numpy as np

%matplotlib

dt_rng = pd.date_range(start='2014-01-01', end='2014-01-31', freq='1min')

df = pd.DataFrame(np.random.randn(len(dt_rng)), index=dt_rng)

ax = df.plot()

The DataFrame is plotted correctly. However, a mouse-over shows wrong dates starting in the year 1970. The axis-labelling is correct.

Editing the format_coord function shows something interesting:

ax.format_coord = lambda x,y: "{} {}".format(x,y)

231422240.[....] and so on. This float value obviously isn't parsed correctly. Any ideas?

Thanks for making pandas so great and best regards!

Issue 2:
In pandas 0.13.1 this code produces a plot that, when "moused over", indicates incorrect dates on the 't' (x) axis, despite having the correct axis label.

pd.Series([1, 2, 3], index=pd.date_range('2014-01-01', periods=3, freq='D')).plot()

(matplotlib version is 1.3.1)
Issue 1:
fn id(x: uint) -> uint { x }

fn main() {
let c <- fail;
id(c);
}

Assertion failed: (getOperand(0)->getType() == cast(getOperand(1)->getType())->getElementType() && "Ptr must be a pointer to Val type!"), function AssertOK, file Instructions.cpp, line 1065.

Issue 2:
Here's an example of the bug:

https://gist.github.com/2421363

It seems that libraries re-export the ifaces/impls of libraries they're using, which triggers a duplicate symbol error when libraries are used in a diamond shaped pattern.
Issue 1:
when I run the demo Example:

>>> import numpy as np; np.random.seed(10)
>>> import seaborn as sns; sns.set(color_codes=True)
>>> mean, cov = [0, 2], [(1, .5), (.5, 1)]
>>> x, y = np.random.multivariate_normal(mean, cov, size=50).T
>>> ax = sns.kdeplot(x)

it report an error as below:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "D:\Python\Python35\lib\site-packages\seaborn\distributions.py", line 604, in kdeplot
cumulative=cumulative, **kwargs)
File "D:\Python\Python35\lib\site-packages\seaborn\distributions.py", line 270, in _univariate_kdeplot
cumulative=cumulative)
File "D:\Python\Python35\lib\site-packages\seaborn\distributions.py", line 328, in _statsmodels_univariate_kde
kde.fit(kernel, bw, fft, gridsize=gridsize, cut=cut, clip=clip)
File "D:\Python\Python35\lib\site-packages\statsmodels\nonparametric\kde.py", line 146, in fit
clip=clip, cut=cut)
File "D:\Python\Python35\lib\site-packages\statsmodels\nonparametric\kde.py", line 506, in kdensityfft
f = revrt(zstar)
File "D:\Python\Python35\lib\site-packages\statsmodels\nonparametric\kdetools.py", line 20, in revrt
y = X[:m/2+1] + np.r_[0,X[m/2+1:],0]*1j
TypeError: slice indices must be integers or None or have an __index__ method

My platform is win10 and seaborn version is (0.7.1) and statsmodels version is (0.6.1).

Issue 2:
In seaborn, it seems one cannot customise legends for histplots. I'm not sure about the other categorical plots, but it is possible for scatter plots.

# This works
f, ax = pt.subplots()

x = np.arange(0, 6)
y1 = np.random.randint(1, 50, 6)
y2 = np.random.randomint(1, 25, 6)

sns.scatterplot(x=x, y=y1, color="blue", ax=ax)
sns.scatterplot(x=x, y=y2, color="red", ax=ax)
ax.legend(fontsize="medium")
plt.show()

# This does not work
f, ax = plt.subplots()

sns.histplot(x=x, y=y1, ax=ax)
sns.histplot(x=x, y=y2, ax=ax)
ax.legend(fontsize="medium")

For hisplots, I get the error No handles with labels found to put in legend. Any way to have ax.legend function properly?
Issue 1:
Environment

Microsoft Windows [Version 10.0.18363.815]
PowerToys version: 0.17.0
PowerToy module for which you are reporting the bug (if applicable): Fancy Zones

Steps to reproduce

I have a multi-monitor setup with my secondary display above my primary in the upper right. I have setup 3 fancy zones on the primary display, and 2 zones on the secondary display. (See screen shots)

I have PT Fancy zones configured to require the shift-key to be pressed to drag a window into a zone.

I have PT set to run as Administrator.

Expected behavior

When I shift-drag a window into a fancy zone, it should show the drop-target overlay, expand the dropped window to fill that zone, and then hide the drop-target overlay.

Actual behavior

Sometimes when shift-dragging a window into a fancy zone, the overlay that shows the drop zones gets stuck and won't go away. It looks as if the overlay is stuck in a loop recalculating/repainting. The CPU cycles spike and I am locked out. Nothing is accessible because the overlay is over the top of all apps, nothing can be brought to the foreground, and I can't even kill the PT app. CNTRL-ALT-DEL will bring up the system menu with the ability to Sign Out or Switch Users, which sometimes works. Other times it just causes the machine to act hung up with a black screen and I have to use a hard-power reset.

This seems to happen more often after a wake from sleep and/or after PT has been running for an extended period of time. (Hours). But it's possible I just haven't noticed the exact sequence of steps to cause it to happen.

Screenshots

I have included a screenshot of the issue (taken with my phone, since the PC was locked up), and a short video clip showing how the fancy zone overlay keeps being repainted/repositioned.

Fancy Zone Issue - Screen Shots and video

Issue 2:
Summary of the new feature/enhancement

Currently, you can remap a single key to a single key, or a two-button shortcut to a two-button shortcut; the proposed feature would let you mix and match these two. For example, F6, F7, and F8 could be bound to Ctrl-X, Ctrl+C, and Ctrl+V respectively. Alternatively, Ctrl+Num6 (or any other combination of your choosing) could press the default F6, allowing you to bind the key to a shortcut by default without losing it's default functionality.

Proposed technical implementation details (optional)

Instead of having two separate menus within the keyboard manager (as is now), use a single menu that contains all variants of the remapping functionality. When selecting the user input, if only one key is pressed it knows to activate on that one key, but if two are pressed it looks for that combination before activating; the same is true for outputs.
Issue 1:
When selecting multiple lines and trying to move them down or up (by ctrl-arrow key on linux at least) atom gives up all cursors but the latest one and only moves that line.

Repro Steps

add a cursor on multiple lines (by whatever means, ctrl+d or ctrl-left mouse click)

try to move the lines up or down (ctrl+arrow key [up|down])

Expected: all lines move up or down

Actual: only the line with the latest cursor moves and all other cursors are discarded

Versions

Atom: 0.153.0

Atom-Shell: 0.19.4

OS: linux 3.14.25-1-lts

Misc

apm 0.111.1

npm 1.4.4

node 0.10.33

python 3.4.2

git 2.1.3

This report was created in and posted from the Atom editor using the package bug-report v0.5.3.

Issue 2:
After making multiple selections, "Move Line Up" (Ctrl Cmd Up) and "Move Line Down" (Ctrl Cmd Down) works only on the last selected line, instead it should move all the lines.
Issue 1:
From @Delagen on June 16, 2016 8:9

simple url http://site.com/#/route;back=/a/b/c

Error: Cannot match any routes: 'route;back=true/a/b/c'

Copied from original issue: angular/vladivostok#59

Issue 2:
E.g. to make compiler benchmarks more realistic.

Add general reflector in facade/reflector

delete di/reflector, change_detection/parser/closure_map, core/compiler/reflector

will probably need to add some utility functions in DI that were present in the di/reflector,

but those utilities should be written in AtScript and not JS/Dart specific implementations.

class Reflector {
Function getter(String name) { ... }
Function setter(String name) { ... }
Function method(String name) { ... }
Function factory(Type type) { ... }
// one list for every parameter
// first entry is the parameter type, the rest are the annotations for that parameter
List<List<Object>> parameters(typeOrFunction) { ... }
// annotations placed on the type or function
List<Object> annotations(typeOrFunction) { ... }
}

This should be a singleton that is NOT injected via DI:

the js version should already include caching

the dart production version needs to replace the whole file and not just provide a different

implementation as otherwise Mirrors would still be used by just loading the original file.

the bind helper method in DI relies on a singleton and would otherwise be hard to use

Example for Dart production version:

getters = {
"name" : (obj) => obj.name
"age" : (obj) => obj.age
}

methods = {
"methodName": (obj, args) => FuncionWrapper.apply(obj.methodName, args)
}

factories = {
Service : (a,b) => new Service(a,b)
}

parameters = {
Service: [[]],
myFactory: [[]]
}

annotations = {
Service: [[]],
myFactory: [[]]
}
Issue 1:
by ficoos:

What steps will reproduce the problem?
If possible, include a link to a program on play.golang.org.
1. Start a jsonrpc server
2. send {"jsonrpc":"2.0",
"method": "HeadCrash.CreateRepository",
"id": "1"}
3. Profit

What is the expected output?
Error similar to what happens when you send a request without a "method" field

rpc: service/method request ill-formed:

What do you see instead?
Go panics with "invalid memory address or nil pointer dereference"

net/rpc/jsonrpc.(*serverCodec).ReadRequestBody(0xf8400aa380, 0x54dfd0, 0xf840072cd0,
0x54dfd0, 0xf840072cd0, ...)
/home/user/projects/go/src/pkg/net/rpc/jsonrpc/server.go:97 +0x89
net/rpc.(*Server).readRequest(0xf84006d480, 0xf84006ddc0, 0xf8400aa380, 0xf84006d640,
0xf8400aa300, ...)
/home/user/projects/go/src/pkg/net/rpc/server.go:508 +0x23b
net/rpc.(*Server).ServeCodec(0xf84006d480, 0xf84006ddc0, 0xf8400aa380, 0x0)
/home/user/projects/go/src/pkg/net/rpc/server.go:408 +0x69
created by headcrash/dispatcher.DispatcherMain
/home/user/projects/headcrash/src/headcrash/dispatcher/dispatcher.go:66 +0x67d

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

Which operating system are you using?
linux

Which version are you using? (run 'go version')
go version go1.0.3

Please provide any additional information below.

Issue 2:
I'm getting a reliable crash from a nil pointer dereference deep in the net/http
package, immediately after some data races. This occurs for a particular, large request
(112MB) that crashes the backend server and subsequently kills the proxy with the nil
pointer deference.

Attached are race logs and panic stack traces from go 1.2 and 1.2.1. The core proxy
code is also attached.

Attachments:

go1.2 race and stack trace.txt (35107 bytes)

go1.2.1 race and stack trace.txt (36204 bytes)

proxy.go (6067 bytes)
Issue 1:
VSCode Version: 1.1.1

OS Version: 10.11.4

Steps to Reproduce:

Open a 3MB file with some repeating text at each line (The quick brown fox jumps over the lazy dog

Highlight a word such as quick

Do a multi-cursor select (CMD+SHIFT+L)

Edit quick to say slow

Notice that not all lines were changed :( (stops at line 999 of a 35,397 line file)

Issue 2:
I was playing around with the editor.fontSize setting in VSCode because I am a little nearsighted.

Is there a way to also have the font either inherit the size from the editor.fontSize setting or create a new one for it?

Keep in mind when you scale the font, the images to the left need to be scaled as well.
Issue 1:
Migrated issue, originally created by Rémy Roy (@remyroy)

IF EXISTS and IF NOT EXISTS are already part of many DBMSs DDL vocabulary. They have many use cases which are highly useful in some situations.

For instance, creating a table if it does not already exists or dropping a column if it exists.

It would be nice to have those directives with standard SQLAlchemy DDL methods. I guess they could be implemented using the native support for DBMSs that support them or with some introspection for those that do not.

Issue 2:
Describe the bug

When using SQLAlchemy with PyMySQL driver and attempting to add a conflicting resource which is unique by the name, pymysql.err.IntegrityError is being raised, where instead SQLAlchemy.exc.IntegrityError should be wrapping the driver exception.

To Reproduce

Model

class Test(CustomModel):
__tablename__ = "tests"

id = Column(Integer, primary_key=True)
name = Column(String(255), unique=True, nullable=False)

def __init__(self, **kwargs) -> None:
self.name = kwargs['name']

Database init

class DatabaseManager:
"""Manage database sessions and model creation."""

def __init__(self, config: dict) -> None:
self.uri = '{}://{}:{}@{}:{}/{}'.format(
config.drivers,
config.user,
config.password,
config.host,
config.port,
config.name
)

self.engine = sqlalchemy.create_engine(self.uri)
self.session = scoping.scoped_session(
sessionmaker(
bind=self.engine,
autocommit=False
)
)

@property
def session(self) -> object:
"""Retrieve database session."""
return self._session

@session.setter
def session(self, value: object) -> None:
"""Set default database session."""
self._session = value

Add object

test = Test(**data)

session = app.db.session()

try:
session.add(test)
except exc.IntegrityError as error:
app.logger.error("Object '%s' already exists in the database.", object_name)
raise exceptions.Conflict(f"Object '{object_name}' already exists.") from error
else:
session.commit()

Error

[2022-03-19 11:38:24,615] ERROR in exceptions: An exception has occurred internally. Reason: '(pymysql.err.IntegrityError) (1062, "Duplicate entry 'testobj' for key 'name_index'")
[SQL: INSERT INTO tests (name) VALUES (%(name)s)]
[parameters: {'name': 'testobj'}]
(Background on this error at: https://sqlalche.me/e/14/gkpj)'

Versions

OS: Ubuntu 20.04.4 LTS

Python: Python 3.7.12 (default, Feb 8 2022, 11:05:33)

SQLAlchemy: SQLAlchemy==1.4.32

Database: 10.5.5-MariaDB-1:10.5.5+maria~focal

DBAPI (eg: psycopg, cx_oracle, mysqlclient): PyMySQL==1.0.2

Additional context

No response
Issue 1:
I've set up a rudimentary server on AWS EC2 (Debian Linux) running Deno 1.9.1 with an SSL certificate from Let's Encrypt. It simply serves a static HTML file when dealing with a GET request for "/", and returns a 404 for all other requests.

It works fine for a while, and then starts hanging on all requests after a seemingly random amount of time. The code is the following:

import { listenAndServeTLS } from "https://deno.land/std/http/server.ts";

const options = {
hostname: "www.example.org",
port: 443,
certFile: "./keys/cert.pem",
keyFile: "./keys/key.pem",
};

const index = await Deno.readTextFile("./static/index.html");
const notFound = await Deno.readTextFile("./static/notfound.html");

listenAndServeTLS(options, (req) =>{
let statusCode, content;
if (req.url === "/") {
statusCode = 200;
content = index;
} else {
statusCode = 404;
content = notFound;
}

console.log(`${statusCode} ${req.method} ${req.url}`);
req.respond({
status: statusCode,
headers: new Headers({
"content-type": "text/html",
}),
body: content,
});
});

After the server starts hanging, curl outputs the following (and hangs as well):

* Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to www.example.org (127.0.0.1) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: /etc/ssl/cert.pem
CApath: none
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
* Operation timed out after 300401 milliseconds with 0 out of 0 bytes received
* Closing connection 0
curl: (28) Operation timed out after 300401 milliseconds with 0 out of 0 bytes received

Am I doing something wrong? I'm starting a big project based on Deno and this is blocking.

Issue 2:
Okay, this is a very strange issue, so I'm not very sure where to put this. Let's say I have this Deno HTTPS server:

import { serveTLS } from "https://deno.land/std@0.89.0/http/server.ts";

const server = serveTLS({
port: 443,
hostname: "0.0.0.0",
certFile: "cert/fullchain.pem",
keyFile: "cert/key.pem",
});

for await (const req of server) {
(async () => {
const file = await Deno.open("image.png");
await req.respond({
headers: new Headers({
"Content-Type": "image/png",
}),
body: file,
});
await req.done;
file.close();
})();
}

Using the following image file:

I'm on Windows 10.0.19042.804.

(Edit) Deno version:

deno 1.8.0 (release, x86_64-pc-windows-msvc)
v8 9.0.257.3
typescript 4.2.2

On Windows, when I request this server from a browser or curl, it seems to only load the first 64KiB and then hang the request:

If I run the same program in Deno in WSL (1) it works completely fine.

Also if I try to set the file to a 2.5MB JS file, it loads the entire file fine on Windows too, and doesn't hang the request, so there seems to be something that ONLY fails for Windows + binary files going on here.

Am I doing something wrong in my code?
Issue 1:
I updated to latest version, the syntax highlight is only partially working for ES6. Here is my jsconfig.json at the root of project:

{

"compilerOptions": {

"target": "ES6",

"module": "commonjs"

}

}

keywords such as "if", "return", "default" are colored correctly, but keywords such as "let", "import" are not. I am using react with file extension as .js

Issue 2:
0.10.10 (Feburary build) has a regression is that the following JavaScript keywords are no longer highlighted in the Dark Visual Studio & Light Visual Studio themes:

var let const function get set class interface module namespace

This only affects JavaScript (not TypeScript).

The workaround if to switch to the Dark+ Default and Light+ theme.

Note that there are other colorizing issues open, not caused by this regression: e.g. 'import' and 'from'. See microsoft/TypeScript-TmLanguage#37
Issue 1:
I really think you should be able to drag file and folders to copy/move them in the file tree. I don't know why you can't do that.

Issue 2:
Would be awesome to be able to drag and drop files between folders in the file tree right in Atom. I like the text-based rename feature that lets you move files between folders, but drag and drop feels more natural to me having gotten used to it in TextMate.
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

npm WARN config global --global, --local are deprecated. Use --location=global instead.

Expected Behavior

no more"npm WARN config global --global, --local are deprecated. Use --location=global instead."

Steps To Reproduce

In this environment...

With this config...

Run '...'

See error...

Environment

npm:8.15.0

Node.js:16.15.1

OS Name:Win10

System Model Name:Omen 16

npm config:

C:\Users\Tang>npm help npm
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.

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

current version of npm (8.11.0, node 16.15.1) writes a warning to STDERR on every command, that is a warning about using deprecated options. The message is...

npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.

The message is written to STDERR regardless of whether or not the command run uses the --global or --local options. For example, the command...

npm -v

outputs the message, even though -v is the only option used, and writes to STDERR, even though it states it's purpose to be a warning, not an error, and the command still executes successfully.

The result for my organization is to break our nightly builds. Our builds need to monitor STDERR for REAL build errors, which also use STDERR to capture a variety of aberrant build conditions including security vulnerabilities that are reported back to the build pipeline via STDERR in a script that runs "npm audit" and analyzes the results.

Expected Behavior

IMHO, this warning should only be written if the deprecated options are used, and should be written to STDOUT since it is not an error, just a warning.

Steps To Reproduce

In Windows...

Running node 16.15.1 and npm 8.11.0

Run any npm command, i.e. npm -v

See results...

Environment

npm: 8.11.0

Node.js: 16.15.1

OS Name: Windows 10

System Model Name: Dell Precision 5500 series

npm config:

; "user" config from C:\Users\xxxx\.npmrc

cafile = "C:\\cert\\OGS_int_CA.pem"

; node bin location = C:\Program Files\nodejs\node.exe
; node version = v16.15.1
; npm local prefix = C:\Users\xxxx
; npm version = 8.11.0
; cwd = C:\Users\xxxx
; HOME = C:\Users\xxxx
; Run `npm config ls -l` to show all defaults.
Issue 1:
Stephen M. Wick opened SPR-3797 and commented

Through Spring v2.0.2, MethodInvokingJobDetailFactoryBean cannot be used within a clustered Quartz deployment.

I am attaching a cluster-safe version of Spring's MethodInvokingJobDetailFactoryBean, and a new BeanInvokingJobDetailFactoryBean for your review and possible inclusion in the Spring framework offering.

MethodInvokingJobDetailFactoryBean can be used to invoke a method on a Java Object. The Object and method arguments must be Serializable. Alternatively, you can configure this FactoryBean to invoke a Static method on any Class by specifying the name of the Class, as a String, and the name of the Static Method to invoke. Again, the method arguments must be Serializable. (See the JavaDoc within the source for more information)

BeanInvokingJobDetailFactoryBean can be used to invoke a method on any bean defined within the Spring ApplicationContext. The method arguments must be Serializable. (See the JavaDoc within the source for more information)

Note : As of Quartz 1.6.0 there is a bug that prevents Objects from being Serialized to the MS SQL Server (required for Quartz Clustering). (See http://forums.opensymphony.com/messa...ssageID=128249)

Therefore, the following limitations apply to those using MS SQL Server until Quartz 1.6.1 is released:

MethodInvokingJobDetailFactoryBean is restricted to Static No-Arg Method Invocation.

BeanInvokingJobDetailFactoryBean is restricted to No-Arg Method Invocation.

Please let me know if you have issues with these FactoryBeans. I am also looking for feedback on how useful, or not, these components are.

I hope these components save you time and effort!

Affects: 1.0 RC1, 1.0 RC2, 1.0 final, 1.0.1, 1.0.2, 1.1 RC1, 1.1 RC2, 1.1 final, 1.1.1, 1.1.2, 1.1.3, 1.1.4, 1.1.5, 1.2 RC1, 1.2 RC2, 1.2 final, 1.2.1, 1.2.2, 1.2.3, 1.2.4, 1.2.5, 1.2.6, 1.2.7, 1.2.8, 2.0 M1, 2.0 M2, 2.0 M3, 2.0 M4, 2.0 M5, 2.0 RC1, 2.0 RC2, 2.0 RC3, 2.0 RC4, 2.0 final, 2.0.1, 2.0.2, 1.2.9

Attachments:

BeanInvokingJobDetailFactoryBean.java (18.93 kB)

MethodInvokingJobDetailFactoryBean.java (19.47 kB)

3 votes, 4 watchers

Issue 2:
Juergen Hoeller opened SPR-69 and commented

Support for defining validation rules on beans via source markup.

Support for declarative assignment of PropertyValidationRules to bean properties via Spring-IoC, through a scripting environment such as Groovy/Beanshell, or programatically in plain Java.

Affects: 1.2 RC1

Issue Links:

#10704 Validation: Initial support for dependency injection of a JSR-303 Validator ("depends on")

#9205 Integration of SpringMVC with Hibernate Validator ("is duplicated by")

#9650 Provide integrated support for validation within @MVC lifecycle ("is duplicated by")

#9451 @Validator, @Validate

#10091 Integrating validation into the @MVC request lifecycle

14 votes, 13 watchers
Issue 1:
When I pick Settings in the dropdown menu, profile.json opens in Visual Studio. This is slow. I would like to open it in a smaller/faster editor. I suppose it opens in VS due to my windows file extension settings for .json files. I don't wan't to change this setting, but I would like a seperate setting where I can choose my editor.

Proposed technical implementation details (optional)

With the new feature:

I will somehow pick editor for editing settings.

When I choose to edit settings, profile.json opens in the editor from 1)

Issue 2:
Description of the new feature/enhancement

Add new field in settings containing profiles to use on startup. Currently present default profile should be used only for new tab functionality and as a fallback when startup profiles are not defined (for example after update).

Proposed technical implementation details (optional)

For ease of use new field should accept both string with GUID of a single profile and array of strings and if it's not present at all it should fallback to default