WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
From @Wosi on November 10, 2015 12:0

I created a languageDef.js file for ObjectPascal that used to work from the first preview version until v0.9.2.

As far as I know this format is no longer supported so I moved to the .plist definition format. I was able to rewrite the grammar definition in order to let the highlighted source look like 95% the same as before.

But I have a problem to redefine the bracket matching.

This screenshot shows the bracket matching for begin and end in version 0.9.2:

I used this code in 0.9.2 to enable the bracket matching:

brackets: [
// ...
{ token: 'keyword.tag-begin', open: 'begin', close: 'end' },
// ...
],

How do I enable the bracket matching in version 0.10.0 for this kind of brackets?

I tried to do it in the languageMain.js file inside the language configuration sections brackets, __electricCharacterSupport and __characterPairSupport. But none of the works when the brackets contain multiple characters.

Is this feature completely broken in 0.10.0?

Copied from original issue: Microsoft/vscode-extensionbuilders#90

Issue 2:
VSCode Version: 1.0.0

OS Version: OS X El Capitan 10.11.4

Steps to Reproduce:

I'm trying to bind quick open (ctrl+p) command to shift shift (shift x2) keys like IntelliJ IDEA in VS Code Extension (TypeScript).

But vscode.commands.registerCommand('type', (args) => args.text) can't detect shfit key.

How can I detect shift shift key?

// VSCode v0.10.12 or higher (not working <= v0.10.11)
'use strict';
import * as vscode from 'vscode';

export function activate(context: vscode.ExtensionContext) {

let disposable = vscode.commands.registerCommand('type', (args) => {

vscode.window.showInformationMessage(args.text);

vscode.commands.executeCommand('default:type', {
text: args.text
});
});

context.subscriptions.push(disposable);
}
Issue 1:
Was working on a removeDiacritics() helper for deno_std and it appears that Deno is not properly handling string.normalize().

env:

deno: 0.3.2
v8: 7.4.238
typescript: 3.2.1

Example:

strTest.ts

let input = "éèñëàäáüúùìíîïæç";
console.log(input.normalize("NFD").replace(/[\u0300-\u036f]/g, ""));

tsc strTest.ts -target esnext | node strTest.js // output: eeneaaauuuiiiiæc
deno strTest.ts // output: éèñëàäáüúùìíîïæç

ref: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/normalize

Issue 2:
As seen in #1952 / #1636 ICU needs to be added in Deno build.

Switching this flag to true maybe: https://github.com/denoland/deno/blob/master/.gn#L50 ?

ref: https://v8.dev/docs/i18n
Issue 1:
Suggest assign "Shift+Win+arrow" for Fancyzones and leave "Wim+arrow" with system's twin zones, then I have 2 options at the same time, 2 half zones by "Wim+arrow" , and 3 zones (or any others you want) by "Shift+Win+arrow".

btw, I can drag and drop the board of both zone with "Wim+arrow" , but it need 3 actions by FancyZones.

Actually already suggested in issue #2342, the response was 'Regarding 'win + shift + arrow', in 0.18 it will be optional.' but not find the settings?

Issue 2:
I recently installed a new application.

But when I used PowerToys Run, I found that it could not recognize the new application.

Only "XXX.lnk" and "Search: path" will be displayed instead of app name and "win32 app".

Hope this problem can be fixed.
Issue 1:
Scenario

$ deno test ${pem_hello} ./hello.ts
$ deno test ${pem_world} ./world.ts
# WILD PERM
$ deno test -A
$ deno run ${perm_hello} ./hello.ts
$ deno run ${perm_hello} ./world.ts
$ deno compile ${perm_hello} ./hello.ts
$ deno compile ${perm_world} ./world.ts

Feat

deno.jsonc

{
"perm": Perm | Path | WhatwgImportId
}

type Perm = Record<PermId, DenoPerm>
type PermId = ImportMapId | PlaceHolderImportId | WhatwgImportId;

$ deno test
$ deno run ./hello.ts
$ deno run ./world.ts
$ deno compile ./hello.ts
$ deno compile ./world.ts

Issue 2:
With basic code such as this:

const baseDir = "./";
const watcher = Deno.watchFs(baseDir);

for await (const event of watcher) {
console.log(event);
}

And then when I go ahead and change a file, just once!, I get three concecutive events that look like this:

{
kind: "modify",
paths: [ "index.html.hbs" ]
}
{
kind: "modify",
paths: [ "index.html.hbs" ]
}
{
kind: "modify",
paths: [ "index.html.hbs" ]
}

Shouldn't I receive just one event since the file was changed just once?

deno 1.16.2 (release, aarch64-apple-darwin)

v8 9.7.106.2

typescript 4.4.2
Issue 1:
transformers version: 3.0.2

Platform: Linux

Python version: 3.6

PyTorch version (GPU?): 1.4 (GPU)

Using GPU in script?: Yes

Using distributed or parallel set-up in script?: No

Who can help

@sshleifer

Information

Model I am using (Bert, XLNet ...): BART

The problem arises when using:

the official example scripts: (give details below)

my own modified scripts: (give details below)

The tasks I am working on is:

an official GLUE/SQUaD task: (give the name)

my own task or dataset: (give details below)

To reproduce

Steps to reproduce the behavior:

Running the example script in https://github.com/huggingface/transformers/tree/master/examples/seq2seq (finetune_bart_tiny.sh), I'm getting this warning in the beginning of training. However, the training process is continuing after that.

Warning:

finetune.py:245: UserWarning: All learning rates are 0
warnings.warn("All learning rates are 0")
Epoch 1: 0%|
/home/sajad/anaconda3/lib/python3.6/site-packages/torch/optim/lr_scheduler.py:224: UserWarning: To get the last learning rate computed by the scheduler, please use `get_last_lr()`.
warnings.warn("To get the last learning rate computed by the scheduler, "

Expected behavior

While the training seemingly goes well, I'm wondering if this warning would cause problems, leading to deteriorate model's final performance? As a add-on, I've also incorporated the gradient checkpointing to some computational blocks of BART (modifying modelling_bart.py script a bit). But even w/o incorporating this module, I'm still getting this warning message? Any thoughts of how to solve it?

Issue 2:
transformers/examples/seq2seq/finetune.py 219row :

if max(scheduler.get_last_lr()) > 0:

warnings.warn("All learning rates are 0")

why, is there something i left?
Issue 1:
pyplot.stem() does not work when the data contains dates because axes.stem() forces the data to float (

matplotlib/lib/matplotlib/axes/_axes.py

Line 2285
in
998676a

y = np.asarray(args[0], dtype=np.float)

and

matplotlib/lib/matplotlib/axes/_axes.py

Line 2290
in
998676a

second = np.asarray(args[0], dtype=np.float)

).

Is this really necessary? by removing the conversion to float, plotting dates in the abscissa works, for instance.

Issue 2:
Hey everyone,

I recently updated to MPL 1.3.1 on our group workstation and the stem function does not work anymore with datetime objects as the first argument floating point values on the y axis (same length of course). A similar issue with the same error was reported here two weeks ago:

http://stackoverflow.com/questions/19794225/python-plot-stem-with-datetime-base

It used to work prior to the update. Do I have to convert the datetime arguments to floats and set the corresponding xlabels manually or will this feature be re-enabled in future releases?

Thank you and best regards

Florian
Issue 1:
Error 'IO error: Broken pipe (os error 32)' contains boxed error of unknown type:

Io(Os { code: 32, kind: BrokenPipe, message: "Broken pipe" })

Os { code: 32, kind: BrokenPipe, message: "Broken pipe" }

error: Uncaught (in promise) Error: IO error: Broken pipe (os error 32): Broken pipe (os error 32)

at async deno:ext/websocket/01_websocket.js:514:13

This situation can happen, but maybe there is a better way to handle it than crashing the whole server.

Issue 2:
[Using Deno 1.28.0]

I frequently have the following exception that kills my program:

error: Uncaught (in promise) Error: IO error: Broken pipe (os error 32): Broken pipe (os error 32)
at async deno:ext/websocket/01_websocket.js:507:13

I had a look at the source code, and it seems that this set of lines should be included in a try-catch block:

deno/ext/websocket/01_websocket.js

Line 507
in
1416713

await core.opAsync("op_ws_send", this[_rid], {

await core.opAsync("op_ws_send", this[_rid], {
kind: "ping",
});
Issue 1:
Moving a file using the mv command while it is open in atom causes it to show the following error-message.

Uncaught TypeError: Cannot call method 'getScreenRow' of undefined /usr/local/share/atom/resources/app/src/editor.js:1311

Version/Platform:

eaeb5b3

Linux luto-portable 3.14.4-1-ARCH #1 SMP PREEMPT Tue May 13 16:41:39 CEST 2014 x86_64 GNU/Linux

echo 1 > a.txt
atom a.txt &
sleep 2s
mv a.txt b.txt

Issue 2:
Repro Steps

Open Atom

Create file foo.md

Highlight file in tree view

Press Delete button

Click "Delete" option (not "Move to Trash")

Expected: No error occurs

Actual: Exception happens:

Uncaught TypeError: Cannot call method 'getScreenRow' of undefined

/Applications/Atom.app/Contents/Resources/app/src/editor.js:1311
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: xxx

Operating System version: xxx

Java version: xxx

Steps to reproduce this issue

remove the explicit type when assigning object

https://github.com/apache/dubbo/blob/master/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/integration/RegistryProtocol.java#L532

https://github.com/apache/dubbo/blob/master/dubbo-rpc/dubbo-rpc-api/src/main/java/org/apache/dubbo/rpc/RpcInvocation.java#L72

camel case:

dubbo/dubbo-rpc/dubbo-rpc-dubbo/src/main/java/org/apache/dubbo/rpc/protocol/dubbo/CallbackServiceCodec.java

Line 299
in
ba89f44

byte callbackstatus = isCallBack(url, inv.getMethodName(), paraIndex);

callbackstatus

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 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.6.5

Operating System version: Red Hat 4.8.5-11

Java version:1.8.0

Steps to reproduce this issue

consumer use http protocol

submit a POST request

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

Expected Result

response data

Actual Result

report errors

java.util.concurrent.ExecutionException: java.lang.IllegalStateException: Invalid use of BasicClientConnManager: connection still allocated.
Make sure to release the connection before allocating another one.
at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0]
at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0]
at
Issue 1:
Is there any support to do async validation only when the form field lost focus or it is blur or when the user is done his data entry?

currently validation is happening for each and every character entry, which is not right. I want to call a validation only when the user has completed his input for that particular form field.

I have tried the proposed solutions from this post--#7113, but none of them seems working

Current behavior

validation is called for every character entry.

Expected behavior

validation should be called only when the user is done with the input entry

password: ['', Validators.compose([Validators.required]),this.customvalidator.validateasync(),{

syncValidateEvent: 'change',

asyncValidateEvent: 'blur'}]

is anyone got a solution for this scenario?

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

[x] bug report => search github for a similar issue or PR before submitting
[ ] 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

The upgrade adapter silently fails to bootstrap a hybrid application in the following cases:

Invalid dependency in angular2 components . See reproduction plunk bellow

Template errors in angular 2 component. See reproduction plunk bellow

Expected behavior

Errors should be reported by the upgrade adapter

Minimal reproduction of the problem with instructions

This first plunk illustrates the scenario with an invalid dependency being requested by a component:

https://plnkr.co/edit/am6Ggf61dVG7WLvT7aa3?p=preview

Open the browser's developer tools when you open the plunk and you should see just a message

bootstrapping ...

To fix the bootstrapping issue, comment lines 21 and 22 in src/app.ts

// COMMENT ME TO FIX BOOTSTRAPPING ISSUE
constructor(foo:bar){
}

This second plunk illustrates the scenario with an invalid template being used in an angular 2 component:

https://plnkr.co/edit/pomPcakWVjWLfjVw8qSq?p=preview

Open the browser's developer tools when you open the plunk and you should see just a message

bootstrapping ...

To fix the bootstrapping issue, comment line 14 in src/app.ts

<!-- COMMENT ME TO FIX BOOTSTRAPPING ERROR -->
<BAD TEMPLATE div></div>

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

Improve development experience

Please tell us about your environment:

Angular version: 2.0.1

Browser: all

Language: TypeScript 2.0.3

Node (for AoT issues): node --version = N/A
Issue 1:
Run your app on an Android Emulator

Type something in a textformfield (which has a validator)

call .clear() on a TextEditingController

Type with the on screen keyboard: fine

Type with your computer's keyboard: crash

iOS: fine

E/AndroidRuntime(21783): java.lang.IndexOutOfBoundsException: replace (0 ... -1) has end before start E/AndroidRuntime(21783):	at android.text.SpannableStringBuilder.checkRange(SpannableStringBuilder.java:1302)

Issue 2:
There is strange situation, when I enter the value for Phone number after completing the above fields then app crashes. All the text fields are right aligned. And keyboardType = TextInputType.text. But for phone number field keyboardType is TextInputType.phone.

If I change the keyboardType: to TextInputType.text then it works fine.

Error:

Fatal Exception: java.lang.IndexOutOfBoundsException: replace (0 ... -1) has end before start
at android.text.SpannableStringBuilder.checkRange(SpannableStringBuilder.java:1258)
at android.text.SpannableStringBuilder.replace(SpannableStringBuilder.java:515)
at android.text.SpannableStringBuilder.delete(SpannableStringBuilder.java:230)
at android.text.SpannableStringBuilder.delete(SpannableStringBuilder.java:229)
at io.flutter.plugin.editing.InputConnectionAdaptor.sendKeyEvent(InputConnectionAdaptor.java:163)
at com.android.internal.view.IInputConnectionWrapper.executeMessage(IInputConnectionWrapper.java:440)
at com.android.internal.view.IInputConnectionWrapper$MyHandler.handleMessage(IInputConnectionWrapper.java:93)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6119)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
Issue 1:
Debugging crashes when adding watch and i get the below message

Assertion failed: object->InternalFieldCount() > 0, file d:\jenkins\workspace\nodejs-msi-julien\d8c2e2bb\src\util-inl.h, line 117

Version 0.10.10

Commit 5b5f4db

Issue 2:
When debugging a NodeJS Express.js POST method using Postman (The Chrome app) with babeljs transpiled code this error is thrown:

Assertion failed: object->InternalFieldCount() > 0, file d:\jenkins\workspace\nodejs-msi-julien\d8c2e2bb\src\util-inl.h, line 117

This bug is reproducable over different POST url's.

Developer Tools doesn't say anything.

I'm not allowed to share code but if absolutely necessary I might try and create an isolated use case where it's reproducable...

How to reproduce:

Create a NodeJS Express.js server with ES6 syntax and create a POST REST method, and transpile it using npm-babel (https://www.npmjs.com/package/babel).

Place a breakpoint at the first entry point in your POST function

Using Postman, send a POST request and wait

It should first stop at the breakpoint and shortly after throw the error and exit the debugger.
Issue 1:
First check

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.

Description

How can I generate the swagger without starting the service?

Issue 2:
Is your feature request related to a problem

Not a bug, just a problem with my CI system.

I want to be able to programmatically access the openapi schema and save it to a file without running the web server

The solution you would like

Ideally, I'd like to write a script that would output the openapi schema without running the webserver.

from myapp.api import api
json.dump(
get_schema_from_app(api),
open('openapi_schema.json', 'w')
)

Describe alternatives you've considered

I've considered running the app in my CICD workflow and requesting the schema via http, but that seems like a lot of overhead, and I'd bet the functions to do what I want are already in the code and just need to be invoked in the right order.

Additional context

Nothing to add, other than I'm gonna open a PR and see if I can figure it out.
Issue 1:
Because of the privileges control of the server,

The Status Code that is sometimes returned is 401

When I tried to process Status Code, I triggered an exception directly.

Issue 2:
Hello All,

We are working on react-redux client application where axios library used for any XHR request. Sometimes backend service (Spring Boot REST endpoint) returns 4xx/5xx series HTTP response code. While we are trying to catch response status code from error object, found it is not available. Is there anyway HTTP response code can be extracted during error scenarios. We are using axios version 0.15.2.

Look forward to hear back from community.

Thanks

Context

axios version: e.g.: v0.15.2 or v0.16.2

Environment: e.g.: node v6.9.4, chrome 54, windows 7
Issue 1:
a = Array(Array{Float64,1},2)
a[1] = [1.;2.;3.]
a[2] = [3.;4.;5.]
broadcast(*,[2.;3.],a)

gives

2-element Array{Any,1}:
[2.0,4.0,6.0]
[9.0,12.0,15.0]

I would have expected an Array{Array{Float64,1},1}.

Issue 2:
The following code fails with an InexactError():

X = [1,2,3]
Y = [4 5]
broadcast(atan2, X, Y)

whereas

[atan2(x,y) for x in X, y in Y ]

(albeit producing an array of type Any), while

atan2([1,2,3],[4,5,6])

produces an array of Float64.

Can we improve the type inference so that all three cases can generate Float64 arrays? Note that this is needed for #4363 (for @vectorize_2arg to use broadcast).
Issue 1:
In this case, picture is worth 1000 words:

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

Expected Behavior

Data urls should be left unmodified

Current Behavior

filter: url('data:image/svg+xml;... gets mangled into filter: url("http://localhost:3000//'data:image/svg+xml;...

Steps to Reproduce (for bugs)

Clone https://github.com/agurtovoy/nextjs-css-substitution-bug

npm install

npm dev

Open http://localhost:3000/ in Firefox, go to dev console's Style Editor tab, select "Show original sources" option to see the compiled CSS:

Context

Note that the issue has more severe impact in production: a side-effect of this bug is that the browser ignores the rest of the CSS line in question due to unmatched "; because in production the CSS is likely to be minimized into a single line of text, that means that all styles following the filter: drop-shadow property will be silently ignored.

You can see that effect in the repo with the reproduce: if you do npm build && npm start, you'll see that the "Hello" text loses its red styling.

Your Environment

Tech
Version

next
4.1.4

node
v6.11.1

OS
macOS

browser
any

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

We use semantic-ui for our styling. I have tried the latest 5.0.1-canary17 and the problem is also there.

Expected Behavior

When simply upgrading from 5.0.0 to 5.0.1-canary.1 I expect the CSS to be the same

This is a screenshot with 5.0.0

This is a screenshot with 5.0.1-canary.1

I have made a small project where the problem can be seen. The repo can be found here ->

Current Behavior

The layout is rendered as we think it should look

Steps to Reproduce (for bugs)

git clone https://github.com/LarsBuur/test-semantic-ui-next-canary.git
cd test-semantic-ui-next-canary
npm install && npm run build && npm start

open http://localhost:3000

confirm the layout renders with padding around black area

change "next": "^5.0.0" to "next": "^5.0.1-canary.1" in package.json

npm run clean && npm install && npm run build && npm start

open http://localhost:3000

confirm that the layout renders without padding around the black area

Context

Build a next app with custom server for our endpoints.

Your Environment

Tech
Version

next
5.0.0

node
v.9.0.0

OS
OSX 10.13.4 Beta (17E182a)

browser
Google Chrome 65.0.3325.162 (Officiel version) (64-bit)

|

-- | --
Issue 1:
Presently the facetgrid accept:

row, col, hue : strings

Variables that define subsets of the data, which will be drawn on separate facets in the grid.

Suppose I want to use a variable that it is not a column of my dataset, but that it can be computed starting from that. What I need to do now is to add a new column to my dataset and then use the name of this new column as argument.

Suppose I want to set the hue depending on the column 'column1' which is of type string, but I want to ignore the case. What about something like this:

hue = lambda x: x['column1'].capitalize()

In addition it would be nice to add the possibility to use ranges. Suppose I want to set hue depending on column 'column2' which is of type float. Here I want to define categories depending on some binning as in pandas.Cut. As before I would like to avoid to add a column to my dataframe just to do a plot.

Issue 2:
When the category you are mapping out to use as the hue in facetgrid contains three items then they do not colour as they should, instead taking on a grayscale when plotted using pyplot scatter. See attached code and image.

This issue was fixed for lmplot from Seaborn 0.6 to 0.7, but is still present in the facetgrid.

Points from category 'three' circled in red.

python 2.7

pandas version: 0.17.1

numpy version: 1.10.1

matplotlib version: 1.5.1

seaborn version: 0.7.0

import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns

df = pd.DataFrame(np.random.randint(0,100,size=(15, 4)), columns=list('ABCD'))

lst = ['one', 'two', 'two', 'three', 'three', 'three', 'four', 'four', 'four',
'four', 'five', 'five', 'five', 'five', 'five']

df["color"] = lst

print df

graph = sns.FacetGrid(data=df, hue='color')
graph.map(plt.scatter, 'A', 'B', s=300,
alpha=1, edgecolors='black', linewidths=1)
plt.legend(loc='center left', bbox_to_anchor=(1.01, 0.5))
plt.show()
Issue 1:
Need to be able to CRUD namespace resources.

Do during or after the query-parameter -> namespace-in-path transition.

A namespace object just contains the name of the namespace, and no other data that I can think of at this time.

An object cannot be created in a namespace unless the namespace object already exists.

Reasons:

prevent accidental creation of new namespaces as a side effect of object creation with mistyped namespace name.

limit which users can create new namespaces, as there may be some policy around who can get which names.

to ease validation/warning about authorization policy, admission control policy, etc, which references namespaces.

to ease listing/watching namespaces in peripheral system components.

Issue 2:
We only use the StatusReason consts defined in pkg/api/types.go.

Some of the constants are duplicated in api/types and api/v1beta{1,2,3}/types.go while some are not.

Since StatusReason* constants defined in api/v1beta{1,2,3}/types.go are not used anywhere, can we just delete them?