WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Hi there, this is my first time reporting a issue in github :p

I got the following error:

(Uncaught TypeError: o.fn.apply is not a function(anonymous function) @ vue.js?3de6:1574

I tried to trace the error and it seems it's caused by the updateListeners function @ vue.js line 1548.

I suspect that there's a mistake made in line 1548, setting

old.fn = cur

this cause the listener.fn having infinite recursive object.

Vue.js version

2.0.0-rc.4

Reproduction Link

i am in the midst of writing a complicated set of form components and came across this bug after latest rc4 update.

I am not sure how to reproduce... really sorry about that

Issue 2:
I reported the same issue for v-if which got fixed in vue@2.0.0-rc.4. However, with this version the same code using v-show – which previously worked perfectly – does not work anymore.

Vue.js version

2.0.0-rc.4

Reproduction Link

http://codepen.io/analog-nico/pen/KgPKRq

Steps to reproduce

Click the link "Open popup using v-show"

A badly designed popup opens

Click the "Close" link

What is Expected?

The popup closes successfully

What is actually happening?

Vue fails to call an internal function and throws: TypeError: o.fn is not a function. (In 'o.fn(ev)', 'o.fn' is an instance of Object)

The closePopupUsingVShow function attached to the "Close" link's click event never gets called.

The popup does not close.

For reference the codepen contains the exact same implementation of the popup with the only difference that it uses v-if instead of v-show to show/hide the popup. v-if works perfectly.
Issue 1:
System Info

transformers-cli env=

Traceback (most recent call last):
File "/home/user/.local/bin/transformers-cli", line 5, in <module>
from transformers.commands.transformers_cli import main
File "/home/user/.local/lib/python3.10/site-packages/transformers/commands/transformers_cli.py", line 24, in <module>
from .pt_to_tf import PTtoTFCommand
File "/home/user/.local/lib/python3.10/site-packages/transformers/commands/pt_to_tf.py", line 21, in <module>
from datasets import load_dataset
ModuleNotFoundError: No module named 'datasets'

https://colab.research.google.com/drive/1YORPWx4okIHXnjW7MSAidXN29mPVNT7F?usp=sharing

Who can help?

@sgugger, @patil-suraj

Im following:

https://colab.research.google.com/drive/1YORPWx4okIHXnjW7MSAidXN29mPVNT7F

from:

https://huggingface.co/blog/hf-bitsandbytes-integration

Information

The official example scripts

My own modified scripts

Tasks

An officially supported task in the examples folder (such as GLUE/SQuAD, ...)

My own task or dataset (give details below)

Reproduction

I love being able to use the int8 models! And being able to run the big LLMs on Colab. However, I just discovered that only the default search algo works. This is too bad, because for a chat application, the TopK sampling provides much more natural variation.

Beam:

RuntimeError: "log_softmax_lastdim_kernel_impl" not implemented for 'Half'

Topk:

RuntimeError: "topk_cpu" not implemented for 'Half'

Expected behavior

being able to use TopK and TopP sampling on int8 optimized models

Issue 2:
When using a bloom model with generate, I get

RuntimeError: "topk_cpu" not implemented for 'Half'

when do_sample=True.

I.e.

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

MAX_NEW_TOKENS = 128
model_name = 'bigscience/bloom-560m'

text = """
Q: On average Joe throws 25 punches per minute. A fight lasts 5 rounds of 3 minutes.
How many punches did he throw?\n
A: Let’s think step by step.\n"""
tokenizer = AutoTokenizer.from_pretrained(model_name)
input_ids = tokenizer(text, return_tensors="pt").input_ids

free_in_GB = int(torch.cuda.mem_get_info()[0]/1024**3)
max_memory = f'{free_in_GB-6}GB'

n_gpus = torch.cuda.device_count()
max_memory = {i: max_memory for i in range(n_gpus)}

model = AutoModelForCausalLM.from_pretrained(
model_name,
cache_dir="/home/code/fm_in_context_eval/transformers_cache",
device_map='auto',
load_in_8bit=True,
max_memory=max_memory
)
generated_ids = model.generate(input_ids, max_length=len(input_ids[0])+1, do_sample=True)
Issue 1:
I've been trying to normalize some vectors by dividing by their sum, but have noticed that this doesn't always result in vectors that sum to one.

For example:

foo = np.random.rand(100)*100 #random floats between 0-100
print(sess.run(tf.reduce_sum(foo/tf.reduce_sum(foo)))) #should return 1
print((foo/foo.sum()).sum()) #does return 1

While I realize that this is possible with finite precision floating point operations, I find it odd how readily it occurs, especially when the same operation in numpy doesn't encounter this issue. Is this a known issue? I've also noticed that tf.nn.softmax doesn't appear to suffer from this problem, is there a different op I need to use to ensure proper normalization?

Issue 2:
It would be nice to be able to use numerically stable summation methods like

pairwise summation

Kahan summation

for applications where numerical accuracy is important.

This could work with an optional stable keyword argument to tf.reduce_sum or via a tf.stable_reduce_sum op.

I think implementing Kahan summation in the Eigen tensor library wouldn't be difficult at all, we would simply have to add a stateful KahanSumReducer.

It should also be possible to provide a vectorized version.

Pairwise summation might be more difficult, as the reduction code would have to be touched.
Issue 1:
Bug Report

Current behavior

Upgrading our preset to babel 7.13.x, and trying to hoist the targets options at the preset root, following the blog post and the docs, I get the following error:

[BABEL] unknown: .targets is not allowed in preset options

at node_modules/@babel/core/lib/config/validation/options.js:100:13
at Array.forEach (<anonymous>)
at validateNested (node_modules/@babel/core/lib/config/validation/options.js:92:21)
at validate (node_modules/@babel/core/lib/config/validation/options.js:83:10)
at node_modules/@babel/core/lib/config/full.js:328:36
at cachedFunction (node_modules/@babel/core/lib/config/caching.js:62:27)
at cachedFunction.next (<anonymous>)
at evaluateSync (node_modules/gensync/index.js:251:28)
at sync (node_modules/gensync/index.js:89:14)
at loadPresetDescriptor (node_modules/@babel/core/lib/config/full.js:317:18)

GitHub Repo

Gandi/babel-preset-gandi#29

Input Code

module.exports = (context, options = {}) => {
let targets = {
browsers: ['last 2 versions', '> 1%', 'Firefox ESR', 'not dead'],
...options.targets,
};

let envOpts = {
modules: options.modules,
bugfixes: targets.esmodules === true,
};

let runtimeOpts = {
corejs: 2,
helpers: true,
regenerator: true,
version: '7.13.0', // 1
};

let presets = [
['@babel/preset-env', envOpts],
'@babel/preset-react',
'@babel/preset-flow',
];

let plugins = [
'@babel/plugin-transform-flow-strip-types',
['@babel/plugin-proposal-class-properties', { loose: true }],
['@babel/plugin-transform-runtime', runtimeOpts],
];

return {
targets,
presets,
plugins,
};
};

Expected behavior

No error...

Environment

System:
OS: Linux 5.8 Ubuntu 20.04.2 LTS (Focal Fossa)
Binaries:
Node: 12.16.2 - /tmp/fnm-shell-1022461/bin/node
Yarn: 1.22.5 - /usr/bin/yarn
npm: 6.14.9 - /tmp/fnm-shell-1022461/bin/npm
npmPackages:
@babel/core: ^7.13.1 => 7.13.1
@babel/plugin-proposal-class-properties: ^7.13.0 => 7.13.0
@babel/plugin-transform-runtime: ^7.13.5 => 7.13.5
@babel/preset-env: ^7.13.5 => 7.13.5
@babel/preset-flow: ^7.12.13 => 7.12.13
@babel/preset-react: ^7.12.13 => 7.12.13
@babel/runtime-corejs2: ^7.13.4 => 7.13.4
jest: ^26.6.3 => 26.6.3

Issue 2:
Bug Report

Error

Input Code

// test.js
export function test(obj) {
const { x, y } = obj;
var result = {
x: `${x}<${x}`,
y: `${x}[${y}-${x}]`,
};
return result;
}

// .babelrc
{
"presets": [
[
"@babel/preset-env"
]
],
"plugins": ["@babel/transform-runtime"]
}

// .eslintrc.js
module.exports = {
env: {
browser: true,
commonjs: true,
es6: true,
node: true,
jquery: true,
},
root: true,
parserOptions: {
requireConfigFile: false,
parser: '@babel/eslint-parser',
ecmaVersion: 2020,
sourceType: 'module',
ecmaFeatures: {
defaultParams: true,
},
},
plugins: ['vue', 'prettier', 'feq'],
settings: {
'import/resolver': {
webpack: {
config: 'build/webpack.base.conf.js',
},
},
},
extends: ['plugin:vue/essential', 'airbnb-base'],
globals: {},
rules: {},
};

Expected behavior

- Babel version(s): [v7.13.10]
- Node/npm version: [Node v12.19.0/npm 6.14.9]
- OS: [macOS 10.14.6]
- How you are using Babel: [`webpack`]
Issue 1:
If using a component that has a hook from a submodule, react thinks the component is being called as a function

react.development.js:207 Warning: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.

React version:

18.1.0

Steps To Reproduce

Pull this branch https://github.com/ljmerza/react-error then pull the submodules git submodule update --init --recursive.

run npm ci inside the src/submod folder (the submodule)

run npm ci in the root folder.

Run npm start and try to go to the home page

if i skip step 2 then it works but if using typescript, the submodule may have typings that the parent repo doesnt have so you need to run npm ci inside the submodule in this instance.

Link to code example:

https://github.com/ljmerza/react-error

The current behavior

The expected behavior

Issue 2:
To people coming from search: please read this page first. It contains most common possible fixes!

Do you want to request a feature or report a bug?

Enhancement

What is the current behavior?

I had multiple instances of React by mistake.

When trying to use hooks, got this error:

hooks can only be called inside the body of a function component

Which is not correct since I was using function components. Took me a while to find the real cause of the issue.

What is the expected behavior?

Show the correct error message. Maybe detect that the app has multiple instances of React and say that it may be the reason of bugs.
Issue 1:
PLEASE INCLUDE REPRO INSTRUCTIONS AND EXAMPLE CODE

Please do not remove the text below this line

DevTools version: 4.0.5-5441b09

Call stack: at n.value (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:16721)

at m (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:51:293849)

at Al (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:51:294084)

at Ha (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:55890)

at bi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:62939)

at Xl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:99535)

at Hl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:84255)

at Fl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:81285)

at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:25363

at n.unstable_runWithPriority (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:51:4368)

Component stack: in Al

in div

in div

in Ir

in Unknown

in n

in Unknown

in div

in div

in Wa

in ce

in be

in So

in Vl

I am getting this error when I am switching the rendered interface.

Issue 2:
PLEASE INCLUDE REPRO INSTRUCTIONS AND EXAMPLE CODE

Please do not remove the text below this line

DevTools version: 4.0.4-3c6a219

Call stack: at n.value (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:16721)

at m (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:293207)

at pl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:293442)

at Ha (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:55890)

at bi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:62939)

at Xl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:99535)

at Hl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:84255)

at Fl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:81285)

at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:25363

at n.unstable_runWithPriority (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:4368)

Component stack: in pl

in div

in div

in Or

in Unknown

in n

in Unknown

in div

in div

in Ha

in le

in ve

in ko

in Ul
Issue 1:
A small, complete example of the issue

pandas.Timestamp cannot be found at http://pandas.pydata.org/pandas-docs/version/0.19.0/api.html

Expected Output

pandas.Timestamp to be there

Output of pd.show_versions()

pandas: 0.19.0

INSTALLED VERSIONS
------------------
commit: None
python: 3.5.2.final.0
python-bits: 64
OS: Linux
OS-release: 4.4.0-45-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8

pandas: 0.19.0
nose: None
pip: 7.1.0
setuptools: 18.0.1
Cython: None
numpy: 1.11.2
scipy: None
statsmodels: None
xarray: None
IPython: None
sphinx: None
patsy: None
dateutil: 2.5.3
pytz: 2016.7
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: None
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: None
boto: None
pandas_datareader: None

Additional info

It's a bit inconvenient for a newcomer to read Time Series / Date functionality over and over again in order to find out the API of the class.

I can get rid of messages such as WARNING: po:obj reference target not found: pandas.Timestamp coming from Sphinx.

Issue 2:
Follows from discussion in PR #5160.

When adding Timestamp in api.rst to document this class and its methods (as eg done in this commit jorisvandenbossche@3a8a41d), you get warnings when building the docs like for example:

WARNING: error while formatting arguments for pandas.Timestamp.to_period:
<cyfunction Timestamp.to_period at 0x00000000057616C0> is not a Python
function.

Timestamp is a python class in a cython file (so I suppose then it is a cython class). You get the warnings for all methods that are defined in this class (defined here https://github.com/pydata/pandas/blob/master/pandas/tslib.pyx#L130), but not for inherited functions of _Timestamp or datetime.

It seems that the generated docstring pages are built (so with the docstring rendered), but that Sphinx could not detect the signature.

Does somebody know how to let Sphinx handle cython classes/functions?
Issue 1:
[Enter steps to reproduce below:]

...

...

Atom Version: 0.187.0

System: Mac OS X 10.10.2

Thrown From: Atom Core

Stack Trace

Uncaught TypeError: Cannot set property 'localAddress' of undefined

At net.js:840

TypeError: Cannot set property 'localAddress' of undefined
at connect (net.js:840:23)
at net.js:943:9
at GetAddrInfoReqWrap.asyncCallback [as callback] (dns.js:83:16)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:101:10)

Commands

Config

{
"core": {
"projectHome": "/Users/will/Dropbox/PROJ",
"disabledPackages": [
"symbols-view"
]
},
"editor": {
"invisibles": {},
"fontSize": 12,
"showInvisibles": true
}
}

Installed Packages

# User
atom-ctags, v2.6.1
git-control, v0.1.8
git-projects, v1.10.1
jenkins, v0.3.1
language-puppet, v0.10.0
linter-puppet, v0.1.0

# Dev
No dev packages

Issue 2:
Steps to reproduce:

Nothing? I left my laptop on for a bit and it eventually went into sleep mode while I did other stuff. Interesting information is at the bottom of this report.

Atom Version: 0.177.0

System: linux 3.13.0-43-generic (Ubuntu 14.10)

Thrown From: Atom Core

Stack Trace

Uncaught TypeError: Cannot set property 'localAddress' of undefined

At net.js:840

TypeError: Cannot set property 'localAddress' of undefined
at connect (net.js:840:23)
at net.js:943:9
at dns.js:87:18
at process._tickCallback (node.js:364:11)

Commands

Config

{
"core": {
"disabledPackages": [
"archive-view",
"autoflow",
"autosave",
"background-tips",
"deprecation-cop",
"encoding-selector",
"image-view",
"incompatible-packages",
"open-on-github",
"release-notes",
"spell-check",
"styleguide",
"welcome",
"wrap-guide",
"package-generator"
],
"themes": [
"isotope-light-ui",
"fizzy"
]
},
"editor": {
"fontFamily": "Inconsolata",
"fontSize": 14,
"showIndentGuide": true,
"tabLength": 4,
"softTabs": false,
"invisibles": {}
}
}

Installed Packages

# User
file-icons, v1.4.9
fizzy, v0.15.0
isotope-light-ui, v1.0.0
jenkins, v0.3.1
language-sourcepawn, v0.4.1
linter, v0.11.1
linter-jshint, v0.1.0
sourcepawn-compiler, v0.0.0
travis-ci-status, v0.11.2

# Dev
No dev packages

Some interesting things to note:

This error got thrown multiple times-Notifications is showing 5 errors, all identical.

The first error got formatted super-weirdly (see the picture below).

Clicking on "Create issue on atom/atom" does...nothing :(. Had to copy the issue to clipboard and paste it here.

This error may be due to the Jenkins package, but I wanted to submit it here first just to make sure.

Picture:
Issue 1:
I want to download images in different directories, I mean in external storage with different paths,

and the paths should be created dynamically, if the only way to mention path is using setDiskCache() in extended GlideModule,but GlideModule I need to mention in AndroidManifest.xml,while I need to choose path dynamically.

Issue 2:
I have a problem.

Glide Version: 4.3.1

Android Version:7.0

Device:Moto(E4) Plus

java.lang.NullPointerException: Attempt to read from field 'com.bumptech.glide.Priority com.bumptech.glide.load.engine.DecodeJob' on a null object reference

at com.bumptech.glide.load.engine.DecodeJob.compareTo(SourceFile:10204)

at java.util.concurrent.PriorityBlockingQueue.siftUpComparable(PriorityBlockingQueue.java:331)

at java.util.concurrent.PriorityBlockingQueue.offer(PriorityBlockingQueue.java:459)

at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1352)

at com.bumptech.glide.load.engine.executor.GlideExecutor.execute(SourceFile:255)

at com.bumptech.glide.request.SingleRequest.a(SourceFile:19115)

at com.bumptech.glide.request.target.ViewTarget.getSize(SourceFile:1250)

at com.bumptech.glide.request.SingleRequest.begin(SourceFile:257)

at com.bumptech.glide.RequestManager.onStart(SourceFile:4095)

at com.bumptech.glide.manager.ActivityFragmentLifecycle.onStart(SourceFile:50)

at com.bumptech.glide.manager.SupportRequestManagerFragment.onStart(SourceFile:175)

The code is confused, I try to restore, but still some code lines are not up, please forgive.