WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
It seems that numpy does not recognize the following overflow error:

In [1]: import numpy as np

In [2]: data = np.array((65536, 65535), dtype=np.int32)

In [3]: np.geterr()
Out[3]: {'divide': 'warn', 'invalid': 'warn', 'over': 'warn', 'under': 'ignore'}

In [4]: np.cumprod(data)
Out[4]: array([ 65536, -65536], dtype=int32)

In [5]: with np.errstate(over="raise"):
...: np.cumprod(data)
...:

No warnings or exceptions are raised

Issue 2:
I just noticed that this:

In [1]: import numpy as np

In [2]: arr = np.zeros((2, 3), dtype=np.int16) + np.int16(3201)

In [3]: arr.T.dot(arr)
Out[3]:
array([[-19966, -19966, -19966],
[-19966, -19966, -19966],
[-19966, -19966, -19966]], dtype=int16)

spits out no warning about integer overflow. Is it possible to generate one?
Issue 1:
Challenge Name

https://www.freecodecamp.com/challenges/missing-letters

Issue Description

The link that should direct to 'String.charCodeAt()', directs to the FCC map instead of the MDN page.

Browser Information

Chrome, Version: 50

Operating System: OSX

Issue 2:
Challenge Missing letters has an issue.

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.86 Safari/537.36.

Please describe how to reproduce this issue, and include links to screenshots if possible.

The link String.charCodeAt() has the href set to undefinded instead of https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/charCodeAt.
Issue 1:
(jython) r@r-V ~ $ python --version
Jython 2.7.1b3
(jython) r@r-V ~ $ pip install requests==2.11.1
Collecting requests==2.11.1
Using cached requests-2.11.1-py2.py3-none-any.whl
Installing collected packages: requests
Found existing installation: requests 2.11.0
Uninstalling requests-2.11.0:
Successfully uninstalled requests-2.11.0
Successfully installed requests-2.11.1
(jython) r@r-V ~ $ pip install requests==2.12.0
Collecting requests==2.12.0
Using cached requests-2.12.0-py2.py3-none-any.whl
Installing collected packages: requests
Found existing installation: requests 2.11.1
Uninstalling requests-2.11.1:
Successfully uninstalled requests-2.11.1
Rolling back uninstall of requests
Exception:
Traceback (most recent call last):
File "/home/r/.virtualenvs/jython/Lib/site-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/home/r/.virtualenvs/jython/Lib/site-packages/pip/commands/install.py", line 338, in run
requirement_set.install(
File "/home/r/.virtualenvs/jython/Lib/site-packages/pip/commands/install.py", line 338, in run
requirement_set.install(
File "/home/r/.virtualenvs/jython/Lib/site-packages/pip/req/req_set.py", line 780, in install
requirement.install(
File "/home/r/.virtualenvs/jython/Lib/site-packages/pip/req/req_install.py", line 851, in install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File "/home/r/.virtualenvs/jython/Lib/site-packages/pip/req/req_install.py", line 1057, in move_wheel_files
move_wheel_files(
File "/home/r/.virtualenvs/jython/Lib/site-packages/pip/wheel.py", line 272, in move_wheel_files
compileall.compile_dir(source, force=True, quiet=True)
File "/home/r/jython/Lib/compileall.py", line 56, in compile_dir
if not compile_dir(fullname, maxlevels - 1, dfile, force, rx,
File "/home/r/jython/Lib/compileall.py", line 56, in compile_dir
if not compile_dir(fullname, maxlevels - 1, dfile, force, rx,
File "/home/r/jython/Lib/compileall.py", line 56, in compile_dir
if not compile_dir(fullname, maxlevels - 1, dfile, force, rx,
File "/home/r/jython/Lib/compileall.py", line 50, in compile_dir
if not compile_file(fullname, ddir, force, rx, quiet):
File "/home/r/jython/Lib/compileall.py", line 99, in compile_file
ok = py_compile.compile(fullname, None, dfile, True)
File "/home/r/jython/Lib/compileall.py", line 99, in compile_file
ok = py_compile.compile(fullname, None, dfile, True)
File "/home/r/jython/Lib/py_compile.py", line 96, in compile
_py_compile.compile(file, cfile, dfile)
File "/home/r/jython/Lib/py_compile.py", line 96, in compile
_py_compile.compile(file, cfile, dfile)
RuntimeException: java.lang.RuntimeException: Method code too large!
(jython) r@r-V ~ $

This might not be a bug in requests, but perhaps it is workaroundable? Has any change been done in 2.12.0 that caused a very big method to be created?

Issue 2:
When using requests, I've just upgraded and I'm having the following error:

import requests as rq

File "C:\Users\_HOME_\AppData\Local\Programs\Python\Python36\lib\site-packages\requests\__init__.py", line 53, in <module>

major, minor, patch= urllib3_version

ValueError: not enough values to unpack (expected 3, got 1)
Issue 1:
This works

deno run --allow-write writeToFile.ts

But this does not, it just ignores the flag

deno run writeToFile.ts --allow-write

It should at least throw a warning or something, not just silently ignore flags passed like in the second example. Please adjust the parser in such a way, that the second example will also work.

Issue 2:
The order of the CLI flags should not be of importance. Check this example

Shouldn't

deno test.ts --config tsconfig.json

be the same as

deno --config tsconfig.json test.ts

or maybe I'm wrong?
Issue 1:
scrollToHash doesn't work as expected.

I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

I would expect the anchor to be scrolled to.

Current Behavior

Anchor is scrolled to correctly, but quickly after the scroll position is reset to the top of the page.

Increasing the setTimeout value fixes the issue but seems brittle.

Steps to Reproduce (for bugs)

Add anchor to url

Visit page

Context

Your Environment

Tech
Version

next
4.2.3

node

OS
MacOS

browser
Chrome 64

etc

Issue 2:
I am using your CSS example to add postcss to my project but unless I put my css inside the ./pages folder I get an undefined error.

import {stylesheet, classNames} from 'css/styles.css'

I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

For the paragraph class from styles to render.

.paragraph { composes: font-color from 'global.css'; font-size: 20px; color:red; }

Current Behavior

ERROR Failed to compile with 1 errors

This dependency was not found:

* css/styles.css in ./pages?entry

To install it, you can run: npm install --save css/styles.css

My next.config.js file is as follows:

const fs = require('fs')
const trash = require('trash')

module.exports = {
webpack: (config) => {
config.plugins = config.plugins.filter(
(plugin) => (plugin.constructor.name !== 'UglifyJsPlugin')
)

config.module.rules.push(
{
test: /\.css$/,
use: [
{
loader: 'emit-file-loader',
options: {
name: 'dist/[path][name].[ext]'
}
},
{
loader: 'skeleton-loader',
options: {
procedure: function (content) {
const fileName = `${this._module.userRequest}.json`
const classNames = fs.readFileSync(fileName, 'utf8')

trash(fileName)

return ['module.exports = {',
`classNames: ${classNames},`,
`stylesheet: \`${content}\``,
'}'
].join('')
}
}
},
'postcss-loader'
]
}
)

return config
}
}

The only time this works is if I add all the CSS files inside the ./pages directory which I find will become messy and bloated. I am using React.js with Next.js. I presume the same problems will arise if I add an ./assets folder at the same level as ./pages. How can I keep the file types separated and/or for <style dangerouslySetInnerHTML={{__html: stylesheet}} /> to render an external stylesheet instead of styles?
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

ListItemSecondaryAction should be able to be hidden by default, then visible on hover. This is a really common use case, so if possible, we should consider a clean way to make this (optional) behavior available behind a boolean property.

Current Behavior

When implemented with css sibling selectors and hovering over the secondary action, the icon blinks continuously. When hovered anywhere else on the ListItem, the blinking stops and works as expected.

Steps to Reproduce (for bugs)

Using css sibling selector (shown above): https://codesandbox.io/s/xo0mmyv2oo

Context

Secondary actions visible for larger lists (e.g. Google contacts list) can be overwhelming. Hiding icons until hovered is a common way to declutter user interfaces.

Your Environment

Tech
Version

Material-UI
1.0.0-beta.33

React
16.2.0

browser
Chrome

Any guidance @oliviertassinari @kof as to what the root cause of blinking?

Issue 2:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

You should be able to select text from the options labels in order to copy and paste it somewhere else.

Current Behavior

It's not possible to select/highlight the text in the option labels. What happens when you try to click and drag over the text is the option gets selected and nothing else.

Steps to Reproduce (for bugs)

Have a form with Checkbox or RadioButton controls.

Click and drag over the option labels text attempting to select the text

Text does not get selected

Context

Users cannot copy and paste text from option labels in order to google/research/translate or do whatever they may need with such string. Please note that such behavior is possible on Google forms, as per screenshot: https://imgur.com/Fa5B6oO

Your Environment

Tech
Version

Material-UI
0.18.7

React
15.6.2

browser
Chrome 61.0.3163.91
Issue 1:
As a typescript developer, I am building libraries for my client enterprise at work. The libraries has a lot of interfaces, types, clases, enums, variables... that are not intended to be public on the final comiled file, but I'm forced to export them to reuse at the other inner modules (before coupling them into one single file).

I would like to be able to generate de .d.ts file of my .js without the internal members. I know they will be really accesible at JavaScript, but not at the definitions file.

This is really significant because others could use those definicion files to use the libraries, or to generate automatically public documentation (ie. http://typedoc.io/).

Issue 2:
Currently the spec reads: Protected property members can be accessed only within their declaring class and classes derived from their declaring class, and a protected instance property member must be accessed through an instance of the enclosing class.

Relaxing the constraint, "member must be accessed through an instance of the enclosing class" to allow all classes derived from the declaring class as long as they are declared in the same module as the declaring class, would make it possible to have module internal access.

This is closer to how Java implements protected access, rather than C#. Are there plans to add an internal access modifier? If not, then this may be a way to alleviate the pain of encapsulating internal class state.
Issue 1:
I lost most of my work last night when there were problems on the server. I think this is the 4th time this has happened with my account. My points number reflects over 300 while my map does not.

I have been working at this for close to a year, if not over a year.

And the issue was closed even though my map is not restored to where it should be.

Lost most of my work last night #3629

Help please

Issue 2:
Prior to the update I had completed all waypoints, bonfires and ziplines up until TicTacToe.

After completing challenges in section 4. "Gear Up For Success" I noticed that a large amount of waypoints and bonfires had become "incomplete"(I've attached a screenshot below to show what I mean. ) and the solutions did not show up on my profile however I still had the points from those challenges (I'm currently at 305 after re-doing a challenge that became incomplete to try and re-create the bug).

I haven't been able to recreate the bug however I believe it's related to the new challenges being completed and overwriting previously completed challenges somehow.
Issue 1:
Environment

Windows build number: version 10.0.18362.239
Windows Terminal version (if applicable):0.3.2142.0 from Microsoft Store

Steps to reproduce

Fresh install of Terminal from Microsoft Store

Try to open the default Azure Cloud Shell tab and close the tab without login

Enter something in default PowerShell and press Enter, for example, type "abc" and press Enter

Expected behavior

Displays the return value or error information of the command

Actual behavior

Crash

Issue 2:
Environment

Windows build number: Microsoft Windows [Version 10.0.18362.267]
Windows Terminal version (if applicable): 0.3.2171.0

Any other software?

Steps to reproduce

Expected behavior

Actual behavior
Issue 1:
Write Arrow Functions

http://beta.freecodecamp.com/en/challenges/es6/write-arrow-functions

Issue Description

// change code below this line
var magic = () => {
return new Date();
};
// change code above this line
// test your code
console.log(magic());

should fail

Test magic is const

Browser Information

Browser Name, Version: Chrome

Operating System: Mac

Mobile, Desktop, or Tablet: Desktop

Your Code

Screenshot

Issue 2:
Challenge arrow-functions passes tests with any or no input.

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36.

It seems that the tests will pass without changing any code (as pictured). All tests passed with a blank code editor and when gibberish was entered into the code editor as well. I've tried a hard refresh and incognito and the problem persists.
Issue 1:
The following HTML is not working for this challenge:

<style>
.smaller-image {
width: 100px;
}

.thick-green-border{
border-width: 10px;
border-color: green;
border-style: solid;
}
</style>

I'm not sure what I'm doing wrong?

Issue 2:
Is there information on the meaning for the various labels used for the issues. I have been searching and haven't found anything. Some of the labels are not clear (to me):

Does test iimprovement mean that the person who submitted the issue should test the change or anyone can test it or...? Should members wait for a help wanted label before attempting a fix for an issue?

Maybe something info about the labels could be added to the wiki?

Thanks.
Issue 1:
The windows binary julia cannot open!!!

Issue 2:
I got julia 0.3.0-64 from http://julialang.org/downloads/

When I open the julia shortcut it turns out a cmd shell and then to be turned off quickly.

When I use the cmd

D:\Program Files\Julia-0.3.0\bin>julia.exe

System image file "D:\Program Files\Julia-0.3.0../lib/julia/sys.ji" not found

D:\Program Files\Julia-0.3.0\bin>
Issue 1:
Issue Description

For the past couple of weeks I haven’t been able to access the site. While I can access the offline cloud flare version of the homepage I receive the message error “522 connection timed out” and “Host Error”; I haven’t been having a problem on other sites. The site works on my phone when it’s disconnected to the home wifi but for some reason the home wifi produces a “host error”. Does anyone know how I could fix this?

This is my 2nd time submitting this problem.

Browser Information

Mac (Safari, Chrome)

Android(Chrome)

Screenshot

Issue 2:
Challenge Name

Issue Description

Browser Information

Browser Name, Version:

Operating System:

Mobile, Desktop, or Tablet:

Your Code

// If relevant, paste all of your challenge code in here

Screenshot
Issue 1:
Problem description

After I have converted my ReactJS Application to server-side rendering, many of my material UI components have broken styles. The most notable example is the GridTile in the GridList. For example, I am loading some images, and the GridTile cellHeight property doesn't work as expected. It doesn't affect the Height of the GridTiles, as result the Image height is huge.

Also, I am getting this warning almost on every component when I refreshing the page :

I have Warped my Component with MuiTheheProvider Like this:

<Provider {...store}>
<MuiThemeProvider >
<BrowserRouter forceRefresh={!supportsHistory}>
<TheApp />
</BrowserRouter>
</MuiThemeProvider>
</Provider>

Both on the server and on the client, also I have set these globals on my express server index.

global.navigator = global.navigator || {};
global.navigator.userAgent = global.navigator.userAgent || 'all';

Any Suggestions?

Steps to reproduce

Versions

Material-UI: ^0.18.7

React: 15.5.4

Browser: Google Chrome

Issue 2:
Having an issue integrating material into an isomorphic react application. I believe it may be associated to the theme not being rendered on the server side, I have it included in both renders with matching user agents. An image and code is referenced below...

SERVER RENDER

// React route matching, server side rendering
match(routerParams, (err, redirectLocation, renderProps) => {
if (err) {
const msg = 'Internal server error';
if (env.NODE_ENV === 'development') {
throw new Error(msg);
}
req[env.NAMESPACE].log.server(msg, 'error');
return res.status(500).end('Internal server error');
}
if (!renderProps) return res.status(404).end('Not found');

function renderView() {
const materialStyle = React.createElement(MuiThemeProvider);
const rootView = React.createElement(RouterContext, renderProps, materialStyle);
const rootStyle = React.createElement(IsoStyle, {
onInsertCss: (styles) => { css.push(styles._getCss()); },
}, rootView);
const rootRedux = React.createElement(Provider, { store }, rootStyle);
const rootComponent = renderToString(rootRedux);
const rootState = JSON.stringify(store.getState());
const template = `
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Astral | Demo</title>
<script>
window.__ROOT_STATE__ = ${rootState};
</script>
<style>${css.join('')}</style>
</head>
<body>
<div id="app-entry">${rootComponent}</div>
<script src="http://localhost:3001/render.bundle.js"></script>
</body>
</html>
`;
return template;
}
req[env.NAMESPACE].log.server('Render success', 'info');
res.send(renderView());

CLIENT RENDER

render() {
return (
<div id="base-view">
<MuiThemeProvider>
{this.props.children}
</MuiThemeProvider>
</div>
);
}

Versions

Material-UI: 0.17.1

React: 15.4.2

Browser: Chrome
Issue 1:
VSCode Version: 1.1.1

OS Version: OSX 10.11.4

Steps to Reproduce:

Insert the following TypeScript code into the editor:

var a = true ? true : `;`;
var i;

Observe that var i; is colored as if it were part of the template string (in VSCode, and on GitHub!).

Removing any part of the first line prevents the bug. It only appears to occur when combining variable assignment, the ternary operator, and a template string containing a semicolon (;).

Further Info:

A single occurrence of this bug can derail syntax highlighting for the rest of the file, since template strings are multi-line. Template strings with semicolons can be a common occurrence for projects that generate JavaScript as output, and ternaries are a common case when wanting to handle a slight variation in output.

Issue 2:
VSCode Version: latest

OS Version:OS X El Capitan

Steps to Reproduce:

create a file "ball.ts" that has a class "Ball"

create a new file in the file explorer pane

paste the whole code of ball.ts into the new file

now type your new class name in the new file, for example "Paddle"

result:

the file name of your new file in the explorer keeps changing to "ball-1.ts".

every time you rename that file to "paddle.ts", VS Code creates a new "ball-2.ts" and so forth.

even if you manage to get rid of all the redundant files and you end up with one paddle.ts that has a "Paddle" class, VS Code still keeps complaining that you have two Ball classes.

the only way to fix this is quit VS Code and restart.
Issue 1:
Electron Version

4.0.5 ( run as node: 10.11.0 )

Operating System (Platform and Version):

Windows 10 (1809)

Last known working Electron version (if applicable):

N/A

Expected Behavior

>node --experimental-worker app.js
hello from electron as node
hello from main thread
hello from electron as node
hello from worker thread
hello from worker
0

>node -v
v10.11.0

Actual behavior

>electron --experimental-worker app.js
hello from electron as node
hello from main thread

>electron -v
v10.11.0

To Reproduce

[app.js]

console.log("hello from electron as node")
const {
Worker,
isMainThread,
parentPort
} = require('worker_threads');

if (isMainThread) {
console.log("hello from main thread")
function createWorker() {
let worker = new Worker(__filename);
worker.on('message', (msg) => {
console.log(msg);
});
worker.on('error', (err) => {
console.log(err);
});
worker.on('exit', (code) => {
console.log(code);
});
}
createWorker();
} else {
console.log("hello from worker thread")
parentPort.postMessage("hello from worker");
}

Issue 2:
Issue Details

Electron Version:

v5.0.2

Operating System:

Windows 10

Expected Behavior

On app ready start nodejs worker which consoles string.

Actual Behavior

App crash immediately after run

To Reproduce

git clone https://github.com/BorysTyminski/electron-issue.git

cd electron-issue

npm install

npm run start

Additional Information

I used electron-forge to quick build app.
Issue 1:
The following script fails with an "Unsupported namedCurve" error. It works fine if the P-384 is changed to P-256.

function generate_keypair() {
return crypto.subtle.generateKey(
{name: "ECDH", namedCurve: "P-384"},
true,
["deriveBits"]
);
}

Promise.all([
generate_keypair(),
generate_keypair()
]).then(function ([alice, bob]) {
return crypto.subtle.deriveBits(
{name: "ECDH", public: bob.publicKey},
alice.privateKey,
256
);
}).then(
console.log
);

It appears that the upstream fix mentioned in this TODO comment has just landed, meaning that it should be possible to make SubtleCrypto.deriveBits work with P-384 keys.

Issue 2:
Diffie-Hellman function requires p384::NistP384 to implement ProjectiveArithmetic trait. Blocked on RustCrypto/elliptic-curves#240
Issue 1:
From @samaursa on May 28, 2017 18:58

Windows build number: 10.0.15063

What's wrong: I see underscores in the bash console

I am not sure what or how this happened, but I see underscores throughout the console window. I tried relaunching, removing my custom settings, changing font, reverting to legacy console and back, but nothing has worked.

Copied from original issue: microsoft/WSL#2168

Issue 2:
Description of the new feature/enhancement

Proposed technical implementation details (optional)
Issue 1:
import jax
import jax.numpy as jnp

def f(x):
return x + 0.0

def _print_type(x):
print(x)
print(x.dtype)
print(x.dtype is jax.dtypes.float0)

def print_type(x):
_print_type(x)
jax.jit(_print_type)(x)
print("")

x = jax.grad(f, allow_int=True)(jnp.array(1))
y = jnp.array(False)

print_type(x)
print_type(y)

With numpy v1.23.0:

False
bool
False
Traced<ShapedArray(void[])>with<DynamicJaxprTrace(level=0/1)>
[('float0', 'V')]
False

False
bool
False
Traced<ShapedArray(bool[])>with<DynamicJaxprTrace(level=0/1)>
bool
False

Which has the following problems:

The "outside jit" dtype of x is bool instead of float0.

The "inside jit" dtype of x and y are different, despite having the same "outside jit" dtype.

The "inside jit" comparison of x.dtype is jax.dtypes.float0 returns False despite the "inside jit" dtype of x being float0. (Probably something to do with it secretly being a bool instead.)

This plays merry havoc will all kinds of other things. I spotted this because it was sneaking past the _check_no_float0s checker when calling jnp.allclose. It also means that attempting to do x == y in the above code will result in an exception being thrown.

For reference I've found that numpy v1.21.2 works fine.

Possibly this is a numpy bug? (I did check to see that there weren't any float0-related numpy bugs reported.)

Issue 2:
Something in the numpy 1.23 release broke autodiff; in particular, float0 arrays are being converted to bool:

import jax
import numpy
print(numpy.__version__)
print(jax.grad(lambda x: x+0., allow_int=True)(1).dtype)

Newest numpy:

1.23.0
bool

previous version:

1.22.4
[('float0', 'V')]