WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
VSCode Version: 1.1.1

OS Version: Windows 10 Pro

In Visual Studio (full version), I tend to turn off the Ctrl+LeftMouseClick go to definition feature. I personally prefer to have Ctrl+LeftMouseClick select the entire word under my mouse cursor.

From what I can see, mouse events are not configurable at the moment, and they are also not possible to override with extensions (to the best of my knowledge). It would be really nice to have a mouse mapping configuration file. Sublime Text has this (although it is sort of a hidden feature that is not exposed through the UI). Just as an example, my sublime text mousemap file looks like this:

[
{
"button": "button1", "count": 1, "modifiers": ["ctrl"],
"press_command": "drag_select",
"press_args": {"by": "words"}
}
]

Issue 2:
Some users would like to be able to customize not just pure keyboard shortcuts but also mouse + modifier ones. These are currently hard coded, for example alt+click to add a selection.

See #3091 for some more context.
Issue 1:
For now, the build result always comes into dist/. It would be nice if the build path can be configured.

Issue 2:
$ bower install bootstrap
bower bootstrap#* cached git://github.com/twbs/bootstrap.git#3.1.1
bower bootstrap#* validate 3.1.1 against git://github.com/twbs/bootstrap.git#*
bower bootstrap#* new version for git://github.com/twbs/bootstrap.git#*
bower bootstrap#* resolve git://github.com/twbs/bootstrap.git#*
bower bootstrap#* download https://github.com/twbs/bootstrap/archive/v3.2.0.tar.gz
bower bootstrap#* extract archive.tar.gz
bower bootstrap#* resolved git://github.com/twbs/bootstrap.git#3.2.0
bower jquery#>= 1.9.0 cached git://github.com/jquery/jquery.git#2.1.0
bower jquery#>= 1.9.0 validate 2.1.0 against git://github.com/jquery/jquery.git#>= 1.9.0
bower jquery#>= 1.9.0 new version for git://github.com/jquery/jquery.git#>= 1.9.0
bower jquery#>= 1.9.0 resolve git://github.com/jquery/jquery.git#>= 1.9.0
bower jquery#>= 1.9.0 download https://github.com/jquery/jquery/archive/2.1.1.tar.gz
bower jquery#>= 1.9.0 extract archive.tar.gz
bower jquery#>= 1.9.0 resolved git://github.com/jquery/jquery.git#2.1.1
bower bootstrap#~3.2.0 install bootstrap#3.2.0
bower jquery#>= 1.9.0 install jquery#2.1.1

bootstrap#3.2.0 bower_components/bootstrap
└── jquery#2.1.1

jquery#2.1.1 bower_components/jquery
$ cd bower_components/bootstrap
$ npm install
<snipped>
$ grunt dist
Running "clean:dist" (clean) task
Cleaning dist...OK

Running "less:compileCore" (less) task
File dist/css/bootstrap.css.map created.
File dist/css/bootstrap.css created: 131.45 kB → 131.5 kB

Running "less:compileTheme" (less) task
File dist/css/bootstrap-theme.css.map created.
File dist/css/bootstrap-theme.css created: 17.85 kB → 17.89 kB

Running "autoprefixer:core" (autoprefixer) task
File dist/css/bootstrap.css created.
File dist/css/bootstrap.css.map created (source map).

Running "autoprefixer:theme" (autoprefixer) task
File dist/css/bootstrap-theme.css created.
File dist/css/bootstrap-theme.css.map created (source map).

Running "autoprefixer:docs" (autoprefixer) task
Warning: No source files were found. Use --force to continue.

Aborted due to warnings.

<snipped>
Issue 1:
Summary.

Since off the grid I manually installed IDNA 2.8 as a dependant. When installing requests via the .whl file v2.20.1 version. It manually tried to download the IDNA 2.7 version. I manually installed IDNA 2.7 and the install completed correctly.

What you expected.

To install correctly with IDNA 2.8

What happened instead.

When installing Requests version IDNA 2.7 will be downloaded.

System Information

$ python -m requests.help

{
"chardet": {
"version": "3.0.4"
},
"cryptography": {
"version": ""
},
"idna": {
"version": "2.7"
},
"implementation": {
"name": "CPython",
"version": "3.7.1"
},
"platform": {
"release": "2008ServerR2",
"system": "Windows"
},
"pyOpenSSL": {
"openssl_version": "",
"version": null
},
"requests": {
"version": "2.20.1"
},
"system_ssl": {
"version": "1010009f"
},
"urllib3": {
"version": "1.24.1"
},
"using_pyopenssl": false
}

This command is only available on Requests v2.16.4 and greater. Otherwise,

please provide some basic information about your system (Python version,

operating system, &c).

Issue 2:
This error appears since last version (my code works with 2.11, 2.9 etc...)

File "C:\Users\vqmg0203\Desktop\app\core\models\database.py", line 211, in update_infos
r = self.request_get(self.user_url)
File "C:\Users\vqmg0203\Desktop\app\core\handlers\http.py", line 30, in wrapped
return f(self, *args, **kwargs)
File "C:\Users\vqmg0203\Desktop\app\core\handlers\http.py", line 130, in request_get
allow_redirects=False)
File "C:\Python27\lib\site-packages\requests\sessions.py", line 501, in get
return self.request('GET', url, **kwargs)
File "C:\Python27\lib\site-packages\requests\sessions.py", line 474, in request
prep = self.prepare_request(req)
File "C:\Python27\lib\site-packages\requests\sessions.py", line 407, in prepare_request
hooks=merge_hooks(request.hooks, self.hooks),
File "C:\Python27\lib\site-packages\requests\models.py", line 306, in prepare
self.prepare_auth(auth, url)
File "C:\Python27\lib\site-packages\requests\models.py", line 527, in prepare_auth
r = auth(self)
File "C:\Python27\lib\site-packages\requests\auth.py", line 68, in __call__
r.headers['Authorization'] = _basic_auth_str(self.username, self.password)
File "C:\Python27\lib\site-packages\requests\auth.py", line 38, in _basic_auth_str
b64encode(b':'.join((username, password))).strip()
TypeError: sequence item 1: expected string, NoneType found
Issue 1:
VSCode Version: 1.1.1

OS Version: win 10 pro, version 1511, os build 10586.318

Steps to Reproduce:

Start visual studio

open folder

wait

Get an error msg, window has crashed We are sorry..... You can reopen...

Issue 2:
VSCode Version: 1.0.0

OS Version: Windows 10 Pro

Hi,

I want to post an issues about git extension performance.

I suspect git extension in the sidebar is blocking the memory that VS Code using. I experience some lag when I try to type my code.

This is occur when git refresh it status because it become laggy when loading icon appear on git sidebar, after I edit some of my code.

This is not always happening when I edit my code but very often.

Thank you
Issue 1:
I've used the 15.4.1 version of the react and react-dom together. I get the following errors:

This is my set-up:

I don't have the problem if I use the same code, but the 15.1.0 version instead of 15.4.1.

Issue 2:
I use react-with-addons in a RequireJS enviroment. If I try to use React.addons.Perf, I get a ReferenceError: ReactDOM is not defined from https://github.com/facebook/react/blob/15-dev/src/umd/shims/ReactAddonsDOMDependenciesUMDShim.js#L26.

This is a regression from 15.3.x.
Issue 1:
The separation of string to text and keyword is awesome. The only remaining item in my opinion is the not-tokenized-but-lowercased case - it is common enough but will still require some rigorous configuration. It probably makes sense now to allow specifying "token-filters" to execute on "keyword" fields directly in that field's mapping (because different approaches to normalization can be taken - ascii folding, etc). I'm aware of tokenizing tokenfilters (e.g. word-delimiter) but think we can ignore that edge-case for this purpose. WDYT?

Issue 2:
Sometimes you want to analyze text to make it consistent when running aggregations on top of it.

For example, let's say I have a city field mapped as a keyword.

This field can contain San Francisco, SAN FRANCISCO, San francisco...

If I build a terms aggregation on top of it, I will end up with

San Francisco: 1
SAN FRANCISCO: 1
San francisco: 1

I'd like to be able to analyze this text before it gets indexed. Of course I could use a text field instead and set fielddata: true but that would not create doc values for this field.

I can imagine that we allow an analyzer at index time for this field.

We can restrict its usage if we wish and only allows analyzers which are using tokenizers like lowercase, keyword, path but I would let the user decide.

If we allow setting analyzer: simple for example, my aggregation will become:

san francisco: 3

Same applies for path tokenizer.

Let say I'm building a dir tree like:

/tmp/dir1/file1.txt
/tmp/dir1/file2.txt
/tmp/dir2/file3.txt
/tmp/dir2/file4.txt

Applying a path tokenizer would help me to generate an aggregation like:

/tmp/dir1: 2
/tmp/dir2: 2
/tmp: 4
Issue 1:
Summary of the new feature/enhancement

My laptop vendor didn't included simple media keys on keyboard. I use PT to create shortcuts to virtual keys like Media Play/Pause, Volume Up/Down.

In Keyboard Manager there are two options: Remap Keyboard (key to key) and Remap Shortcuts (key combination to key combination). But when I try to create shortcut like this:

Ctrl + Alt + Up => Volume Up

Ctrl + Alt + Down => Volume Down

Ctrl + Alt + Right => Media Play/Pause

I always get an error Shortcut must start with a modifier key over target shortcut key. But in this case, there's no modifier key needed. So I end up with same combinations with Ctrl, as they work ok:

Ctrl + Alt + Up => Ctrl + Volume Up

Ctrl + Alt + Down => Ctrl + Volume Down

Ctrl + Alt + Right => Ctrl + Media Play/Pause

I would like to define shortcuts (especially for media keys) without needing to fake shortcut with Ctrl.

Proposed technical implementation details

I think the right side of shortcut shouldn't require modifier key. Even standard keys can be mapped as destination without modifier - if someone want to type X by pressing Ctrl + Alt + Shift + z, this should be allowed.

Issue 2:
Summary of the new feature/enhancement

Ability to remap a single key (² for example, sleeping in the top left corner of my KB), and assign it for example to alt+space, in order to open powertoys run, or to "open a new terminal", or whatever
Issue 1:
Description of the problem

Assigning .skinning = true doesn't work when the material is assigned to scene.overrideMaterial:

scene.overrideMaterial = new THREE.MeshPhysicalMaterial({skinning: true})

The material and rendered image behave identically to as if .skinning === false.

Three.js version

[ x ] r118

Browser

All of them

Chrome

Firefox

Webkit

Issue 2:
When setting the override material for a scene the maps and other settings on the original material are not used -- this applies to animations, mesh instances, and other uniforms and defines, as well. This jsfiddle shows that the normal map is not applied when rendering the scene with a MeshNormalMaterial applied:

http://jsfiddle.net/wbhrd58c/

This makes it a difficult to render things like normal and depth buffers for screen effects. So when an overrideMaterial is used the defines and uniforms of the original should be used (if they exist on the override material). This would let an override material us the color, displacementMap, normalMap, textures, skinning settings, etc available.

This mechanic could be used make post processing passes more robust and correct, afford a depth prepass with correct vertex transformations, a deferred renderer that uses the original material properties without having to manually copy everything, and shadows that support displacement maps out of the box.

This is closer to how Unity's Shader Replacement works to afford this functionality:

the camera renders the scene as it normally would. the objects still use their materials, but the actual shader that ends up being used is changed

In Unity if the objects material doesn't define a specific uniform then the default shader uniform value is used. To allow for backwards compatibility this could be included as an opt-in feature:

Scene.setOverrideMaterial( material : Material, overrideUniforms : Boolean );
Issue 1:
Just out of curiosity, is TypeScript going to have a conditional member access operator similar to C#'s ?.?

Instead of writing

foo && foo.bar && foo.bar.baz();

We can write:

foo?.bar?.baz();

Or is something like this already possible?

Issue 2:
Current Status

The TC39 proposal is now at stage 3 (🎉🎉🎉🎉🎉)

Implementation is in progress

You can expect this feature in TypeScript 3.7

We'll update here when it's available in a nightly build

Holding off on Optional Call until its semantics are clarified at committee

Open questions

What special-casing, if any, should document.all get?

C# and other languages have syntax sugar for accessing property chains where null (or in our case, undefined) might be encountered at any point in the object hierarchy.

var x = { y: { z: null, q: undefined } };
console.log(x?.y?.z?.foo); // Should print 'null'
console.log(x?.baz); // Still an error
console.log(x.y.q?.bar); // Should print 'undefined'

Need proposal on what exactly we should codegen, keeping in mind side effects of accessors.

Edit by @DanielRosenwasser February 27, 2018: This proposal is also called the "null propagation" operator.
Issue 1:
I want to use Hierarchical Navigable Small Worlds (HNSW) and LSH for data classification. How can I modify their fit and train functions???

For example if you want to use them like ball tree or kd tree from the scikit learn library for classifying data.

Issue 2:
There have been some discussion about adding a balanced accuracy metrics (see this article for the definition) on the mailing list. This is a good opportunity for a first contribution.

This implies coding the function, checking correctness through tests and highlight your work with documentations. In order to be easily used by many, a balanced accuracy scorer is a good idea. As a bonus, it could also support sample_weight.
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.6.2

Operating System version: linux

Java version: 1.8

Steps to reproduce this issue

dubbo.provider.token=${random.uuid}

launch two providers

invoke failed and retry the other provider

Expected Result

token should be valid

Actual Result

token is invalid

com.alibaba.dubbo.rpc.RpcException: Invalid token! Forbid invoke remote service interface com.darcytech.hera.api.service.SmsService method sendSms() from consumer 192.168.24.81 to provider 192.168.24.82
at com.alibaba.dubbo.rpc.filter.TokenFilter.invoke(TokenFilter.java:46)
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72)
at com.alibaba.dubbo.rpc.protocol.dubbo.filter.TraceFilter.invoke(TraceFilter.java:78)
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72)
at com.darcytech.hera.server.dubbo.ErrorHandleFilter.invoke(ErrorHandleFilter.java:28)
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72)
at com.alibaba.dubbo.rpc.filter.ContextFilter.invoke(ContextFilter.java:72)
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72)
at com.alibaba.dubbo.rpc.filter.GenericFilter.invoke(GenericFilter.java:131)
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72)
at com.alibaba.dubbo.rpc.filter.ClassLoaderFilter.invoke(ClassLoaderFilter.java:38)
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72)
at com.alibaba.dubbo.rpc.filter.EchoFilter.invoke(EchoFilter.java:38)
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72)

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

Operating System version: xxx

Java version: xxx

Steps to reproduce this issue

xxx

xxx

xxx

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:
There're some discussions about dependency management. I think when we people started to use deno to build complex programs, a dependency manager is desired. Removing node_modules from the project folder is a brilliant revolutionary design, but I'm not sure whether the package.json file also should be deprecated. Currently, people use a deps.ts file or import_map.json to manage the external modules, it seems like a central specification file is necessary, and module versioning is another important thing in production environment. In my opinion, manage these modules manually is definitely a terrible development experience, so I built this stuff dep, a simple cli to manage project dependencies, but unfortunately, I used a file called pkg.json (maybe will change to spec.json) to describe the information of the project, and a dependencies map like package.json do, the program will automatically generate or update a import map after adding external modules, so you can import any module with a relative URL. Also I kept all the features below:

keep no packages

keep ES modules semantics

keep file extension

keep remote URL imports (Source URLs in import map, relative URLs in scripts)

I just want to know if this is an acceptable solution? What are your opinions on this?

Issue 2:
Import from url is very hard to use. I think is not a good idea.

If so,

We must manage more js files not our own development.

Heavily dependent on the network, because the third package also can import another packages.

Like C#\Java, the nuget and maven is good for use. Maybe use that mode can help us manage the packages.
Issue 1:
Hi,

TypeScript Version: 1.8.5

Visual Studio 2013

interface Foo { a: string }
interface Bar { b: string }

getData<T>(): T {
return null;
}

var funcArray = [this.getData<Foo>(), this.getData<Bar>()]; //Inferred as (Foo | Bar)[]

Shouldn't this be inferred as [Foo, Bar]?

Is this intended behavior? Looks reasonable since funcArray can be explicitly typed to [Foo, Bar]

PS: This could be a duplicate of other issues for contextual typing, which is/are already fixed (fix included in milestone 2.0?)

Issue 2:
I have been looking at dependency injection and a few issues with refactoring in regards to _.pluck. One of the primary things I run into is that I want these things to enforce the interface for refactoring.

A few examples

Interface used as a symbol for dependency injection

interface IExampleInterface {
interfaceProperty: string;
}

function angularInjection(...fields: string[]) {
return (target: Function) {
target.$inject = fields;
}
}

@angularInjection(nameof(IExampleInterface));
class Controller {
constructor(injectedExample: IExampleInterface) {
}
}

would compile to

function angularInjection() {
var fields = [];
for (var _i = 0; _i < arguments.length; _i++) {
fields[_i - 0] = arguments[_i];
}
return function (target) {
target.$inject = fields;
};
}
var Controller = (function () {
function Controller(injectedExample) {
}
Controller = __decorate([
angularInjection('IExampleInterface')
], Controller);
return Controller;
})();

In the case of an interface like pluck we could do something like this

interface IExampleInterface {
prop: string;
}

var items: IExampleInterface[] = [{prop: 'test1'},{prop: 'test1'}];
var props: string[] = _.pluck(items, nameof(IExampleInterface.prop));

would compile to

var items = [{prop: 'test1'}, {prop: 'test1'}];
var props = _.pluck(items, 'prop');

In this way we could enforce some level of type safety in common javascript reflection use cases.
Issue 1:
Bug summary

When using logarithmic scaling of the data with 2D plots, the ticks for the colorbar are not written in scientific notation. Prior to Matplotlib 3.5.0 (e.g. 3.4.3), scientific notation was used, as one would expect. The problem persists in 3.6.

Code for reproduction

# Sample code for 2D plotting with log scaling,
# with the log scaling implemented
# using two different methods.

import numpy as np
import matplotlib
import matplotlib.pyplot as plt

n = 100
np.random.seed(42)
x = np.random.random(n)
y = np.random.random(n)
z = np.logspace(np.log10(1e-7), np.log10(1e+7), n)

fig, axes = plt.subplots(2, 1)

tcs = axes[0].tricontourf(
x, y, z,
norm=matplotlib.colors.LogNorm(vmin=z.min(), vmax=z.max()),
)
cbar = fig.colorbar(tcs, ax=axes[0])

tcs = axes[1].tricontourf(
x, y, z,
locator=matplotlib.ticker.LogLocator(),
)
cbar = fig.colorbar(tcs, ax=axes[1])

plt.savefig('test.png')

Actual outcome

Here is the outcome of the above in Matplotlib 3.5.0 or 3.6.0 (the results are identical). The image properly shows logarithmic values, and the colorbar ticks are in log scale as well, but the colorbar tick labels are not written using scientific notation. One major drawback is that all tics but the highest two gets written as 0.00, while they are really 0.001, 0.0001, etc.

Expected outcome

Same as above but run with Matplotlib 3.4.3. Both methods work to produce scientific notation, as desired.

Operating system

Linux Mint 20

Matplotlib Version

As described above

Matplotlib Backend

Agg and Qt5Agg

Python version

3.8.5 and 3.9.9

Installation

from source (.tar.gz)

Issue 2:
Bug summary

The colour bar ticks are weirdly formatted when using a logarithmic scale when using version 3.5.0 or later.

Code for reproduction

Taken from https://matplotlib.org/stable/gallery/images_contours_and_fields/contourf_log.html

import matplotlib.pyplot as plt
import numpy as np
from numpy import ma
from matplotlib import ticker, cm

N = 100
x = np.linspace(-3.0, 3.0, N)
y = np.linspace(-2.0, 2.0, N)

X, Y = np.meshgrid(x, y)

# A low hump with a spike coming out.
# Needs to have z/colour axis on a log scale so we see both hump and spike.
# linear scale only shows the spike.
Z1 = np.exp(-X**2 - Y**2)
Z2 = np.exp(-(X * 10)**2 - (Y * 10)**2)
z = Z1 + 50 * Z2

# Put in some negative values (lower left corner) to cause trouble with logs:
z[:5, :5] = -1

# The following is not strictly essential, but it will eliminate
# a warning. Comment it out to see the warning.
z = ma.masked_where(z <= 0, z)

# Automatic selection of levels works; setting the
# log locator tells contourf to use a log scale:
fig, ax = plt.subplots()
cs = ax.contourf(X, Y, z, locator=ticker.LogLocator(), cmap=cm.PuBu_r)

cbar = fig.colorbar(cs)

plt.show()

Actual outcome

Expected outcome

Running the exact same code on 3.4.2 produces the expected behaviour

Additional information

This worked perfectly on version 3.4.2

Operating system

Windows

Matplotlib Version

3.5.0

Matplotlib Backend

No response

Python version

No response

Jupyter version

No response

Installation

pip
Issue 1:
It's duplicated at both:

flutter.io codelabs

..and at:

google developers codelabs

Perhaps best to reference same source.

Issue 2:
git clone the plugins repo

open packages/google_maps_flutter/example in editor

create a new maps API key

add key in AndroidManifest.xml

run app

=> map appears with no content in it

It was working a few days ago, but doesn't seem to work anymore
Issue 1:
From https://github.com/flutter/tools/issues/157:

The run_mojo command takes a flag --app to specify a filepath to run a flutter app from.

This should also allow a URL.

/cc @alhaad @jamesr

Issue 2:
Now. i can run the project in ios platform .

when i change the url to m3u8 the player no thing to see......

In android platform. it can run m3u8 ....

all platform are real devices.

Thanks