WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Describe the bug

If we create a datetime at year 0, month 1, day 1 with a timezone such that the utc equivalent

would refer to a UTC time that is in a BC year a and save it to a database,

then we can't deserialize it back to a datetime - as when we write the utc

Expected behavior

We shouldn't be able to insert datetime values that can't be deserialized back into a datetime.

To Reproduce

from uuid import uuid4, UUID
from datetime import datetime, timezone, timedelta

from sqlalchemy import (
Column,
DateTime,
)
from sqlalchemy.ext.declarative import declarative_base

Base = declarative_base()

class Example(Base):
__tablename__ = "example"

example_id = Column(UUID(as_uuid=True), primary_key=True)
date = Column(DateTime(timezone=True), nullable=True)

bc_datetime = datetime(year=1, month=1, day=1, tzinfo=timezone(timedelta(hours=1)))

db_session.add(
Example(
example_id=uuid4(),
date=bc_datetime.
)
)
db.commit()

# This works

# but this won't, as date can't be serialized into a datetime:

example = db.query(Example).first()
example.date

Versions.

OS: Ubuntu 20.04.2 LTS

Python: 3.8.5

SQLAlchemy:

Database: PostgreSQL 11.9

DBAPI:

Issue 2:
Migrated issue, originally created by whereswalden

Currently, MetaData.naming_convention does not support composite indexes or foreign keys, so those must be named explicitly. It'd be nice to be able to provide a template for those to be automatically named as well.

It would likely be necessary for users to define a function to provide the name, since the constraint/index could include any number of columns, but a fairly simple example could be provided in the documentation that simply ','.join()s the column names.
Issue 1:
mod test_mod {
enum A {
Foo,
}
}

type Alias = test_mod::A;

let _v = Alias::Foo; // Compile error

Issue 2:
type items don't work with enums.

#[derive(Debug)]
enum Foo {
Bar,
Baz,
}
type Loz = Foo;
fn main() {
let y = Loz::Bar;
println!("{:?}", y);
}

On the stable channel the following error occurs:

<anon>:8:13: 8:21 error: type `Foo` does not implement any method in scope named `Bar`
<anon>:8 let y = Loz::Bar;
^~~~~~~~
error: aborting due to previous error
playpen: application terminated with error code 101```
Issue 1:
I'm having an issue that foces me to rewrite the type of a function parameter to 'any' instead of 'typeof SomeSuperClass' because a subclass that extends that superclass, but has another constructor signature cannot be passed into that function anymore. Is this expected behavior? My intuition says no. I've read that it has to do with some Javascript function type check conflict because of the use of 'typeof', but currently I don't see another clean way to pass a class type as an argument in a function. without resolving to strings. And the use of 'typeof' seems to break when a subclass has another constructor signature.

See code, where function foo(..) accepts the subclass with equal constructor signature, but rejects the other subclass which has another constructor signature:

TypeScript Version:

1.7.5

Code

class Super {
private a: number;
constructor(a : number) {
this.a = a;
}
}

class SubSameConstructor extends Super {
private b: number;
constructor(a : number) {
super(a);
this.b = a;
}
}

class SubDifferentConstructor extends Super {
private b: number;
constructor(a : number, b: number) {
super(a);
this.b = b;
}
}

function foo(classParam: typeof Super) {
console.log(classParam);
}

foo(SubSameConstructor); // works
foo(SubDifferentConstructor); // TS2345: Argument of type 'typeof SubDifferentConstructor' is not assignable to parameter of type 'typeof Base'.

Expected behavior:

Being able to pass a subclass with different constructor signature into a function that accepts an argument of type 'typeof Super' to pass class types.

Actual behavior:

The last function call does not compile.

Issue 2:
Currently we create DocumentRegistry once per project which means that we don't share anything between multiple open projects (because of that we can end up with multiple copies of i.e. lib.d.ts). We should consider using one instance of DocumentRegistry that will be utilized for all projects to remove this duplication.
Issue 1:
Electron 0.36.0

OS X 10.10.3

BrowserWindow with 'title-bar-style' set to 'hidden-inset'.

Problem:

There is always a draggable area at the top, even if I don't place any elements there. It has a standard size for this type of windows in OS X (see System Preferences). And I can't disable it for my buttons or other elements by using -webkit-app-region: no-drag;.

I'm not sure but I think there wasn't such an issue in 0.35.

Issue 2:
If this option is set, you can't drag/drop elements that are located in the top of the window (in the region where window's toolbar is placed). Even with -webkit-app-region: drag, dragging is not performed correctly.

The element which being dragged is native input[type="range"]

Here is the preview:
Issue 1:
Environment

Windows build number: Microsoft Windows [Version 10.0.19018.1]
Windows Terminal version (if applicable): 0.6.2951.0
WSL version: 2
WSL distribution: Ubuntu

Steps to reproduce

Copy any text with multiple lines into the WSL terminal tab.

Note: this bug does NOT occur in the command line and PowerShell tabs.

Expected behavior

Same amount of lines as in the source and the paste not affecting existing text in unexpected ways.

Actual behavior

I get extra lines in-between regardless of whether the source I copy from is LF or CRLF when I paste it into WSL in the terminal.

Existing text is also affected.

before:

after:

another example:

before:

after:

Issue 2:
Multiline text pasted from the clipboard includes CRLF pairs in all cases; this is inappropriate for "Unix-space" sessions, such as WSL.

Environment

Windows build number: Microsoft Windows [Version 10.0.18362.145]
Windows Terminal version (if applicable): 71e19cd82528d66a0a7867cbed85990cfc1685f1

Steps to reproduce

Select multiline text in Terminal.

Copy it (via right-click, ostensibly)

Paste it (again via right-click)

Expected behavior

When pasting into a Unix-space session -- such as WSL -- pasted text should have a reasonable set of line-ending characters.

Actual behavior

Line endings are "doubled" on text paste to Unix-space sessions.
Issue 1:
Bug Report

Current Behavior

When using @babel/plugin-transform-async-to-generator and @babel/plugin-transform-parameters together, awaiting a super method call results in a 'Maximum call stack size exceeded' due to a recursive infinite loop getting generated.

Input Code

https://babeljs.io/en/repl#?babili=false&browsers=&build=&builtIns=false&spec=false&loose=false&code_lz=MYGwhgzhAEAa0FMAeAXBA7AJjAmgbwChppIBPdYaTAewGVqBbBFACwEt0BzACgEppCxYmADuYNimgQArgAcEAJwB0Nek1YcevANxFoAXwL6gA&debug=false&forceAllTransforms=false&shippedProposals=false&circleciRepo=&evaluate=false&fileSize=false&timeTravel=false&sourceType=module&lineWrap=true&presets=&prettier=false&targets=&version=7.4.5&externalPlugins=%40babel%2Fplugin-transform-async-to-generator%407.4.4%2C%40babel%2Fplugin-transform-parameters%407.4.4

Input:

class X extends Y{
async doSomething() {
await super.doSomething();
}
}

Relevant output:

class X extends Y {
doSomething() {
var _superprop_callDoSomething = function () {
return _superprop_callDoSomething(...arguments);
};

return _asyncToGenerator(function* () {
yield _superprop_callDoSomething();
})();
}
}

note the recursive _superprop_callDoSomething

Expected behavior/code

No recursive call.

Babel Configuration (.babelrc, package.json, cli command)

{
"plugins": ["@babel/transform-async-to-generator", "@babel/transform-parameters"]
}

Environment

Babel version(s): 7.4.5

Node/npm version: Node 8/npm 6

OS: Mac OS

Monorepo: no

How you are using Babel: cli, online repl

Issue 2:
Bug Report

Current Behavior

I have error RangeError: Maximum call stack size exceeded when I used a super in my async method

Input Code

REPL

class MyClass extends BaseClass {
async loadEntity() {
this.website = await this.loadWebsite();
this.report.setCompany(this.website.company);
super.loadEntity();
}
}

Expected behavior/code

It should work without looping

class MyClass extends BaseClass {
loadEntity() {
var _this = this,
_superprop_callLoadEntity = function _superprop_callLoadEntity() {
return _superprop_callLoadEntity(...arguments); // <= HERE I HAVE LOOPING :(
};

return _asyncToGenerator(function* () {
_this.website = yield _this.loadWebsite();

_this.report.setCompany(_this.website.company);

_superprop_callLoadEntity();
})();
}

}
Issue 1:
Receive following error when running Webpack. This has been working forever, but for some reason, it is now a problem

ERROR in ./index.js
Module build failed: Error: Final loader didn't return a Buffer or String
at DependenciesBlock.onModuleBuild (/Users/mikee/Documents/Projects/dev/angular/angular-sandbox/node_modules/webpack-core/lib/NormalModuleMixin.js:299:42)
at nextLoader (/Users/mikee/Documents/Projects/dev/angular/angular-sandbox/node_modules/webpack-core/lib/NormalModuleMixin.js:275:25)
at /Users/mikee/Documents/Projects/dev/angular/angular-sandbox/node_modules/webpack-core/lib/NormalModuleMixin.js:292:15
at runSyncOrAsync (/Users/mikee/Documents/Projects/dev/angular/angular-sandbox/node_modules/webpack-core/lib/NormalModuleMixin.js:160:12)
at nextLoader (/Users/mikee/Documents/Projects/dev/angular/angular-sandbox/node_modules/webpack-core/lib/NormalModuleMixin.js:290:3)
at /Users/mikee/Documents/Projects/dev/angular/angular-sandbox/node_modules/webpack-core/lib/NormalModuleMixin.js:292:15
at Object.context.callback (/Users/mikee/Documents/Projects/dev/angular/angular-sandbox/node_modules/webpack-core/lib/NormalModuleMixin.js:148:14)
at Object.module.exports (/Users/mikee/Documents/Projects/dev/angular/angular-sandbox/node_modules/babel-loader/index.js:89:8)

Issue 2:
Feature request

Hi currently In our projects, we plan to do Front End Micro, divide an App to multiple repositories.

Repo 1: App1

Repo 2: App2

Repo 3: App3

Repo 4: A Shell

When user navigate to /app1 we will get the script of App1 storing in CDN for example: http://cdn.company/app1,bundle.js. It looks like a Lazy Load Pattern

Can we support the import('http://cdn.company/app1.bundle.js') at runtime ?

What is the expected behavior?

It should map the module export from prebuilt bundle at runtime

import('http://cdn.company/app1.bundle.js').then(module => {
this.setState({
loadedComponent: module.default
})
});

What is motivation or use case for adding/changing the behavior?

Front End Micro Architecture

How should this be implemented in your opinion?

Make it simple like

import('http://cdn.company/app1,bundle.js').then(module => {
this.setState({
loadedComponent: module.default
})
});

Are you willing to work on this yourself?

yes but don't know how to do it 😄
Issue 1:
I want to open all my text files with Atom, but I couldn't find a good way to do that, that's not breaking with every Atom update, and I don't get Atom icons.

Did I do something wrong? Is there a way to make the existing "Open with Atom" right-click menu entry "stick"?

Please tell me there's a more streamlined way to achieve correct file associations on Windows!

Expected behaviour:

Either Atom offers on installation to associate with files typically edited with a text editor, or offers a setting where you can do that post-installation.

Failing that, the user is given a clear method of associating desired file types with Atom, e.g. using the "open with" dialog like other editors allow.

Observed behaviour:

Atom is not associated with any files, and there's no setting to change that. There is a context menu entry, but that requires constant right-clicking for every file you want to open in Atom, so is not really desirable.

OK, so I thought I'd manually change the "open With" choice for every file type to a new default setting. (Right click a txt file - open with - set new default application)

Puzzlingly, Atom is not in the list of proposed applications. O_o

Nevermind, let's hit "further applications" and select from there. Huh, Atom is not in C:\Program Files, either, so that didn't work.

OK, then let's select the installed desktop link (or start menu entry). Hooray, I could select it. Oh, it just flickers a terminal at you for a split second. Turns out, this just calls some update.exe, and something gets messed up (probably command args?).

After some googling, I found out that Atom gets installed in AppData somewhere, so let's search the exe there. Erm, the exe is in a version-specific folder, so I'd have to re-associate all my file bindings after every update. No, thank you :-(

the cmd file in the bin directory is an option, but to select that you have to

go to the location in a separate Explorer window (to display hidden items to be able to see AppData, which you can't do in the file selection dialog)

copy the path to bin

navigate the open with dialog until you get to the point where you can select arbitrary files

paste the path

select atom.cmd

Hooray, now I can open files with Atom all the time, but:

I got no way to select the Atom icon, I got an empty white rectangle.

It flickers the terminal for a split second, which interestingly does not happen when starting atom via the start menu. Annoying, but not vital.

It says "atom.cmd" in the relevant dialogs/menus, which is not exactly beautiful/elegant.

I can't imagine a normal user to go through this dance to do this, compared to the experience in other editors like Notepad++.

Versions: Windows 8.1, Atom 198; dialog strings translated from German, so may not be identical to an english windows.

Issue 2:
Currently it is not so easy to assign atom as default editor on windows eg for all .css files

the path to atom.exe is changed with every update.

no exe in C:\Users\hebbet\AppData\Local\atom

Chrome has eg an chrome.exe in:

C:\Users\username\AppData\Local\Google\Chrome SxS\Application which starts chrome with the currect folder.
Issue 1:
If you click once, and all checks pass green, then it should auto submit. As it is, you're clicking once to check all tasks, clicking again to initiate the submit window, waiting for the popup animation, then clicking "Submit", waiting for animations, then loading to next lesson. 3 clicks and a 4-6 second delay between each lesson. On the HTML section, that's 4.6-6.9 minutes of completely dead time, and 207 mouse clicks instead of 69. I suppose I could try to fix it myself, but I just started the course :P.

Issue 2:
Challenge http://www.freecodecamp.com/challenges/waypoint-use-css-selectors-to-style-elements has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

Load the page (it should have the previous lesson's code still in it)

Delete the style from the h2 element

Add the style block

Add h2 { color: red; }

Click either run or Ctrl + Enter

It will show you have completed it correctly, but the pop-up does not show to allow you to progress to the next lesson.
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: 2.7.1

Operating System version: mac sierra 10.12

Java version: 1.8

Steps to reproduce this issue

For PR: #4067

Run consumer without provider as below, it throws No provider exception.

ReferenceConfigCache cache = ReferenceConfigCache.getCache();
DemoService demoService = (DemoService) cache.get(reference);
demoService.sayHello("hi");

Start provider and then run consumer again, get null from the demoService.

ReferenceConfigCache cache = ReferenceConfigCache.getCache();
DemoService demoService = (DemoService) cache.get(reference);

Pls. provide [GitHub address] to reproduce this issue.

Expected Result

DemoService should be initialized.

Actual Result

DemoService returns null even with provider started.

For the first time, the ReferenceConfig init throws exception from refprotocol.refer(interfaceClass, urls.get(0)), have not changed the initialized to false. For the second time, the ReferenceConfig cannot init it again as initialized is true.

We should set initialized after init finished.

Issue 2:
I have searched the issues of this repository and believe that this is not a duplicate.

I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: 2.7.3

Operating System version: mac

Java version: jdk 8

Steps to reproduce this issue

注册了两个配置中心，一个用的是dubbo默认配置

dubbo.registry.address=zookeeper://127.0.0.1:2181

然后自定一个注册中心:

@Bean
public RegistryConfig ecareConsumerConfig() {
RegistryConfig registryConfig = new RegistryConfig();
registryConfig.setAddress("zookeeper://127.0.0.1:2182");
registryConfig.setGroup("dubbo");
return registryConfig;
}

引用时，指定了注册中心ecareConsumerConfig

@Reference(registry = "ecareConsumerConfig")
private UserInfoApiService userInfoApiService;

然后程序启动解析时，源码走到org.apache.dubbo.config.ReferenceConfig.init()里面注册信息都是127.0.0.1:2182，继续走，当走到startConfigCenter里面调用了ConfigManager.getInstance().refreshAll();里面的AbstractConfig.refresh()不管你是否拥有值，都将里面的值覆盖掉，变成zookeeper://127.0.0.1:2181。导致注册中心找错

Pls. provide [GitHub address] to reproduce this issue.

Expected Result

What do you expected from the above steps？

Actual Result

What actually happens?

If there is an exception, please attach the exception trace:

Just put your stack trace here!
Issue 1:
Open attached file and zoom in a lot

Might be reproducible only on Windows

Input from @alexandrudima :

check why are you getting a new gpu layer

we already had this issue in other trees and Joao discovered it was happening due to scroll bars

another reason for this might be the positioning (non integer coordinates) of the repl or the background. Though this one is unlikely

Issue 2:
From UX Meeting: #7338, topic "Update on separating editor and group actions"

No Tabs: Group Level Commands

As a part of the work to support tabs, we made some assumptions about the need for managing stacks of editors when tabs are not enabled. We believed that users would want the following:

A group level affordance that indicates when there are multiple editors open in a group (when clicked it shows these open editors).

A group level overflow button with the following items:

“Close All” open editors in a group at once, thus closing the group when empty editors are not enabled.

“Move Left” / “Move Right” the group (same result as dragging a group).

After dogfooding with the Insiders Release we think it’s possible these UI elements are actually not needed:

The Open Editors area in the explorer already indicates when multiple editors are open in a group and what they are.

Closing all editors is possible from Open Editors

Moving groups left and right is already possible through dragging the editor or in Open Editors, although this needs to be accessible

Furthermore, it is visually "noisy" to have these group-level commands when tabs are not enabled. The extra buttons increase the complexity, and the lighter gray background that separates the group-level commands from the editor commands is heavy and attention-grabbing.

Finally, corner cases exist where you could have two overflow menus, one for local commands and one for group-level commands. This is confusing and undesirable.

Conclusion

We decided that it would be best to revert these changes and remove the group-level commands to eliminate duplicate functionality and keep the current ("no tabs") model intact for the "tabs disabled" scenario.
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

Caret should position on active input field.

Current Behavior

Caret is often appearing as if input is on the next input

Tested on actual mobile device and recorded video using simulator on iOS

SEE VIDEO HERE:

https://drive.google.com/file/d/1TfyzHa8TZDiiDMN04_O68MTNVAgAZSbv/view?usp=sharing

Steps to Reproduce (for bugs)

Context

Your Environment

Tech
Version

Material-UI
beta32

React
16.2.0

browser
iOS Safari

etc

Issue 2:
I let a fullscreen dialog appear in my web application and have a TextField being automatically focused. The field is kind of focused, but the blinking | is not displayed.

If you tab on the same TextField again, it'll blink one line under the text field.

Again on the same: TextField is unfocused.

Again on the same, the correct TextField is finally focused with |.

[ x] I have searched the issues of this repository and believe that this is not a duplicate.

This is my dialog content:

<DialogContent style={{ textAlign: 'center' }}>
<DialogTitle>
Enter your lorem link
</DialogTitle>
<DialogContentText>
Lorem ipsum.
</DialogContentText>
<TextField
required
autoFocus
inputRef={el => this.TitleInput = el}
margin="normal"
label="Enter your course title"
type="text"
style={{ width: '60%', minWidth: '250px' }}
inputProps={{ maxLength: 10 }}
/>
<TextField
required
inputRef={el => this.LinkInput = el}
margin="normal"
label="Enter your link"
type="text"
style={{ width: '60%', minWidth: '250px' }}
/>
</DialogContent>

Environment

This bug only happens on iOS devices.

Tech
Version

Material-UI
1.0.0-beta.19

React
16.0.0

browser
iOS Safari

etc
iPhone 7, iPad Pro 9"
Issue 1:
Hi, I recently upgraded to atom-0.184.0 and the required atom-shell-0.22.3. All works remarkably well, considering how severe the one thing that does not is:

Almost always (though strangely enough not really always) atom crashes whenever I try to copy something into its window. Not only that, but even if I have saved a file in a ~5s time window before the crash, it will undo whatever save that was :-/ This is not as far as I can tell contingent on what it is that I copy or where it is copied from.

This is seriously annoying! And sadly I can't seem to debug it , atom automatically detaches itself from the terminal so that I do not see any output...

Issue 2:
I'm using Atom ver. 0.189.0 on Ubuntu 14.04.2 LTS. When I copy a piece of text in atom and I try to paste it the right-click menu either won't show up or will show up without giving me option to paste. The paste shortcut doesn't work either and it creates issues even if I try to copy and paste text from other programs (after I have coping something from atom). I have disable all the extra plugins, so it isn't a plugin issue. I didn't had this issue with the previous version (I am using webupd8 ppa). If I do a right click on a place where there isn't a text entry (meaning a place where it doesn't support paste anyway) the right click menu appears fine.
Issue 1:
Occurs in Fiber with multiple instances of the React package (which can't share current owner).

Issue 2:
So I'm loading a precompiled react file into my server.js and using that to rendertostring.

(there is a very good reason why I'm doing it like this, don't ask about it, that's no part of the issue here)

This actually works but the moment you introduce hooks... it all goes to hell. I've tried setting react/react-dom as externals and such. Nothing works. It keeps throwing the same issue.

There are no mismatching versions

There are no duplicate react versions I can see

The rules of hooks are not broken as far as I know.

React version: 16.12.0

Steps To Reproduce

https://github.com/Pixelatex/hooks-ssr-issue

Yarn build

Yarn serve

Go to localhost:3000 and see it crash, removing the hooks from app.js shows it working.

Link to code example:

https://github.com/Pixelatex/hooks-ssr-issue

The current behavior

It should render a string with the resulting html.

The expected behavior

Hooks should just work.