WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
As before we can have a private filed with unsupported named type, but in recently update(gomobile version +24a199a Wed Jan 13), it breaks this rule, that makes a huge impact to code, and make all types which want to be used for mobile narrows down to supported basic type....

Before:

The following type is working

type ABC struct {

WSClient

}

type WSClient struct {

conn *websocket.Conn

}

ABC is the struct exported for use in android.

After:

it is not working with an error message:

gomobile: unsupported named type xxxx

Issue 2:
as golang.org/s/gobind says:

Passing and returning a struct S promotes it to *S for the purpose of generating bindings.

Currently this is not implemented.
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: 2.7.8

Operating System version: Ubuntu 20.04

Java version: openjdk 1.8.0_265

Steps to reproduce this issue

create a rest service

configure dubbo service as rest via servlet

create junit test with annotation

run junit tests, the first junit test will fail but the following tests run fine.

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

https://github.com/abelli85/meterEff/blob/master/meff/src/test/kotlin/com/abel/bigwater/impl/CodeServiceImplTest.kt

Expected Result

configuration for dubbo-rest via servlet:

<dubbo:protocol name="rest" port="8080" threads="500" contextpath="meff" server="servlet" accepts="500"
...

here's junit test class:

// create junit test class with annotation
@ContextConfiguration(locations = ["classpath:/spring/rest-provider.xml", "classpath:/spring-mybatis.xml"])
@RunWith(SpringJUnit4ClassRunner::class)
class CodeServiceImplTest {
@Test
fun test1() {
// ...
}

@Test
fun test2() {
//...
}
...

What do you expected from the above steps？

all junit tests including the first SHOULD run fine.

Actual Result

What actually happens?

the first junit test in the list always FAILS.

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

Just put your stack trace here!
Caused by: org.apache.dubbo.rpc.RpcException: No servlet context found. If you are using server='servlet', make sure that you've configured org.apache.dubbo.remoting.http.servlet.BootstrapListener in web.xml
at org.apache.dubbo.rpc.protocol.rest.DubboHttpProtocolServer.doStart(DubboHttpProtocolServer.java:62)

Comments:

seems that web.xml is loaded lazily during junit tests, so first junit test fails.

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:
Some reference code: https://glitch.com/edit/#!/occlusion-roughness-metalness

Retrieving old discussion from : #14940

Merging metal/rough/AO textures on the same texture on different channels is something we had in our plan for features to support in the GLTFExporter since the beginning. Actually I had it on my backlog but I have not had time yet to take a look at it :)

So I agree with @donmccurdy on the proposal as something we should support soon:

If metal/rough textures are different and have different sizes, use one, skip the other, and log a warning.

If metal/rough textures are different and have the same size: combine them

If only one of metal/rough is present, export that.

If AO has the same size as the (combined) metal/rough, merge its red channel into that image.

And I'll add to the wishlist two things:

An option as convertSizeWhenCombineTextures so it will try to combine them by reescaling the ones with different size.

Comparing images to detect duplicates. This could be added on the exporting process itself or as a postprocess action including it on GLTFEXporter.Utils

Issue 2:
There're duplicate code:

https://github.com/mrdoob/three.js/blob/dev/examples/jsm/postprocessing/EffectComposer.js#L246-L316

https://github.com/mrdoob/three.js/blob/dev/examples/jsm/postprocessing/Pass.js#L8-L78

Describe the solution you'd like

Re-export Pass and FullScreenQuad in EffectComposer.js
Issue 1:
The validation works unexpected with my below steps to reproduce

Expected results

The error "Control labeled "Metrics" cannot be empty" should not appear when delete Metrics

Actual results

The error "Control labeled "Metrics" cannot be empty" appears when delete Metrics, but it not happens after refresh page

Screenshots

#### How to reproduce the bug

Go to 'Sources/Tables'

Click on 'a table name'

It goes to chart screen, with Table type

Delete Metrics COUNT(*)

=> It's show the error similar to attachment.

Try to select Columns on NOT GROUP BY or anything

=> The error not disappear

Refresh page, and try to delete Metrics COUNT(*) again

=> The error does not appear

Environment

superset version: Master branch on 2019, July 23

python version: 3.7.3

node.js version: 8.16.0

npm version: 6.4.1

Issue 2:
PR #7231 updated visualization validation to take place in the exploreReducer.js SET_FIELD_VALUE action. This validation does not take into account any controlOverrides on the visualization.

Specifically, the Table viz removes any validatation from the metrics row control. This means attempting to create a Table with only "Not Grouped By" columns fails.

Expected results

Be able to create a Table visualization with only "Not Grouped By" columns

Actual results

Creating any Table without a "Metrics" results in an error

Screenshots

How to reproduce the bug

Create a Table Visualization

Delete "Group by" and "Metrics" values

Add "Not Grouped By" columns

Environment

Master branch as of April 22 (commit: 845218d)

Checklist

Make sure these boxes are checked before submitting your issue - thank you!

I have checked the superset logs for python stacktraces and included it here as text if there are any.

I have reproduced the issue with at least the latest released version of superset.

I have checked the issue tracker for the same issue and I haven't found one similar.

Additional context

n/a
Issue 1:
Hi!

Postive:

I've been so happy with Atom, it replaced my IntelliJ/PHPStorm and other IDE's incl. Vim and Sublime Text as a general purpose editor and sometimes IDE for a wide array of languages.

Negative:

Now here is my problem: The startup-time is frustrating.

Can't I run atom as a daemon during startup and attach it to the daemon like emacs-client?

Hey, that's also a good business model for you @github 👍

Issue 2:
Status: This is an ongoing effort.

Via @kevinsawicki

The current plan is to investigate what is slow on startup, optimize it, and then investigate concatenating all the CoffeeScript requires to save eval time on startup.

Merged Changes

Times below are were taken with a Macbook Pro on OS X 10.8.5 with 2.6 Ghz Intel Core i7 processors and 16 GB of memory

atom/less-cache@dbddce5

Saves ~40ms when starting Atom with a fully warm Less cache

#3453

Cuts browser process launch time by ~33%

Saves ~60ms on startup

#3470

Cuts time taken to apply stylesheets by ~66%

Saves ~40ms on startup

atom/wrap-guide#16

Saves ~10ms on startup

#3519

Saves ~250ms on startup

atom/tree-view#219

Saves ~200ms on startup for large projects.

atom/status-bar#35

Save ~30ms on startup

atom/tabs#82

Saves ~15ms on startup

#3917

Reduces number of files read at startup

#3761

Caches requires across all installed packages and speeds up require resolution
Issue 1:
Description of the new feature/enhancement

As a user with multiple tabs opened in Windows Terminal
When I click and drag one tab to an area clear of Windows Terminal
I want the tab to open in a new instance of Windows Terminal
So that I can see both terminals side by side

Currently, in web browsers, we have the ability to grab a tab from a browser window which has multiple tabs opened, and drag it which then puts the tab that has been 'lifted' into its own browser window - this functionality doesn't appear to be currently available in Windows Terminal.

Similarly - if I have spilt tabs into 2 windows, being able to re-merge them would also be good :)

Issue 2:
Environment

Windows 10 1903 build 18362.418

Any other software?

Steps to reproduce

This happened suddenly after a recent windows 10 update , left my laptop installing some updates at night , to find this strange error in the morning when trying to ssh from a debian WSL instance

Expected behavior

Actual behavior
Issue 1:
System Info

transformers-cli env

transformers version: 4.24.0

Platform: Linux-5.4.0-99-generic-x86_64-with-glibc2.17

Python version: 3.8.12

Huggingface_hub version: 0.10.1

PyTorch version (GPU?): 1.12.1+cu102 (True)

onnxruntime-gpu: 1.13.1

Tensorflow version (GPU?): not installed (NA)

Flax version (CPU?/GPU?/TPU?): not installed (NA)

Jax version: not installed

JaxLib version: not installed

Using GPU in script?:

Using distributed or parallel set-up in script?:

Who can help?

ONNX model conversion: @morgan

Information

The official example scripts

My own modified scripts

Tasks

An officially supported task in the examples folder (such as GLUE/SQuAD, ...)

My own task or dataset (give details below)

Reproduction

This command line:

python -m transformers.onnx --model pszemraj/long-t5-tglobal-base-16384-book-summary --feature seq2seq-lm-with-past --preprocessor tokenizer --framework pt .

Gives me the following error during export validation:

Validating ONNX model...
Floating point exception (core dumped)

Expected behavior

Having a usable and validated ONNX model.

Issue 2:
Environment info

transformers version: 4.8.2

Platform: Databricks

Python version: 3.7.10

PyTorch version (GPU?): GPU

Using GPU in script?: No

Using distributed or parallel set-up in script?: Yes

Information

Model I am using : camembert-base:

The problem arises when i try to use a tokenizer (from whatever model in my experiments) on multiple thread pools with an Autotokenizer, the error RuntimeError: Already borrowed get raised, i haven't tried if the same issues occure whith AutoModel, but i suspect it would, this makes it completly inefficient as it requires to duplicate the tokenizer on each thread (same for model), and is a real problem for packages like Petastorm / Horovod.

To reproduce

Below you'll find a simple snippet of code to reproduce the error:

Steps to reproduce the behavior:

from multiprocessing.dummy import Pool as ThreadPool

tokenizer = AutoTokenizer.from_pretrained(pretrained_model_name_or_path="camembert-base")
def tokenizer_test(text):
print(tokenizer(text))

pool = ThreadPool(10)
data_list = ['this is a test'] * 10
pool.map(tokenizer_test, data_list)
pool.close()
pool.join()

However this works fine if i switch the Autotokenizer with CamembertTokenizer.from_pretrained("camembert-base") for example.
Issue 1:
https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gke-serial/1724/

Failed: [k8s.io] [HPA] Horizontal pod autoscaling (scale resource: CPU) [k8s.io] [Serial] [Slow] ReplicaSet Should scale from 5 pods to 3 pods and from 3 to 1 {Kubernetes e2e suite}

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/horizontal_pod_autoscaling.go:62
Expected error:
<*errors.errorString | 0xc821114a70>: {
s: "Only 4 pods started out of 5",
}
Only 4 pods started out of 5
not to have occurred

Previous issues for this test: #27394 #27660 #28079

Issue 2:
https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gce-serial/2033/

Failed: [k8s.io] [HPA] Horizontal pod autoscaling (scale resource: CPU) [k8s.io] [Serial] [Slow] Deployment Should scale from 1 pod to 3 pods and from 3 to 5 {Kubernetes e2e suite}

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/horizontal_pod_autoscaling.go:49
Aug 28 09:38:39.413: timeout waiting 15m0s for pods size to be 5
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/autoscaling_utils.go:284

Previous issues for this test: #30317
Issue 1:
Electron version: 1.3.3

Operating system: win10

What I do:

Use typescript to compile a react project with sourcemap enabled.

Do not use any package tools like webpack or browerify, aka, directly use require() in browser process.

Open the electron instance to debug.

What I expect:

The chromium source panel can display tsx files using sourcemaps.

What I get:

The source panel can only display the tsx souce files in the root dir, which includes our index.html and main process js file. The components tsx files in some folders do not show up.

What I try:

I try to use the inlineSourcemap or set the sourceRoot property, then I get a tsx blank page. What happened?

Please help me, thanks!

Issue 2:
Hey,

I've noticed that source maps are not applied on first run. After launching Electron, the user needs to re-load the page in order for the source maps to "kick in."

Here is a repo where you can reproduce the problem:

test-electron-source-maps (in branch test/first-run)
Issue 1:
For example, now I have a parameter 'D' in the model.

Now I want to replace the 'D' with 'C', where 'C = a+b'

Issue 2:
For example, now I have a parameter 'D' in the model.

Now I want to replace the 'D' with 'C', where 'C = a+b'. Is there anyway in pytorch that can achieve that replacement while keeping the backpropagation between 'C' and 'a+b'. (e.g., training the model will update the value of 'a' and 'b'.

I've tried D.data = C, but obviously that just changed the value and violate the backpropagation. Besides, '.copy' and '.clone' didn't work either.
Issue 1:
Issue Type:

Bug Report

Ansible Version:

ansible 1.7.2

Environment:

Management: Mac OS X

Target: Debian stable

Summary:

I have a SSL certificate stored in a vault file, one of my task copies it to a file (using the copy module) on the remote server.

This worked perfectly on 1.7.1, on 1.7.2 it adds an extra newline after every line which causes my webserver to fail.

Summary: copy module using content from ansible-vault variable -> extra newlines in target file. Bug is not present in 1.7.1. Possibly unrelated to ansible-vault.

Steps To Reproduce:

Create a vault file

ssl_crt: |
-----BEGIN CERTIFICATE-----
Content goes here
-----END CERTIFICATE-----

Have a task using vault (include the vault vars file)

- name: Copy the SSL certificate to the remote server
copy: content="{{ ssl_crt }}" dest=/etc/ssl/mycert.crt

Expected Results:

/etc/ssl# cat -e mycert.crt
-----BEGIN CERTIFICATE-----$
Content goes here$
-----END CERTIFICATE-----$

Actual Results:

/etc/ssl# cat -e mycert.crt
-----BEGIN CERTIFICATE-----$
$
Content goes here$
$
-----END CERTIFICATE-----$

Issue 2:
I'm in Melbourne, Australia and I'm using ansible to set up a VM on Rackspace in their DFW location.

Ansible runs take a very, very long time mainly because paramiko sets up a new connection for every task.

I'm aware that I can switch to using "vanilla" ssh and thus gain the benefit of a ControlMaster/ControlPersist type arrangement but it seems to me that a better approach would be for ansible to cache connections in order to avoid having to wear the connection and authentication cost once per task.

I'm currently looking at refactoring the Connection classes to look more like ConnectionManager classes from which one requests a connection, thus allowing them to hand out cached connections on a (host, user) basis.

Is this an acceptable approach?
Issue 1:
Summary of the new feature/enhancement

Toggle to remove/replace the shortcut arrows on desktop icons

Proposed technical implementation details (optional)

It's a simple registry edit, detailed at https://www.windowscentral.com/how-get-rid-shortcut-arrows-windows-10

That said, many people dislike mucking about in the registry due to the potential to bork the computer.

I would like a switch that toggles shortcut arrows on/off, even if the user needs to log out & back in again to see the change (prefer it not be necessary, but code is code)

Issue 2:
Bring back the power toy for removing and replacing the overlay arrow on on shortcut icons.
Issue 1:
>>> import requests
>>> requests.get("https://r8---sn-q4f7snss.googlevideo.com")
Traceback (most recent call last):
File "/usr/local/lib/python3.4/dist-packages/requests/models.py", line 370, in prepare_url
host = idna.encode(host, uts46=True).decode('utf-8')
File "/usr/local/lib/python3.4/dist-packages/requests/packages/idna/core.py", line 355, in encode
result.append(alabel(label))
File "/usr/local/lib/python3.4/dist-packages/requests/packages/idna/core.py", line 276, in alabel
check_label(label)
File "/usr/local/lib/python3.4/dist-packages/requests/packages/idna/core.py", line 253, in check_label
raise InvalidCodepoint('Codepoint {0} at position {1} of {2} not allowed'.format(_unot(cp_value), pos+1, repr(label)))
requests.packages.idna.core.InvalidCodepoint: Codepoint U+0027 at position 2 of "b'r8---sn-q4f7snss'" not allowed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.4/dist-packages/requests/api.py", line 70, in get
return request('get', url, params=params, **kwargs)
File "/usr/local/lib/python3.4/dist-packages/requests/api.py", line 56, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/local/lib/python3.4/dist-packages/requests/sessions.py", line 474, in request
prep = self.prepare_request(req)
File "/usr/local/lib/python3.4/dist-packages/requests/sessions.py", line 407, in prepare_request
hooks=merge_hooks(request.hooks, self.hooks),
File "/usr/local/lib/python3.4/dist-packages/requests/models.py", line 302, in prepare
self.prepare_url(url, params)
File "/usr/local/lib/python3.4/dist-packages/requests/models.py", line 372, in prepare_url
raise InvalidURL('URL has an invalid label.')
requests.exceptions.InvalidURL: URL has an invalid label.

requests 2.12.0

Issue 2:
requests v2.12.0

>>> import requests
>>> requests.get('http://vluki_develop_624_solr:8983/solr/vluki')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 70, in get
return request('get', url, params=params, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 56, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 474, in request
prep = self.prepare_request(req)
File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 407, in prepare_request
hooks=merge_hooks(request.hooks, self.hooks),
File "/usr/local/lib/python2.7/dist-packages/requests/models.py", line 302, in prepare
self.prepare_url(url, params)
File "/usr/local/lib/python2.7/dist-packages/requests/models.py", line 372, in prepare_url
raise InvalidURL('URL has an invalid label.')
requests.exceptions.InvalidURL: URL has an invalid label.
Issue 1:
Description

For instance, I have two dockerized FastApi application running. My App1 always calls App2.

Is it possible to route calls to App2 in a simple way from App1, without writing duplicate endpoints in App1 and using requests lib to call endpoints in App2?

Something in lines of Sub Applications but across two different dockerized application.

Issue 2:
Hi

I have identified a problem related to the way the integrated swagger interprets lists in formdata. So this is the endpoint I use:

@router.patch("/clients/{client_id}")

def patch_client(client_id: int,

db: Session = Depends(get_db),

email: typing.Optional[List[EmailStr]] = Form(None),

phone: typing.Optional[List[str]] = Form(None) ........

Basically for the Swagger auto-documentation to implement a form list all I have to do is use typing.List then in the Swagger UI appears the button "Add Item". Now the problem is it doesn't work as it should. For the email part it works only if you add a single email, on a second email I get 422 Unprocessable Entity. For phones instead of giving me a proper list of strings I get a list with a single string with each phone field separated by comma. The curl which is generated just doesn't work.

This is the curl which is generated:

curl -X PATCH "http://10.2.1.90:8000/clients/564" -H "accept: application/json" -H "Content-Type: application/x-www-form-urlencoded" -d "email=user%40example.com,user%40example.com&phone="

It doesn't work, simply because it expects a proper EmailStr instead it gets some kind of concatenated thing.

Now, this is change I made to the curl and it works as expected:

curl -X PATCH "http://10.2.1.90:8000/clients/564" -H "accept: application/json" -H "Content-Type: application/x-www-form-urlencoded" -d "email=user%40example.com&email=user%40example.com&phone="

And I get a proper list:

['user@example.com', 'user@example.com']

As far as I know it's perfectly allowed and according to spec to specify duplicated keys which contain different values. Why does the integrated Swagger UI behave like this though?

The problem appears both for multipart and x-www-form-urlencoded because of that concatenation that uses a comma.
Issue 1:
I have found that the class "modal-open" is being applied too late to the body tag. Because of this, there is a brief appearance of double scroll bars. This is happening in Firefox (22.0) and Chrome (28.0.1500.72 m), both desktop. It happens in IE10 as well but because of the scroll bars overlaying content it is not noticeable.

Issue 2:
Hi, sorry for bad English. I want to tell that there is issue with opened modal (2 scrollbars) if javascripts included in head and not in the end of page as assumed in examples. The reason is here https://github.com/twbs/bootstrap/blob/3.0.0-wip/js/modal.js#L238 $body is empty
Issue 1:
Symfony's YAML parser/dumper behaves differently than the PHP PECL yaml parser/dumper.

Example code:

<?php

require_once("Symfony/Component/Yaml/Parser.php");
require_once("Symfony/Component/Yaml/Yaml.php");
require_once("Symfony/Component/Yaml/Inline.php");
require_once("Symfony/Component/Yaml/Dumper.php");
require_once("Symfony/Component/Yaml/Unescaper.php");
require_once("Symfony/Component/Yaml/Escaper.php");
require_once("Symfony/Component/Yaml/Exception/ExceptionInterface.php");
require_once("Symfony/Component/Yaml/Exception/DumpException.php");
require_once("Symfony/Component/Yaml/Exception/ParseException.php");

$data = array('data' => array('date' => array('cr=bla'), 'username' => 'foo'));

$yaml = (yaml_emit($data));

$parser = new Symfony\Component\Yaml\Parser();

$data2 = $parser->parse($yaml);

echo "ORIG\n";
var_dump($data);
echo "NEW:\n";
var_dump($data2);

?>

returns the following results:

ORIG
array(1) {
["data"]=>
array(2) {
["date"]=>
array(1) {
[0]=>
string(6) "cr=bla"
}
["username"]=>
string(3) "foo"
}
}
NEW:
array(1) {
["data"]=>
array(3) {
["date"]=>
NULL
[0]=>
string(6) "cr=bla"
["username"]=>
string(3) "foo"
}
}

This is

alex@debvirt:~/work/EPPTest$ php -v
PHP 5.3.3-7+squeeze3 with Suhosin-Patch (cli) (built: Jun 28 2011 13:13:26)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

alex@debvirt:~/work/EPPTest$ pecl list | fgrep yaml
yaml 1.0.1 stable

Installed packages, channel pear.symfony.com:
=============================================
Package Version State
Yaml 2.0.12 stable

Issue 2:
Hey guys!

See the old discussion here: http://groups.google.com/group/symfony-devs/browse_thread/thread/d7da04699033ec07

Currently, there's no standard way of (when you're not using a CDN) retrieving the absolute URL to an asset. This would be useful, for example, when generating asset paths in a template for an email. I believe the best current solution would be something like this:

{{ app.request.httpHost ~ asset('images/foo.jpg') }}

Of course, that'll break if/when I start using a CDN :).

Question: is this something we should add?