WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Code Sample, a copy-pastable example if possible

# Your code here
data = [{'id': 11, 'text': 'Osv1wbZoL'},
{'id': 0, 'text': 'KQpPReW3S9nZOS3'},
{'id': 0, 'text': 'cbqLhjrb0B2Ah6E'},
{'id': 3, 'text': 'qu1Jlnyba'},
{'id': 14, 'text': 'aJUv5DBjbcGc3'},
{'id': 12, 'text': 'Yobf9'},
{'id': 4, 'text': 'awzZCV'},
{'id': 4, 'text': '3NvBAVL'},
{'id': 11, 'text': '80sPCxIf9s5wmEZ1'},
{'id': 5, 'text': 'afrPD0X6mIzFK'}]

df = pd.DataFrame(data)
# out:
# id int64
# text object
# dtype: object

type(df[['id', 'text']].to_dict(orient='records')[0]['id'])
# out: int

type(df[['id']].to_dict(orient='records')[0]['id'])
# out: numpy.int64

Problem description

depending on the count of output columns, numpy integers getting converted to python integers

afterwards both json.dumps and ujson.dumps fails to encode

Expected Output

int for both cases

Output of pd.show_versions()

INSTALLED VERSIONS
------------------
commit: None
python: 3.6.1.final.0
python-bits: 64
OS: Darwin
OS-release: 16.5.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8

pandas: 0.19.2

nose: 1.3.7

pip: 9.0.1

setuptools: 33.1.1.post20170320

Cython: 0.25.2

numpy: 1.12.1

scipy: 0.19.0

statsmodels: 0.8.0

xarray: None

IPython: 5.3.0

sphinx: None

patsy: 0.4.1

dateutil: 2.6.0

pytz: 2017.2

blosc: None

bottleneck: None

tables: 3.3.0

numexpr: 2.6.2

matplotlib: 2.0.0

openpyxl: None

xlrd: None

xlwt: None

xlsxwriter: None

lxml: None

bs4: None

html5lib: 0.999

httplib2: None

apiclient: None

sqlalchemy: 1.1.9

pymysql: 0.7.10.None

psycopg2: 2.6.2 (dt dec pq3 ext lo64)

jinja2: 2.9.5

boto: None

pandas_datareader: None

Issue 2:
xref #13236 as .map was recently clarified to box ints/floats (and all other dtypes) to python/pandas types (rather than numpy scalars). __iter__ should do the same (it already is done for datetimelikes), need to add for int/floats.

Furthermore Series.tolist() also returns python types (#10904)

This will make it more consistent with pandas iteration strategy.

We also already do this for object types

In [12]: type(list(Series([Timestamp('20130101'),Timestamp('20130101',tz='US/Eastern'),1,1.0,'foo']))[2])
Out[12]: int

.tolist()

In [3]: type(Series([1,2,3]).tolist()[2])
Out[3]: int

let's fix for pure types

In [14]: type(list(Series([1,2,3]))[2])
Out[14]: numpy.int64

When solving this issue, also have to look at:

Inconsistent conversion in to_dict to numpy/python scalar (#14216)
Issue 1:
open viewLine.ts

after the first interface in the file type as fast as you can

class HorizontalRange implements EditorBrowser.IHorizontalRange

Please observe the 153ms stall due to onDidSuggest > refresh

Issue 2:
Copied from the inital issue (https://github.com/Microsoft/vscode-extensionbuilders/issues/80)

Let's see this scenario:

The cursor is placed on whitespace inside a method

The user asks for completions by pressing CTRL + Space

The language service is being asked to provide all suggestions

The suggestion box pops up containing all 20k symbols

The user types the character f

VSCode hangs for ~8 seconds until the letter is displayed and the suggestion box shows only suggestions containing an f. (VSCode doesn't ask for suggestions twice. All the time is spent outside the language service. )

typing the next letter is being processed faster but it's still slow.

@joaomoreno fixed this issue on 2015-11-06 telling that there were too many event listeners. With the December update it has become slow again. VSCode hangs now for ~10 seconds working on the same suggestion list.

I really hope it's going to be fast again with the January update. It's not funny to work in huge projects now.
Issue 1:
rustc 1.0.0-dev (e29f42025 2015-02-11 17:59:37 +0000)

rustc: /mnt/host/kmcg3413.net/rust/src/llvm/lib/IR/DataLayout.cpp:655: unsigned int llvm::DataLayout::getAlignment(llvm::Type*, bool) const: Assertion `Ty->isSized() && "Cannot getTypeInfo() on a type that is unsized!"' failed.

Issue 2:
Example program:

use std::mem;

struct AlignmentStruct {
ptr: *mut [AlignmentStruct, ..1]
}

fn main() {
println!("{}", ::std::mem::align_of::<AlignmentStruct>());
}

Error message:

rustc: /home/rustbuild/src/rust-buildbot/slave/nightly-linux/build/src/llvm/lib/IR/DataLayout.cpp:636: unsigned int llvm::DataLayout::getAlignment(llvm::Type*, bool) const: Assertion `Ty->isSized() && "Cannot getTypeInfo() on a type that is unsized!"' failed.
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

LinearProgress and CircularProgress should accept min, max and value props.

When mode is 'determinate', the progress is calculated based on value between a scale of min to max.

If min and max are not supplied, they default to 0 and 100 respectively (original behavior).

inlineStyles.primary.transform = 'scaleX(' + ((value - min) / (max - min)) + ')';

Current Behavior

LinearProgress and CircularProgress accepts value prop.

When mode is 'determinate', the progress is calculated based on value between a scale of 0 to 100.

inlineStyles.primary.transform = 'scaleX(' + value / 100 + ')';

Context

This would simplify components that utilize LinearProgress and CircularProgress as parent components would no longer be responsible for scaling values between 0 and 100. I find it's pretty rare to have data already suitable for the progress components because it's not normally between 0 and 100.

Your Environment

Tech
Version

Material-UI
1.0.0-beta.18

React
16.0.0

Issue 2:
Getting this error with latest release , It goes when i switch to V0.13.1 :

material-ui/node_modules/inline-style-prefixer/lib/Prefixer.js:43
this.cssPrefix = this._browserInfo.prefix.CSS;
^
TypeError: Cannot read property 'CSS' of undefined```
Issue 1:
I'm on Atom 1.0. To reproduce:

Open a file in Atom. Scrolling over its tab will show a tooltip with its full path.

Rename the file in tree view.

Now, scrolling over the tab will still show the previous file path.

Issue 2:
The tab has a label that displays the file name. If you hover the cursor over that label a balloon displays the full path to the file. At times the balloon displays the wrong path, as in the following example.

Save "file 1" to "path 1".

Hover over the label.

The correct path of file 1 at path 1 is displayed.

Save As... the same "file 1" to "path 2", using the same file name. Only the path is different.

Hover over file name label. The displayed path is file 1 at path 1.

Modify contents of file and save it.

Hover over the label. The displayed path is still file 1 at path 1.

The file that was modified, however, is file 1 at path 2!

A variation. If you change the file name at step 4, where you "Save As..." to path 2, then the label in the tab will display the new file name, but if you hover over the label, then the balloon will display the old file name with the old path.

In short, once set, information displayed in the file name and path information balloon doesn't change, even under circumstances where the label correctly displays the new file name. Moreover, regardless what path is displayed in the balloon, modifications will always be saved to the latest file name and path combination for that tab.

Hope this helps.
Issue 1:
Satyapal Reddy opened SPR-9038 and commented

(I discussed this with Andy Clement on email)

We want to use a set of static methods declared on set of classes to be used as part of the expression evaluation. These methods are not declared on the rootObject being passed to Expression.getValue method.

One solution is to add our own MethodResolver to the list of resolvers on the StandardEvaluationContext. However doing that involves pretty much replicating the entire code of ReflectiveMethodResolver (except where we get methods from type) and then since compareArguments and compareArgumentsVarargs methods on ReflectionHelper are not public and also ReflectiveMethodExecutor class is not public, we need to duplicate lot of code.

However if ReflectiveMethodResolver could call a protected method getMethods(type), a subclass could just override it and provide its own static methods.

I am attaching the updated class as well as a Junit test case.

As we are using 3.0.5 version a backport would be great.

Affects: 3.0.5

Attachments:

ReflectiveMethodResolver.java (6.18 kB)

SpELTest.java (1.97 kB)

Referenced from: commits 90bed97

Issue 2:
Martin Desrosiers opened SPR-6231 and commented

The change made in #10208 effectively strips any file extension in GET requests in order to exclude it from the path variable value. Unfortunately, this prevents queries that contains dots as part of the path variable, i.e. an email address. Therefore the following request:

http://localhost:8080/rest/emailaddress/email/test%40mail.com

with the following controller request mapping:

@RequestMapping(value = "/email/{email}", method = RequestMethod.GET)

public ModelAndView getEmail(@PathVariable("email") final String email) {

}

will map the value "test@mail" to the variable email.

Affects: 3.0 RC1

Issue Links:

#10832 a Uri Value is incorrectly extracted if it contains '.'. ("duplicates")

#10208 ReSTful URLs with content type extension do not work properly
Issue 1:
This is a tracking issue for the unstable iter_to_slice feature in the standard library. The into_vec adaptor for vec::IntoIter was recently removed, and these may also want to be removed. It's somewhat unclear how useful it is to have iterators enhanced with this kind of functionality.

Issue 2:
I've hit this while working on #10769, where I would need to change ast::ty_nil (and all the code using it) for consistency's sake and a great total of one usecase, a noop ..().

The only problem I see with ty_tup(~[]) is the possibility of heap allocation.

If that's a reason for concern, this can wait for the proposed changes to vectors, where ~[] would be represented as (0u, 0u).
Issue 1:
Summary of the new feature/enhancement

Similar to how Run as Administrator works, there would be an option to toggle to be able to run as another user as this can be useful in many situations where you need to run as a different user/administrator.

Issue 2:
Mouse Without Borders is great and very usefull small app from MS.

https://answers.microsoft.com/en-us/windows/forum/windows_10-start/mouse-without-borders-mousewithoutborders/0523308d-3406-4273-b86e-bef28aa6b50d

Application allow you to support few devices with one mouse/keyboard. It's super usefull if you have e.g notebook and PC and you use them simultaneously.

Would be great if Power Toys have same functionality. Maybe is posible to merge effort with author MWB (it's garage application from Microsoft )?
Issue 1:
Note that this same issue was reported back in 2017 on the now-archived repo: npm/npm#15783

Current Behavior:

I am using npm link to try to test changes I am making to an upstream dependency within my own project. In the dependency directory I run npm link. Then in my own project I run npm link ffmpeg-stream.

NPM gives the following error message when running the second link command:

npm ERR! code 1
npm ERR! path D:\git\node-ffmpeg-stream
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c "tsc"
npm ERR! Version 3.9.7
npm ERR! Syntax: tsc [options] [file...]

Afterwards, the directory of the upstream dependency is empty. Even the .git directory is deleted, so tough luck if you haven't pushed recently.

Expected Behavior:

NPM link should link the package without issue. If an error is encountered, NPM should not delete the entire folder contents.

Steps To Reproduce:

Clone https://github.com/JoshuaWalsh/node-ffmpeg-stream/

Clone https://github.com/JoshuaWalsh/subtitle-indexer

In node-ffmpeg-stream, run npm ci --include=prod

In node-ffmpeg-stream, run npm link

In subtitle-indexer, run npm link ffmpeg-stream

Observe that the node-ffmpeg-stream directory is now empty. (A small number of files may remain if they were in use at the time and couldn't be deleted)

Environment:

OS: Windows 10 Pro 10.0.19042

Node: 15.0.1

npm: 7.0.3

I am using nvm-windows to manage NodeJS, but currently only have one version installed.

Issue 2:
Current Behavior:

cb() never called!

Expected Behavior:

Download and install file successfully using npm

Steps To Reproduce:

write npm i discord.js (example)

Error cb() never called!

Environment:

npm: 6.14.6
Issue 1:
Code Sample, a copy-pastable example if possible

http://stackoverflow.com/questions/39129419/why-does-dataframe-construction-break-python-on-numpy-empty-like

import numpy as np
import pandas as pd

a = np.array([None, None], dtype=object)
print(a) # [None None]

dfa = pd.DataFrame(a)
print(dfa)

# 0
#0 None
#1 None

b = np.empty_like(a)
print(b)

#[None None]

(a == b).all()

#True

dfb = pd.DataFrame(b) # Fine so far
print(dfb.values)

#[[None]
#[None]]

print(dfb) #Crash

Expected Output

output of pd.show_versions()

INSTALLED VERSIONS
------------------
commit: None
python: 3.5.1.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 61 Stepping 4, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None

pandas: 0.18.1
nose: None
pip: 8.1.2
setuptools: 18.2
Cython: None
numpy: 1.11.1
scipy: 0.17.1
statsmodels: None
xarray: None
IPython: None
sphinx: None
patsy: None
dateutil: 2.5.3
pytz: 2016.4
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.5.1
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: 4.5.0
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.8
boto: None
pandas_datareader: None

Issue 2:
This code segfaults:

import numpy as np
import pandas as pd
df = pd.DataFrame(np.random.randn(3, 3), index='A B C'.split())
pd.DataFrame(np.empty_like(df.index))

INSTALLED VERSIONS

commit: None

python: 3.5.2.final.0

python-bits: 64

OS: Linux

OS-release: 3.13.0-91-generic

machine: x86_64

processor: x86_64

byteorder: little

LC_ALL: None

LANG: en_US.UTF-8

pandas: 0.18.1

nose: 1.3.7

pip: 8.1.2

setuptools: 23.0.0

Cython: 0.24

numpy: 1.11.1

scipy: 0.17.1

statsmodels: 0.6.1

xarray: 0.7.2

IPython: 5.0.0

sphinx: None

patsy: 0.4.1

dateutil: 2.3

pytz: 2016.4

blosc: None

bottleneck: 1.1.0

tables: 3.2.2

numexpr: 2.6.0

matplotlib: 1.5.1

openpyxl: None

xlrd: None

xlwt: None

xlsxwriter: None

lxml: None

bs4: 4.4.1

html5lib: 0.999

httplib2: None

apiclient: None

sqlalchemy: None

pymysql: None

psycopg2: None

jinja2: 2.8

boto: None

pandas_datareader: None
Issue 1:
I have TS code that imports some types from a single file:

import {TypeA,TypeB,TypeC} from './file';

It would be nice to import of all exported types from a file with a star syntax, eg:

import {*} from './file';

Issue 2:
Opening this separate issue as suggested by @mhegazy in the PR mentioned below. I'm not the most informed on this issue but I am opening it because I do not want it to get lost/forgot.

Quoting @mhegazy here:

@ahejlsberg proposed a import * from "mod" syntax to do that a while back. and in this case it would be import * from namespace. the problem here is it makes it harder to do a syntactic transformation on a single file, as the compiler needs to have the full program information to know how things should be qualified. it is something that we are looking into, i would recommend filing a new issue for this instead of having the discussion on this PR.

The PR is just renaming internal modules to namespaces to avoid any confusion with ES6 modules. this is something we got feedback for regularly from customers.

Now that TypeScript has renamed internal modules to namespaces and has the namespace keyword (PR #2923) it would be nice to be able to import a namespace and then have access to the types defined on that namespace. Would this essentially just be a new syntax to do what /// <reference path> does?

What are the obstacles and concerns for this feature?
Issue 1:
I am trying to use scipy.spatial.distance.cdist

I can import scipy but cannot call or import scipy.spatial

I have searched the web and found other posts similar to this but none have worked for me. I tried different versions of scipy, numpy and python itself. I continue to get the error shown in the image below. I do not appear to have _fblas.py. I searched the C drive of my computer and all it returned was test_fblas.py, which is present in the test folder within the scipy folder. I appreciate any help leading to the resolution of this hours long quest.

Issue 2:
Using the Microsoft Store version of Python 3.7 on Windows 10 importing scipy.linalg fails. To me this issue seems similar to numpy#12667, which got resolved through numpy#13019.

Reproducing code example:

import scipy.linalg

Error message:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\stroy\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\scipy\linalg\__init__.py", line 190, in <module>
from .misc import *
File "C:\Users\stroy\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\scipy\linalg\misc.py", line 5, in <module>
from .blas import get_blas_funcs
File "C:\Users\stroy\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\scipy\linalg\blas.py", line 214, in <module>
from scipy.linalg import _fblas
ImportError: DLL load failed: Das angegebene Modul wurde nicht gefunden.

Scipy/Numpy/Python version information:

1.2.1 1.16.3 sys.version_info(major=3, minor=7, micro=3, releaselevel='final', serial=0)
Issue 1:
Version 0.124.0

Mac OS X

When folders are listed in the .gitignore file. They disappear from the editor.

Is this intentional or a bug?

makes it pretty difficult to view or work with ignored content

Issue 2:
I'm not sure if something changed in recent versions, but now anything in my .gitignore file does not show up in the file browser column on the left. Changing the "Exclude Vcs Ignored Paths" setting in the Preferences menu doesn't have any effect. Is there another setting I'm missing or is this a bug?
Issue 1:
found while debugging #1597.

$ npm pack
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path @isaacs/bundle-metadep-duplication-x-1.0.0.tgz
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '@isaacs/bundle-metadep-duplication-x-1.0.0.tgz'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/isaacs/.npm/_logs/2020-08-01T23_21_12_399Z-debug.log

It should remove the scope when creating the tarball filename.

Issue 2:
Original bug ticket: [https://npm.community/t/9557](https://npm.community/t/9557)
Originally filed: 2019-08-19T14:54:09.391Z
Issue 1:
Glide Version:Glide 4.2.0 (https://github.com/bumptech/glide/releases)

Integration libraries:No

Device/Android Version:HUAWEI Mate9 7.0

Issue details / Repro steps / Use case background: compile Error: RequestOptionsGenerator$1 cannot be accessed

Error class file:... \libs\compiler-4.2.0.jar (com/bumptech/glide/annotation/compiler/RequestOptionsGenerator$1.class)

Class RequestOptionsGenerator$1 closed method property error

Please delete this file or make sure it is in the correct classpath.

Error: RequestOptionsGenerator$1 cannot be accessed

Error class file:... \libs\compiler-4.2.0.jar (com/bumptech/glide/annotation/compiler/RequestOptionsGenerator$1.class)

Class RequestOptionsGenerator$1 closed method property error

Please delete this file or make sure it is in the correct classpath.

1 mistakes

Issue 2:
Glide Version:

Integration libraries:

Device/Android Version:

Issue details / Repro steps / Use case background:

Glide load line / GlideModule (if any) / list Adapter code (if any):

Glide.with...

Layout XML:

<FrameLayout xmlns:android="...

Stack trace / LogCat:

paste stack trace and/or log here
Issue 1:
Description of the problem

In the latest version (r92) the stormtrooper collada model has an incorrect boundingBox.

I tried the BoxHelper:

const box = new THREE.BoxHelper(object, 0xff0000);
scene.add(box);

or a manual approach:

const boundingBox = new THREE.Box3().setFromObject(trooper);
const size = boundingBox.getSize();
const center = boundingBox.getCenter();
const geometry = new THREE.BoxGeometry(size.x, size.y, size.z);
const material = new THREE.MeshBasicMaterial({ wireframe: true, color: 0x0000ff });
const box2 = new THREE.Mesh(geometry, material);
box2.position.set(center.x, center.y, center.z);
scene.add(box2);

Both approaches result in the model not being in the boundingbox:

I already figured out that this started with r87,

r86 didn't have this issue:

example code:

r86: r86...stijndeschuymer:bounding-box-test

r87: r87...stijndeschuymer:bounding-box-test-r87

I'm currently trying to figure out what causes this, but I'm quite new to three.js,

so I'd highly appreciate it if someone pointed me in the right direction!

Three.js version

r92

r87

r86

Issue 2:
Description of the problem

Not sure if this is the same bug or two different.

Whenever SkinnedMesh origin is out of camera frustum, the mesh gets culled even if its actual transformed geometry must be visible on the screen.

Seems like the bounding box used for clipping is not updated with animation.

Same happens for shadows.

When the SkinnedMesh moves away from its origin in light space, its shadow gets clipped/partially clipped by pointlight's perspectivecamera (I guess).

Here's an example in jsfiddle:

https://jsfiddle.net/vtb6z50j/

Sorry for inline json. The example was dependent of viewport dimensions. Fixed.

And its not light.shadow.camera.far, light.shadow.radius bug.

Actually the use case for this was to make a complete animation in any 3d editor (blender in my case) just to play it as is in three.js. So the character isn't moved by mesh.position, there is no need to sync movement/animation and hardcode movement positions.

It just plays baked animation!

Update: yes, making frustumCulled = false does fix both problems (which is enough for me to continue),

but most engines update object bbox with root motion/transforms.

Update2: actual temporary fix #11991 (comment)

Three.js version

r87

r85

Browser

Firefox

OS

Windows

Hardware Requirements (graphics card, VR Device, ...)