WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
I am upgrading Pandas from 0.8.1 to 0.10.1.dev-f7f7e13 . My environment is Window XP with below: Python: 2.7.3 Numpy: 1.6.2 MPL: 1.1.1 Pandas: 0.10.1.dev-f7f7e13.

Then OK application on 0.8.1 now meets errors. I trace the root cause to filtering the duplicated index of Series. Detail in : http://stackoverflow.com/questions/14395678/how-to-drop-extra-copy-of-duplicate-index-of-pandas-series

simply put: below snippet has two issues :

import pandas as pd

idx_tp = [('600809', '20061231'), ('600809', '20070331'), ('600809', '20070630'), ('600809', '20070331')]

dt = ['demo','demo','demo','demo']

idx = pd.MultiIndex.from_tuples(idx_tp,names = ['STK_ID','RPT_Date'])

s = pd.Series(dt,index=idx)

Issue 1: s[s.index.unique()] works well on 0.8.1 but not 0.10.1

Issue 2: s.groupby(s.index).first() will crash on my machine

Issue 2:
Code:

Python 3.6.0 |Anaconda 4.3.1 (64-bit)| (default, Dec 23 2016, 11:57:41) [MSC v.1900 64 bit (AMD64)] on win32
>>> pd.__version__
'0.20.1'
>>> import platform
>>> platform.platform()
'Windows-7-6.1.7601-SP1'
>>> import pandas as pd
>>> df = pd.read_csv(r'c:\tmp\中文.csv')
Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 2881, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-6-0cd6317422e5>", line 1, in <module>
df = pd.read_csv(r'c:\tmp\中文.csv')
File "C:\ProgramData\Anaconda3\lib\site-packages\pandas\io\parsers.py", line 655, in parser_f
return _read(filepath_or_buffer, kwds)
File "C:\ProgramData\Anaconda3\lib\site-packages\pandas\io\parsers.py", line 405, in _read
parser = TextFileReader(filepath_or_buffer, **kwds)
File "C:\ProgramData\Anaconda3\lib\site-packages\pandas\io\parsers.py", line 762, in __init__
self._make_engine(self.engine)
File "C:\ProgramData\Anaconda3\lib\site-packages\pandas\io\parsers.py", line 966, in _make_engine
self._engine = CParserWrapper(self.f, **self.options)
File "C:\ProgramData\Anaconda3\lib\site-packages\pandas\io\parsers.py", line 1582, in __init__
self._reader = parsers.TextReader(src, **kwds)
File "pandas\_libs\parsers.pyx", line 394, in pandas._libs.parsers.TextReader.__cinit__ (pandas\_libs\parsers.c:4209)
File "pandas\_libs\parsers.pyx", line 712, in pandas._libs.parsers.TextReader._setup_parser_source (pandas\_libs\parsers.c:8895)
OSError: Initializing from file failed

Problem description

python 3.6 changed sys.getfilesystemencoding() to return "utf-8" instead of "mbcs"

see PEP 529.

How to fix

Here is the problem: parsers.pyx

if isinstance(source, basestring):
if not isinstance(source, bytes):
source = source.encode(sys.getfilesystemencoding() or 'utf-8')

the source parameter is our filename, and will be encoded to 'utf-8', not legacy 'mbcs' in python 3.6

and finally passed to open() in io.c:new_file_source

thus interpreted as a mbcs string, so, the "File not found" exception is not suprised

maybe this should be the responsiblity of cython for python 3.6 to handle these things by using unicode version of windows API,

but for now, we just replace sys.getfilesystemencoding() to "mbcs"
Issue 1:
For example:

var geometry = new THREE.BoxBufferGeometry( 1, 1, 1 );

var material = new THREE.MeshNormalMaterial();

var mesh = new THREE.Mesh( geometry, material );

var m = new THREE.Mesh().copy( mesh );

console.log( m.geometry ); // BufferGeometry with no attributes

console.log( m.material ); // MeshBasicMaterial

Likewise for Line, LineSegments, and Point.

Sprite, does not copy the material.

Issue 2:
Hi Friends!

SpriteMaterial.sizeAttenuation = false

seems not working as expected with rayCaster.

I doubt the sprite size(dimension) estimation may be a little bit off, ray is very hard to hit them after apply scale(), especially scale down.

I can upload a simplified code that regenerate this problem a bit later.

r96

Browser

All of them

Thanks!
Issue 1:
I encountered an animation error

This is the case, I exported a gltf model with animation through the 3dmax export plugin provided by babylon.js. It plays normally in the 3d viewer that comes with windows, and it plays normally in the online gltf viewer provided by babylon.js, but when I use three.js, it plays incorrectly. Looks like a matrix transformation error. I really try to fix it. I don’t know if any friends have encountered similar problems. . .

In the three.js

In the windows 3D viewer

In the babylon.js sandbox

Issue 2:
Description of the problem

i want to highlight the corner of my OBJ .and i used this url https://threejs.org/examples/webgl_postprocessing_outline.html for my code

but now the problem is:

i need the background transparent....

but transparency will be lost when the outline effect is working

before outline effect the background is transparent and i can see the red body background

after outline effect

Three.js version
Issue 1:
Environment

Windows build number: not relevant
PowerToys version: not relevant
PowerToy module for which you are reporting the bug (if applicable): not relevant

Steps to reproduce

Checkout PowerToys repo into the folder where you have nuget.config file (or any parent of this folder contains that file).

Nuget.config file contains:

<config>
<add key="repositorypath" value="c:\CxCache" />
</config>

Expected behavior

Nuget packages are resolved correctly and the build succeeds.

Actual behavior

Packages are restored incorrectly and the build fails.

Nuget restore tries to use defined cache for packages and will add duplicate references into every project file

Build will then complain that packages are missing

Screenshots

Issue 2:
Hi,

Wanted to be able to save split window formations or even custom positions for windows . So after computer restart all those windows can be opened all together if the configurations for few windows are saved.

There should be a possibility to retrieve both a long term version of these windows in user specified files and also retrieve the previous positions used (the last time they were used together).and obviously long term versions could be deleted if user wants.

IF these could be accessed with some neat shortcuts it would be great.And if a user wants to just open a singular window independently without using the saved framework they should open as they already do (like full screen )

Thanks

P.S. Dont know if this already is possible somehow
Issue 1:
Summary of the new feature/enhancement

I would like to be able to maximize windows to span across multiple monitors and not just carve up each monitor with its own zones.

Proposed technical implementation details (optional)

Ideally it would be great if I get just click the maximize button and have the window maximize to more than 1 screen,

For me I have 3 screens but I only want to have 2 screens linked to be 1 virtual big screen.

It would be great if we could create a virtual screen linking more than one monitor and then be able to carve that up into zones.

Issue 2:
Support zones which span several monitors

Could you please add the capability to define zones across several monitors? For instance I would like to define one single zone spanning two monitors (this is my current setup with ultramon for instance).

Thanks very much
Issue 1:
I have only added a space before the < on line 5.

Is it incorrect highlight ? I have remove all extensions and reinstall VSCode and set javascript.validate.enable to false, it didn't work.

Besides, I had used npm install jshint and eslint in global but the highlight didn't change after I removed all of them.

VSCode version :

Issue 2:
Ported from microsoft/TypeScript-Sublime-Plugin#285

Related to microsoft/TypeScript-Sublime-Plugin#265.

Issue:

Correct:
Issue 1:
I'm doing some work in filtering and having a bit of a rough time. I went looking for some examples and I found this:

http://azitech.wordpress.com/2011/03/15/designing-a-butterworth-low-pass-filter-with-scipy/

It looks to me like a perfectly valid set of examples, and he's even generated some example output. It looks reasonable.

So I download the code and try running it on my machine. I see this error:

/usr/lib/python2.7/dist-packages/scipy/signal/filter_design.py:288: BadCoefficients: Badly conditioned filter coefficients (numerator): the results may be meaningless

"results may be meaningless", BadCoefficients)

b=[ 1.50249921e-18], a=[ 1. -9.78671066 43.10310124 -112.50164481 192.7084543

-226.36430741 184.66074807 -103.30140929 37.92528936 -8.25143211

0.80791132]

And then the graph looks substantially different:

The thing that strikes me is that in the filter passbands are HUGELY different. The example output he shows has a passband gain of 1. My passband gain is 10^-5 so it's all attenuation.

I found this ticket #2140 and it mentioned problems with the "small enough to zero out" number. I'm running a newer version of scipy which already has the 1e-14 threshold so that doesn't seem to be the problem.

This is really puzzling me.

Issue 2:
The iirfilter() function internally generates filter prototypes in zpk format, transforms them to tf format, and then back to zpk format:

z, p, k = typefunc(N)
b, a = zpk2tf(z, p, k)
b, a = lp2lp(b, a, wo=warped)
b, a = bilinear(b, a, fs=fs)
return tf2zpk(b, a)

But conversion to tf format introduces numerical errors, causing higher-order filters to fail, even though the higher-order prototypes work fine. It should use zpk format (or state-space format?) throughout, and these functions should be changed to accept zpk format or be replaced by ones that do.

I started to implement this, but then realized it involves lots of changes to lots of functions, some of which I'm not sure the best way to do, so registering this issue in case others want to work on it, too.

For instance, matlab's bilinear function accepts tf, zpk, and ss formats, by varying the number of input parameters, which I don't think is "Pythonic" (though lti() does it). SciPy's bilinear function accepts b and a as separate parameters, and then fs, so it can't be modified to use variable number of input variables anyway, without breaking compatibility. A new function could be created that takes zpk, or the existing function could take a list as its first parameter instead, which could be zpk, tf, or ss, or something else.

For comparison, Octave uses sftrans instead of lp2lp, and only accepts zpk format.
Issue 1:
Not sure if this is supposed to be like this.

original issue here: pandas-dev/pandas#7332

cross post to numexpr here: https://code.google.com/p/numexpr/issues/detail?id=126

essentially in pandas were looking up a dtype,type in a cython dictionary

turns out that for int64 (and int32 but NOT int64 on 32-bit platforms), the hashes are DIFFERENT, but same for other dtypes (including float64).

Is this maybe an implementation detail on numexpr and/or incorrect usage of dtype.type and/or invalid guarantees on this object?

FYI, we switched to using dtype.name for the lookup and no issues.

In [20]: import numexpr as ne
In [21]: import numpy as np
In [22]: ne.__version__
Out[22]: '2.4'
In [23]: np.__version__
Out[23]: '1.8.1'

In [24]: a = np.arange(10,dtype='int64')
In [25]: b = np.arange(10,dtype='int64')

In [26]: result_ne = ne.evaluate('a+b')
In [27]: result_numpy = a+b

In [28]: (result_ne == result_numpy).all()
Out[28]: True

In [29]: result_ne.dtype.type
Out[29]: numpy.int64

In [30]: result_numpy.dtype.type
Out[30]: numpy.int64

In [31]: hash(result_ne.dtype.type)
Out[31]: 8768103730016

In [32]: hash(result_numpy.dtype.type)
Out[32]: 8768103729990

For the floats the same though

In [1]: a = np.arange(10.)

In [2]: b = np.arange(10.)

n [4]: hash(ne.evaluate('a+b').dtype.type)
Out[4]: 8751212391216

In [5]: hash((a+b).dtype.type)
Out[5]: 8751212391216

Issue 2:
The current documentation of enumerated types makes me think there are 8 values possible for integers ((signed, unsigned) * (8, 16, 32, 64) bits).

However, if I dump the values of the enumeration I have results that are not consistent with the documentation:

Windows x64 (with sizeof(long) = 4)

NPY_BYTE = 1
NPY_UBYTE = 2
NPY_INT8 = 1
NPY_UINT8 = 2
NPY_SHORT = 3
NPY_USHORT = 4
NPY_INT16 = 3
NPY_UINT16 = 4
NPY_INT = 5
NPY_UINT = 6
NPY_INT32 = 7
NPY_UINT32 = 8
NPY_LONG = 7
NPY_ULONG = 8
NPY_INT64 = 9
NPY_UINT64 = 10
NPY_LONGLONG = 9
NPY_ULONGLONG = 10

NPY_INT and NPY_INT32 differ (the same for NPY_UINT and NPY_UIN32).

Linux x64 (with sizeof(long) = 8)

NPY_BYTE = 1
NPY_UBYTE = 2
NPY_INT8 = 1
NPY_UINT8 = 2
NPY_SHORT = 3
NPY_USHORT = 4
NPY_INT16 = 3
NPY_UINT16 = 4
NPY_INT = 5
NPY_UINT = 6
NPY_INT32 = 5
NPY_UINT32 = 6
NPY_LONG = 7
NPY_ULONG = 8
NPY_INT64 = 7
NPY_UINT64 = 8
NPY_LONGLONG = 9
NPY_ULONGLONG = 10

Here, NPY_INT64 and NPY_LONGLONG differ (the same for NPY_UIN64 and NPY_ULONGLONG)

In both cases (Windows and Linux) we have 10 values for integer instead of 8.

Is that expected ? I'm using numpy v1.13.3.

cc @wolfv @SylvainCorlay
Issue 1:
Hey,

had to describe the issue in one line, here is the possibiltiy to reproduce

DELETE campaigns
PUT campaigns
{
"mappings" : {
"campaign" : {
"properties" : {
"location" : {
"type": "geo_shape",
"tree": "quadtree"
}
}
}
}
}

POST /campaigns/campaign/1
{
"location" : {
"type" : "circle",
"coordinates" : [45.01, 2.26],
"radius" : "9000m"
}
}

POST campaigns/campaign/
{
"_id": { "c_id": "1891"},
"location" : {
"type" : "circle",
"coordinates" : [45.01, 2.26],
"radius" : "9000m"
}
}

GET campaigns/campaign/_search

GET campaigns/campaign/_search
{
"query":{
"filtered": {
"query": {
"match_all": {}
},
"filter": {
"geo_shape": {
"location": {
"relation": "intersects",
"shape": {
"type": "circle",
"coordinates" : [45.01001, 2.26],
"radius":"1m"
}
}
}
}
}
}
}

You can see the difference between match all and the geo shape query, even though the points are the same. If you remove the _id field from the document, everything works, so maybe the IdFieldMapper throws an Exception (rightfully, as an id cannot be an object) and then the rest of the document is not indexed.

If you replace the _id object with a string, you get an exception, that the id values dont match as one ID is autogenerated. Not sure, if this is the desired behaviour.

Issue 2:
Currently routing and ID values can be passed in the query string and url respectively, but they can also be extracted from fields within the document.

This has a significant performance impact because each doc needs to be parsed on the node which receives the index/get/update/delete request in order to know which node should handle the request.

On top of that, there are clashes between (eg) routing values set in fields and parent settings.

We should deprecate the functionality to extract these values from fields, and make it the responsibility of the client code instead.

It should still be possible to set _routing to required. Perhaps we should set this automatically if the user ever passes in a routing or parent value at index time?

Relates to #8870
Issue 1:
TypeScript Version:

1.7.5 / 1.8.0-beta / nightly (1.9.0-dev.20160217)

Code

// A self-contained demonstration of the problem follows...
switch (true) {
case true:
let foo = true;
}

switch (true) {
case true:
let foo = false;
}

console.log(foo);
// Static type checking correctly says, "Cannot find name 'foo'"
// but compiler transforms it anyway and does not perform hygiene
// on each foo variable.
// Should be Uncaught ReferenceError: foo is not defined

Expected behavior:

Identifier hygiene is performed on each lexically bound let foo to their parent SwitchBlock.

Output example of expected:

switch (true) {
case true:
var foo_1 = true;
}

switch (true) {
case true:
var foo_2 = false;
}

console.log(foo);
// Uncaught ReferenceError: foo is not defined

Actual behavior:

Static type checker sees issue, but transform does not perform hygiene so no ReferenceError happens and instead console.log(foo) === false.

The same problem also applies even if you provide explicit blocks inside each CaseClause|DefaultClause, which is even more unexpected:

switch (true) {
case true: {
let foo = true;
}
}
switch (true) {
case true: {
let foo = false;
}
}
console.log(foo);
// false but should be Uncaught ReferenceError: foo is not defined

One thing to note is that if the variable declaration inside the SwitchBlock shadows, then it will correctly perform hygiene:

let foo = 'this works correctly';

switch (true) {
case true:
let foo = true;
}

switch (true) {
case true:
let foo = false;
}
console.log(foo);
// "this works correctly"

Issue 2:
TypeScript Version:

1.8.7

Code

// A self-contained demonstration of the problem follows...
class A {
public propA; any = {};
private propB: number = 1;
}

class B implements A {
public propA: any;
private propB: number; // here
}
applyMixin(A, [B]);

Expected behavior:

Compile success

Actual behavior:

Compile failed.

When private propB: number; exists, tsc failed with:

error TS2420: Class 'A' incorrectly implements interface 'B'.
Types have separate declarations of a private property 'propB'.`

When private propB: number; is removed, tsc failed with:

error TS2420: Class 'A' incorrectly implements interface 'B'.
Property 'propB' is missing in Type 'A'.
Issue 1:
One thing that always bugs me when using var_dump (and now, with the great VarDumper component dump()) is removing all calls after debugging. I always have a hard time to find these and end up doing grep var_dump, which isn't very quick on a windows PC and in a project with many vendor files.

It would be very awesome if we can show the location of the dump call, somewhere small in the top right corner of the dump box. I don't know if this is possible, it's just something I would like to see.

Issue 2:
Hi,

What about adding a stack trace information when dumping?

I think it may help to see which were the steps to get there.
Issue 1:
After install the last update:

Version 0.10.1

Commit df35236

Shell 0.34.1

Render 45.0.2454.85

Node 4.1.1

With only paste a text in a new file the entire screen freezes, only the menu bar response but don't work.

Operating system windows 8.1.

Issue 2:
Sometimes editor just freeze. Kill task helps only. Have this problem at work and home.

I noticed that this started after latest update (0.10.1).

Working in PHP files.

Windows 10 64.
Issue 1:
It would be nice if you could select i.e. a different font for comments in comparison to code just for better reading. It's not a pressing matter but nice to have :)

Issue 2:
I have a problem matcher that works on the output of the Delphi compller. Sometimes it gives relative and absolute file names at the same time. When I set "fileLocation": ["absolute"] the messages having relative paths can't be opened. When I set "fileLocation": ["relative", "${workspaceRoot}"] the messages having absolute paths can't be opened anymore.

Is it possible to define a a problem matcher that uses relative paths as long as the mentioned file exists and uses absolute paths as a fallback mode?
Issue 1:
I have an next/js app behind nginx with custom server node/express .

I launch it to port 3000. Nginx redirect the request myserver.com/mynextapp/ to port 3000 , but this is not working.

I can see the page server rendered, but the js doesn't working . In browser tool network i got 404 response for app.js and page/, because the request is myserver.com/_next/228ef92e59d376f055fc2c6d01c93b82/app.js instead of myserver.com/mynextapp/_next/228ef92e59d376f055fc2c6d01c93b82/app.js

It worked well when i simply opened the port 3000 in myserver.com but i try to avoid that.

Any idea ?

Thanks

Issue 2:
Next uses routes like /_next and /static by default. If you wanted to run multiple different Next apps on the same domain, they would collide with each other. Can these paths be made configurable?
Issue 1:
From @alextricity25 on 2016-04-08T15:37:25Z

ISSUE TYPE

Feature Idea

COMPONENT NAME

os_router

ANSIBLE VERSION

ansible 2.0.1.0
config file = /root/setup-infra/ansible.cfg
configured module search path = Default w/o overrides

CONFIGURATION

No changes made to ansible.cfg

OS / ENVIRONMENT

I'm running Ubuntu 14.04, but this module is not platform-specific I don't think.

SUMMARY

os_router can't take in a port ID as an internal interface, only a subnet. See:

https://github.com/ansible/ansible-modules-core/blob/devel/cloud/openstack/os_router.py#L321

The neutron CLI allows you to specify a port ID as an interface, and therefore allow you to specify an arbitrary IP for that interface. It would be nice if the Ansible os_router module would allow you to do that.

STEPS TO REPRODUCE

This added feature would allow you to do something like:

- name: Create port for my_net
os_port:
state: present
name: "my_net_port"
network: "my_net"
fixed_ips:
- ip_address: "192.168.100.50"
register: my_net_port_results

- name: Create my router
os_router:
name: my_router
state: present
network: "ext-net"
interfaces:
- port: "{{ my_net_port_results.id }}"
- "some_other_priv_subnet"

This would allow the user to specify either a subnet or a port for a router internal interface.

EXPECTED RESULTS

The router would have two interfaces with the example playbook shown above. It would have the default gateway of "some_other_priv_subnet", and it would have the ip assigned to "my_net_port".

This would allow subnets to be attached to multiple routers, which currently isn't do-able through the os_router module.

ACTUAL RESULTS

TBD

Copied from original issue: ansible/ansible-modules-core#3390

Issue 2:
ISSUE TYPE

Feature Idea

COMPONENT NAME

ansible-galaxy

ANSIBLE VERSION

Future

CONFIGURATION

N/A

OS / ENVIRONMENT

N/A

SUMMARY

Local roles may depend on galaxy roles defined in meta/main.yml. ansible-galaxy install -r does not support this file format, although the value of the dependencies key appears to match that in a requirements.yml file

STEPS TO REPRODUCE

$ cat meta/main.yml

galaxy_info:
author: ome-devel@lists.openmicroscopy.org.uk
dependencies:
- role: openmicroscopy.basedeps

$ ansible-galaxy install -r meta/main.yml`

- downloading role 'dependencies', owned by
[WARNING]: - dependencies was NOT installed successfully: Role has no field
named u'owner'

ERROR! - you can use --ignore-errors to skip failed roles and finish processing the list.

Proposed behaviour: Install all roles listed in the dependencies section of meta/main.yml, in this case openmicroscopy.basedeps

BACKGROUND

Galaxy dependencies file can be the role meta file

This is the original motivation for this feature suggestion. When using molecule for testing Ansible roles dependencies need to be in a requirements file. If this is a deliberate design decision it would be useful if the docs could be updated with an official description of the meta/main.yml file.

Add ability to automatically download roles when running play

This is a closely related feature request.
Issue 1:
Hello Everone

How do i install Bootstrap 3.1.1 please tell me i tried this

https://github.com/KKBOX/FireApp/wiki/Use-compass-extensions#windows but was not able to make it work please guide me!!

thanks!!

Issue 2:
Hello Everone

How do i install Bootstrap 3.1.1 please tell me i tried this

https://github.com/KKBOX/FireApp/wiki/Use-compass-extensions#windows but was not able to make it work please guide me!!

thanks!!