WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Environment

Windows build number: 10.0.18950.1000
Windows Terminal version (if applicable): 0.3.2142.0 (from Microsoft Store)

Any other software?
Not a software, but I'm using GitHub authentication with Microsoft Account.

Steps to reproduce

I tried to use Azure CloudShell Connector, but the connector shows an error message like below.

Expected behavior

I think it should work normally.

Actual behavior

I captured traffic with Fiddler4. The OAUTH API returns 400 error code like below. The API says AADSTS70016: Pending end-user authorization.. I don't know what causes the error after authentication is complete, but authentication fails as shown in the attached screenshot.

If there are any conditions or circumstances that prevent the device from logging in, it may be necessary to provide guidance on how to respond appropriately.

Request

POST https://login.microsoftonline.com/common/oauth2/token HTTP/1.1
Connection: Keep-Alive
Content-Type: application/x-www-form-urlencoded; charset=utf-8
User-Agent: cpprestsdk/2.10.13
Content-Length: 328
Host: login.microsoftonline.com
Cookie: stsservicecookie=ests; x-ms-gateway-slice=prod; fpc=...

grant_type=device_code&resource=https://management.core.windows.net/&client_id=...&code=...

Response:

{"error":"authorization_pending","error_description":"AADSTS70016: Pending end-user authorization.\r\nTrace ID: 020679d0-f785-40be-b55c-b6dfa9029500\r\nCorrelation ID: 2de85d18-59f3-44b5-8e91-aa9ada0412b8\r\nTimestamp: 2019-08-05 04:19:27Z","error_codes":[70016],"timestamp":"2019-08-05 04:19:27Z","trace_id":"020679d0-f785-40be-b55c-b6dfa9029500","correlation_id":"2de85d18-59f3-44b5-8e91-aa9ada0412b8"}

Issue 2:
Description of the new feature/enhancement

HPA is an escape sequence for setting the horizontal cursor position.

Technically there is a distinction between HPA, which sets the data position, and CHA, which sets the presentation position (at least according to ECMA-048). However, I believe that only applies to bidirectional environments, and from what I've seen, it looks like most terminal emulators just treat them as synonyms.

Since we already support CHA, this doesn't really provide us with any new functionality, but it is one of the sequences tested by Vttest, so it would be nice to support, and it should be trivial to add.

Proposed technical implementation details (optional)

Add a new entry in the VTActionCodes enum.

Update the OutputStateMachineEngine::ActionCsiDispatch method to treat that new code as a synonym for the existing CHA_CursorHorizontalAbsolute.

If you care about tracking it as a separate telemetry entry, that would require a little more duplication of code, but it's still fairly trivial.
Issue 1:
If you go to the sidebar, right click, and create a new file, or rename a file etc. The dialogue on the top will disappear if you switch to a different full screen app.

Is this intentional?

Issue 2:
Halp reports:

support/a3fbafb2d0c011e3855fe03a98b207e5

support/4068a4a4d08f11e39bd83f5315db0b57

Related Issues

atom-archive/feedback#22

atom/fuzzy-finder#37

If you have opened up the Command Palette (Command-Shift-P) in Atom v.0.92.0, and then switch to another app, say the Mac OS X Terminal app to run something you've been working on, the Command Palette is gone when you switch back (this is also true of this "Send us feedback" drop-down pane). It would be preferable if, on switching back to the Atom app v.0.92.0, that the Command Palette were still open where you left it.

I've noticed this myself, but never fund it particularly annoying. Also, some other dialogs are affected by this as well, such as the fuzzy finder. Unsure if this is something that's handled on a per-package basis or in Atom core, so opened an issue here. 🍕

It seems that SublimeText doesn't have consistent behavior with these dialogs -- the command palette is closed similar to Atom, but the fuzzy finder is not (it stays open even after the app loses focus).
Issue 1:
@nonnull

public final Registry setResourceDecoderBucketPriorityList(@nonnull List buckets) {

List modifiedBuckets = new ArrayList<>(buckets);

modifiedBuckets.add(0, BUCKET_PREPEND_ALL);

modifiedBuckets.add(BUCKET_APPEND_ALL);

decoderRegistry.setBucketPriorityList(modifiedBuckets);

return this;

}

It may appear here

java.lang.ClassCastException: int[] cannot be cast to java.lang.Object[]

at java.util.Arrays$ArrayList.toArray(Arrays.java:120)

at java.util.ArrayList.(ArrayList.java:97)

at com.bumptech.glide.Registry.setResourceDecoderBucketPriorityList(Registry.java:268)

Can you tell me what caused this?

Discovered by tracking， The last sentence here

public Registry() {

this.modelLoaderRegistry = new ModelLoaderRegistry(throwableListPool);

this.encoderRegistry = new EncoderRegistry();

this.decoderRegistry = new ResourceDecoderRegistry();

this.resourceEncoderRegistry = new ResourceEncoderRegistry();

this.dataRewinderRegistry = new DataRewinderRegistry();

this.transcoderRegistry = new TranscoderRegistry();

this.imageHeaderParserRegistry = new ImageHeaderParserRegistry();

setResourceDecoderBucketPriorityList(

Arrays.asList(BUCKET_GIF, BUCKET_BITMAP, BUCKET_BITMAP_DRAWABLE));

}

public static final String BUCKET_GIF = "Gif";

public static final String BUCKET_BITMAP = "Bitmap";

public static final String BUCKET_BITMAP_DRAWABLE = "BitmapDrawable";

Here is that this error should not occur

Issue 2:
Hi

I'd like an option to invalidate a cache key where the url/signature is known.

I've read through https://github.com/bumptech/glide/wiki/Caching-and-Cache-Invalidation, and that makes sense. However, if I set my own signature (for example "personalavatar"), and I know that key has changed during a background service upload. It should be easy enough to invalidate that one key.

There are other cases as well. For example in some situations when uploading new images we are very aware of where those images are being used and exactly which url is loaded. It would make sense in those scenarios to invalidate those cache keys, and wait for the next load to reload the image.
Issue 1:
This code will put the help text at the end of the appended text. Should wrap under the input. input-prepend does work however.

<div class="clearfix">
<label for="pet-weight">Initial Weight</label>
<div class="input">
<div class="input-append">
<input class="span5" id="pet-weight" name="pet[weight]" tabindex="6" type="text" value="">
<span class="add-on">lbs</span>
</div>
<span class="help-block">Some help text</span>
</div>
</div>

Issue 2:
When using .help-block with .input-append, the help text appears after the input instead of under it.

<div class="clearfix">
<label for="appendedInput">Appended text</label>
<div class="input">
<div class="input-append">
<input type="text" class="medium" id="appendedInput" name="appendedInput" size="16">
<span class="add-on">%</span>
</div>
<span class="help-block">Here's some help text</span>
</div>
</div>

P.S. I've only tested this with Bootstrap 1.0, please excuse me if it has already been fixed in 2.0.
Issue 1:
Electron version: v1.6.9

Operating system: Arch Linux with Gnome as DE

Expected behavior

NativeImage does not support SVG images :( I've to convert the images to png's and there's no easy way to doing so (use external libraries that almost every one of them requires PhantomJs...)

Every Linux distro supports using SVG icons for Tray icons. And so should nativeImage on Linux desktop.

Actual behavior

Doesn't work as SVG icons are not supported

How to reproduce

const nativeImage = require('electron').nativeImage

let image = nativeImage.createFromPath('/Users/somebody/images/icon.svg')
console.log(image)

The reason why I need this is that I've created a simple package to look for an icon on current icon theme used by the user. This way, electron applications can look more native with tray icons that can be themed by any theme designer (without any hackish solution like extracting the user file...)

And every icon theme on Linux is using SVG icons. I hope this convince you enough to make this happen👍

Issue 2:
When building the latest 0.27.3 the mac app bundle is about 142MB of which 136MB come from the Electron Framework.

Is there any way to make this package smaller?
Issue 1:
Mickaël Floc'hlay opened SPR-3372 and commented

On page 30 of the 2.0.4 Reference Manual, the <beans> tag is :

<beans xmlns="http://www.springframework.org/schema/beans"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">

Using this tag as is leads to an error (cf. thread in forum : http://forum.springframework.org/showthread.php?t=34417)

The correct <beans> tag should be :

<beans xmlns="http://www.springframework.org/schema/beans"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">

Affects: 2.0.4

Issue Links:

#8094 Problems with definition of bean namespace in several examples ("is duplicated by")

#8114 XML shown in section 3.2.1.1 of documentation missing attribute text ("is duplicated by")

#8093 XML shown in section 3.2.1.1 of documentation missing attribute text ("is duplicated by")

#8207 Doc: Still problems with definition of bean namespace in several examples

Issue 2:
chen xiaohu opened SPR-2109 and commented

when user jpetstore sample of m5 in resin3.0.14.

I think the error is can not use xsi:schemaLocation="

http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"

in applicationContext.xml in resin.

error :

[12:21:00.640] Caused by: java.lang.IllegalArgumentException: Bean name must not be empty

[12:21:00.640] at org.springframework.util.Assert.hasText(Assert.java:169)

[12:21:00.640] at org.springframework.beans.factory.config.RuntimeBeanReference.<init>RuntimeBeanReference.java:56)

[12:21:00.640] at org.springframework.beans.factory.config.RuntimeBeanReference.<init>RuntimeBeanReference.java:44)

[12:21:00.640] at org.springframework.beans.factory.support.BeanDefinitionBuild er.addPropertyReference BeanDefinitionBuilder.java:115)

[12:21:00.640] at org.springframework.transaction.config.TxAdviceBeanDefinition Parser.doParse TxAdviceBeanDefinitionParser.java:68)

.....

Affects: 2.0 M5

Issue Links:

#7439 SPR_2109 reoccurs in Resin 3.0.18 ("is depended on by")

#8244 CLONE -context:component-scan does not work in the web application ("is duplicated by")
Issue 1:
When using next.js app in production mode with assets hosted on static (or not next.js powered) CDN it breaks when user navigates to non-existing page.

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

Expected Behavior

Expected behavior to do full page "refresh" to allow integration between next.js powered pages other web pages on internet.

Current Behavior

It renders unexpected error page:

Steps to Reproduce (for bugs)

I created example repo: https://github.com/alexindigo/next-ab

Context

It doesn't allow us to integrate new next.js powered pages with the existing website.

Your Environment

Tech
Version

next
5.0.0

node
8.9.3

OS
macOS 10.13.3

browser
Chrome 64

Thank you.

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

Expected Behavior

Current Behavior

Steps to Reproduce (for bugs)

Context

Your Environment

Tech
Version

next

node

OS

browser

etc
Issue 1:
Challenge escaping-literal-quotes-in-strings has an issue.

User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36.

Please describe how to reproduce this issue, and include links to screenshots if possible.

var myStr = "I am a \"double quoted\" string inside \"double quotes\".";

Issue 2:
On the current staging, two challenges ("Escaping Literal Quotes in Strings" and "Quoting Strings with Single Quotes") do not pass all tests with standard solution code.

Namely, tests asserting regex match lengths for non-escaped double quotes are failing:

code.match(/[^\\\\]\"/g).length === 2 in the former challenge and

code.match(/\"/g).length === 4 in the latter.

(Note: each of these is only one half of their respective test, and it might be beneficial in this case to split each test into two parts so users know where to look for their mistake instead of counting every quotation mark, as well as speeding up debugging if something breaks the regex again later on.)
Issue 1:
[x ] I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

I'm not able to see console.log('some message') when applied to a pages getInitialProps.

Taking a fresh copy of next and creating an index page like so:

import React, { Component} from 'react'

export default class Index extends Component {
async getInitialProps() {
console.log('show your self')
}
render() {
return (
<div>Index Page</div>
)
}
}

Running the server (in dev mode) and hitting the index page shows no message in terminal.

Current Behavior

No log's at all

Steps to Reproduce (for bugs)

Create a new version of next.js project

Apply the above code to pages/index.js file

Run dev server

Check for logs after visiting localhost:3000

Context

Your Environment

Tech
Version

next
4.1.4

node
9.2

OS
10.12.6 OSX

browser

etc

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

Expected Behavior

The server shouldn't spend 20ms to require the Component and the Document components.

I believe we could use a cache to only pay the resolution cost once in production.

Current Behavior

The requests are delayed by 20ms.

It might get worse in the future version as the /server/resolve.js logic has grown to support 5 different extensions in canary:

https://github.com/zeit/next.js/blob/cdbbe928b26af2e79c4508f127351b6652c5aee6/server/resolve.js#L36-L42

where it only supports 2 in 4.2.3

https://github.com/zeit/next.js/blob/44de0f15c96c425c193ffdccacb14f28051051d5/server/resolve.js#L33-L36

Steps to Reproduce (for bugs)

Server side render a page with the --inspect flag

Context

I have noticed the following issue investigating a server-side rendering slow issue.

I have noticed that we systematically wait 20ms to require the Component and the Document components.

https://github.com/zeit/next.js/blob/44de0f15c96c425c193ffdccacb14f28051051d5/server/render.js#L56-L59

I believe a simple cache in production could make the resolution instant:

Your Environment

Tech
Version

next
4.2.3

node
9.4.0

OS
macOS High Sierra 10.13.x

browser
N.A

etc
Issue 1:
Hello,

I just tried VS Code recently and I was surprised to see it didn't exclude the files and folders listed in my .gitignore file.

I think an option allowing us to hide those files in the Explorer would be really nice.

Here is how Atom does it:

And when this option isn't on, Atom colorizes the excluded files like that:

Issue 2:
The whole process of cloning mock-debug to make a debugger extension and then changing it is cumbersome. Like for normal extensions, there should be a yeoman generator that asks you questions about what languages the debugger is for, what the name should be etc.

Secondly, in the docs you express the intent to move the common part of the mock-debug repo to a NPM module, which makes sense, as it's the TS implementation of the debugger protocol so we can write extensions in TS using it. You would be able to add more features over time etc.

I think this would make writing debugger extensions more straight forward.
Issue 1:
Looks like go get is broken again on ssh git repos.

For example:

$ go get -v -f -u -insecure ./...

package github.com/marcopeereboom/gck: unable to parse output of git config remote.origin.url

package github.com/marcopeereboom/gck/ast: unable to parse output of git config remote.origin.url

...

$ git config remote.origin.url

git@github.com:marcopeereboom/gck.git

This also happens for ssh git repos with an explicit ssh origin: ssh://my.server.com/git/myrepo.git

https repos seem to still work fine.

$ go version

go version devel +60b7d27 Tue Jul 14 06:21:57 2015 +0000 darwin/amd64

$ git version

git version 2.3.8 (Apple Git-58)

I do see this on OpenBSD as well.

Issue 2:
by 2852914@wessie.info:

What does 'go version' print?

go1.3.3 (playground)

What steps reproduce the problem?

http://play.golang.org/p/9QmhMAmrSG

What happened?

Compiles and runs

What should have happened instead?

Should be illegal to compile according to the spec on short-hand variable declarations
http://golang.org/ref/spec#Short_variable_declarations which states that "a, a :=
1, 2 // illegal: double declaration of a or no new variable if a was declared
elsewhere".
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.6

Operating System version: linux

Java version: 8

Steps to reproduce this issue

define a interface com.demo.api.DemoService

implements com.demo.api.DemoService with version (1.0)

implements com.demo.api.DemoService with versiono (1.1)

Expected Result

version 1.0 and 1.1 can be found .

Actual Result

only 1.0 can be found.

Does Dubbo means application level registry?

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

Step to reproduce this issue

配置限流过滤器；

运行时修改系统时间；

时间差范围内的正常请求全部被拒；

原因描述

过滤器org.apache.dubbo.rpc.filter.TpsLimitFilter 通过调用 org.apache.dubbo.rpc.filter.tps.StatItem实现TPS限流。类org.apache.dubbo.rpc.filter.tps.StatItem实现了令牌桶算法，

https://github.com/apache/incubator-dubbo/blob/f720ccb965d490e6cc328af8d3e9820cb6eaf8f7/dubbo-rpc/dubbo-rpc-api/src/main/java/org/apache/dubbo/rpc/filter/tps/StatItem.java#L42-L46

上面的实现通过原子计数器token来记录可用令牌数量，在能取到令牌的情况下，每次调用对令牌数的自减。令牌桶重置（重新设置为最大值）的条件：当前系统时间 > 上次重置令牌的时间 + 时间间隔。

该实现对系统时间具有依赖性：

以rate=5000，interval=1000ms（即限流5000TPS），实际访问量为1000TPS为例，应用原来的时钟与标准时间同步，在运行过程中系统时钟发生了偏差（可能因为应用服务器同步了错误的NTP服务导致）：

当系统时钟比标准时间慢（假设慢15分钟），则从差错时间点开始，当前系统时间重新变回到了15分钟前，而上次令牌重置时间并不会马上发生变化，导致 lastResetTime > now （相差约15分钟），条件now > lastResetTime + interval 在接下来的15分钟之内不再满足。意味着5000个令牌在1000TPS的实际访问量情况下5秒钟即被用完后，后续的14分钟55秒的时间段内，所有的请求由于取不到令牌全部被拒，直到15分钟后满足令牌桶重置的条件，才能恢复业务。

当系统时间比标准时间快（假设快15分钟），当前系统时间和上次令牌桶重置时间的关系为： now > lastResetTime（相差约15分钟），此时满足令牌桶重置的条件，限流可以正常工作。但是，在系统时间恢复至标准时间时，lastResetTime会比标准时间提前约15分钟，这时同样会导致系统时间恢复的15分钟后续的请求全部被拒绝，直到15钟后满足令牌通重置的条件。

Expected Result

在运行时系统时间发生变化，限流仍能正常发挥作用。

Actual Result

运行过程中系统时间发生变化，导致限流不能正确执行，更严重的是在时间差范围内，请求会错误地全部被拒绝。
Issue 1:
>>> def applym(df):
... print df.irow(0)['a']
... return DataFrame({'a':[1],'b':[1]})

>>> df = DataFrame({'a':[1,1,1,2,3],'b':['a','a','a','b','c']})

>>> df.groupby('b').apply(applym)
1
1
2
3
a b
b
a 0 1 1
b 0 1 1
c 0 1 1
>>>

applym is called twice on the first group.

Issue 2:
It seems that the apply method of a group invokes the function passed as parameter once for each group, as expectes. However, the function is invoked twice for the first group. Enclose is a short code reproducing this behavior. Is it a normal behavior or am I doing something wrong here.

I run the code with pandas 0.10.0 on. Windows 7, 32 bit version.

The code reproducing this behavior:

import pandas as pd

tdf = pd.DataFrame( { 'cat' : [1,1,1,2,2,1,1,2], 'B' : range(8)})

category = tdf['cat']

pGroups = tdf.groupby(by=category)

def getLen(df) :

print 'len ',len(df)

return len(df)

plen = pGroups.apply(getLen)
Issue 1:
Environment

Windows build number: Microsoft Windows [Version 10.0.18362.239]
Windows Terminal version (if applicable): 0.2.1831.0

Steps to reproduce

I edit my settings to add a key binding for newWindow as listed here: https://github.com/microsoft/terminal/blob/v0.2.1831.0/src/cascadia/TerminalApp/AppKeyBindingsSerialization.cpp#L28

This is a sample of the configuration:

{
"command" : "newWindow",
"keys" :
[
"ctrl+n"
]
}

Expected behavior

Upon pressing ctrl+n a new Windows terminal window should be opened.

Actual behavior

Nothing happens.

Issue 2:
It would be great to be able to add MS Exchange Shell to Terminal to manage On-Prem exchange.
Issue 1:
How about having some kind of insert mode , such that screen can be abstracted as text and we can select some text from anywhere?

So , say I am doing git pull , it failed throwing error that "error: Your local changes to the following files would be overwritten by merge:"

Now I want to get the name of that file I have to use mouse to go up and copy and paste the file name , instead if I have some kind of insert mode , the terminal will behave as text and I can move my cursor up , select and copy relevant line, press some kind of escape sequence and paste the copied text in next command.

This is Quick Edit mode / Mark mode in command line

Issue 2:
This will only be an issue for users in Enterprise environments where there are tight firewall controls.

I don't have access to the Windows Store and I downloaded Windows Terminal from the GitHub page. I installed the required runtimes and was able to launch the app, only to be contacted by network security about alerts coming from my PC. After explaining what I was doing, they said they would submit a ticket for a false positive, but in the meantime I cannot use the application at all without triggering more alerts. If someone who is not familiar with my case is on duty, then I get calls again.

Rather than having issues like this, it is better if Microsoft approaches a few major security vendors with details about Windows Terminal so that they can work out the kinks in their rules. This would avoid issues when trying to do the product launch next year.
Issue 1:
User can not force refresh data for filter component, it only re-run query and get cached results.

Screenshots

How about force run query in populate/refresh action?

Environment

latest master

Additional context

cc @junlincc @villebro

Issue 2:
Screenshot

Description

Hi everyone,

I have a problem that I want to display the cross filter as in the picture above, is there any way?

I tried to turn on that feature in file/Superset/suPerset/config.py.

Thank!