WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
my account : https://www.freecodecamp.com/333yalindre

My whole progress is gone now. I was at level 290.. Last night i've finished "diff two arrays" challenge and submit it successfully. then i went to my profile page. then i saw a message that I have no mail address connected to fcc. i'm sure its there before. but then i've added my email address. and verified it.

just after that my whole progress is gone. I think some how there is a issue with mail section. i think adding a mail address is making a whole new duplicate account (Quincy said that may be i've accidently make a duplicate and it may be the issue.). but the problem is my github is also linked to the account which is reset.

I mailed the team@freecodecamp. but still no response. so please check this issue. otherwise people will loose there focus. no doubts this is the best code camp ever. i'd love to contribute also after i got more experience and knowledge. thanks...

Issue 2:
Issue Description

There is an empty list item with no challenge name under the Basic Algorithm Scripting section.

Browser Information

Browser Name, Version: Google Chrome v55.0.2883.95

Operating System: macOS 10.12.2

Mobile, Desktop, or Tablet: Desktop

Screenshot
Issue 1:
Electron version: 0.36.9

Operating system: OS X 10.0.2

The error showed on startup, and kept showing up for several times after clicking on OK. But when I opened my app the other time, the dialog did not reproduce. I think this might the with the electron itself.

Uncaught Exception:
TypeError: Cannot read property 'delete' of undefined
at ObjectsRegistry.remove (/Applications/Electronic WeChat.app/Contents/Resources/atom.asar/browser/lib/objects-registry.js:53:31)
at EventEmitter.<anonymous> (/Applications/Electronic WeChat.app/Contents/Resources/atom.asar/browser/lib/rpc-server.js:345:26)
at emitTwo (events.js:87:13)
at EventEmitter.emit (events.js:172:7)
at EventEmitter.<anonymous> (/Applications/Electronic WeChat.app/Contents/Resources/atom.asar/browser/api/lib/web-contents.js:123:25)
at emitTwo (events.js:87:13)
at EventEmitter.emit (events.js:172:7)

Issue 2:
Electron version: 0.36.9

Operating system: Mac

We're still trying to nail down repro steps in Slack, but it seems to happen on 0.36.9 when calling remote methods. Specifically, we build context menus using remote (very similar to the Menu sample) and occasionally they stop working with this exception:

Uncaught Error: Cannot read property 'object' of undefined
TypeError: Cannot read property 'object' of undefined
at ObjectsRegistry.get (C:\Users\paulb\AppData\Local\slack\app-2.0.2\resources\atom.asar\browser\lib\objects-registry.js:44:28)
at metaToValue (C:\Users\paulb\AppData\Local\slack\app-2.0.2\resources\atom.asar\browser\lib\rpc-server.js:155:32)
at Array.map (native)
at unwrapArgs (C:\Users\paulb\AppData\Local\slack\app-2.0.2\resources\atom.asar\browser\lib\rpc-server.js:214:15)
at EventEmitter.<anonymous> (C:\Users\paulb\AppData\Local\slack\app-2.0.2\resources\atom.asar\browser\lib\rpc-server.js:317:12)
at emitMany (events.js:108:13)
at EventEmitter.emit (events.js:182:7)
at EventEmitter.<anonymous> (C:\Users\paulb\AppData\Local\slack\app-2.0.2\resources\atom.asar\browser\api\lib\web-contents.js:133:25)
at emitTwo (events.js:87:13)
at EventEmitter.emit (events.js:172:7)
Issue 1:
...as a parameter which gets inherited globally by get() and other HTTP methods.

session = requests.Session(timeout=30)
session.get(...)
session.get(...)

Would be equivalent to:

session = requests.Session()
session.get(..., timeout=30)
session.get(..., timeout=30)

Thoughts?

Issue 2:
I was using an old version of requests (I don't know the exact version). When settings the session.timeout it was affecting the timeout value during a call to session.get(). With recent version of requests, this feature doesn't seams to work.

I'm currently using version 2.10.0

Basically, I'm expecting this:

session = requests.session()
session.timeout = 0.0001
session.get('http://localhost/')

To have the same behavior as:

requests.get('http://localhost/', timeout=0.0001)
Issue 1:
I think that the size of modal-lg should be smaller for xs and sm devices, so that sizing the modal with hidden- and visible- should not ne necessary fit the modals onto the devices.

Issue 2:
First I want to give a example of why this could be useful in my eyes. Reason for having these classes is allowing you to float elements when the screen is large enough and place them precisely when the screen gets smaller. A list of tags for example look nicer when floated on a big screen:

|[tag1] [longtagname] [tag3] [tag4] [tag5andsomemore] |

But on a small screen it looks kind of messy:

|-----------------|
|[tag1] |
|-----------------|
|[longtagname] |
|-----------------|
|[tag3] [tag4] |
|-----------------|
|[tag5andsomemore]|
|-----------------|

With the suggested styles we can make it look nice and structured:

|-----------------|
|[ tag1 ][longt-]|
|[ ][agname]|
|-----------------|
|[ tag3 ][ tag4 ]|
|-----------------|
|[tag5an-] |
|[somemo-] |
|[ re ] |
|-----------------|

Well it still looks crappy in ASCII but I hope you get the point. The HTML would look something like this:

<div class="row-mdi">
<div class="my-tag-style col-mdi-3 col-smi-6">
tag1
</div>
<div class="my-tag-style col-mdi-3 col-smi-6">
longtagname
</div>
...
</div>

As you might have noticed in the code above, the downside is that we need a conditional row class as well.

I have a piece of code that implements this but it is written in terms of the old grid code that didn't use mixins for most of the styles.

Before converting the code and submitting a pull request I wanted to get some critique. I can imagine that one might say that these styles are not general-purpose enough, so to speak, to be included in twbs.
Issue 1:
Copied from microsoft/vscode#2000

When using Angular 2 and TypeScript I noticed that editing template strings of components in TypeScript files are not working as one expect. There is not autocomplete for tags and other usual HTML editing features.

For example

import {Component} from 'angular2/core';

@Component({
selector: 'my-app',
template: '<h1>My First Angular 2 App</h1>'
})
export class AppComponent { }

Of course it's because the type definition has declared template as a String and no part of VSCode knows that it's an HTML string.

My proposal is to define a HTMLString type where it's basically just string but helps tooling in cases like this.

If it was possible to do this, then we can define CSSString, JavaScriptString, SCSSString and so on...

Issue 2:
Motivation

ES6 Template strings make it much easier to put blocks of HTML code inline with JavaScript. This can be leveraged in frameworks like Angular. One disadvantage to this though, is that IDEs don't know that the string block should be formatted as HTML so there is no syntax highlighting.

@Component({ selector: 'angular-demo' })
@View({
template: `<h3>My Template</h3>
<p>I can put blocks of HTML here.</p>
<p>Unfortunately, there is no syntax highlighting.</p>`
})
class Demo{ }

Proposal

I propose a simple HTMLString type that is simply an alias for string but can signal to text editors that the string should be styled as HTML and can use HTML completion. This should be implemented in lib.d.ts to standardize the use of the type.

/**
* Alias for the string type used to denote the string should be shown with
* HTML syntax highlighting
*/
type HTMLString = string;

Strengths:

Simple to implement

No breaking changes

IDE support is optional

Weaknesses:

Requires IDEs to be interested in implementing
Issue 1:
Hello,

Note: I posted this question in "discussions" but not sure it was the right place I apologize for the duplicate

Coming from Scala where the management of asynchronous/synchronous operations is quite explicit, I am struggling to understand what's the impact of using def instead of async def for path operation functions.

My main motivation by using an async framework is to be able to scale a lot on a single machine, being able to support a high number of concurrent http requests with a limited number of system threads.

Using a mature database access library like SQL Alchemy will require to use non async functions a lot, as it does not support async yet (I know there are options but I am not sure I want to use it). The doc claims that then the function runs on a separate thread pool.

Does that mean:

1/ a new thread will be created for each new http client request: in that case I guess the async nature of fastapi just disappear...

2/ a new thread will be created just for a new sql connection/session while keeping the requests handlers async on the main pool ? In that case what kind of thread is it ? is it a fixed thread pool ? is the number of threads configurable ? How will it be managed regarding the number of connections in the connection pool (dead locks ...) ?

Thanks for your help !

--pascal

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, minimal, reproducible, example with my use case:

from fastapi import FastAPI

app = FastAPI()

@app.get('/cookies')
def cookie(name=Cookie(None)):
return {'name': name}

Description

Run the above code

Goto swagger to test the cookies.

The name is returned as null instead of what was input.

Environment

OS: [e.g. Linux / Windows / macOS]: Linux

FastAPI Version [e.g. 0.3.0]: 0.60.1

To know the FastAPI version use:

python -c "import fastapi; print(fastapi.__version__)"

Python version:

To know the Python version use:

python --version

Additional context
Issue 1:
I'm submitting a ... (check one with "x")

[x ] bug report

**Current behavior**

look at the plunkr:
http://plnkr.co/edit/hB34VjxP98uz1iAYS7Dw?p=preview

input Name is part of form, Name1, which is defined in a sub-component is not part of form

**Expected/desired behavior**

If I enter "abc" and "xyz", heroForm.form.value should be {name: "abc", name1: "xyz"}

**Please tell us about your environment:**

* **Angular version:** 2.0.0-rc.4

* **Browser:** [all]

* **Language:** [ TypeScript X.X ]

Issue 2:
I'm submitting a ... (check one with "x")

[ ] bug report
[x ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior

Using the new form API, if a parent component has a <form> tag, and child components have <input> tags using the [(ngModel)] directive, then input components will not be registered with the parent form.

Expected/desired behavior

If a parent component has a form containing child components with ngModel-bound input components in their template, then these input components should be registered with the parent form.

Reproduction of the problem

See this plunkr: https://plnkr.co/edit/oKmTF7FgJM24L3ZvZ7F2?p=preview

What is the expected behavior?

The parent form should not be valid if the child input is invalid

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

There should be a way to wrap form parts in components and embed them in a parent form. Imagine a tabbed-form with a single save button, or a form containing a list of items.

Please tell us about your environment:

Angular version: 2.0.0-rc.3

Browser: [Chrome ]

Language: [TypeScript]
Issue 1:
Summary of the new feature/enhancement

Enhance FancyZones to support seamless multi-monitor snap capability, equivalent to what Windows 10's built-in Snap function supports.

Description

Currently, Win10's built-in Snap feature, although extremely limited in configurability, allows windows to be freely snapped between multiple monitors. FancyZones greatly enhances configurability, but reduces functionality by presently only allowing apps to be snapped around the monitor they are currently positioned on. (This is most evident if the FancyZones option Override Windows Snap hotkeys (win+arrow) to move windows between zones has been enabled.)

While It is possible to manually drag windows to other monitors where they can then be snapped, this undermines Snap's inherent efficiency.

It would be greatly beneficial to enhance FancyZones enabling it reproduce the multi-monitor snapping ability provided by Windows 10 out-of-the box, increasing efficiency vs current state and improving seamless operation vs Windows 10 alone.

Issue 2:
The new multi-monitor zone editor works like a charm, but it's not possible to use the win+arrow to move a window from one screen to another. When using the snap hotkeys, you are restricted to the monitor your window is currently on.

Would be nice if this followed the same convention as the regular snapping on multi-monitor setups, and would let you move through all zones on one monitor and then on to the zones of the second monitor.
Issue 1:
RFC 6265[1] allows cookie values to be double-quoted[2]. However, the current sanitization code strips the double quotes out of a double-quoted value (i.e., a value beginning with a double quote and ending with a double quote). Ironically, the sanitization code double quotes a value if it begins or ends with a space or comma. The RFC grammar specification allowing the surrounding double quotes is also included in the comments of the sanitizeCookieValue() function.

The inability to double-quote a cookie value is preventing me from duplicating the behavior of a legacy Java system I am replacing.

There was some tangentially related conversation for #7243, but that conversation did not address this issue specifically.

[1] http://tools.ietf.org/html/rfc6265

[2] cookie-value = *cookie-octet / ( DQUOTE *cookie-octet DQUOTE )

Issue 2:
What steps will reproduce the problem?
1.build this program with gomake
2.run leak4 m /tmp/x (server)
3.run leak4 e /tmp/x (client)
4. Observe that each time you run 'leak4 e', the 'leak4 m' grows by about 1.5m. It will
continue to grow until the OOM killer is invoked.

What is the expected output?

leak4 m should stabilize at some reasonable size (although 5M for something this simply
is not necessarily reasonable)

What do you see instead?
leak4 grows without bound

What is your $GOOS? $GOARCH?
linux/i386

Which revision are you using? (hg identify)
0702e278ff73+ tip

Please provide any additional information below.

rminnich@vmatic:~/clustermatic/goproc$ ./leak4 e /tmp/x
rminnich@vmatic:~/clustermatic/goproc$ ps axl | grep leak4
0 1000 2950 30465 20 0 4568 1748 signal T pts/0 0:00 vi leak4.go
0 1000 3036 30657 20 0 1996 720 wait S+ pts/1 0:00 strace -o mx -f
./leak4 m /tmp/x
0 1000 3037 3036 20 0 5660 3584 futex_ Sl+ pts/1 0:00 ./leak4 m /tmp/x
0 1000 3042 30465 20 0 3324 816 pipe_w S+ pts/0 0:00 grep --color=auto
leak4
rminnich@vmatic:~/clustermatic/goproc$ ./leak4 e /tmp/x
rminnich@vmatic:~/clustermatic/goproc$ ps axl | grep leak4
0 1000 2950 30465 20 0 4568 1748 signal T pts/0 0:00 vi leak4.go
0 1000 3036 30657 20 0 1996 720 wait S+ pts/1 0:00 strace -o mx -f
./leak4 m /tmp/x
0 1000 3037 3036 20 0 7780 5680 futex_ Sl+ pts/1 0:00 ./leak4 m /tmp/x
0 1000 3047 30465 20 0 3324 816 pipe_w S+ pts/0 0:00 grep --color=auto
leak4
rminnich@vmatic:~/clustermatic/goproc$

Attachments:

leak4.go (537 bytes)
Issue 1:
babel@7.0.0-beta.46 uses babel.config.js for global config. See babel/babel#7358.

next@6.0.0 uses .babelrc.

> Using external babel configuration
> Location: "/app/.babelrc"

I assume this is because next@6.0.0 uses babel@7.0.0-beta.42 and not the latest yet.

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

Issue 2:
I'm talking about this.

To reproduce just follow the steps on the readme. When running npm run dev you'll get an error:

ERROR Failed to compile with 1 errors

error in ./pages?entry

Module build failed: TypeError: unknown: Duplicate declaration "_JSXStyle"
1 | import _JSXStyle from 'styled-jsx/style';
2 | import React from 'react';
> 3 | import _JSXStyle from 'styled-jsx/style';
| ^
4 | export default (function () {
5 | return React.createElement(
6 | 'div',
at File.buildCodeFrameError (/Users/Joonas/test/with-styled-jsx-postcss/node_modules/babel-core/lib/transformation/file/index.js:431:15)
at Scope.checkBlockScopedCollisions (/Users/Joonas/test/with-styled-jsx-postcss/node_modules/babel-traverse/lib/scope/index.js:398:27)
at Scope.registerBinding (/Users/Joonas/test/with-styled-jsx-postcss/node_modules/babel-traverse/lib/scope/index.js:592:16)
at Scope.registerDeclaration (/Users/Joonas/test/with-styled-jsx-postcss/node_modules/babel-traverse/lib/scope/index.js:516:14)
at Object.Declaration (/Users/Joonas/test/with-styled-jsx-postcss/node_modules/babel-traverse/lib/scope/index.js:176:36)
at NodePath._call (/Users/Joonas/test/with-styled-jsx-postcss/node_modules/babel-traverse/lib/path/context.js:76:18)
at NodePath.call (/Users/Joonas/test/with-styled-jsx-postcss/node_modules/babel-traverse/lib/path/context.js:48:17)
at NodePath.visit (/Users/Joonas/test/with-styled-jsx-postcss/node_modules/babel-traverse/lib/path/context.js:105:12)
at TraversalContext.visitQueue (/Users/Joonas/test/with-styled-jsx-postcss/node_modules/babel-traverse/lib/context.js:150:16)
at TraversalContext.visitMultiple (/Users/Joonas/test/with-styled-jsx-postcss/node_modules/babel-traverse/lib/context.js:103:17)

@ multi ./~/next/dist/client/webpack-hot-middleware-client ./pages?entry

> Ready on http://localhost:3000

Everything works well with beta.20 but after that nope.
Issue 1:
Preflight Checklist

I have read the Contributing Guidelines for this project.

I agree to follow the Code of Conduct that this project adheres to.

I have searched the issue tracker for an issue that matches the one I want to file, without success.

Issue Details

Electron Version:

9.2.1, 11.2.3

Operating System:

win7, win 10

Last Known Working Electron version:

None

Expected Behavior

window.setSize should set the height according to input

Actual Behavior

Height is different upto +- 3 pixels

To Reproduce

Open any window

Change the height using window.setSize

Read the height using window.getSize

Below is the code and output of running the fiddle on my machine with 100% and 125% DPI scaling

mainWindow.setSize(800, 750)
console.log(mainWindow.getSize())

100% DPI

12:22:11 PMElectron v11.1.1 started.

**12:22:11 PM[ 800, 750 ]**

125% DPI

12:23:11 PMElectron v11.1.1 started.

**12:23:12 PM[ 800, 751 ]**

Issue 2:
Preflight Checklist

I have read the Contributing Guidelines for this project.

I agree to follow the Code of Conduct that this project adheres to.

I have searched the issue tracker for an issue that matches the one I want to file, without success.

Issue Details

Electron Version:

11.2.3

Operating System:

Windows 10 20H2

Last Known Working Electron version:

unknow

Expected Behavior

setBounds to output of getBounds makes no effect to BrowserWindows size

Actual Behavior

setBounds to output of getBounds makes BrowserWindows size larger every time setBounds called

To Reproduce

main.js

const { app, BrowserWindow } = require('electron')

function createWindow () {
const win = new BrowserWindow({
width: 801,
height: 601,
webPreferences: {
nodeIntegration: true
}
})

win.loadFile('index.html')

let bounds = null

win.on('minimize', () => {
bounds = win.getBounds()
})

win.on('restore', () => {
win.setBounds(bounds)
console.log(win.getBounds())
})
}

app.whenReady().then(createWindow)

app.on('window-all-closed', () => {
if (process.platform !== 'darwin') {
app.quit()
}
})

app.on('activate', () => {
if (BrowserWindow.getAllWindows().length === 0) {
createWindow()
}
})

index.html

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline';" />
</head>
<body style="background: white;">
<h1>Hello World!</h1>
<p>
We are using node <script>document.write(process.versions.node)</script>,
Chrome <script>document.write(process.versions.chrome)</script>,
and Electron <script>document.write(process.versions.electron)</script>.
</p>
</body>
</html>

Screenshots

Additional Information
Issue 1:
let obj = {
foo: 'foo',
bar: 'bar'
};
// outputs:
let obj = {
foo: 'foo',
bar: 'bar'
};

but:

let obj = {
foo: 'foo',
bar: 'bar',
};
// outputs:
let obj = {
foo: 'foo',
bar: 'bar' };

This is a super critical high-priority bug, I'm super angry at you @sebmck. Why are you destroying my life? I hate you with every cell in my body and hope that you get hit by a bus.

Issue 2:
Super low priority.

This works as expected:

Input:

var foo = {
bar: true
}

Output:

"use strict";

var foo = {
bar: true
};

However, adding a trailing comma makes the last linebreak disappear:

var foo = {
bar: true,
}

Output:

"use strict";

var foo = {
bar: true };

REPL: http://babeljs.io/repl/#?experimental=true&evaluate=true&loose=true&spec=false&playground=true&code=var%20foo%20%3D%20%7B%0A%20%20bar%3A%20true%2C%0A%7D