WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
In the swagger api spec, in the proxy methods:

https://github.com/kubernetes/kubernetes/blob/master/api/swagger-spec/v1.json#L6670

There are many such entries like this:

{
"type": "string",
"paramType": "query",
"name": "path",
"description": "Path is the URL path to use for the current proxy request to pod.",
"required": false,
"allowMultiple": false
},
{
"type": "string",
"paramType": "path",
"name": "namespace",
"description": "object name and auth scope, such as for teams and projects",
"required": true,
"allowMultiple": false
},
{
"type": "string",
"paramType": "path",
"name": "name",
"description": "name of the Pod",
"required": true,
"allowMultiple": false
},
{
"type": "string",
"paramType": "path",
"name": "path",
"description": "path to the resource",
"required": true,
"allowMultiple": false
}

As you can see, the name "path" is used twice here. Despite the paramType being different, this causes swagger-codegen to create invalid code:

ConnectOptionsNamespacedPodProxy_6 (string _namespace, string name, string path, string path);

As the name is there twice, path is a duplicate variable, causing errors.

Although this isn't necessarily a kubernetes issue - duplicate names should be handled properly in swagger-codegen - I think it would be wise to not use the same name twice in these methods.

Issue 2:
Docker now supports Overlayfs as a storage backend. Since Aufs doesn't work on all distributions and has caused kernel issues in the past (#10959), we should evaluate Overlayfs and see if it can become the default/recommended storage driver for kubernetes deployments.

Kubernetes is already being used with multiple storage backends, but our existing test infrastructure does not test against all the possible docker storage backends. Until we can enhance the existing kubernetes e2e infrastructure, we will continue to recommend users to use the default storage backend, which is Aufs as of now.
Issue 1:
I want to get file list from form by using:

photos = request.files.getlist("photo")

However if i haven't select anything, the photos value is never be [] like other fields.

So the way to check for empty field is failed:

if not photos:
pass

The result for empty form is:

[<FileStorage: '' ('application/octet-stream')>]

How do i get rid of it?

Issue 2:
Issue came up while trying to send an empty file (and filename) to an HTTPbin form.

Using Flask you're unable to differentiate between the content of a text field in a form and a non-uploaded file from the request object

Example test

Using flask alone;

User @moy helped with this and prompted me to post this bug report

from flask import Flask, flash, request, redirect, url_for, escape

app = Flask(__name__)

@app.route('/', methods=['GET', 'POST'])
def upload_file():
if request.method == 'POST':
return '<pre>{}</pre>'.format(escape(str(request.form) + '\n' + str(request.files)))
return '''
<!doctype html>
<title>Upload new Files</title>
<h1>Upload new Files</h1>
<form method=post enctype=multipart/form-data>
<input name="normal_field" value="field_value" />
<input type=file name=file>
<input type=file name=secondfile>
<input type=submit value=Upload>
</form>
'''

Expected Behavior

Submitting with only the first file field set in the browser,

one would expect to find :

the content of both file fields in the same object ;

the content of normal text input fields in a separate objects ;

So something along the lines of

ImmutableMultiDict([('normal_field', 'field_value')])
ImmutableMultiDict([('file', <FileStorage: 'tmp-rg1.xpi' ('application/x-xpinstall')>),
('secondfile', <FileStorage: '' ('...')>)
])

Actual Behavior

Submitting with only one file (the first field) set in the browser gives:

ImmutableMultiDict([('normal_field', 'field_value'), ('secondfile', '')])
ImmutableMultiDict([('file', <FileStorage: 'tmp-rg1.xpi' ('application/x-xpinstall')>)])

The first is the form's field, the second the actual files uploaded. I see no way to distinguish between an empty text field and a non-uploaded file from the request object.

Is this behavior intended ?
Issue 1:
v34.

cmd shift f, enter term, hit . 💥

Issue 2:
Splitting panes is easy: I got C-| and C-- into my fingers quickly. What's hard for me is unsplits. Currently it looks like I have to M-w until I've closed every tab in the pane, at which point it goes away.

The problem for me is that I don't use tabs, and I don't think of files being open in a pane. I think of them as being open in Atom and displayed in a pane when I ask for 'em.

When I think about unsplitting I don't connect it to the idea of closing files at all. I'd love it if unsplitting was a pane-level concern like splitting is.
Issue 1:
I didn't see this error reported, apologies if it is a duplicate -- my current numpy is 1.6.2.

$ sudo easy_install --upgrade numpy
Searching for numpy
Reading http://pypi.python.org/simple/numpy/
Reading http://numpy.scipy.org
Reading http://sourceforge.net/project/showfiles.php?group_id=1369&package_id=175103
Reading http://www.numpy.org
Reading http://sourceforge.net/projects/numpy/files/NumPy/
Reading http://numeric.scipy.org
Best match: numpy 1.7.0
Downloading http://pypi.python.org/packages/source/n/numpy/numpy-1.7.0.zip#md5=ca27913c59393940e880fab420f985b4
Processing numpy-1.7.0.zip
Running numpy-1.7.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-vw2DNu/numpy-1.7.0/egg-dist-tmp-gJGWkL
Running from numpy source directory.
error: SandboxViolation: open('/dev/null', 'w') {}

The package setup script has attempted to modify files on your system
that are not within the EasyInstall build area, and has been aborted.

This package cannot be safely installed by EasyInstall, and may not
support alternate installation locations even if you run its setup
script by hand. Please inform the package's author and the EasyInstall
maintainers to find out if a fix or workaround is available.

Issue 2:
Sorry in advance if this is a duplicate. I'm trying to read the Iris dataset using the following code:

data = numpy.genfromtxt('../input/Iris.csv',delimiter=',',usecols= range(1,6),skip_header=1, dtype = None).

However, when I try to separate the features and labels using this -

features = data[:,:-1]

labels = data[:,-1:]

the following error occurs :

---------------------------------------------------------------------------
IndexError Traceback (most recent call last)
<ipython-input-48-a596c22da600> in <module>()
----> 1 features = data[:,:-1]
2 features.shape

IndexError: too many indices for array

This error also persists when I use the following :

data = np.genfromtxt('../input/Iris.csv',delimiter=',',usecols= range(1,6),skip_header=1,dtype={'names': ('sepal length', 'sepal width', 'petal length', 'petal width', 'label'),
'formats': (np.float, np.float, np.float, np.float, '|S15')})

However, this kind of indexing works fine when I do not pass dtype as argument at all, but the only problem with that is the labels are read as NaN , which cannot be processed further to numerically encode separately.
Issue 1:
Halp ticket:

support/6c407d52c9f711e38a0cc47a4027f259

Git support does not handle files with accented characters correctly, declaring them as new. See e.g spec/fixtures/subdir/áccéntéd.svg in atom/markdown-preview or lloeki/svg-preview plugins.

Steps to reproduce:

$ git clone https://github.com/lloeki/svg-preview
$ cd svg-preview
$ atom .

Notice that there's a file marked as new in the tree view -- spec/fixtures/subdir/áccéntéd.svg.

However, I can't reproduce this issue with the markdown-preview repository which has a file with the same name.

Issue 2:
Makefile editing is messed up. If it's not using soft tabs instead of hard ones, it's positioning the cursor in weird places. To repro, just write yourself a simple Makefile with a single rule and try to run it. Then edit it in an external editor to fix indentation, then add another rule or two in Atom.

User: @jbarnette

Atom Version: 0.42.0

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_0) AppleWebKit/537.36 (KHTML, like Gecko) Atom/0.42.0 Safari/537.36
Issue 1:
After #13134 is merged, np.exp and np.log return float32 arrays for float16 inputs. Is the change intended? I could not find docs for it (https://www.numpy.org/devdocs/reference/generated/numpy.exp.html), while it is documented that np.sum casts ints to the default platform integer.

Reproducing code example:

import numpy as np
print(np.exp(np.array([1, 2], np.float16)).dtype) # => float32
print(np.log(np.array([1, 2], np.float16)).dtype) # => float32

Numpy/Python version information:

1.17.0.dev0+64b3e67 3.7.1 (default, Nov 6 2018, 21:02:07)
[Clang 10.0.0 (clang-1000.10.44.4)]

Issue 2:
pip install numpy on python 2.7 attempts to install numpy 1.17, which dropped python 2.7 support. This is contrary to the functionality described in NEP 14, which states:

... pip install numpy on Python 2 will continue to give the last working release in perpetuity...

Numpy/Python version information:

pip version: 19.2.2

python: 2.7.15 |Anaconda, Inc.| (default, Oct 23 2018, 18:31:10) \n[GCC 7.3.0]
Issue 1:
On my Mac (10.9.5), my Atom app notices when there's an update, and indicates it by adding a "Restart and install updates" option in the "Atom" menu. If I choose that menu option, Atom quits, and relaunches, but it's the same version it was; no update seems to have happened.

Looking in the Console log, it seems "ShipIt" is running into issues trying to install Atom, since it can't copy the application to the proper folder:

3/5/15 9:25:53.041 AM ShipIt[54372]: Couldn't abort install and restore owned bundle to previous location file:///Applications/Atom.app, error NSError { domain: NSPOSIXErrorDomain, code: 2, description: "No such file or directory" }

3/5/15 9:26:19.075 AM ShipIt[54372]: Installation error: Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied" UserInfo=0x7ff3e3bde200 {NSLocalizedDescription=Permission denied}

Atom.app is in the Applications folder, but my user is not an Admin of the computer, so doesn't have permission to copy a file into the Applications folder. Atom should probably pop up an authentication prompt to accomplish that task? Or more gracefully fail out with a dialog to the user indicating there was an error?

Issue 2:
I've never been able to get the autoupdate to work. It detects a new version, happily downloads, but when I click restart and update, it quits the app, presumably fails to update, and then relaunches, and starts redownloading the update. Usually then I have to get into a hit-quit-a-bunch-war to get it to stop relaunching on quit.

I've pasted the error output from OS X console below:

7/8/14 8:04:09.265 AM Atom[39769]: App load time: 201ms
7/8/14 8:04:35.014 AM Atom[39769]: Download completed to: file:///Volumes/Secondary/Users/pbhogan/Library/Application%20Support/com.github.atom.ShipIt/update.ja3pAYF/download
7/8/14 8:04:42.995 AM com.apple.launchd.peruser.569031419[209]: (com.github.atom.ShipIt[39791]) assertion failed: 13E28: launchd + 105865 [364E35A7-9FA7-3950-8494-40B49A2E7250]: 0xd
7/8/14 8:04:44.875 AM ShipIt[39791]: Beginning installation
7/8/14 8:04:44.893 AM ShipIt[39791]: Couldn't abort install and restore owned bundle to previous location file:///Applications/Atom.app, error NSError { domain: NSPOSIXErrorDomain, code: 2, description: "No such file or directory" }
7/8/14 8:04:56.125 AM ShipIt[39791]: Application launched at file:///Applications/Atom.app
7/8/14 8:04:56.125 AM ShipIt[39791]: Installation error: Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied" UserInfo=0x7fefdc41a260 {NSLocalizedDescription=Permission denied}
7/8/14 8:04:56.125 AM ShipIt[39791]: ShipIt quitting
7/8/14 8:04:56.131 AM com.apple.launchd.peruser.569031419[209]: (com.github.atom.ShipIt[39791]) Exited with code: 1
7/8/14 8:04:56.132 AM com.apple.launchd.peruser.569031419[209]: (com.github.atom.ShipIt[39794]) assertion failed: 13E28: launchd + 105865 [364E35A7-9FA7-3950-8494-40B49A2E7250]: 0xd
7/8/14 8:04:56.435 AM Atom[39792]: App load time: 190ms
Issue 1:
The following code ICEs in nightly on play.rust-lang.org, as well as in 1.0 stable:

extern {
fn foo(x: Option<str>);
}
fn main() {
}

<anon>:2:15: 2:26 warning: found type without foreign-function-safe representation annotation in foreign module, consider adding a #[repr(...)] attribute to the type, #[warn(improper_ctypes)] on by default
<anon>:2 fn foo(x: Option<str>);
^~~~~~~~~~~
<anon>:2:5: 2:28 warning: foreign function is never used: `foo`, #[warn(dead_code)] on by default
<anon>:2 fn foo(x: Option<str>);
^~~~~~~~~~~~~~~~~~~~~~~
error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'Unexpected type returned from struct_tail: core::option::Option<str> for ty=core::option::Option<str>', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/librustc_trans/trans/type_of.rs:354

Between this and #25581, I'm increasingly believing that Rust should firmly disallow non-C-compatible types in extern functions, not merely lint on them. extern "C" means to use the C ABI, and there is no C ABI support for passing slices, strs, etc. around.

Issue 2:
We don't check that types in method signatures are well-formed, or even when they are Sized. I mean, this compiles:

pub struct U<T: Send+Sync+Copy+::std::fmt::Display>(*const T);

pub trait Trait { }

pub trait OtherTrait {
fn f(self, u: U<Trait>);
fn g(self, u: [u8]);
}

impl OtherTrait for () {
fn f(self, u: U<Trait>) { }
fn g(self, ref u: [u8]) {}
}

fn main () {}
Issue 1:
Hello,

when I am adding firebase dependency to my electron project and importing to main.js as:

import firebase from 'firebase';

It is replicable in electron-quick-start project as well, just add firebase dependency and import the firebase module.

It crashes during the application load with the error:

App threw an error during load

Error: Failed to load gRPC binary module because it was not installed for the current system

Expected directory: electron-v7.1-darwin-x64-unknown

Found: [node-v64-darwin-x64-unknown]

This problem can often be fixed by running "npm rebuild" on the current system

npm rebuild doesn't help...

Any ideas how to solve this? I am using last version of electron and the last version of firebase:

"electron": "^7.1.7"

"firebase": "^7.6.1"

Issue 2:
Electron Version: 2.0.7

Operating System (Platform and Version): Windows 10

Last known working Electron version:

Expected Behavior

When using APIs like

webContents.clearHistory(),

session.flushStorageData();

session.clearCache();

session.clearStorageData();

session.cookies.flushStore();

I'd expect it to work on persistent sessions to delete the data, even if not deleting the folders they're stored in.

Actual behavior

No data is removed, partitions are still full size (often huge due to caching).

To Reproduce

This is happening with https://github.com/TheGoddessInari/rambox (which I'm trying to fix due to many upstream problems), but none of the methods to clear data from a session actually work with the persisted sessions.

If you create an instance of any service then delete it, the folder is still there, as is the entire cache, GPUCache, localStorage, etc despite all of the above functions getting called per-session.

Screenshots

Additional Information

If it's relevant, there's a commit up on the testing branch that fixes enough to actually allow removing all services at once (trash icon in the upper right of the home page), or backup/restore, the restore now works, but you'll duplicate all partitions with no removal of the old ones.

There's also Help->Tools->Clear Cache which does nothing and just calls webContents.session.clearCache().

It COULD be an app bug (I didn't write it originally), but I confirmed that each of the aforementioned functions is getting called, with no removal of the session, no removal of any cache data, and no change in each session's folder contents or size. On some sessions, like Slack, not removing old session state can lead to gigabytes of unused cache lying around.

This isn't what I expect when those functions are called, and I can't imagine it'd be intended to need to hardcode a path to the sessions and delete them manually.
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.

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

Can transfer attachment from http headers to RpcContext

Actual Result

What actually happens?

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

Just put your stack trace here!

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: master

Operating System version: mac

Java version: 1.8

Steps to reproduce this issue

我在dubbo-admin 上配置一条动态配置如下：

configVersion: v2.7

enabled: true

configs:

side: consumer

addresses:

0.0.0.0

parameters:

timeout: 6000

cluster: failback

启动org.apache.dubbo.demo.provider.Application.ProviderConfiguration, 抛空指针。

跟踪代码，RegistryProtocol.notify(List urls)内部调用，doOverrideIfNecessary。

该方法会判断：当前注册URL 与新的URL不同，会重新导入

if (!currentUrl.equals(newUrl)) {

RegistryProtocol.this.reExport(originInvoker, newUrl);

logger.info("exported provider url changed, origin url: " + originUrl +

", old export url: " + currentUrl + ", new export url: " + newUrl);

}

在doReExport 方法下,会调用

logger.info("Try to unregister old url: " + oldProviderUrl);

registry.reExportUnregister(oldProviderUrl);

但是这个oldProviderUrl is null, 因为在注册的时候是从

ExporterChangeableWrapper exporter = (ExporterChangeableWrapper) bounds.get(key)； 获取。

但是ExporterChangeableWrapper 构造时，但是构造方法：

public ExporterChangeableWrapper(Exporter exporter, Invoker originInvoker) {

this.exporter = exporter;

this.originInvoker = originInvoker;

}

所以registerUrl is null。

在AbstractRegistry.unregister()上有

public void unregister(URL url) {

if (url == null) {

throw new IllegalArgumentException("unregister url == null");

}

if (logger.isInfoEnabled()) {

logger.info("Unregister: " + url);

}

registered.remove(url);

}

抛出参数异常。

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:
So far I really like Atom 1.0 - it's got a long way to go, but it will get there. We needed an editor like this.

Anyway: the only thing bothering me was how quickly it installed itself (Windows 8.1, 64 bit). Even though that might sound like a _good_¨thing, it isn't. When I double-click the installer I get no options, no information whatsoever. Only a screen "Atom is installing and will launch when ready." For some people this might be the best approach, but for a whole lot of others it isn't.

Some options would be great. I am thinking: file association, installation directory, packages to include with installation (I for one don't need all packages that are included on default install) and so on. I could understand that file association and package control aren't included (though I'd really like that) but why not the ability to choose your own installation directory?

Issue 2:
For some reason, Atom is displaying fonts blurry on my retina MBP. Is there something I can do to fix this?!

~/g/atom git:master atom --version
0.125.0-690d32c

Same file opened in subl3 for comparison:
Issue 1:
It would be nice if the terminal would support the FancyZones Powertoy published by MS.

I would like to be able to "shift" drag the window and have it SNAP to the various zones in my desktop. Other "apps" seem to work with it (like Sticky Notes).

Issue 2:
Context Menu for Tabs

Useful for now, whilst the Tab Bar is in an incomplete state, but will also be useful in a finished version. Each Tab should have a Context Menu with a Close command, as well as eventually, options for renaming the Profile/Tab Title, and changing the TabWidth behaviour.

For now, the Tab Title Text can be so long, you need to scroll with the mouse wheel to get to the close button on some tabs, so having a right click option would help for now.

team notes

#5524 ("Close all tabs to the right") would be a good addition.

"Reload tab" would be a good addition, which would require #3726

The tab color picker is already in there, #3789

Renaming was added in #5775

"Find" isn't a bad idea #5633

Split new panes? Another good idea #5025

Duplicate tab? Why not #9373

#13580
Issue 1:
I'm using next.js with a custom express server. After building next.js, my custom endpoints (such as /graphiql) aren't reachable anymore, and instead the next.js 404 page appears.

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

Expected behavior

After running next build and then export NODE_ENV=prod && node --harmony-async-await index.js it should behave like next dev, i.e. have access to the registered endpoints.

Buggy behavior

If I visit /graphiql I get the 404 screen.

Steps

The startup code looks like this:

const dev = process.env.NODE_ENV !== 'prod'

const start = async () => {
const app = express()

// <- register other express handlers such as /graphql, /graphiql and other endpoints

const nextApp = next({
dev
})
const handle = nextApp.getRequestHandler()
await nextApp.prepare()

app.get('*', (req, res) => {
return handle(req, res)
})

await app.listen(settings.port)

console.log(`Online at ${settings.url}:${settings.port}`)
}

Your Environment

Tech
Version

next
3.0.1-beta.13

node
v7.5.0

OS
Ubuntu

browser
Chrome

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

Hello guys!

First things first: thanks a lot to the contributors for the framework : )

I'm contacting because I'm having hard times trying to hot-reload the .sass on this example: https://github.com/zeit/next.js/tree/v3-beta/examples/with-external-scoped-css

My goal is to have a folder per component / page, with a hot-reloaded js and scss file, using scoped css, and without adding <style dangerouslySetInnerHTML /> on every component or without using template string kind of css technology as style-jsx or styled-components.

components
├── comp1
│ ├── index.js
│ └── styles.scss
├── comp2
│ ├── index.js
│ └── styles.scss
└── comp3
└── index.js
└── styles.scss

So the thing is that there's a related PR mentioned in the example as a potential fix for the hot-reloading ( #823), and I was wondering if anybody has any example / tip on how the functionality added by the PR could be used to customize the hot-reloading so the changes on the sass are also detected and injected.

I have tried and tested a lot without success, including the approached on this thread, but none is fitting completely what I want to achieve, so any help would be really appreciated.

Thanks a lot in advance!!