WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Challenge store-data-with-sass-variables has an issue.

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

To reproduce issue just copy/paste included code into page with challenge and run it,

Same code in jsfiddle:

<style>
$text-color: red;

.header{
text-align: center;

}
.blog-post, h2{
color: $text-color;
}
</style>

<h1 class="header">Learn Sass</h1>
<div class="blog-post">
<h2>Some random title</h2>
<p>This is a paragraph with some random text in it</p>
</div>
<div class="blog-post">
<h2>Header #2</h2>
<p>Here is some more random text.</p>
</div>
<div class="blog-post">
<h2>Here is another header</h2>
<p>Even more random text within a paragraph</p>
</div>

edited: attached screenshot

edited-2: attached jsfiddle

edited-3: added "edited" part at the end

Issue 2:
Challenge storing-data-with-sass-variables has an issue.

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

<style>
$text-color: red;

.header{
text-align: center;
}
.blog-post h2 {
color: $text-color;
}
</style>

<h1 class="header">Learn Sass</h1>
<div class="blog-post">
<h2>Some random title</h2>
<p>This is a paragraph with some random text in it</p>
</div>
<div class="blog-post">
<h2>Header #2</h2>
<p>Here is some more random text.</p>
</div>
<div class="blog-post">
<h2>Here is another header</h2>
<p>Even more random text within a paragraph</p>
</div>

Hello Everyone, I think I found a bug in the challenge Storing Data With Sass Variables. I think I did everything right, but the h2 and the .blog-post elements colour doesn't change to red. I pass two of the user stories but not these:

Your .blog-post element should have a color of red.

Your h2 elements should have a color of red.

It also doesn't change red. But it passes the user stories:

Your code should have a Sass variable declared for $text-color with a value of red.

Your code should use the $text-color variable to change the color for the .blog-post and h2 items

Thank you in advance, and the new things in Beta seem amazing keep up the great work! Can't wait to work through more of them! 👍
Issue 1:
Challenge use-css-selectors-to-style-elements has an issue.

User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0.

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

<style>
h2{color:blue;}
</style>
<h2>CatPhotoApp</h2>
<main>
<p>Click here to view more <a href="#">cat photos</a>.</p>

<a href="#"><img src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back."></a>

<div>
<p>Things cats love:</p>
<ul>
<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>
</div>

<form action="/submit-cat-photo">
<label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
<label><input type="radio" name="indoor-outdoor"> Outdoor</label><br>
<label><input type="checkbox" name="personality" checked> Loving</label>
<label><input type="checkbox" name="personality"> Lazy</label>
<label><input type="checkbox" name="personality"> Energetic</label><br>
<input type="text" placeholder="cat photo URL" required>
<button type="submit">Submit</button>
</form>
</main>

Issue 2:
Challenge http://freecodecamp.com/challenges/waypoint-change-the-css-of-an-element-using-jquery has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

all jquery exercises constantly refreshes the page , couple of seconds later you passed the test popup shows up even though i cant change the code because of the refreshing issue.

If document.ready is present in the code deleting one letter of it solves the issue temporarily
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: dubbo2.7.1

Operating System version: windows 10

Java version: java 8

Steps to reproduce this issue

dubbo 2.5.3版本下自定义扩展Invoker

升级dubbo版本至2.7.1

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

Expected Result

What do you expected from the above [steps？]

dubbo 2.5.3版本下自定义扩展Invoker，在dubbo2.7.1环境下运行，消费端直接返回null，这里default invoke方法应该调用接口定义的老版本invoke方法

Actual Result

What actually happens?

return null

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

Operating System version: xxx

Java version: xxx

Steps to reproduce this issue

how config dubbo(x) to support websocket,I've tried many methods, but didn't work.

don't know how to config rest easy to support it.
Issue 1:
Julia version: 0.4.6 - 0.6.0,

OS: Ubuntu

try run the following buggy code in repl:

a=zeros(10000000)
a[a.==1,1:2]

then the screen is flooded with red false for a while. Maybe it not very helpful dumping such a large array?

In addition (separate issue?), if press ctrl+c in the middle of printing, julia will crash with

SYSTEM: show(lasterr) caused an error
ERROR: InterruptException:
in print_response(::Base.Terminals.TTYTerminal, ::Any, ::Array{Ptr{Void},1}, ::Bool, ::Bool, ::Void) at ./REPL.jl:176
in print_response(::Base.REPL.LineEditREPL, ::Any, ::Array{Ptr{Void},1}, ::Bool, ::Bool) at ./REPL.jl:141
in (::Base.REPL.##22#23{Bool,Base.REPL.##33#42{Base.REPL.LineEditREPL,Base.REPL.REPLHistoryProvider},Base.REPL.LineEditREPL,Base.LineEdit.Prompt})(::Base.LineEdit.MIState, ::Base.AbstractIOBuffer{Array{UInt8,1}}, ::Bool) at ./REPL.jl:654
in run_interface(::Base.Terminals.TTYTerminal, ::Base.LineEdit.ModalInterface) at ./LineEdit.jl:1579
in run_frontend(::Base.REPL.LineEditREPL, ::Base.REPL.REPLBackendRef) at ./REPL.jl:931
in run_repl(::Base.REPL.LineEditREPL, ::Base.##926#927) at ./REPL.jl:190
in _start() at ./client.jl:368

Issue 2:
For BoundsError, the entire index is printed even if it is a large array. Example:

julia> [][[true for i=1:100]]
ERROR: BoundsError: attempt to access 0-element Array{Any,1}
at index [true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true]
in throw_boundserror at ./abstractarray.jl:147
[inlined code] from ./abstractarray.jl:154
in anonymous at ./no file:4294967295
in eval at ./boot.jl:265

I got trapped several times filtering a million-line DataFrame and forgetting the second dimension (like df[df[:X] .== x]), but the issue doesn't seem to be specific to DataFrames.
Issue 1:
Hi we have many use cases where Twitter Bootstrap is only part of the page's design. Jquery plugins, custom code, legacy templates, etc etc all collide with Twitter Bootstrap's css. There should be an option to prefix the css for Twitter Bootstrap so that the scope is limited on page. Thank you!

Issue 2:
To prevent random mixing of styles maybe we should use prefix?

For example, .tb-span6 or .tb-row instead .span6 or .row?

.menu, .navbar is so common class names so it may a little confusing without prefix
Issue 1:
Description

I'm currently migrating an API to FastAPI and I'm trying to prevent too many changes regarding how you call the API. To filter on the old API you'd pass a json serialized complex dict(with nested dicts and lists in it) as a query parameter and this would then be deserialized and parsed to create the filter. I can make this work in FastAPI as well, but this means I have to call json.loads(filter_) in every route that uses it, and it kind of feels like there is a way to declare a custom type that does this for me.

On a similar note: the old API had comma separated lists. For example: ?columns=id,name,email. If I define something as a list in FastAPI right now I have to pass it this: ?columns=id&columns=name&columns=email which seems really verbose for my usecase(I can see it being useful if your data would potentially contain a "," though), so I'd like to write a custom parser for that as well(although iirc OpenAPI has support for this way of defining lists already somewhere).

Could you help point me in the right direction on how to solve these issues?

Issue 2:
First Check

I added a very descriptive title to this issue.

I used the GitHub search to find a similar issue and didn't find it.

I searched the FastAPI documentation, with the integrated search.

I already searched in Google "How to X in FastAPI" and didn't find any information.

I already read and followed all the tutorial in the docs and didn't find an answer.

I already checked if it is not related to FastAPI but to Pydantic.

I already checked if it is not related to FastAPI but to Swagger UI.

I already checked if it is not related to FastAPI but to ReDoc.

Commit to Help

I commit to help with one of those options 👆

Example Code

import uvicorn
from fastapi import FastAPI, Depends
from pydantic import BaseModel, StrictInt

app = FastAPI()

class Model(BaseModel):
foo: StrictInt
bar: StrictInt

def dependency(request: Model):
return request.foo + request.bar

@app.post("/")
def foo(request: Model, processed_data: int = Depends(dependency)):
return "hello"

uvicorn.run(app, port=8000)

Description

I'm trying to make some request data postprocessing using FastAPI dependency.

It works fine, but seems like data from request is dumped into Pydantic model multiple times. It leads to some overhead and excessive validation errors if any.

For example, following request:

$ curl --location --request POST 'http://localhost:8000' --header 'Content-Type: application/json' --data-raw '{"bar": 2}'

Will produce following error:

{
"detail": [
{
"loc": [
"body",
"foo"
],
"msg": "field required",
"type": "value_error.missing"
},
{
"loc": [
"body",
"foo"
],
"msg": "field required",
"type": "value_error.missing"
}
]
}

which looks weird.

Is there a correct way of doing this stuff using Pydantic models in methods declaration?

Operating System

Linux

Operating System Details

No response

FastAPI Version

0.68.1

Python Version

3.9.5

Additional Context

No response
Issue 1:
The state variable is named 'var', but it is referred as 'state' afterwards.

Changing this:

new_value = tf.add(state, one)

update = tf.assign(state, new_value)

To this:

new_value = tf.add(var, one)

update = tf.assign(var, new_value)

Solves the problem.

Issue 2:
In http://tensorflow.org/get_started/basic_usage.md#variables

the variable in the example is initialized as var, then subsequently referred to as state

leading to an obvious NameError:

Traceback (most recent call last):
File "./variables.py", line 8, in <module>
new_value = tf.add(state, one)
NameError: name 'state' is not defined
Issue 1:
Version

2.6.4

Reproduction link

https://gist.github.com/DominusVilicus/f825d90575fccd6d437b02061c725a91 (code-sandbox doesn't allow import())

Steps to reproduce

export default {
render(h){
return h(import('./comp'))
}
}

Results in an infinite loop that stops the browser tab from working (chrome). Just need to do vue create app, and create two components, and then use them in the App.vue

export default {
computed:{
component(){
return () => import('./comp')
}
},
render(h){
return h(this.component)
}
}

works fine however

comp.vue

<template>
<pre>Hello World</pre>
</template>

What is expected?

Returning the imported component in h(import('./comp')) should render the async component

What is actually happening?

It's going in an infinite loop (try put console.log('test') in render()

Issue 2:
What problem does this feature solve?

We have a Mobile build and a Web build, and we want to add a directive mobile or web to components/elements so that they only get included into the bundle if they are built with the respective flags / env.

Currently we are doing this via a vue-cli plugin which executes preprocess on the template (using a custom loader). We tried using directives and modules in compilerOptions instead, as this seemed safer and more idiomatic, however we were unable to remove elements using any of the callbacks.

What does the proposed API look like?

We tried returning null and {} and even { type: 3, text: "", isComment: true } from preTransformNode (and transformNode), but it just resulted in various errors. We also tried changing el.parent.children which didn't yield any results.

I think having the element just be removed when returning null from preTransformNode would be great, if that is possible.
Issue 1:
I have been looking for how to solve this problem, but i couldn't find any how to solve it.

When i used Thai Characters and run on iOS and Android. They displayed wrongly always. How can i solve this problem? I use current version (Beta 2 v 0.2.8)

Issue 2:
Issue by eseidelGoogle

Tuesday Aug 18, 2015 at 18:10 GMT

Originally opened as https://github.com/flutter/engine/issues/674

Maybe there is a Play Store API we can hook into? Maybe we need to build our own (or presumably there is a third party solution?) Difficult to know when users hit Dart exceptions in our apps.

Others must have solved this...

@abarth @collinjackson
Issue 1:
Description of the new feature/enhancement

It would be helpful to be able to duplicate an open tab.

Use Case:

I am going into a repo that has two npm scripts, one to run the frontend and one to run the backend. So I run npm run frontend, great my frontend server is running. Now I want to go into the same folder on a second terminal window and run the other command npm run backend.

Right now I would need to open a new window and manually navigate to the window. It would be very convenient to either right-click in the terminal or on the terminal-tab and have a "duplicate tab" option which opens a new tab in the same folder as the duplicated tab.

Issue 2:
On my 1909 RP PC the window frame size in 0.6 Terminal is much wider than it should be. I don't have this problem with my other machine running Insider.
Issue 1:
In browsers, sending large array buffers over postMessage, for example to a Worker, can be optimized by indicating that an ArrayBuffer (which is Transferable) should transfer ownership, instead of being cloned. See the transfer parameter to postMessage on MDN.

This does not appear to be working in Deno 1.12.2: const tmp = new Uint8Array(0); w.postMessage({ tmp }, [ tmp.buffer ]); throws DOMException: Value not transferable - yet const tmp = new Uint8Array(0); w.postMessage({ tmp }, [ ]); succeeds.

There is a related issue #8341, but it's far more broad - this issue is requesting only ArrayBuffer support, which is part of the spec all browsers implement.

Issue 2:
Related to #5965 (and possibly others)

It would be really nice if resources could be Transferable between web workers. This would allow for proper multi-threading for HTTP and WebSocket servers.

This can provide multiple benefits:

Isolated code exposure.

If someone finds a exploit it has a lower likelihood of affecting the entire server, only the worker it was executed on.

Load Balancing.

This allows for balancing across all cores. This could be useful in a number of situations. Now obviously you could just make a new worker for each request and then delete the worker upon completion, but it may be easier conceptually for a programmer to just transfer the connection.

Fault Tolerance.

You can use workers similar to Erlang for fault tolerance. It's easy enough to ensure workers are alive with heartbeats and if they are not you can kill them and re-instate. Would that kick any WebSockets (or any other connection)? Yes. But it is probably better to kick 10% of the server intentionally then for the server to kick 100% due to lag.

There are probably others but those are the reasons I can think of.

This is probably not high up on the priority board, but it would be very nice if only for the use case of WebSockets.
Issue 1:
Selecting Ubuntu isn't running in the terminal

OS: Windows 10

Terminal: Preview version

Issue 2:
Here's the scenarios:

No text in the interactive line. Active selection.

Text in the interactive line. Active selection.

Windows Terminal (before bugfix #647 )

Shell
Scenario 1
Scenario 2

CMD
selection cleared
Text and selection cleared

Powershell
selection active
text and selection cleared

Ubuntu
selection active
text and selection active

Windows Terminal (after bugfix #647 )

Shell
Scenario 1
Scenario 2

CMD
selection cleared
Text and selection cleared

Powershell
selection cleared
text and selection cleared

Ubuntu
selection cleared
selection cleared (pressing again DOES NOT clear text)

Individual shells

Shell
Scenario 1
Scenario 2

CMD
selection cleared
selection cleared (press again to clear text)

Powershell
selection cleared
selection cleared (press again to clear text)

Ubuntu
selection cleared
selection cleared (pressing again DOES NOT clear text)

I can probably match the "selection cleared (press again to clear text)" behavior. Is Ubuntu's behavior a bug though? I noticed that though pressing ESC again doesn't clear text, pressing backspace then clears the text (as opposed to just one character).
Issue 1:
Hello @eschutho @craig-rueda @hughhhh @michael-s-molina

When I want to run the Superset project directly from the github project instead of installing it in virtualenv, I get the following error.

Error Description: can't find 'main' module in 'superset'

Issue 2:
A clear and concise description of what the bug is.

Expected results

after add druid cluster, I click "refresh druid metadata" button, I wish the databases of druid cluster can merge into database.

Actual results

erro log:

Error while processing cluster 'zjy' (raised as a result of Query-invoked autoflush; consider using a session.no_autoflush block if this flush is occurring prematurely) (MySQLdb._exceptions.IntegrityError) (1062, "Duplicate entry 'industrylevel2-2022' for key 'uq_columns_column_name'") [SQL: 'INSERT INTO columns (created_on, changed_on, column_name, verbose_name, is_active, type, groupby, count_distinct, sum, avg, max, min, filterable, description, datasource_id, dimension_spec_json, created_by_fk, changed_by_fk) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)'] [parameters: (datetime.datetime(2019, 6, 12, 15, 18, 13, 148434), datetime.datetime(2019, 6, 12, 15, 18, 13, 148443), 'industrylevel2', None, 1, 'STRING', 1, 0, 0, 0, 0, 0, 1, None, 2022, None, 1, 1)] (Background on this error at: http://sqlalche.me/e/gkpj)

Screenshots

my druid cluster conf:

superset view :

superset log:

How to reproduce the bug

Go to '...'

Click on '....'

Scroll down to '....'

See error

Environment

(please complete the following information):

CentoOS 6.3

superset version: superset version === 0.28.1

python version: python --version === 3.6.8

node.js version: node -v

npm version: npm -v

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

Add any other context about the problem here.
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-SNAPSHOT

Operating System version: macos

Java version: 1.8.0_131

Steps to reproduce this issue

We could run the following UT, then we could find the issue:

ApplicationConfig application = new ApplicationConfig("provider");

ServiceConfig<DemoService> service = new ServiceConfig<DemoService>();
service.setProtocol(new ProtocolConfig("dubbo", 20880));
service.setRegistry(new RegistryConfig(RegistryConfig.NO_AVAILABLE));
service.setInterface(DemoService.class);
service.setRef(new DemoServiceImpl());

ConsumerConfig consumer = new ConsumerConfig();
consumer.setLazy(true);

ReferenceConfig<DemoService> reference = new ReferenceConfig<DemoService>();
reference.setConsumer(consumer);
reference.setRegistry(new RegistryConfig(RegistryConfig.NO_AVAILABLE));
reference.setInterface(DemoService.class);
reference.setUrl("dubbo://" + NetUtils.getLocalHost() + ":20880?" + DemoService.class.getName());

DubboBootstrap bootstrap = DubboBootstrap.getInstance()
.application(application)
.service(service)
.reference(reference)
.start();

Assert.assertEquals("true", reference.toUrls().get(0).getParameter("lazy"));

Expected Result

Expected "lazy" : true

Actual Result

Actual "lazy": false

Issue 2:
Write an UT to verify removal of TIMEOUT_FILTER_START_TIME attachement in case if exception occurs

in dubbo-rpc/dubbo-rpc-api/src/main/java/org/apache/dubbo/rpc/filter/TimeoutFilter.java.

This task is an extension to add UT for PR #3174

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:
Bug report

What is the current behavior?

I have an app that imports both pixi.js and pixi-batch-renderer. pixi-batch-renderer imports classes from pixi.js as well.

The resulting bundle has two pixi.js instances - one from the ESM build (required from the app itself), and one from the CJS build (required from pixi-batch-renderer). (required means require() inside the bundle).

This should not be the case - webpack should only bundle the ESM version.

If the current behavior is a bug, please provide the steps to reproduce.

The full reproduction is here: https://github.com/SukantPal/webpack-duplicate-bundle

I've given more details there.

What is the expected behavior?

Only one version of pixi.js should be bundled.

Other relevant information:

webpack version: 4.42.0

Node.js version: 12.7.0

Operating System: macOS Catalina

Additional tools: N/A

Issue 2:
I am building a web app (React) in which I need to support multiple themes. The file structure is as follows. Each component has it's own directory containing all files that belong to the component.

Example:

ui-Avatar

|-- index.jsx

|-- theme-a.css

|-- theme-b.css

|-- ....

When using webpack-dev-server I can quite easily use a conditional require and pull in either theme-a or theme-b.

onComponentWillMount() {

if (this.context.theme === 'theme-a') {

require('./theme-a.css');

else (this.context.theme === 'theme-b') {

require('./theme-b.css');

}

}

BUT when I use web pack to package for the production server both theme-a.css and theme-b.css get pulled in and packaged into the same resulting css file. With the result that the style rules in the themes overwrite each other.

What I would like is to be able to produce separate files for the two themes with the collected theme snippets from all the components in the application.

Does anyone know how to set up webpack to solve my problem?