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

I have checked the FAQ of this repository and believe that this is not a duplicate.

I find some constructors of implementation classes of Protocol are public, but these constructor are not invoke obviously, they are often used in ExtensionLoader implicitly by invoking reflection api "newInstance".

I think we should make these constructors private, if we don't want to let them be invoke obviously.

By the way, if fix the problem, some unit tests must be modification because some tests use these constructors.

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

I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: xxx

Operating System version: xxx

Java version: xxx

Steps to reproduce this issue

xxx

xxx

xxx

Pls. provide [GitHub address] to reproduce this issue.

Expected Result

What do you expected from the above steps？

Actual Result

What actually happens?

If there is an exception, please attach the exception trace:

Just put your stack trace here!
Issue 1:
WHAT THE F

does not exist in pyopenssl

no help anywhere

Issue 2:
From Wikipedia, the free encyclopedia

The Web ARChive (WARC) archive format specifies a method for combining multiple digital resources into an aggregate archive file together with related information. The WARC format is a revision of the Internet Archive's ARC File Format[5] that has traditionally been used to store "web crawls" as sequences of content blocks harvested from the World Wide Web. The WARC format generalizes the older format to better support the harvesting, access, and exchange needs of archiving organizations. Besides the primary content currently recorded, the revision accommodates related secondary content, such as assigned metadata, abbreviated duplicate detection events, and later-date transformations.[6]

WARC is now recognised by most national library systems as the standard to follow for web archival.[7]

https://en.wikipedia.org/wiki/Web_ARChive
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

If a user clicks a Link in your app and navigates to a page with getInitialProps which takes some time to fetch data, your app may seem broken or hung. Even if you show some kind of preloader to tell them something is loading, if they take a look at the address bar, they will see the old url until getInitialProps finishes it's job and the new url is pushed to the browser history. Shouldn't the url change come first?

I'm curious what do you guys think about it and what was the motivation behind implementing it this way.

Issue 2:
When using Router.push to route to the same page but with a different query string value the page is not remounted. Instead, both getInitialProps and componentWillReceiveProps are executed. Is this the intended behavior?

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

Expected Behavior

I would expect the current page component to unmount (componentWillUnmount should fire) and the new page to mount (componentDidMount should fire). If people want to shallow route they can use the Router shallow:true option.

Current Behavior

Steps to Reproduce (for bugs)

import { Component } from 'react';
import Router from 'next/router';

class PageTest extends Component {

constructor(props) {
super(props);
this.state = {};
this.goToPage = this.goToPage.bind(this);
}

static async getInitialProps({ query }){
console.log('getInitialProps');
return {
pageId: query.pageId
}
}

componentWillReceiveProps(nextProps){
console.log('componentWillReceiveProps', nextProps);
}

componentDidMount(){
console.log('componentDidMount');
}

componentWillUnmount(){
console.log('componentWillUnmount');
}

goToPage(e){
e.preventDefault();

const { pageId } = this.props;
const nextPageId = pageId === 'a' ? 'b' : 'a';

Router.push(
`/page-test?pageId=${nextPageId}`,
`/page-test/${nextPageId}`,
//{ shallow: false } // Doesn't do anything
);
}

render() {
return (
<div>
<a href="#" onClick={this.goToPage}>Go to other page</a>
</div>
);
}
}

export default PageTest;

Context

Your Environment

Tech
Version

next
3.0.6

node
8.1.4

OS
OSX

browser
Chrome

etc
Issue 1:
Either on a fresh clone or from my previously working build setup I'm getting now

checking size of mp_limb_t... 0
configure: error: Oops, mp_limb_t doesn't seem to work
Makefile:1798: recipe for target 'build/gmp-6.0.0/config.status' failed

Issue 2:
A few days ago, in order to rebase a couple of my branches on an up-to-date master, I made a pull that forced me to rebuild my deps (maybe due to #12463?).

Since then, though, I have not been able to rebuild gmp. It fails during config with text like this near the end:

checking size of mp_limb_t... 0
configure: error: Oops, mp_limb_t doesn't seem to work
Makefile:1803: recipe for target 'build/gmp-6.0.0/config.status' failed

I also get this error on a fresh clone.

Some googling suggests something about having absolute paths in the configure line breaks things. If I go into the source directory and do a bare ./configure, it succeeds (and gives a size of mp_limb_t of 8).

Has anyone else seen this? I've looked a bit into how we might tweak the invocation of configure but the logic in deps/Makefile looks, um, complicated.
Issue 1:
It would be convenient to have more iterable unpacking.

Julia 1.7:

julia> x, (ys...) = (1,2,3,4);
julia> x, ys
(1, (2, 3, 4))
julia> x, (ys...), z = (1,2,3,4)
ERROR: syntax: invalid "..." on non-final assignment location "ys" around REPL[2]:1

Python (feature specification):

In [1]: x, *y, z = [1,2,3,4]

In [2]: x, y, z
Out[2]: (1, [2, 3], 4)

Issue 2:
Sometimes I find myself wanting to do something like

(data..., p1, p2) = function_call()

because function_call returns many values, but I really only need to separate out the last one or two because, e.g., I will just splat the first however many values into another function call. Granted, I could accomplish this with

x = function_call()
(data, p1, p2) = (x[1:end-2], x[end-1:end]...)

but I like the idea of having a concise syntax to do that.

(I see that #2626 touched on this, but I wasn't entirely sure what the conclusion was.)

It could also be cool to have this for method definitions too, e.g.,

function f(x..., y)
# code here; x contains 0 or more arguments
end

One could argue that I should just reorder my arguments, but if, for example, I'm defining an infix operator reordering arguments might not be ideal. For example, |> could be defined as

|>(x..., f) = f(x...)

and then instead of, e.g.,

computation() |> args -> g(args...) # g takes two arguments, computation returns two results

I could do

computation()... |> g # no anonymous function needed

(Admittedly, defining an infix operator with not exactly two arguments probably doesn't make the most sense in most cases.)

I'd be interested to hear of other potential use cases, and to hear whether it's even possible to allow slurping in this way.
Issue 1:
Environment

Windows build number: 10.0.18362.0
Windows Terminal version: v0.5.2681.0

Steps to reproduce

Find the Windows Terminal (Preview) app and click.

Expected behavior

Windows Terminal should launch.

Actual behavior

Issue 2:
Environment

Microsoft Windows [Version 10.0.18362.295]
Windows Terminal (Preview)
Version: 0.4.2382.0

Steps to reproduce

Switch the "Change the size of text, apps, and other items" to something other than 100%

Open up Terminal and colorize multiple contiguous lines on the screen

(For me, I'm running WSL and run vim followed by :color blue)

Expected behavior

There should not be any gaps between the characters.

Here's the terminal on a 2560x1440 resolution monitor (Landscape) at 100% scale setting

Actual behavior

On 125% zoom, the same window now looks like this (tiny black horizontal marks between what should be contiguous lines of text all colored blue).

At 150% scale, we have a similar issue, though now instead of every line being affected, every other line has the horizontal artifact.

175%, and 225% zoom seem to have the same artifact line pattern as 125%

200% zoom has no artifact.

This looks similar to the artifact reported by @shanselman in #455 (comment), but the issue I see is present independent of the fontFace setting (i see it both with fontFace set to Fira Code, and with fontFace setting removed thus falling back to the default fontFace).

Note: I initially came across this while using multiple monitors, and the artifact presented itself when dragging between two monitors. It turns out that the Scale setting is on a per-monitor basis, so if anyone working on a fix has multiple monitors, they can test several scale settings in parallel, as dragging the window between monitors will dynamically apply the scaling to the window.
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

This is just a discussion over documentation of v1.

In this section : https://material-ui.com/customization/overrides/#overriding-with-classes it seems in both the text description, and the example, that the classes override replace the default one.This is not very intuitive as classes are string, not objects that can merge, which is why I thought it worked that way in the first place.

An explicitly description of how it works could make things clearer, . ie. the styles objects pointed by both the overriding class name and the default one, are merged together.

What do you think?

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

Expected Behavior

Passing loop element to MenuItem onClick, the elements is always the last element in the array.

Current Behavior

Passing loop element to MenuItem onClick should pass the current element being iterated over.

Steps to Reproduce (for bugs)

go to https://codesandbox.io/s/y3z5kq8mvz

Click any item in 'open one' and it will console.log 'closing two'. It should console.log 'closing one'.

Context

Your Environment

Tech
Version

Material-UI
beta23

React
16.2.0

browser
chrome 62

etc
macos
Issue 1:
Summary of the new feature/enhancement

Add a setting for PowerToys Run to blacklist folders from the search. I think the setting should be simply a list of directory names to blacklist.

Window's indexer settings do not allow to ignore all folders named node_modules, .git, ... so if I want my code projects to show up in the search results I have to manually toggle off every node_modules folder, otherwise I would get a lot of useless search results.

I don't mind Windows' indexer indexing also the node_modules if I can remove them from the search results.

Proposed technical implementation details (optional)

In WindowsSearchAPI add a check that reads the settings blacklist and checks every result against it before adding it to the results.

Issue 2:
ℹ Computer information

Windows build number: [run "winver"]

PowerToys version: v0.20.0

PowerToy module: Fancyzones

📝 Provide detailed reproduction steps (if any)

Snap windows to your zones

Wait for PC to go into full sleep (not just monitor, full PC sleep mode)

Wake PC from sleep

✔️ Expected result

Windows will be in their zones before sleep.

❌ Actual result

Windows are outside of there zones and not snapped.

(Apologies if this is a duplicate issue, I couldn't find one when searching)
Issue 1:
I have exported an object I made on the scene with javascript (as a shapegeometry) using the toJSON()function. Now I try to reload the object on the scene with an objectLoader, but it fails because the objectloader doesn't support geometry type ShapeGeometry.

Except if I'm missing something, that means that I can't reload exported models in the scene?

Issue 2:
@WestLangley - this post describes how to select a proper LOD level of a Cube Map http://casual-effects.blogspot.ca/2011/08/plausible-environment-lighting-in-two.html

It may be possible to just more intelligently select the LOD level for the specular and diffuse cube maps rather than generating prefiltered ones (thus addressing this may make this other issue #7402 obsolete.)

The key part in this paper is that it figures out first the default LOD that would have been chosen, and then modifies it using a query parameter that is derived from the cosine filter. This requires a query of some sort for the current LOD level.

Some requirements for that query -- it should not be done by packing into the current cubemap the LOD in A because A is needed for HDR textures. Thus I guess the only alternative is to have a separate cubemap that is 8 bit luminance (to save memory) and contains LOD numbers?
Issue 1:
Describe the workflow you want to enable

It is very common to split the data into three parts. Train, Cross-validate, and Test. We already have train test split but it would good to have this three parts split too.

Describe your proposed solution

Implement this feature in model_selection module.

Issue 2:
Asking how to do a threefold split is the top sklearn question on stackoverflow:

https://stackoverflow.com/questions/tagged/scikit-learn?sort=frequent&pageSize=50

We have discussed this before but I think this is a good reason to add it - the other option would be to document more explictly doing

from sklearn.model_selection import train_test_split

X_trainval, X_test, y_trainval, y_test = train_test_split(X, y)
X_train, X_val, y_train, y_val = train_test_split(X_trainval, y_trainval)

if that's the idiomatic way to do that.

The "issue" with that way is that it's harder to figure out the ratios.

If we want to add a threefold split method, there's three options:

add another parameter to train_test_split (not sure I like this)

create a new method that mirrors the interface of train_test_split

create a new method with a better interface than train_test_split

I kinda prefer the last one but it might be confusing to users. My ideal signature would not have *args and explicitly name X and y so we could stratify by default.

Maybe

naming_is_hard(X=None, y=None, fit_parms=None, train_size=None, val_size=None, test_size=None).

I'm not sure if it would make sense to pass a cv object here? or a CV class that's internally instantiated? Or we could have stratify and grouped options? Maybe the last makes most sense?
Issue 1:
React version: 17.0.2

<div
ref={rootRef}
className="rate"
onTouchMove={onTouchMove}
>
{
cloneElement(full ? fullIcon : voidIcon, {
className: classNames("rate__icon", {
"rate__icon--full": full,
}),
})
}
</div>

Codesandbox：https://codesandbox.io/s/quiet-meadow-rfq1m

The current behavior

When a cloneElement conditionally switches components, the onTouchMove is invalid

The expected behavior

When a cloneElement conditionally switches components, the onTouchMove should work

Issue 2:
My project uses react, react-dom, and react-bootstrap.

react-bootstrap requires react to be a peer dependency.

react-dom includes react as a child dependency.

So I must install react as a top-level dependency in order for react-bootstrap to work.

Now I have two copies of react.

When I try to use the Modal component in react-bootstrap, I get the error "Uncaught Error: Invariant Violation: addComponentAsRefTo(...): Only a ReactOwner can have refs. You might be adding a ref to a component that was not created inside a component's render method, or you have multiple copies of React loaded".

I can fix this by deleting the directory node_modules/react-dom/node_modules/react.

Maybe react-dom should be changed so react is a peer dependency instead of a child dependency.
Issue 1:
We should combine those duplicate code pieces into a single one. See #20751 (comment)

Issue 2:
I've experienced this issue in two different apps. When building release apk in first app, the app builds successfully. But as soon as the app opens, it crashed. I removed below line i added before in android/gradle.properties and rebuild.

extra-gen-snapshot-options=--obfuscate

App worked without problem later.

Yesterday i faced the same issue with a new app. Now the app is running in some of the devices i have. I published the app to play store. The app is incompatible with almost all phones except mine. I disabled obfuscation and uploaded patched version. Now it is working fine.
Issue 1:
Describe the issue

The type of the .data of the response is the same type of what was submitted in the request.

Example Code

const form: FormData = new FormData();

const { data } = await axiosInstance.request({data: form});

// The type of data is `FormData`, why? It should be any or something else. The response is never FormData.

Expected behavior, if applicable

Type of data in the response should be any or something else.

Environment

Axios Version: 0.22.0

Adapter: HTTP

Browser: N/A

Browser Version: N/A

Node.js Version: 16.9.1

TypeScript Version: 4.4.3

OS: Linux

Additional Library Versions: N/A

Additional context/Screenshots

N/A

Issue 2:
Describe the bug

In #2995 merge request, there was introduced a bug.

There came 2 issues.

input and output types have to be the same.

existing usages are broken

To Reproduce

pass input and output type to axios.post

interface Input {
name: string;
}
interface Output {
value: string;
}
/* existing usages are broken
* TS2345: Argument of type '{ name: string; }' is not assignable to parameter of type 'undefined'.
*/
const { data } = await axios.post<Output>('url', {
name: 'hello',
});
/* Input and output have to be the same type
* TS2345: Argument of type '{ name: string; }' is not assignable to parameter of type 'AxiosResponse<Output>'.
* Object literal may only specify known properties, and 'name' does not exist in type 'AxiosResponse<Output>'.
*/
const { data } = await axios.post<Input, AxiosResponse<Output>>('url', {
name: 'hello',
});

Expected behavior

No type errors.

Environment

Axios Version 0.22.0

Adapter HTTP

Browser Chrome

Browser Version 94.0.4606.61

Node.js Version v14.17.5

OS: Windows 10

Additional Library Versions none

Additional context/Screenshots
Issue 1:
by davyzhang:

Before filing a bug, please check whether it has been fixed since the
latest release. Search the issue tracker and check that you're running the
latest version of Go:

Run "go version" and compare against
http://golang.org/doc/devel/release.html If a newer version of Go exists,
install it and retry what you did to reproduce the problem.

Thanks.

What steps will reproduce the problem?
If possible, include a link to a program on play.golang.org.
sorry, it's a big code base I didn't narrow it down

What is the expected output?

What do you see instead?

Which compiler are you using (5g, 6g, 8g, gccgo)?

Which operating system are you using?
macos 10.8.3

Which version are you using? (run 'go version')
go version devel +86d952ac0976 Fri Mar 22 01:27:55 2013 +0100 darwin/amd64

Please provide any additional information below.
I upload the stacktrace log wish this could help

Attachments:

trace.log.7z (58013 bytes)

Issue 2:
by ibexris:

1.03 on OSX:

Try: go get github.com/bmizerany/noeq.go

Returns:

stat github.com/bmizerany/noeq.go: no such file or directory

Now try the same thing with my (pristine for the moment) fork, but with a new name:

Try: go get github.com/ex-nerd/noeqclient

Everything works.
Issue 1:
ISSUE TYPE

Bug Report

COMPONENT NAME

ansible

ANSIBLE VERSION

ansible 2.2.1.0

SUMMARY

Handlers broken for role with duplicates allowed.

STEPS TO REPRODUCE

- hosts: localhost
roles:
- role: test
wheel_position: front left
tags: test
- role: test
wheel_position: front right
tags: test

See attached zip with this role.

EXPECTED RESULTS

RUNNING HANDLER [test/wheel : rotate {{ wheel_position }} wheel] ***************
ok: [localhost] => {
"msg": "rotating front left wheel"
}

RUNNING HANDLER [test/wheel : rotate {{ wheel_position }} wheel] ***************
ok: [localhost] => {
"msg": "rotating front right wheel"
}

ACTUAL RESULTS

RUNNING HANDLER [test/wheel : rotate {{ wheel_position }} wheel] ***************
ok: [localhost] => {
"msg": "rotating front left wheel"
}

test.zip

Issue 2:
Issue Type:

“Feature Idea”

Ansible Version:

ansible 1.7 (devel 4b8dcb2) last updated 2014/07/15 18:25:10 (GMT +200)

Environment:

Any supported platform of ansible?

Summary:

Support install in $HOME through setuptools --user parameter.

After quite some time of unsuccessfully trying to pip install --user ansible or pip install ansible in a virtualenv I finally came across the mention of running it from a git checkout, however being able to use the 'standard' install locally process would be a nice comfort feature.

The setup script keeps trying to overwrite /usr/share/ansible

....
creating /usr/share/ansible
error: could not create '/usr/share/ansible': Permission denied

Hopefully http://legacy.python.org/dev/peps/pep-0370/ provides the information necessary to adjust the installer to not create system wide directories when --user is specified
Issue 1:
Very often the components and profiler tabs don't appear.

Issue 2:
Note this issue is due to CR bug 1085215

It is impacting several other popular extensions as well- including React, Redux, Relay, and Vue devtools.

React version: 16.13.1

DevTools version: 4.7.0 (5/18/2020)

macOS version: 10.15.4 (19E287)

Steps To Reproduce

Create a new profile in Google Chrome

Install the React Developer Tools

Go to https://reactjs.org

Open the browser Dev Tools

Screenshots

Not sure this helps, but this is basically what I get after following the aforementioned steps:

When using Opera the tabs do show up:

The current behavior

Sometimes the Components and Profiler (i.e. React devtools tabs) don't show up.

The expected behavior

These tabs should show for any site using React.

More details

I've tried a few browsers, including:

Google Chrome (83.0.4103.61)

Microsoft Edge (83.0.478.37)

Opera (68.0.3618.125)

All of them should be working, since they're all Chromium based.

The most reliable was Opera, which always shows the dev tools tabs. Chrome and Edge behaved the same way, sometimes showing them and other times not.

I've also taken a look at the background pages of the React Dev Tools extension and they don't show any errors, only these performance metrics in the devtools_app.html page:

The main background page shows nothing in the console at all times.
Issue 1:
In addition to #13091 regarding HyperDev, apparently HyperDev is no longer HyperDev. Our codebase should be updated to reflect the new name GoMix (or gomix). Otherwise, campers will be running around like developers with their heads cut off trying to find something that does not exist.

The current references to HyperDev are in the APIs and Microservices section primarily

Issue 2:
Challenge Waypoint: Passing Values to Functions with Arguments has an issue.

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

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

My code:

// Example
function ourFunction(a, b) {
console.log(a - b);
}
ourFunction(10, 5); // Outputs 5

// Only change code below this line.
Issue 1:
Version: 0.194.0

OS: Ubuntu 14.10

Some special character are not visible while editing like : ✔

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