WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
GitHub-actions allows the code to throw warnings. However, Julia's warnings are ignored.

Examples of warnings that are detected by GitHub actions (JavaScript code):

https://github.com/JunoLab/atom-indent-detective/actions/runs/97242509

We should either fix this from the Julia side, or make an issue on the GitHub side

Issue 2:
Currently the documentation for reshape states:

julia> help(reshape)
Loading help data...
Base.reshape(A, dims)

Create an array with the same data as the given array, but with
different dimensions. An implementation for a particular type of
array may choose whether the data is copied or shared.

Copying or sharing should be consistent across array types. Perhaps use reshape! for a version that shares storage and save reshape for a version that copies the array's contents.
Issue 1:
TypeScript version 1.8.9

Code

File 1

export const enum Foo {
Bar
}

FIle2.ts

import file1 = require("./file1");
var x = file1.Foo.Bar;

Generated JavaScript File2.js

Expected behavior:

define(["require", "exports"], function (require, exports) {

"use strict";

var x = 0 /* Bar */;

});

Actual behavior:

define(["require", "exports", "./file1"], function (require, exports, file1) {

"use strict";

var x = 0 /* Bar */;

});

It would be great if file2.js doesn't pull in file1.js as a dependency.

We noticed this happens when we use const enums.

Issue 2:
I'm currently converting a project to use the new es6 module style (which is really a great feature!). The compiler removes all references to modules I'm using only typing information from which makes absolutely sense. However, when accessing a constant enumeration the require call will be preserved in js output although it is not needed, e.g.:

a.ts

export const enum MyEnum {
ValueA,
ValueB,
ValueC
}

b.ts

import * as a from "./a";
export var myValue = a.MyEnum.ValueB;

Now, b.ts compiles to this, note the unnecessary require call:

b.js

var a = require("./a");
exports.myValue = 1;

First I thought this is my fault but then I tried to use the imported types solely as type arguments which results in the compiler removing the require call correctly, e.g.:

c.ts

import * as a from "./a";

export function myFunction(value:a.MyEnum):string {
return "myReturn";
}

Will compile to this:

c.js

function myFunction(value) {
return "myReturn";
}
exports.myFunction = myFunction;
Issue 1:
Hi, may I ask whether or not this can be made more flexible?

We have a project structure that puts the app's content inside the wwwroot/app directory that also contains the HTMLs etc, so having a seperate, forced "scripts" directory which outputs there is nothing more than an (unnecessary?) workaround.

The structure is like the following:

- wwwroot
- app
app.ts
- module
module.ts
- controllers (*.ts)
- services (*.ts)
- views (*.html)
index.html

It would be great to have the tsconfig.json just in the "app" directory and it then compiles all .ts that are anywhere below that path, like it is the case with the tsconfig right now, however forced to expect them in the "scripts" dir.

Honestly, I think compile-on-save seems unnecessary given the presence of a tsconfig file. The regular way seems way better since when building the project it compiles the TS if missing, compile-on-save seems not to (plus you'd have to expect team members to make sure to enable it and go through all their files).

It would be a great help to be able to drop a tsconfig.json in any directory, not just the (seemingly) hard-coded "scripts" directory, or at least being able to adjust this path.

I tested this with the RC 1 Update 1 and it is quite unflexible there. If there is progress made in that area, please let me know.

Thanks in advance and best regards,

chris

Issue 2:
TypeScript Version:

1.9.0-dev / nightly (1.9.0-dev.20160311)

Code

class A
{
public Foo($value : any) {...}
}

class B extends A
{
public Foo($value : any) {...}

public Bar()
{
var that = this;

// #1: Can't hold a reference on super.
// var base = super; // Error.

var baseFooFuntion = super.Foo;

Object.someMethod(function()
{
// #2: Is somehow not calling the method with the correct arguments?!?
baseFooFuntion(42);

// And you cant use super.Foo(42); => 'super' can only be referenced in members of derived classes or object literal expressions.
// So that it produces an error is fine.
});
}
}

Expected behavior:

baseFooFuntion(42); call should work.

Actual behavior:

Not working because arguments are not passed correctly.
Issue 1:
Q
A

Bug report?
no

Feature request?
yes

BC Break report?
no

RFC?
no

Symfony version
4.1

As reported in symfony/symfony-docs#8420 PdoSessionHandler allows using PDO DSN ... which are completely different from the Doctrine DSN used in modern Symfony apps.

Adding Doctrine DSN support without breaking things would be simple because it's easy to detect which of the two DSN are being used. Is this something we want to do? Thanks!

Issue 2:
Follup of this comment:

Something is missing since a long time in the configuration of the prod environment for error handling: the ErrorsLoggersListener does a ErrorHandler::setLogger(), but ErrorHandler::register() is never called, so no logging can ever happen, except the one done by the native PHP handler.

This led me to two points:

I think we should always call ErrorHandler::register(), and use set_error_handler()'s second argument to catch only what we want to catch (thus no perf impact in prod).

Does Symfony have recommended settings for log_errors and error_log ini settings? Because IMHO it could be a good idea to put native php logs in app/logs/, if the settings are not configured.
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

I am added some style to make MenuItem bit smaller, like MenuItem sizes (not find about this property)

.small-menu-item {
height: 36px !important;
min-height: 36px !important;
line-height: 36px !important;
}

then used

const AppBarMenu = (props) => {
return (
<IconMenu
{...props}
iconButtonElement={
<IconButton>
<MoreVertIcon/>
</IconButton>
}
targetOrigin={{ horizontal: "right", vertical: "top" }}
anchorOrigin={{ horizontal: "right", vertical: "top" }}
>
<Subheader><FontIcon className="material-icons">help outline</FontIcon>Help</Subheader>
<MenuItem className='small-menu-item' containerElement={<Link to="/about" />} primaryText="About" />
<MenuItem className='small-menu-item' containerElement={<Link to="/contact" />}
primaryText="Contact"
/>
</IconMenu>
);
}
AppBarMenu.muiName = 'IconMenu'
// other codes

Current Behavior

but,

The centerY of icon is close to top of text, but should be close to centerY of text

width of IconMenu automatically becomes much longer

Steps to Reproduce (for bugs)

Fix the width, should not change the width of IconMenu

Fix layout

Context

I am tried to make option (click to button, then show menu items) with some icon (looks much beatiful)

Your Environment

Node.js 9.x

Parcel bundler 1.4.1

Tech
Version

Material-UI
0.20

React
16.2.0

browser
Chrome 62

etc

my note

It's my first application i'm trying to build the with Material UI and your design implementation the best one, i'm very love, especially Ripple effect

Issue 2:
Problem description

Can't get event.target.id on chrome when clicking on the text part of a button, but works when clicking on the edge, it doesn't work at all in earlier releases,

could you fix this (in both versions )? I'm sure it's not something that huge, it works perfectly on firefox, but we need all recent browsers working
Issue 1:
Let's say I have a <div> inside a dropdown-accordion.

The problem is, in IE9 or 9+, the panel when collapsed doesn't hide again. It only hides when some other section is clicked.

How do I know programatically that the panel currently is shown. So that when it is shown, i can programtically hide it back.

Here is the fiddle - http://www.bootply.com/jaAVossYuF

It works fine in fiddle. I have mentioned the issue there as well.

Issue 2:
I am in need to use the data-container="body" on tooltips.js but I have tooltips with different colors in different sections of my page. So it is quite hard to set different styles for these. Better would be if one could just append the color inline ... just a thought!
Issue 1:
User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36.

While typing code, insertion point will sometimes move to Line 1. The problem is difficult to recreate, but it's happened so far when I've inputted backspace, ctrl+backspace, home + backspace, shift + 7 (&). This problem has occurred across multiple challenges and only after the implementation of the new site. I've tried controlling for user error by locking my touchpad, problem still persists with occasional frequency.

Issue 2:
It's not a problem with my coding, it's just with each new challenge I try to write a code, the cursor jumps into another line, and often refuses to write unless I write and delete somewhere else!

Challenge Warn your Users of a Dangerous Action has an issue.

User Agent is: Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36.

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

My code:

<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
.red-text {
color: red;
}

h2 {
font-family: Lobster, Monospace;
}

p {
font-size: 16px;
font-family: Monospace;
}

.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
border-radius: 50%;
}

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

<div class="container-fluid">
<h2 class="red-text text-center">CatPhotoApp</h2>

<p>Click here for <a href="#">cat photos</a>.</p>

<a href="#"><img class="smaller-image thick-green-border" src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back. "></a>

<img src="https://bit.ly/fcc-running-cats" class="img-responsive" alt="Three kittens running towards the camera. ">
<button class="btn btn-block btn-primary">Like</button>
<button class="btn btn-block btn-info">Info</button>
<p>Things cats love:</p>

<ul>

<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>
<form action="/submit-cat-photo">
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
<label><input type="checkbox" name="personality"> Loving</label>
<label><input type="checkbox" name="personality"> Lazy</label>
<label><input type="checkbox" name="personality"> Crazy</label>
<input type="text" placeholder="cat photo URL" required>
<button type="submit">Submit</button>
</form>
</div>
Issue 1:
Bug report

Bug summary

I follow the matplotlib tutorial from Creating annotated heatmaps and just copy and run the first case.

Then I get a weird plot with a cut-off on both top and bottom.

It also happens when I use Seaborn to plot an image.

Code for reproduction

import numpy as np
import matplotlib
import matplotlib.pyplot as plt
# sphinx_gallery_thumbnail_number = 2

vegetables = ["cucumber", "tomato", "lettuce", "asparagus",
"potato", "wheat", "barley"]
farmers = ["Farmer Joe", "Upland Bros.", "Smith Gardening",
"Agrifun", "Organiculture", "BioGoods Ltd.", "Cornylee Corp."]

harvest = np.array([[0.8, 2.4, 2.5, 3.9, 0.0, 4.0, 0.0],
[2.4, 0.0, 4.0, 1.0, 2.7, 0.0, 0.0],
[1.1, 2.4, 0.8, 4.3, 1.9, 4.4, 0.0],
[0.6, 0.0, 0.3, 0.0, 3.1, 0.0, 0.0],
[0.7, 1.7, 0.6, 2.6, 2.2, 6.2, 0.0],
[1.3, 1.2, 0.0, 0.0, 0.0, 3.2, 5.1],
[0.1, 2.0, 0.0, 1.4, 0.0, 1.9, 6.3]])

fig, ax = plt.subplots()
im = ax.imshow(harvest)

# We want to show all ticks...
ax.set_xticks(np.arange(len(farmers)))
ax.set_yticks(np.arange(len(vegetables)))
# ... and label them with the respective list entries
ax.set_xticklabels(farmers)
ax.set_yticklabels(vegetables)

# Rotate the tick labels and set their alignment.
plt.setp(ax.get_xticklabels(), rotation=45, ha="right",
rotation_mode="anchor")

# Loop over data dimensions and create text annotations.
for i in range(len(vegetables)):
for j in range(len(farmers)):
text = ax.text(j, i, harvest[i, j],
ha="center", va="center", color="w")

ax.set_title("Harvest of local farmers (in tons/year)")
fig.tight_layout()
plt.show()

Actual outcome

Expected outcome

Matplotlib version

Operating system: Windows 10 1903

Matplotlib version: 3.1.0

Matplotlib backend (print(matplotlib.get_backend())): TkAgg

Python version: 3.7.3

Issue 2:
Bug report

Bug summary

The very top and bottom of the heatmaps are getting truncated to 1/2 height in version 3.1.1. This does not happen for version 3.0.3.

This is the code from a Jupyter Notebook

import matplotlib
import pandas as pd
import numpy as np
import seaborn as sb
%pylab inline

print(matplotlib.__version__)
print(sb.__version__)

grid = pd.DataFrame(np.arange(9).reshape((3,3))/10)
fig, ax = subplots(1, 1, figsize=(5, 5))

sb.heatmap(grid, annot=True, fmt=".0f", ax=ax, cmap='RdBu', vmin=0, vmax=1, cbar=True);

Actual outcome

Populating the interactive namespace from numpy and matplotlib
3.1.1
0.9.0

Matplotlib version

Operating system: Ubuntu Linux

Matplotlib version: 3.1.1

Matplotlib backend: module://ipykernel.pylab.backend_inline

Python version: 3.6

Jupyter version (if applicable): 4.4.0

Other libraries:
Issue 1:
Hi,

A lot of the challenges I had already completed are not checked anymore on my map, since today's update (I was working on the Bonfire: Search and Replace).

I originally had completed :

all the Waypoints up to Object Oriented & Functional Programming (included) (except the Gear up for success, which I think are new),

the Basic Algorithm Scripting Bonfires,

the Intermediate Algorithm Scripting up to the 16 (included), except for the 15.

The solutions to the missing challenges are not in my portfolio anymore, but I still have all the brownie points I won by completing them.

Quincy told us on Gitter to put up screencap, I'm not sure of what (since it's missing stuffs), so I hope this will do :

Issue 2:
Something happened on the server and most of my work is gone. I still have over 300 points but my map does not reflect it. Could my projects be restored please?
Issue 1:
There's a numpy.linalg.matrix_rank, why scipy does not provide scipy.linalg.matrix_rank? I think it is quite frequently used in scientific computing, which is what scipy for.

It does not make real difference whether I import it from scipy or numpy. But I'm just curious what's the reason behind it.

Issue 2:
The folder Python37\site-packages\scipy\sparse\linalg\isolve\ inside Scipy package in Python has the following file: _iterative.cp37-win_amd64.pyd.

When I run a Python file, I get the following error :-

File "C:\......\Python37\site-packages\scipy\sparse\linalg\isolve\iterative.py", line 10, in <module>
from . import _iterative
ImportError: DLL load failed: The specified module could not be found

Scipy should work out of the box after installation!
Issue 1:
We convert our RDF data set to Nodes and Relationships. And then we use neo4j-import to import this data set.

Since we have change the JVM_size and dbms.memory.heap.initial_size and dbms.memory.heap.max_size in neo4j.conf, and the available resources output is shown below:

Total machine memory: 125.52 GB

Free machine memory: 122.06 GB

Max heap memory: 26.67 GB

Processors: 32

Configured max memory: 85.86 GB

However, when it comes to Relationship counts, import failed because of the following Error:

Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded

We know it's about Garbage Collection and Heap Memory, and we try our methods to overcome this error but failed. Also, when the import is running, the memory used is full all the time.

So, how could we overcome this problem? Or neo4j with 128GB memory can't import so much a data set?

Issue 2:
Neo4j version: Docker container neo4j:3.3.2

Operating system: Container-Optimized OS on GCP (based on Chromium OS)

Hello,

I have a daily database dump exported via the following command:

docker run \
--publish=7473:7473 \
--publish=7687:7687 \
--volume=$HOME/neo4j/data:/data \
--volume=$HOME/neo4j/logs:/logs \
--volume=$HOME/neo4j/conf:/conf \
--volume=$HOME/neo4j/plugins:/plugins \
--volume=$HOME/neo4j/import:/import \
--volume=$HOME/neo4j/scripts:/scripts \
--volume=$HOME/neo4j/ssl:/ssl \
--volume=$TEMP/graph.db:/graph.db \
--ulimit=nofile=40000:40000 \
--name=neo4j-dump \
-id \
neo4j:3.3.2 \
/bin/bash -c "bin/neo4j-admin dump --database=graph.db --to=/graph.db/$TAG.dump"

And when I try to load it in another instance (same version of the container) with the following command:

docker run \
--publish=7474:7474 \
--publish=7473:7473 \
--publish=7687:7687 \
--volume=$HOME/neo4j/data:/data \
--volume=$HOME/neo4j/logs:/logs \
--volume=$HOME/neo4j/ssl:/ssl \
--volume=$HOME/neo4j/backups:/backups \
--volume=$HOME/neo4j/conf:/conf \
--ulimit=nofile=40000:40000 \
--env-file=$HOME/neo4j.env \
--name=neo4j-admin \
-it \
neo4j:3.3.2 \
/bin/bash -c "bin/neo4j-admin load --from=/backups/graph.db/$TAG.dump --database=graph.db --force=true"

I systematically get the following error : command failed: unable to load database: EOFException: null

What could be the issue? How can I test if my daily backup dump is corrupted?

I can still duplicate my database by copy/pasting the graph.db folder but it is not recommended so I'd rather use the dump and load method...

Thanks
Issue 1:
In v0.x we used to be able to add the keyboardFocused prop to a RaisedButton or FlatButton to focus it on render and activate the focus ripple. In v1, this yields an Unknown prop warning on the root element.

We could easily hijack the autoFocus prop to set the initial state of the button, but I'm assuming there is an issue if multiple autoFocused components are rendered, so we'd have to verify that this is the actual focused element when the dom is fully rendered?

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

Expected Behavior

Adding the autoFocus prop on a Button should trigger the focusRipple on render.

<Button autoFocus>
My button
</Button>

When looking for the DOM's activeElement, the root button is already properly returned.

Current Behavior

The button is focused, but the focusRipple doesn't appear.

Tech
Version

Material-UI
next

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

Expected Behavior

When I use the tab key to navigate a page with material ui (lets say the component demos on the next site) and focuses a radio button or a checkbox they should display a circle under the control to convey that the control has focus like shown in https://material.io/guidelines/components/selection-controls.html#selection-controls-checkbox

Current Behavior

Nothing is shown, which makes it really hard to use the controls with a keyboard.

Steps to Reproduce (for bugs)

Go to https://material-ui.com/demos/selection-controls/

Click the text under the Checkboxes heading (To avoid having to tab through everything else)

Use the tab key to navigate the page

Context

A form using Material UI

Your Environment

Tech
Version

Material-UI
1.0.0-beta.21

React
16

browser
Firefox 57

etc
Visible on the demo page
Issue 1:
Opening this up for a discussion, basically what i'd like to see is an API to set the background of the browser-window surrounding the web contents. When the user is resizing the window this shows up before the web contents fills the available space - if you are developing a dark application then this white border looks particularly bad.

For example I noticed that Spotify is able to achieve this by using a fill color that matches the rest of the app whilst the UI resizes.

Issue 2:
I run a quick start demo, and set index.html background:

<!DOCTYPE html>
<html style="background: #232323">
<head>
<title>Hello World!</title>
</head>
<body>
<h1>Hello World!</h1>
We are using node.js <script>document.write(process.version)</script>
and atom-shell <script>document.write(process.versions['atom-shell'])</script>.
</body>
</html>

There is a flash when start application. Is there any way to set the default window background color?
Issue 1:
Bug report

What is the current behavior?

I'm first trying to figure out which piece of software this behavior most relates to. Here's the ts-loader issue perspective: TypeStrong/ts-loader#1245

This is for webpack 4. There are compatibility issues I have yet to work through to get as far in Webpack 5.

With Process Monitor on Windows, I'm comparing tsc --build to webpack & ts-loader with and without typechecking. tsc (with typechecking) is a very clear winner. ts-loader without typechecking or sourcemaps is about 3x duration. ts-loader WITH typechecking (transpileOnly: false) is extremely slow.

The reason that I'm asking about webpack specifically is that file accesses to .less, .css, .js, and package.json files, for example, are also read hundreds of times and I don't know if that's expected and unavoidable, or if it perhaps represents a bug in webpack 4.

Is webpack responsible for reading package.json files normally? Or is that 100% a loader problem, such as ... Is the ts-loader repeat reads of some files causing the repeat reads by the loaders of imported non-ts files?

Example sequential repeated reads:

If the current behavior is a bug, please provide the steps to reproduce.

Use Sysinternals Process Monitor on Windows to compare ReadFile events between tsc and webpack builds of the same code with similar configurations.

What is the expected behavior?

Totals and durations should be similar.

Other relevant information:

webpack version: 4.46.0

Node.js version: 14

Operating System: Windows 10

Additional tools: typescript, ts-loader, Process Monitor

Issue 2:
Firefox gave me these deprecated warnings and I think that they are coming from source map related code.

SyntaxError: Using //@ to indicate sourceURL pragmas is deprecated. Use //# instead
Use of getPreventDefault() is deprecated. Use defaultPrevented instead.

Should it be changed?