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.

Environment

Dubbo version: 2.7.5

Operating System version: macos 10.15.2

Java version: openJDK8

Steps to reproduce this issue

create a service named Greeting service

startup two nacos instances representing as two registry center in two different zones.

startup two greeting service instances registering to both nacos registry with different registry id

startup one consumer instance registering to both nacos registry with different zone id.

use consumer to call greeting service with cluster=zone-aware and registry_zone parameter.

The code is simple so I will ignore them and just paste properties as below:

#Provider#

dubbo.protocol.name=dubbo
dubbo.protocol.port=12345

dubbo.config.multiple=true
dubbo.registries.a.id=nuc
dubbo.registries.a.address=nacos://127.0.0.1:8848
dubbo.registries.a.zone=nuc
dubbo.registries.a.use-as-config-center=false
dubbo.registries.b.id=mbp
dubbo.registries.b.address=nacos://192.168.1.31:8848
dubbo.registries.b.zone=mbp
dubbo.registries.b.use-as-config-center=false

#Consumer#

server.port=0
## Dubbo Registry
dubbo.registry.address=nacos://127.0.0.1:8848?zone=nuc|nacos://192.168.1.31:8848?zone=mbp
dubbo.registry.zone
dubbo.registry.use-as-config-center=false

public String hello(String name) {
logger.info(name);
RpcContext.getContext().setAttachment("cluster", "zone-aware");
RpcContext.getContext().setAttachment("registry_zone", "nuc");
return greetingService.sayHelloTo(name);
}

Expected Result

I'm confused here, I don't know what to expect. According to the explanation by @chickenlj in #5399 , One provider instance such as B1 should be able to register to multiple registries in the same time.

But ZoneAware policy is being executed in ClusterInvoker level. The ZoneAwareClusterInvoker use zone value to decide which FailoverClusterInvoker (contains RegsitryDirectory). I know there is a bug in 2.7.5 that will drop zone parameter #5654 , but this doesn't matter. Even if that is fixed in 2.7.6, the problem is still there, that is:

you choose the right registry, but the registry still list all available DubboInvoker (B1, B2), meanwhile, there is no LoadBalance based on zone value as there is no such value on provider. The consumer A1 can still go to B2 even when B1 is alive.

Actual Result

When using zone-aware policy, should one service instance can only register to one registry? but this will lose the ability to use services in other zone as a backup. Am I missing something?...

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

Operating System version: mac

Java version: 1.8

Steps to reproduce this issue

Expected Result

本应该注入两个协议，但实际上一个协议都没注入

Actual Result

启动spring boot 找不到指定协议名的bean

！！而且注入失败也没有提示，不调试根本无感知

测试单个注入不管是jsonrpc还是dubbo都可以成功，但是多个注册就根本注册失败
Issue 1:
Context:

Playwright Version: 1.27.0

Operating System: Mac

Node.js version: 16 LTS

Browser: All

Code Snippet

I couldn't get it working in CodeSandbox but please see the reproduction here (or try a sandbox)

run npx playwright test- the test should pass

uncomment import {testData} from '../mockData' in the repro.test.ts file

run the test again

Describe the bug

The test will fail on the second run with an error, event though the import that is causing the error in mockData.ts is not used by the playwright test itself. This also appears when our mockData.ts file imports types from other files, and in going to those files playwright evaluates module level js that would not normally be run (e.g. outside of NextJs runtime). We don't see this behaviour with jest when running unit tests.

We have a general mock data file that is used across our unit/integration/e2e tests, which contains info such as dummy card details, mock redux state, pretend user details etc. Importing anything from this file in our playwright tests seems to result in playwright evaluating every single import in that file rather than just using what it needs.

There is a similar issue here (#18150) which relates to using experimental components and not being able to import anything other than components. We aren't using component testing, and either way I would consider the mockData file to essentially be our helper in that scenario.

Issue 2:
System info

Playwright Version: v1.31.2

Operating System: macos 13.2.1

Browser: Chrome

Other info:

Source code

Test file (self-contained)

const { chromium } = require("playwright-core");

(async () => {
const browser = await chromium.connectOverCDP(`http://localhost:12345`);
const contexts = browser.contexts();
// BUG: I expect more than 1 if I have more than 1 chrome profiles open
console.log(`contexts`, contexts.length);
})();

I provided exact source code that allows reproducing the issue locally.

Steps

Ensure that your chrome is launched with CDP port enabled at 12345

There are more than 1 chrome profiles open

Run the code above

Expected

Log should print the number of open chrome profiles

Actual

Log always prints 1
Issue 1:
I got this while trying to overwrite the getindex function in BitBasis.jl, it can be re-produced by the following code

using BitBasis

struct SubBit{T, L}
parent::BitStr{T, L}
index::Int
end

Base.getindex(x::BitStr, index::Int) = SubBit(x, index)

Then type

bit"101"[1]

in REPL will get this segmentation fault. Not sure why, if I remove the overloading of getindex inside BitBasis then it is fine.

versioninfo

julia> versioninfo()
Julia Version 1.1.0
Commit 80516ca202 (2019-01-21 21:24 UTC)
Platform Info:
OS: macOS (x86_64-apple-darwin18.5.0)
CPU: Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-6.0.1 (ORCJIT, skylake)
Environment:
JULIA_EDITOR = code

Issue 2:
The following recursively nested exception handling causes a segfault on linux x86_64, with both julia 0.6 and julia 1.0. This seems to happen at the boundary of a stack overflow, as it's fine for all n < 27542 on my system, and seems to segfault above that.

This could be related to #17109, though running the first example code from that issue works fine for me.

@noinline boom() = error("Boom")

function evil(n)
if n == 0
return 1
end
try
evil(n-1)
catch
boom()
end
end

evil(1000000)

To be clear, I didn't find this in real code - it's an intentional stress test for a WIP fix for #19979.
Issue 1:
Looking through Heroku logs we are getting a lot of R14 Memory errors.

Issue 2:
Challenge Change the Font Size of an Element has an issue.

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

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

I found that any config of pixel which is bigger than 16px can pass the examination.

Is it a bug?

My code:

<style>
.red-text {
color: red;
}
p {font-size: 19px;}
</style>

<h2 class="red-text">CatPhotoApp</h2>

<p class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p>
Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.
</p>
Issue 1:
Electron version: 0.37.2

Operating system: windows 7 64 bit

I am trying to print from my app. When I run window.print() it opens the print menu. Once I click OK it adds it to the queue and it is immediately removed from the queue and prints nothing. When I check the queue Pages is N/A and Size has no information. I found the post about using webContent.print() which requires the pdf.dll but I can't seem to find that in my files or in the electron repository.

Issue 2:
Electron version: 0.37.2

Operating system: Windows 7 64-bit

I have tried to call mainWindow.webContents.print, which showed the printer dialog but when I choose the printer, it just does nothing. Not even an error.

I have tried with multiple printers such as physical and virtual one (like print to XPS/PDF).

I suspect its my code, so I tried this this example as well but I got same result.

After that I tested it on another computer (Microsoft surface 4) and still nothing.

Then I run the same code on Mac OS, and it was working ok.

So I'm confusing right now and wondering if anybody else have same issue or not...

PS: webContents.printToPDF was also okay on windows since I guess has nothing to do with OS printing functionality.
Issue 1:
In dev environment we're using a custom email constraint validator that's being created by decorating the shipped email constraint validator:

app.dev.validator.email:
class: AppBundle\Validator\DevelopmentEmailValidator
public: false
decorates: validator.email
arguments: ["@app.dev.validator.email.inner"]

After updating to 3.1.5 we're running into problems with the missing class InvalidArgumentException because it enters the $definition->isPublic() if in line 33 of AddConstraintValidatorsPass.php. That has been fixed with commit #32451b1a092181b793ee6bd186eeb7a3ca039491. But the underlying problem still persists. Due to the service decoration the $definition->isPublic()-check fails on the app.dev.validator.email.inner service.

Don't know whether this is the expected behavior. If so, what would be the new way to replace shipped constraint validators?

Issue 2:
Hi.

I have a decorator for doctrine.orm.validator.unique which is tagged with validator.constraint_validator. With symfony 3.1.5 new checks were introduced in here

My decorator:

app.decorating.doctrine_unique:
class: CapiBundle\Model\Validator\Constraints\UniqueEntityDecorator
decorates: doctrine.orm.validator.unique
arguments: ['@app.decorating.doctrine_unique.inner', '@doctrine']
public: false

results with exception The service "app.decorating.doctrine_unique.inner" must be public as it can be lazy-loaded.

Additionaly, InvalidArgumentException is not imported.
Issue 1:
Describe the bug

The params values which i defined while creating a new instance are not part of the request.

To Reproduce

I created a minimal example: https://jsfiddle.net/oqfract9

const instance = axios.create({
baseURL: 'https://jsonplaceholder.typicode.com/',
timeout: 1000,
params: {
"userId": "1"
}
});

instance
.get("/posts")
.then(function (response) {
console.log(response.data);
console.log(response.status);
console.log(response.statusText);
console.log(response.headers);
console.log(response.config);
});

Expected behavior

I would expect that the ?userId=1 is part of the request.

Environment

Axios v0.19.2

Chrome v83.0.4103.106

Node.js v12.14.0

React v16.13.1

Additional context/Screenshots

I'm currently using the npm package, but it also doesn't work with CDN version.

Issue 2:
Describe the bug

Specific request params do not get merged with the instance default params.

To Reproduce

const instance = axios.create({
baseURL: "http://www.example.com",
params: {
q: "question",
}
});

instance.get("/page",
{
params: {
page: 2
}
}
)

What happens is that the request param object overrides the instance default param object. The instance no longer has a query param of q.

Expected behavior

According to the docs, all configuration options are merged. https://github.com/axios/axios#instance-methods

I expected request to contain both q and page params. This is also how it was working in version 0.18.0, which is how I noticed.

Environment:

Axios Version: 0.19.0

OS: 10.14.5 (18F132)

Browser: Node Express, and Chrome

Browser: Node 10.15.0, Chrome Version 74.0.3729.169 (Official Build) (64-bit)
Issue 1:
Description of the new feature/enhancement

Include a Setting to auto-size the Terminal Window based on a percent of the current deskport/viewport size. For example, Width=80% display screen width; Height=40% Display Screen Height.

Include a Setting to designate the top left screen coordinates for the Terminal window. For example, WindowPos=0,10 for the top left of the Terminal window to be positioned at row 0, column 10.

Proposed technical implementation details (optional)

A clear and concise description of what you want to happen.

When such a Setting is enabled, the Terminal window will always open at these dimensions and coordinates.

Issue 2:
In the original command prompt, users were able to go into file explorer, copy any file, and would be able to paste it into the command prompt.

Description of the new feature/enhancement

Proposed technical implementation details (optional)

Please make it so that we can copy a file in file explorer, and if it has a space in the files path then automatically put quotes arround it and let us paste it without having to directly copy the file's path.
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

Element div not allowed as child of label. See https://i.imgur.com/XyDTf9A.png.

Current Behavior

<label class="c190">
<div class="c226">
<span class="c54 c45 c232 c234 c229 c235 c230">
<span class="c51">
<div class="c228"></div>
<input type="checkbox" class="c233" value="on" checked="">
</span>
<span class="c57"></span>
</span>
<div class="c227"></div>
</div>
<p class="c64 c73 c192">A</p>
</label>

Steps to Reproduce (for bugs)

Navigate to https://material-ui-1dab0.firebaseapp.com/demos/selection-controls/

Inspect the mark-up for labelled Switch

Have that parsed by https://validator.w3.org

Context

This mark-up does not follow the HTML spec: Content model for element label and can cause issues for accessibility.

http://w3c.github.io/html/single-page.html#the-label-element

Phrasing content, but with no descendant labelable elements unless it is the element’s labeled control, and no descendant label elements.

Your Environment

Tech
Version

Material-UI
v1.0.0-beta.21

React
v15.6.1

browser
all

etc

Issue 2:
I've got my own material-ui fork in a folder, and I've run npm link so I can link it to a project I'm working on. This works fine, but I'm wondering how I can make changes to material-ui and then quickly test those in my project, without having to relink? I tried npm run build in the material-ui folder, but now I get this error in my project:

Uncaught TypeError: Cannot read property 'cyan500' of undefined

What should my process be?
Issue 1:
System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow):Yes

OS Platform and Distribution (e.g., Linux Ubuntu 16.04):Win 10

TensorFlow installed from (source or binary):binary

TensorFlow version (use command below):2.0.0-alpha0

Python version:3.6

Describe the current behavior

The value estimate became an array instead of scalar float after 8000+ steps

Describe the expected behavior

The value estimate should be a scalar float

Code to reproduce the issue

https://github.com/SetoKaiba/ml-agents/tree/tf2

Other info / logs

After some deep dig, I found the problem is here. It uses the tf session to estimate the value. The value became an array instead of scalar float after 8000+ steps

https://github.com/SetoKaiba/ml-agents/blob/tf2/ml-agents/mlagents/trainers/ppo/policy.py#L198

Issue 2:
System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow):Yes

OS Platform and Distribution (e.g., Linux Ubuntu 16.04):Win 10

TensorFlow installed from (source or binary):binary

TensorFlow version (use command below):2.0.0-alpha0

Python version:3.6

Describe the current behavior

The session return an ndarray [[value_estimate]] instead of value_estimate.

Describe the expected behavior

The session should return a scalar float. Just value_estimate. It should not be in an ndarray.

Workaround: get the actual scalar float in the ndarray if it is not a float

https://github.com/SetoKaiba/ml-agents/blob/tf2/ml-agents/mlagents/trainers/ppo/policy.py#L199-L200

if not isinstance(value_estimate, float):
value_estimate = value_estimate[0][0]

Code to reproduce the issue

https://github.com/SetoKaiba/ml-agents/blob/tf2/ml-agents/mlagents/trainers/ppo/policy.py#L199-L200

The problem can be reproduced without the two lines workaround.

Other info / logs

The value_estimate is calculated by the session and model.value. Code is lines below.

https://github.com/SetoKaiba/ml-agents/blob/tf2/ml-agents/mlagents/trainers/ppo/policy.py#L198

value_estimate = self.sess.run(self.model.value, feed_dict)

self.model.value is defined like this. The previous layer is dense layer with one units.

And the tf.identity should just return a scalar float.

The code is running correctly in TF 1.x.

But it's working incorrectly in TF 2.0.

https://github.com/SetoKaiba/ml-agents/blob/tf2/ml-agents/mlagents/trainers/models.py#L298-L299

value = tf.layers.dense(hidden_value, 1, activation=None)
self.value = tf.identity(value, name="value_estimate")
Issue 1:
Apache Airflow version

2.2.0b2 (beta snapshot)

Operating System

ubuntu 20.04

Versions of Apache Airflow Providers

n/a

Deployment

Virtualenv installation

Deployment details

pip install /path/to/airflow/src

What happened

Given any DAG initialized with: schedule_interval=None

Run airflow dags test mydagname $(date +%Y-%m-%d) and get an error:

INFO - No run dates were found for the given dates and dag interval.

This behavior changed in #15397, it used to trigger a backfill dagrun at the given date.

What you expected to happen

I expected a backfill dagrun with the given date, regardless of whether it fit into the schedule_interval.

If AIP-39 made that an unrealistic expectation, then I'd hope for some way to define unscheduled dags which can still be tested from the command line (which, so far as I know, is the fastest way to iterate on a DAG.).

As it is, I keep changing schedule_interval back and forth depending on whether I want to iterate via astro dev start (which tolerates None but does superfluous work if the dag is scheduled) or via airflow dags test ... (which doesn't tolerate None).

How to reproduce

Initialize a DAG with: schedule_interval=None and run it via airflow dags test mydagname $(date +%Y-%m-%d)

Anything else

No response

Are you willing to submit PR?

Yes I am willing to submit a PR!

Code of Conduct

I agree to follow this project's Code of Conduct

Issue 2:
Running the scheduler used to spit out logs of information. It now spits out nothing other than the airflow header. Also, I am able to verify that when I put logging in airflow_local_settings that I get log messages output on the console.

Using commit edd0fd3
Issue 1:
This happens on several pages under the jQuery section.

Example:

http://www.freecodecamp.com/challenges/waypoint-target-elements-by-id-using-jquery

fccss <---- was expected

$(document).ready(function() {

$("button").addClass("animated bounce");

$(".well").addClass("animated shake");

});

fcces <---- was expected

Issue 2:
Challenge http://www.freecodecamp.com/challenges/waypoint-create-a-javascript-slot-machine has an issue.

The four Javascript slot machine exercises all display the JS section of the code incorrectly. Presumably fccss is supposed to be <script>, and likewise fcces is supposed to be </script>.
Issue 1:
**Glide Version : 3.6.1 _:

_Samsung Galaxy S4/Android 5.0.1:

Monitor call with Charles:

Hello,

For specific reasons, I have to change the cache folder, I did it with a glideModule extension :

public class GlideConfiguration implements GlideModule {
@Override
public void applyOptions(final Context context, GlideBuilder builder) {
builder.setDiskCache(new DiskCache.Factory() {

@Override
public DiskCache build() {
String dataDirPath = context.getApplicationInfo().dataDir;
File cacheLocation = new File(dataDirPath + "/media");
if(!cacheLocation.exists()) {
boolean success = cacheLocation.mkdirs();
if(success) System.out.println("build succeed");
}
return DiskLruCacheWrapper.get(cacheLocation, 20000000);
}
});
}

@Override
public void registerComponents(Context context, Glide glide) {

}
}

And I also need to rename my cached files, I did it with dowloadOnly(..) :

Glide.with(this)
.load("http://www.wired.com/wp-content/uploads/2015/09/google-logo.jpg")
.downloadOnly(new SimpleTarget<File>() {
@Override
public void onResourceReady(File resource, GlideAnimation<? super File> glideAnimation) {
File folder = resource.getParentFile();
if (folder.exists() && folder.isDirectory()) {
File newPath = new File(folder, "google-logo");
/*
NOTICE : renameTo change the filesystem path BUT NOT the File object
so resource.getPath() will return the OLD path
but resource.exists() return false while newPath.exists() return TRUE
so the file is changed as we want to.
*/
resource.renameTo(newPath);
}
}

});

while I'm in-app it works fine and will not call the web to find the image for each simple call with load(..).into(imageView);

But if I close or kill the app and relaunch it, the first call with code above is performed again.

Is there a way to make my changes persistent? Is there a cleaner way to do what I want? I need to be able to change both the location and the name of cached files.

Thanks !

Issue 2:
With Glide 4.0, the RequestOptions seems affected by ordering in API level 17.

It makes rounded corners cannot exist with fitCenter at the same time.

The following code will have a perfect scaled image but no rounded corner.

(Work perfectly on other version.)

RequestOptions options = new RequestOptions();
options.transform(roundedCorners);
options.fitCenter();
Issue 1:
Daniel Serodio opened SPR-8673 and commented

The reference manual in PDF form is missing all figures (diagrams)

http://static.springsource.org/spring/docs/3.0.6.RELEASE/spring-framework-reference/pdf/spring-framework-reference.pdf

eg. section "1.2 Modules" in page 27 of the PDF

Affects: 3.0.6

Issue Links:

#13158 pdf documentation doesn't contain images ("duplicates")

Issue 2:
Mark Pollack opened SPR-7792 and commented

It is very difficult to override any behavior on AnnotationMethodHandlerAdapter with a subclass. This class should be more open to extension and automatic configuration in the namespace.

Avoiding the use of the namespace the registration of a custom AnnotationMethodHandlerAdapter is also complicated by the fact that other parts of the framework need to be configured when the HandlerAdapter changes. These are typically done by the namespace handler for mvc, but as one can't register a custom HandlerAdapter in the namespace, one has to duplicate that non obvious configuration.

See

https://github.com/SpringSource/spring-data-document/tree/master/spring-data-document-core/src/main/java/org/springframework/data/document/web

for cut-n-paste extension of AnnotationMethodHandlerAdapter that I had created and its registration is done in

https://github.com/SpringSource/spring-data-document-examples/tree/master/myrestaurants-analytics/src/main/java/com/springone/myrestaurants/config

Affects: 3.0 GA
Issue 1:
Summary of the new feature/enhancement

My use for PowerToys run would be primarily as an app switcher, secondarily as an app launcher. Since the options to launch new instances also have the two context buttons, I have to press tab 3 times to get to the option to switch to the running instance.

There should be a setting that allows you to always prioritize the results which switch to already-running applications.

Issue 2:
Add a feature to Keyboard Manager, which would let people remap a single key to a shortcut.

Proposed technical implementation details (optional)