WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

Components with withStyles should work with recursively.

Current Behavior

Cannot find classes of jss.

Steps to Reproduce (for bugs)

I m trying to build a nested menu recursively. Every menu element is a component with withStyles.

Component ul in the component ul can't get the classes of the Jss.

This is an example menu data,

[
{
"type": "ul",
"title": "ul - Level 1",
"children": [
{
"type": "ul",
"title": "ul - level 2",
"children": [
{
"type": "li",
"title": "li - Level 3"
}
]
},
{
"type": "li",
"title": "li - Level 2"
}
]
},
{
"type": "li",
"title": "li - Level 1"
}
]

Checkout the demonstration of the issue; there is also working version without withStyles.

https://codesandbox.io/s/lr537rkl89

thanks in advance.

Context

Your Environment

Tech
Version

Material-UI
1.0.0-beta.28

React
16.2.0

browser
Chrome 63.0.32

etc

Issue 2:
When trying to set the index of tab programmatically from componentDidMount the Tab indicator doesn't change.

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

Expected Behavior

When changing the index in state the Tabs component should update the indicator.

Current Behavior

The indicator doesn't change even when the render is called again with the correct index from state.

Steps to Reproduce (for bugs)

Here is a codesandbox.io:

https://codesandbox.io/s/ykn36kzyj

The indicator should be set for index 1 but the indicator is set to index 0.

This worked earlier, I noticed this issue when I updated material-ui to beta-17

Context

Your Environment

Tech
Version

Material-UI
1.0.0.Beta17

React
16.0.0

browser
Chrome
Issue 1:
Glide: 3.7.0

Integration libraries: no

Devices: currently running on emulator only, hardware GPU rendering

Issue: animated GIFs generally work well, except that the final frame's delay is being ignored. The product design involves having a long delay on the last frame so that the final rendering can be reviewed again. Instead the last frame flashes quickly and then it returns to the beginning.

A secondary issue: not only should it be waiting to cycle back to the beginning for the amount stated in the duration, but the particular GIFs being tested are set to only 1 iteration (meaning in theory they should not ever recycle).

To reproduce, generate a GIF with a long delay on the last frame. Then display the GIF. It appears to flicker right back to the beginning. Viewing the same GIF in a web browser or posting to e.g. FB messenger, the delay is properly observed.

Layout Design: FrameLayout with a single ImageView inside. (added) These are inside a RecyclerView. I am testing with ~ 20 items at one time.

Code Design: using a RecyclerViewAdapter; Glide code is in onBindViewHolder

Error Messages: I am getting the following, from reading up it doesn't sound like this is related but curious of others' opinions:

W/Bitmap: Called reconfigure on a bitmap that is in use! ...

Issue 2:
Glide Version: 3.6.1

Issue details:

While loading GIF's there is significant delay before showing only the second frame, and this happens only for the first loop, all the later loops goes with expected delay.

So after doing some research, I thought it may be because Glide is resizing the frames, so I override resize operation using override().

Below is the Glide load line:

Glide.with(this).load(trainingItem.getUrl()).asGif().override(Target.SIZE_ORIGINAL, Target.SIZE_ORIGINAL).diskCacheStrategy(DiskCacheStrategy.SOURCE).into(draweeView);

But still there is significant delay before showing the next frame for the very first loop.

Any suggestions/pointers?
Issue 1:
1.827.904 downloads in the last month can't be wrong right?

Issue 2:
Semver

Until axios reaches a 1.0 release, breaking changes will be released with a new minor version. For example 0.5.1, and 0.5.4 will have the same API, but 0.6.0 will have breaking changes.

Considering the popularity of Axios and the amount of people using it in production, would it not be prudent to release a major version? The above (taken from the README) is under the heading of Semver but it goes against the basis of semantic versioning and is a super risky. If a developer does not read that line and they install axios as ^0.18.1, they could deploy a breaking change without even realising it.

I work for a company that is considering transitioning to using axios and this issue is potentially going to prevent us doing so.

Thanks
Issue 1:
Suddenly today Atom doesn't seem capable of displaying unicode in most fonts. I've tried a bunch of font families (droid, consolata, inconsolata, monospace, courier, sans-serif, arial, impact, ubuntu, ubuntu mono, etc) and the apparently only one who works is sans:

But in monospace:

And I don't have any problem of seeing unicode in other applications, just Atom.

Might help:

lucas ~> apm -v

apm 0.157.0

npm 2.5.1

node 0.10.35

python 2.7.6

git 1.9.1

lucas ~> uname -a

Linux magno-Z97-D3H 3.13.0-45-generic #74-Ubuntu SMP Tue Jan 13 19:36:28 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

Issue 2:
Text:

这上面的夜的天空，奇怪而高，我生平没有见过这样奇怪而高的天空。他仿佛要离开人间而去，使人们仰面不再看见。然而现在却非常之蓝，闪闪地睒着几十个星星的眼，冷眼。他的口角上现出微笑，似乎自以为大有深意，而将繁霜洒在我的园里的野花草上。

It happen after update to 0.189.0, and it's normal in 0.188.0 .

I try disabled all community packages or star with --safe mode, still happen.

Update: Ubuntu 14.04
Issue 1:
enum Foo { }

var fooMap: { [foo: Foo]: string } // => error TS1023: An index signature parameter type must be 'string' or 'number'.

play

Enums are internally numbers, so this should be able to compile fine.

Issue 2:
Typescript requires that enums have number value types (hopefully soon, this will also include string value types).

Attempting to use an enum as a key type for a hash results in this error: "Index signature parameter type much be 'string' or 'number' ".-- An enum is actually a number type.-- This shouldn't be an error.

Enums are a convenient way of defining the domain of number and string value types, in cases such as

export interface UserInterfaceColors {
[index: UserInterfaceElement]: ColorInfo;
}
export interface ColorInfo {
r: number;
g: number;
b: number;
a: number;
}
export enum UserInterfaceElement {
ActiveTitleBar = 0,
InactiveTitleBar = 1,
}
Issue 1:
Is it possible to augment the type definition for ComponentOptions?

I am using the vue-inject plugin which allows specifying the dependencies section in a component definition. Unfortunately, I can't get it to work the right way.

My vue-augmented.d.ts looks like this:

import Vue from "vue";

declare module "vue" {
export type ComponentOptions<T> = {
dependencies?: string | string[] | { [key: string]: string };
}
}

Typescript throws an error:

[ts] Duplicate identifier 'ComponentOptions'.

P.S. It does work as expected if you hack the original options.d.ts file provided by Vue, but this solution is unacceptable :(

Issue 2:
Vue 1.0.26

Firefox 47.0

Reproduction Link

http://jsfiddle.net/5sH6A/523/

Info

Click the button to toggle the visibility of the <test> component.

The entrance transition works, but the leave transition doesn't, causing the element to remain in the DOM indefinitely.

Clicking the button multiple times results in multiple <test> components in the DOM.

The following things must be present for the bug to occur:

It must be a component instance with visibility toggled via v-if.

It must be a flexbox child.

It must be positioned absolutely.

It must have a transition.

Vue.config.debug must be false.
Issue 1:
Aleš Najmann opened SPR-6482 and commented

At the moment in my code exist method with such signature:

@RequestMapping(value = "/projects/{filter}/{order}-{direction}", method = RequestMethod.GET)
public String filteredProjectListing(@PathVariable("filter") String filter, @PathVariable("order") String order,
@PathVariable("direction") String direction, ModelMap model) {
...
}

order is String variable containing ognl-like expresssion ie. "raging.result" (which I later use for BeanComparator) but this mapping is in version RC3 is not found, which is different behaviour from RC2 where there is no such problem.

Log message with example of given fault result is:

2009-12-01 16:38:02,459 WARN [org.springframework.web.servlet.PageNotFound] - <No mapping found for HTTP request with URI [/Example/projects/all/rate.result-asc.html] in DispatcherServlet with name 'Example'>

There is no problem with handling path which doesn't contain more '.' (dot) characters, so this can probably help you with analysis of the problem.

Affects: 3.0 RC3

Attachments:

UriTemplateServletAnnotationControllerTests.java.diff (1.41 kB)

Issue Links:

#11226 Requests URIs containing . cannot be mapped correctly using @RequestMapping in RC3 ("is duplicated by")

#11165 @MVC URI Template Variable Regression - Matching values containing . (dot) ("is duplicated by")

#10947 PathVariable resolution does not work properly

Referenced from: commits 976f920

1 votes, 3 watchers

Issue 2:
Eduard Papa opened SPR-7474 and commented

According to the javadoc for XMLStreamReader, when a null namespaceURI is passed to getAttributeValue(String, String), the method should return the attribute value without matching the namespace URI.

Javadoc:

http://download-llnw.oracle.com/javase/6/docs/api/javax/xml/stream/XMLStreamReader.html#getAttributeValue%28java.lang.String,%20java.lang.String%29

AbstractXmlStreamReader is not handling that condition correctly and tries to match the attribute's namespace with null:

if (name.getNamespaceURI().equals(namespaceURI) && name.getLocalPart().equals(localName)) {
return getAttributeValue( i ) ;
}
return null;

This results in getAttributeValue returning null whenever the namespaceURI parameter is null.

The fix would be to change the code above as follows:

if (*(namespaceURI == null || name.getNamespaceURI().equals(namespaceURI))* && name.getLocalPart().equals(localName)) {
return getAttributeValue( i ) ;
}
return null;

Please note that this problem exists in two classes:

org.springframework.util.xml.AbstractXmlStreamReader in Spring-Core 3.0.3

org.springframework.xml.stream.AbstractXmlStreamReader in Spring-Xml 1.5.9

Affects: 3.0.3

Attachments:

XStreamMarshaller7474.java (1.75 kB)

Referenced from: commits 061b2c9
Issue 1:
[Enter steps to reproduce below:]

Delete a file

Re-open atom project

Atom Version: 0.198.0

System: Mac OS X 10.10.3

Thrown From: Atom Core

Stack Trace

Uncaught Error: ENOENT: no such file or directory, open '/Users/admin/Documents/workspace/coachcommune/components/web-site-app/WebSiteAppController.js'

At events.js:141

Error: ENOENT: no such file or directory, open '/Users/admin/Documents/workspace/coachcommune/components/web-site-app/WebSiteAppController.js'
at Error (native)

Commands

Config

{
"core": {
"themes": [
"atom-light-ui",
"atom-dark-syntax"
],
"disabledPackages": [
"sublime-tabs",
"atomatigit",
"autocomplete-paths",
"autocomplete-html",
"language-java",
"language-make",
"language-objective-c",
"language-perl",
"language-php",
"language-python",
"language-ruby",
"language-ruby-on-rails",
"language-sass",
"language-sql",
"language-xml",
"dev-live-reload",
"language-coffee-script",
"language-csharp",
"language-go",
"language-toml",
"project-manager",
"color-picker",
"jumpy",
"linter",
"linter-tslint",
"angularjs",
"language-c",
"language-clojure"
]
},
"editor": {
"invisibles": {},
"showIndentGuide": true,
"softWrapAtPreferredLineLength": true
}
}

Installed Packages

# User
.bin, vundefined
angularjs-styleguide-snippets, v0.7.0
atom-typescript, v4.2.2
autocomplete-plus, v2.13.1
editorconfig, v1.0.0
emmet, v2.3.9
linter, v0.12.2
tag, v0.2.3

# Dev
No dev packages

Issue 2:
Some repro steps that I gathered from the existing issues:

Have a file open in branch something that doesn't exist in branch atom

git checkout atom

ENOENT 💥

OR

Have a file open in Atom that will be affected by git rebase

git rebase

ENOENT 👎

OR

Just simply rename a file outside of Atom that's currently open inside of Atom.
Issue 1:
Numpy - 1.12.1

Python - 2.7.13 | Anaconda 4.4.0

OS - CentOS, MacOS

I am run the following code to produce an array using numpy

import numpy as np
print np.arange(0.002, 0.021, 0.001)

And get the following result

[ 0.002 0.003 0.004 0.005 0.006 0.007 0.008 0.009 0.01 0.011 0.012 0.013 0.014 0.015 0.016 0.017 0.018 0.019 0.02 0.021]

The last entry should not be there. This is specific to values I have mentioned here. I do not encounter this while using other values in arange.

I was able to reproduce this in the following online ipython editor website, so I don't think this is specific to my installation.

https://www.pythonanywhere.com/try-ipython/

Issue 2:
Operating system: Windows 10

python version: 3.5.3

numpy version: 1.12.1

Issue information:

when I input numpy.arange(0,5), the output was normal for an array excluding the terminal number 5, but if I input numpy.arange(0.442,0.524,0.001), the outcome turned out to be abnormal including the terminal number 0.524.
Issue 1:
Preflight Checklist

I have read the Contributing Guidelines for this project.

I agree to follow the Code of Conduct that this project adheres to.

I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Electron Version

13.1.2

What operating system are you using?

Windows

Operating System Version

Windows 10 20H2

What arch are you using?

x64

Last Known Working Electron version

No response

Expected Behavior

I want to create a voice chat with the electron framework. For testing pureposes I created the Simple-peer /webrtc voice-chat as a website. The connection between the Browser instances works.

Actual Behavior

As soon as I start accessing the exact same website in Electron ( with mainWindow.loadURL or copy and pasting the code and adjusting some urls) It throws there errors:

[4712:0611/224806.608:ERROR:audio_rtp_receiver.cc(95)] AudioRtpReceiver::OnSetVolume: No audio channel exists.

[4712:0611/224846.392:ERROR:stun_port.cc(96)] Binding request timed out from 192.168.2.x:52325 ({653D86EF-2890-4553-8A92-A3CB302B2D3A})

Amazingly, the connection works when the Electron App gets the calls but now when Electron tries to call other peers.

Testcase Gist URL

https://gist.github.com/PxlLoewe/7a2ff3a3577be27533cd12a6d87e8dde

Additional Information

No response

Issue 2:
Electron version: 1.4.15, 1.6.2, 1.6.7

Operating system: Win, Mac

Expected behavior

User should join WebRTC session without errors

Actual behavior

Can't join WebRTC session. Following error occurred:

[30112:0628/135434.057507:ERROR:stunport.cc(89)] Binding request timed out from 10.6.228.x:63096 (en0)
[30112:0628/135434.057557:ERROR:stunport.cc(89)] Binding request timed out from 10.6.228.x:56245 (en0)
[30112:0628/135434.057587:ERROR:stunport.cc(89)] Binding request timed out from 10.6.228.x:52191 (en0)
[30112:0628/135434.059149:ERROR:stunport.cc(89)] Binding request timed out from 10.6.228.x:55994 (en0)
[30112:0628/135434.060118:ERROR:stunport.cc(89)] Binding request timed out from 10.6.228.x:64240 (en0)

NOTE:

Error seems to be sporadic: 2-3/10 times notices. 7-8 sessions started successfully.

Beside it there are a couple of others error related to the WebRTC session:

[30112:0628/135422.618236:ERROR:rtpreceiver.cc(61)] AudioRtpReceiver::OnSetVolume: No audio channel exists.
[30112:0628/135424.551040:ERROR:audio_send_stream.cc(90)] Failed to set up send codec state.
Issue 1:
Environment

Windows build number: Win32NT 10.0.18362.0
Windows Terminal version (if applicable): 0.5.2762.0

Steps to reproduce

echo -ne '\e]10;foo\e'; sleep 1; echo -ne '\\'; sleep 5; echo; sleep 1; echo; sleep 10

Expected behavior

Two linefeeds eventually, nothing more.

OSC 10 sets the default foreground, it's not yet supported by WT. You can replace it with any other number that's not yet supported.

The terminating sequence of OSC should be ST accoding to the standard (BEL is a commonly used but nonstandard choice instead). ST in the C0 set is ESC followed by \.

Now we insert a bit of delay in the middle of ST. Such difference in timing should never make a difference in the final outcome, not even when the sequence is unsupported.

Actual behavior

The following weirdnesses occur:

A literal \ gets printed. It shouldn't.

That \ gets printed 6 seconds after starting the command line, rather than 1 second after. That is, not immediately when received, but when the next character (whether that's a newline or not) is received.

Subsequent newlines don't move the cursor to the beginning of the line as expected, but walk downwards in the second column.

So it seems the parser might be stuck in some weird mode??

The bug does not occur if the delay is eliminated and the unsupported escape sequence is printed in a single step. It is completely ignored then, as expected.

The bug does not occur with supported escape sequences either, such as setting the title with OSC 0. It's immune to injected delays, as expected.

Issue 2:
Your Windows build number: (Type ver at a Windows Command Prompt)

10.0.18362.113

What you're doing and what's happening: (Copy & paste specific commands and their output, or include screenshots)

I am using the Czech keyboard. We write some characters like | by pressing RightAlt-W. There are more characters like that, all are accessible using Right Alt.

What's wrong / what should be happening instead:

When I press the shortcut, no character is written in the output.
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

Let users dynamically import higher order components in the same manner as regular components to increase composability.

Current Behavior

Using dynamic(import('./file.js')) returns a DynamicComponent and can't be used to load HoCs, which makes sense because HoCs are functions and not components.

Context

When using next to render the same modular frontend for different clients, we use getInitialProps to fetch the client data and then wanted to apply HoCs (derived from the client settings) for customization.

Example:

hoc_1.js

export default Content => {
return props => (
<section className="Module" alt={props.alt}>
<h2>{props.title}</h2>
<Content {...props} />
</section>
);
};

hoc_2.js

export default Content => {
return class Module extends React.Component{
componentDidMount(){
//do some module specific stuff
}
render(){
return (
<section className="Module" alt={props.alt}>
<div className="SubModule">
<Content {...props} />
</div>
<div>Some other Stuff</div>
</section>
)
}
}
};

index.js

import Modules from "../components/Modules.js"; // all modules dynamically imported and exported as Object
import HOCs from "../components/HOCs.js"; // all HOCs dynamically imported and exported as Object

export default class Index extends Component {
static async getInitialProps({ req }) {
const res = await fetch(`/client_settings_api/`);
const json = await res.json();
return { modules: json.modules, contentHoC: json.contentHoC };
}

render() {
return (
<div>
{this.props.modules.map(module => {
const Module = Modules[module.type];
const contentHoC = HOCs[this.props.contentHoC];
const EnhancedComponent = contentHoC(Module);
return <EnhancedComponent />;
})}
</div>
);
}
}

In this particular case you could simply render this.props.childrenin the HoC, use it as a dynamic component and render <Hoc {...props} /><Module {...props} /></Hoc> but this raises the question how to use HoCs dynamically in general? Instead of exporting components already wrapped in HoCs maybe it's possible to use HoCs dynamically to compose them where and how you like?

Your Environment

Tech
Version

next
4.2.1

node
8.4.0

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

After transiting from one page to another page via next <Link />, if user clicks the back button and the previous page has getInitialProps method that takes some time to finish, the scroll position of the previous will be restored before the previous pages gets rendered.

Demo

source code can be found here

After clicking back button, the "go back" text should still be visible (not scroll down to previous position) until the previous page gets rendered
Issue 1:
I'm using babel to compile src/ to lib/. I have src/cli/somecli.js which is chmod u+x but babel doesn't preserve that permission which means I can't do ./lib/cli/somecli.js in bash. Would be nice if there was an option to tell babel to preserve that permission.

Issue 2:
When I do:

babel -w -d dist src

I expect dist/bin.js to have the same permissions as src/bin.js (specifically, executable bit)

In actuality, the permissions are not preserved.
Issue 1:
Help doc of LDA.transform says:

Returns
-------
X_new : array, shape = [n_samples, n_components]

However:

X = np.array([[-1, -1, -1], [-2, -1, -1], [-3, -2, -2], [1, 1, 3], [2, 1, 4], [3, 2, 1]])
y = np.array([1, 1, 1, 2, 2, 2])
lda = LDA(n_components=3).fit(X, y)
lda.transform(X).shape

produces

(6, 2) while I expect it to be (6, 3) as n_components == 3

Looking at the code of transform:

return np.dot(X, self.coef_[:n_comp].T)

Where self.coef_ is computed as in .fit():

self.coef_ = np.dot(self.means_ - self.xbar_, self.scalings_)

which produces a 2x1 matrix (or whatever the number of means is).

Not sure what the correct thing would be but it seems that LDA.coef_ should have length n_compoments, no?

Issue 2:
Currently rfc only support array like input , thus it can not apply to huge dataset. If the sparse matrix could be supported in the near future, would Be Greatly Appreciated!
Issue 1:
https://github.com/yangdan8/module-federation-bug

step:

pnpm i

pnpm dev

result:

There is "node_modules_pnpm_vue_2_7_14_node_modules_vue_dist_vue_runtime_esm_js" in "consumer/dist" directory,

but it is in "libs/dist" directory too!!!

windows 11

node 16

webpack 5.75.0

tool vscode

Issue 2:
When requiring shim for using process in browser, chunk hash variants on different machines.

In the module "lib/NodeSourcePlugin", "getPathToModule" method will return an absolute path of node shim. This will cause different results depending on the path where your project exits on different machines. And when webpack injects variable dependencies such as 'require(/path/to/node_modules/process/browser.js)', the expression used to initialize DependenciesBlockVariable is changed, Which makes the hash of chunk changed too !

Is this a bug ? Or feature ? It is so disturbing that same code but gets different hash.
Issue 1:
Examples bug report

Example name

blog-starter

Describe the bug

Client-side route changes are broken. When you click around on the client after the initial load, content is appended to a container instead of replacing it. Seems like there might be an issue with a Suspense component?

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

npx create-next-app --examples blog-starter my-blog

now dev

Click around

See error

Expected behavior

Links/content match routes

System information

OS: macOS

Browser: Chrome

Version of Next.js: 9.0.6

Issue 2:
Bug report

Describe the bug

At least two of the NextJS examples do not work when run "out of the box".

To Reproduce

Follow the steps in either of these two READMEs:

nextjs-with-typescript

hello-world

Run npm install && npm run dev.

React will report "Unexpected fiber popped" and "Unexpected pop" in the console.

In the Material UI example, buttons will not demonstrate the ripple effect when clicked. In my application, the effects are more severe, leading to loss of interactivity.

Deploy using npx now. Resulting application will report errors.

nextjs-with-typescript deployment

hello-world deployment

Expected behavior

Given examples work when deployed and run.

Screenshots

If applicable, add screenshots to help explain your problem.

System information

OS

Development: Ubuntu 18.04 LTS

Deployment: Zeit Now platform

Browser: Reproducible in Chrome and Firefox

Version of Next.js: 9.0.6 (current latest)