WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Summary of the new feature/enhancement

As had been an issue with later versions of the WSL terminal, also in the new windows terminal selecting and copying multiple lines does not preserve newline characters, but instead is filled up with trailing whitespace to match the terminal width.

Proposed technical implementation details (optional)

Separate lines should result in clipboard text with newlines, wrapped lines without.

Example

Copying some output from the terminal and pasting here:

Expected behavior:

$ ll /usr/lib
total 206M
lrwxrwxrwx 1 root root 23 Oct 8 2012 libqimageblitz.so.4 -> libqimageblitz.so.4.0.0
-rw-r--r-- 1 root root 99K Oct 8 2012 libqimageblitz.so.4.0.0
-rw-r--r-- 1 root root 6.0K Feb 2 2013 libporttime.so.0.0.0
lrwxrwxrwx 1 root root 20 Feb 2 2013 libporttime.so.0 -> libporttime.so.0.0.0
-rw-r--r-- 1 root root 36K Feb 2 2013 libportmidi.so.0.0.0
lrwxrwxrwx 1 root root 20 Feb 2 2013 libportmidi.so.0 -> libportmidi.so.0.0.0
lrwxrwxrwx 1 root root 20 Jan 4 2014 libmsgpackc.so.2 -> libmsgpackc.so.2.0.0
-rw-r--r-- 1 root root 23K Jan 4 2014 libmsgpackc.so.2.0.0
lrwxrwxrwx 1 root root 15 Feb 28 2014 libfam.so.0 -> libfam.so.0.0.0
-rw-r--r-- 1 root root 35K Feb 28 2014 libfam.so.0.0.0
...

Actual behavior:

$ ll /usr/lib total 206M lrwxrwxrwx 1 root root 23 Oct 8 2012 libqimageblitz.so.4 -> libqimageblitz.so.4.0.0 -rw-r--r-- 1 root root 99K Oct 8 2012 libqimageblitz.so.4.0.0 -rw-r--r-- 1 root root 6.0K Feb 2 2013 libporttime.so.0.0.0 lrwxrwxrwx 1 root root 20 Feb 2 2013 libporttime.so.0 -> libporttime.so.0.0.0 -rw-r--r-- 1 root root 36K Feb 2 2013 libportmidi.so.0.0.0 lrwxrwxrwx 1 root root 20 Feb 2 2013 libportmidi.so.0 -> libportmidi.so.0.0.0 lrwxrwxrwx 1 root root 20 Jan 4 2014 libmsgpackc.so.2 -> libmsgpackc.so.2.0.0 -rw-r--r-- 1 root root 23K Jan 4 2014 libmsgpackc.so.2.0.0 lrwxrwxrwx 1 root root 15 Feb 28 2014 libfam.so.0 -> libfam.so.0.0.0 -rw-r--r-- 1 root root 35K Feb 28 2014 libfam.so.0.0.0

Issue 2:
Environment

Windows build number: 10.0.18362.116
Windows Terminal version (if applicable): 71e19cd + changing toolset to v142 and SDK version

Steps to reproduce

Clone, build, package, install and launch Windows Terminal (DevBuild).

Execute docker run --rm -it mcr.microsoft.com/windows/nanoserver:1903

Select multiple lines and right click.

Paste in any text editor. I used VSCode.

Expected behavior

I expected to see the same thing I saw in the terminal - specifically multiple lines.

Actual behavior

One line with lots of space.

Notes

This is different from #65 since it was about conhost and I'm talking about the new terminal, and I didn't have Shift pressed.
Issue 1:
ISSUE TYPE

Feature Request

COMPONENT NAME

core

ANSIBLE VERSION

I just built from stable-2.1 branch
ansible 2.1.1.0
config file = /mnt/c/Users/james/Dropbox/aftermath/ansible-repo/ansible.cfg
configured module search path = Default w/o overrides

CONFIGURATION

OS / ENVIRONMENT

N/A

SUMMARY

Host patterns that include intersections end up applying the intersection onto all patterns.

STEPS TO REPRODUCE

Applicable groups:

[backend]
lana
[preagg]
akira
[dev-network]
lana
[cassandra_live_dcs]
akira

Hosts from affected play

- hosts:
- backend:&cassandra_live_dcs:&dev-network
- preagg

Even though preagg is it's own pattern, it's being intersected with the groups from the first pattern. If I comment out the first hosts pattern, then akira is correctly run. Since akira is also in cassandra_live_dcs, if I remove :&dev-network then it works correctly.

EXPECTED RESULTS

Since akira is in preagg I would expect it to have the play run on it.

ACTUAL RESULTS

Output from --list-hosts:

(backend:&cassandra_live_dcs:&dev-network,preagg): backend:&cassandra_live_dcs:&dev-network,preagg TAGS: [analyticsapi-preagg]
pattern: [u'backend:&cassandra_live_dcs:&dev-network', u'preagg']
hosts (1):
lana

Issue 2:
ISSUE TYPE

Bug Report

COMPONENT NAME

rabbitmq_exchange

ANSIBLE VERSION

ansible 2.3.1.0
config file =
configured module search path = Default w/o overrides
python version = 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609]

CONFIGURATION

plain

OS / ENVIRONMENT

xenial 64bit localhost

SUMMARY

rabbitmq_exchange after creating an exchange the HTTP response is 201 and is interpreted as an error.

STEPS TO REPRODUCE

install rabbitmq 3.6.10

run an ansible local on using a playbook like this

- name: creating test exchanges
become: yes
rabbitmq_exchange:
name: test

EXPECTED RESULTS

creating an exchange.

ACTUAL RESULTS

fatal: [rabbitmq-1]: FAILED! => {"changed": false, "details": "", "failed": true, "msg": "Error creating exchange", "status": 201}

SOLUTION

actually the exchange is created need to be replaced the check with 201 instead of 201

probably it is required to do both due to the fact of backward compatibility of precedent version of RabbitMQ.
Issue 1:
I would love to start using Babel to develop apps but I really need AMD support. Everything works great until I want to use the --optional runtime flag on my build.

Here is a sample file.

import Foo from 'foo';

export default "bar";

And the compiled output.

"use strict";

define(["exports", "module", "foo", "babel-runtime/helpers"], function (exports, module, _foo, _babelRuntimeHelpers) {
var _babelHelpers = _babelRuntimeHelpers["default"];

var Foo = _babelHelpers.interopRequire(_foo);

module.exports = "bar";
});

This all looks good and everything loads fine once I add a package called babel-runtime to my config.

var dojoConfig = {
packages: [
{
name: 'babel-runtime',
location: '/node_modules/babel-runtime'
}
]
};

But none of the runtime modules are actually AMD modules so they cant be loaded. For example helpers.js looks like this.

"use strict";

var _core = require("babel-runtime/core-js")["default"];

var helpers = exports["default"] = {};
exports.__esModule = true;

Would it be possible to convert the runtime files to UMD so they could support AMD loaders and build systems?

Issue 2:
requirejs does not work using the option --modules amd --optional selfContained. The 6to5-runtime/helpers file does not export the helpers functions using the amd syntax, it can be used only in a nodejs/browserify environment.

There should be a way to avoid the following output using the amd modules option

define("myModule", ["exports", "module", "6to5-runtime/helpers"],function(6to5Helpers){
var _6to5helpers = 6to5Helpers;
});

The output should be similar to something like this:

define("myModule", ["exports", "module"],function(){
var _6to5helpers = global.6to5Helpers;
});
Issue 1:
In the readme there is not a single mention of compatibility with windows. Is it possible? I am trying to install the library but I get the following error when installing:

C:\Users\Omar\Downloads\jax-master>python build/build.py --enable_cuda

_ _ __ __
| | / \ \ \/ /
_ | |/ _ \ \ /
| |_| / ___ \/ \
\___/_/ \/_/\_\

Bazel binary path: C:\path_apps\bazel.EXE
Python binary path: C:\Program Files\Python36\python.exe
MKL-DNN enabled: yes
-march=native: no
CUDA enabled: yes
CUDA toolkit path: /usr/local/cuda
CUDNN library path: /usr/local/cuda

Building XLA and installing it in the jaxlib source tree...
ERROR: python_path must be an absolute path when it is set.
INFO: Elapsed time: 0.123s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
FAILED: Build did NOT complete successfully (0 packages loaded)
Traceback (most recent call last):
File "build/build.py", line 317, in <module>
File "build/build.py", line 313, in main
File "build/build.py", line 50, in shell
File "C:\Program Files\Python36\lib\subprocess.py", line 356, in check_output
**kwargs).stdout
File "C:\Program Files\Python36\lib\subprocess.py", line 438, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['C:\\path_apps\\bazel.EXE', 'run', '--verbose_failures=true', '--config=mkl_open_source_only', '--config=cuda', ':install_xla_in_source_tree', 'C:\\Users\\Omar\\Downloads\\jax-master\\build']' returned non-zero exit status 2.

Issue 2:
I failed to build jax from source with(similar with #253, but my system is win):

Traceback (most recent call last):

File "build/build.py", line 308, in

main()

File "build/build.py", line 304, in main

[":install_xla_in_source_tree", os.getcwd()])

File "build/build.py", line 50, in shell

output = subprocess.check_output(cmd)

File "C:\Users\wangd\AppData\Local\Programs\Python\Python36\lib\subprocess.py", line 336, in check_output

**kwargs).stdout

File "C:\Users\wangd\AppData\Local\Programs\Python\Python36\lib\subprocess.py", line 418, in run

output=stdout, stderr=stderr)

subprocess.CalledProcessError: Command '['C:\bazel\bazel.EXE', 'run', '--verbose_failures=true', '--config=mkl_open_source_only', ':install_xla_in_source_tree', 'C:\Users\wangd\jax\build']' returned non-zero exit status 2.
Issue 1:
Using lmplot, the legend is not outside of the current figure. If I turn off the legend and try to do it manually through Python, the figure looks squeezed in some way.

I have updated Seaborn, Notebook, etc.

g = seaborn.lmplot( x="rmsd", y="score_rank", data=ranks, fit_reg=True, hue='experiment-neat', legend_out=True)

Seaborn Version: .9

Matplotlib Version: 2.2.2

Jupyter Notebook Version: 5.6; ipython 5.8

Issue 2:
They'll be hidden when the window pops up, but will appear if you drag it to adjust the size.

Not a problem with a qt5 gui window (or in the notebook backends).

Also not a problem if saved to png.
Issue 1:
Trying to create a simple Cube with MutiMaterial and it keeps giving an error

Uncaught TypeError: Cannot read property 'visible' of undefined

I traced it back to line 22548

if ( groupMaterial.visible === true ) {

Here is my code

var scene = new THREE.Scene();
var camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);

var renderer = new THREE.WebGLRenderer({
antialias: true
});
renderer.setSize(window.innerWidth, window.innerHeight);
$('body').append(renderer.domElement);

var manager = new THREE.LoadingManager();
manager.onProgress = function(item, loaded, total) {

console.log(item, loaded, total);

};

manager.onLoad = function() {
render();
}

var skin;

var loader = new THREE.TextureLoader(manager);
loader.load('assets/sam.png', function(texture) {

skin = texture;

var mats = [];

front_texture = skin.clone();
front_texture.minFilter = THREE.LinearMipMapLinearFilter;
front_texture.magFilter = THREE.NearestFilter;
front_texture.offset.x = (1 / 64) * 8;
front_texture.offset.y = (1 / 64) * 48;
front_texture.repeat.x = (1 / 64) * 8;
front_texture.repeat.y = (1 / 64) * 8;
front_texture.needsUpdate = true;

var front_material = new THREE.MeshBasicMaterial({
map: front_texture
});
mats.push(front_material);

var geometry = new THREE.BoxGeometry((1/16)*8, (1/16)*8, (1/16)*8);
cube = new THREE.Mesh(geometry, new THREE.MultiMaterial(mats));
scene.add(cube);

});

camera.position.z = 5;

var render = function() {
window.requestAnimationFrame(render);

renderer.render(scene, camera);
};

Issue 2:
Was just wondering about this...

Mesh seems to be confusing to some people as for them that's what what we call Geometry. Maybe Object could be a better name for it. However, Object3D would then be even more confusing. In such case, what could Object3D be renamed to?

Entity

Node

SceneNode

...
Issue 1:
After I got the update to Version 0.10.10 (0.10.10) for OSX, the Javascript "let" keyword is now white (used to be blue, recognized as a reserved word).

I tried adding back the jsconfig.json (which I understand is no longer needed to enable ES6) and the colorization is still no good.

I wonder if other keywords are being colorized incorrectly.

Issue 2:
0.10.10 (Feburary build) has a regression is that the following JavaScript keywords are no longer highlighted in the Dark Visual Studio & Light Visual Studio themes:

var let const function get set class interface module namespace

This only affects JavaScript (not TypeScript).

The workaround if to switch to the Dark+ Default and Light+ theme.

Note that there are other colorizing issues open, not caused by this regression: e.g. 'import' and 'from'. See microsoft/TypeScript-TmLanguage#37
Issue 1:
upon DataFrame.insert option allow_duplicates works, but only only once.

When i have 2 columns with same name, additon of third throws

ValueError: Wrong number of items passed 2, placement implies 1

Code Sample, a copy-pastable example if possible

a = pd.DataFrame()
a.insert(0, "qwe", [1,2,3,4], allow_duplicates=True)
a.insert(0, "qwe", [1,2,3,4], allow_duplicates=True)
a.insert(0, "qwe", [1,2,3,4], allow_duplicates=True)

Expected Output

zxc qwe qwe

0 1 1 1

1 2 2 2

2 3 3 3

3 4 4 4

output of pd.show_versions()

## INSTALLED VERSIONS

commit: None

python: 2.7.12.final.0

python-bits: 64

OS: Windows

OS-release: 7

machine: AMD64

processor: Intel64 Family 6 Model 58 Stepping 9, GenuineIntel

byteorder: little

LC_ALL: None

LANG: ru_RU

pandas: 0.18.1

nose: 1.3.7

pip: 8.1.2

setuptools: 25.1.6

Cython: 0.24.1

numpy: 1.11.1

scipy: 0.18.0

statsmodels: 0.6.1

xarray: None

IPython: 5.1.0

sphinx: 1.4.6

patsy: 0.4.1

dateutil: 2.5.3

pytz: 2016.6.1

blosc: None

bottleneck: 1.0.0

tables: 3.2.2

numexpr: 2.6.1

matplotlib: 1.5.3

openpyxl: 2.3.2

xlrd: 1.0.0

xlwt: 1.1.2

xlsxwriter: 0.9.2

lxml: 3.6.4

bs4: 4.4.1

html5lib: None

httplib2: None

apiclient: None

sqlalchemy: 1.0.13

pymysql: 0.7.6.None

psycopg2: None

jinja2: 2.8

boto: 2.40.0

pandas_datareader: None

<\details>

Issue 2:
We have a check for whether format == '%Y%m%d', but this actually seems to be slower:

In [86]: s = pd.Series(['20120101']*1000000)

In [87]: %timeit pd.to_datetime(s)
229 ms ± 12.5 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)

In [88]: %timeit pd.to_datetime(s, format='%Y%m%d')
749 ms ± 67.4 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
Issue 1:
By default I see that

"initialCols": 120,
"initialRows": 30,

but truly they are cols=129, rows=28. See

I tested this also with the original profile.json.

May be you intend to include also the tabs row etc. but I think it is wrong. When one sets those parameters in Command prompt (that comes with Windows) the number of rows and columns is respected. See

Issue 2:
Environment

Windows build number: [run "ver" at a command prompt]
10.0.18362.239
Windows Terminal version (if applicable):
the first version of ms store
Any other software?
None

Steps to reproduce

when run some heavy process, the terminal will disappear(It seems the process is still running I found from the task manager)!

The first time is I query large data from mysql, when it output the result, it quit!

Another time is I run elasticsearch and logstash, it costs lots of memory, and then the terminal disappear! But the service elasticsearch and logstash is still alive!

I'm not sure this will happen everytime! It just sometimes do!
Issue 1:
If a cluster is shutdown (all nodes at once), while there is a process running to increase the number of replicas, the index stays in a UNASSIGNED state with no messages in the logs.

If the number of replica is changed again the index comes back.

Steps to reproduce:

spin up a cluster with at least 3 nodes

Index some data (should be enough data for the replicas assignment to take some time)

Change replicas to 0 curl -XPUT 'localhost:9200/_settings' -d '{ "index" : {"number_of_replicas" : 0 }}'

Raise number of replicas curl -XPUT 'localhost:9200/_settings' -d '{ "index" : {"number_of_replicas" : 1 }}' and shut down all nodes before the replicas have been fully assigned.

Start all nodes again

The Index will stay in an UNASSIGNED state, but there is nothing in the logs on why this is the case.

Changing the number of replicas to 0 again, will bring back the index into a STARTED state.

Reproduced on 2.0 and 2.1.

Issue 2:
Persist allocation IDs of active shards in cluster state and use them to recover correct shards upon cluster restart (i.e., we can recover with only one copy and we make sure we recover the right ones and not a stale copy left around).

Relates to #14671

Steps

Persist allocation ID with shard state metadata on nodes (#14831).

Persist currently started allocation IDs to index metadata (#14964).

Add allocation IDs to TransportNodesListGatewayStartedShards action. Use the above to assign a primary shard on recovery. In particular, don't assign a stale copy (#15281).

Extend reroute with an option to force assign a stale copy. This is only relevant for primaries (#15708).

Prioritize old primaries when choosing out existing and previously active allocationIds (#16096).

Persist shard state immediately and not only on shard activation. This will help solving a race condition on primary relocation where the master has activated the target shard (removing old copy from the active set list) but the cluster crashes before the target node persisted the shard state (#16625)

Remove version from ShardRouting (#16243).
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.5

Operating System version: win10

Java version: 1.8

Steps to reproduce this issue

create a simple app with dubbo

create dubbo.properties file which contains dubbo.config-center.address=zookeeper://127.0.0.1:2181

start app with springContainer

invokeApplicationModel.getConfigManager().getConfigCenters()

Expected Result

ApplicationModel.getConfigManager().getConfigCenters() return a non-empty list, it contains an instance of ConfigCenterConfig

Actual Result

ApplicationModel.getConfigManager().getConfigCenters() return a empty list

Other

I just want test new API DubboBootstrap in 2.7.5, so the app is very simple. It does not contain any services.

And dubbo.propertiesis simple too :

dubbo.config-center.address=zookeeper://127.0.0.1:2181
dubbo.application.name=test
dubbo.protocol.name=dubbo
dubbo.protocol.port=20880

After dubbo starts, DubboBootstarp.getApplication() a returned the correct instance of ApplicationConfig, should ApplicationModel.getConfigManager().getConfigCenters() return a non-empty list?

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

Operating System version: macOS mojave 10.14.5

Java version: 1.8.0_191

Steps to reproduce this issue

provider consumer 均没有配置全局超时时间和重试次数

在PersonRelTempletServiceImpl 上配置的方法级别的超时时间 @service(methods = {@method(name = "getAllRelTempletList", timeout = 35000, retries = 2)})

3.使用2.6.6 版本不会报超时错误

4.在2.7.1 会报如下错误

org.apache.dubbo.remoting.TimeoutException: Waiting server-side response timeout. start time: 2019-08-15 16:21:46.234, end time: 2019-08-15 16:21:47.239, client elapsed: 1 ms, server elapsed: 1004 ms, timeout: 1000 ms, request: Request [id=2, version=2.0.2, twoway=true, event=false, broken=false, data=RpcInvocation [methodName=getAllRelTempletList, parameterTypes=[], arguments=[], attachments={path=com.hudong.microservices.service.PersonRelTempletService, interface=com.hudong.microservices.service.PersonRelTempletService, version=0.0.0}]], channel: /127.0.0.1:53556 -> /127.0.0.1:20881
Issue 1:
VSCode Version: Feb release + March Insiders

OS Version: Mac OS X Yosemite

Steps to Reproduce:

Enter the following code

it('Hello', () => {

});

Put your cursor after Hello but within the string and type comma then space, the intellisense will kick in (even though you are inside a string literal)

Issue 2:
I'm trying to fix microsoft/vscode-go#103, but as far as I can tell this isn't possible currently without tokenizing the whole file again in my extension and manually checking whether I'm in a comment to suprress providing results.

It would be nice if the CompletionItemProvider provided a setting to suppress it's results when in certain tokens/scopes.

The implementation of the TypeScript completion provider has an excludeTokens which seems to play this role but I can't get that to work in my own extension.
Issue 1:
A Visual Studio Developer Command Prompt can be accessed by opening a cmd prompt in Windows and then running the appropriate vcvarsall.bat command file.

Is it possible to create a cmd profile that will execute that bat file automatically?

Issue 2:
Environment

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

Any other software?

Steps to reproduce

Using two displays with different resolutions (1366x768 and 2560x1440), maximize the terminal window in the smaller display/resolution.

Expected behavior

A maximized window should be the exact display/resolution size.

Actual behavior

The terminal window resizes about 20 pixels outside the display area when maximized on the smaller display. Maybe its a little bit more on the left side.
Issue 1:
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

Consider the following minimal router set up

{
path: '', component: Component1,
children: [
{ path: 'route1', loadChildren:() => Module1 },
]
}
]

The JIT compiler fails at angular/core/bundles/core.umd.js line 2049 because arrow functions do not have the prototype property.

Changing the lazy loading to use the es5 function syntax solves the problem

Expected behavior

Should be able to use es6 arrow function for lazy loading a module

Minimal reproduction of the problem with instructions

Create an angular project using version 2.4.10

Add a router config that includes loadChildren using arrow function

Run npm start

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

Since angular supports es6, we should be allowed to take advantage of arrow function definition for lazy loading

Please tell us about your environment:

OS - Windows 8

IDE: Visual Stidio Code

Package Manager: npm

HTTP server: lite-sever(dev)

Angular version: 2.4.10

Browser: [ Chrome Latest ]

Language: [TypeScript]

Node (for AoT issues): = 4.2.6

Issue 2:
If I set something like this:

<red>This component should have the 'red' css class</red>

@Component({
selector: 'red',
template : `<div [ngClass]="getClasses()"><ng-content></ng-content></div>`
})
export class RedComponent {
getClasses() {
return {
'red' : true
};
}
}

This is working during the first "digest", but the second (Dev mode) is removing the class.

If I do something like this, this is working.

@Component({
selector: 'red',
template : `<div [ngClass]="getClasses()"><ng-content></ng-content></div>`
})
export class RedComponent {
classes: {
'red' : true
};

getClasses() {
return classes;
}
}

I think this is a bug, because dev mode shouldn't impact the resulting output.