WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Challenge Waypoint: Add Placeholder Text to a Text Field has an issue.

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36.

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

My code:

<link href="http://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
.red-text {
color: red;
}

h2 {
font-family: Lobster, Monospace;
}

p {
font-size: 16px;
font-family: Monospace;
}

.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
border-radius: 50%;
}

.smaller-image {
width: 100px;
}
</style>

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

<p>Click here for <a href="#">cat photos</a>.</p>

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

<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>
<input type="text" placeholder="cat photo URL"/>

Issue 2:
Challenge Make a Person has an issue.

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

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

So, the problem is, the Class keyword is supported by the linter but not by the problem checker.

My code:

/*jshint esversion: 6 */

class Person {
constructor(full){
// attemped fudge for old-school classes:
this.tercero = 0;
this.quarto = 0;
this.quinto = 0;
this.sexto = 0;
//
[this.first, this.last] = full.split(' ')
}
getFirstName() { return this.first }
getLastName() { return this.last }
getFullName() { return `${this.first} ${this.last}` }
setFirstName(first) { this.first = first }
setLastName(last) { this.last = last }
setFullName(full) { [this.first, this.last] = full.split(' ') }
}

var bob = new Person('Bob Ross');
Object.keys(bob).length
bob.getFullName();
Issue 1:
#6656

This might be a larger problem with the peek feature.

Issue 2:
I have several issues with it:

it appears that it at least partially ignores the configuration of the named task in the tasks.json. For example, if I have a task watch:scss with "showOutput": "never" there - running it manually doesn't invoke new tab with output, but if I also add it to launch.json via "preLaunchTask": "watch:scss" - it opens output every time I re/launch the app. However it seems that it does respect the isWatching flag, since it doesn't start the app until I terminate the task manually if the setting is false/omitted or it does start the app if the setting is set to true.

if the task is a persistent one ("isWatching": true) relaunching the app prompts me to terminate the already running one. And it doesn't start the app right away if I chose to terminate it in the prompt - I need to run it again. Which is annoying as hell as you can imagine. There should be an additional setting for either silently restarting the preLaunchTask or silently skip the task launch and assuming that the already running should run until the end of the current session. And/or there should be a default based on the either - in any case prompting is not an option.

preLaunchTask is hardly present in the documentation at all. I think many more people would complain if they just knew that this option even exist...

thanks in advance.
Issue 1:
var a: Greeter = new Greeter();

alert(typeof(a));

why is "Object" , rather than "Greeter" ?

TypeScript Version:

1.7.5 / 1.8.0-beta / nightly (1.9.0-dev.20160217)

Code

// A self-contained demonstration of the problem follows...

Expected behavior:

Actual behavior:

Issue 2:
There are a few issues when using Ctrl+, functionality.

Massive duplicated results:

It happens in .ts and .tsx files for any kind of symbol (class, variable, method,...)

Imported Symbols

Imported symbols should not be shown, or at least shown at the end of the list.

Current results:

Expected results:
Issue 1:
Loving Vue JS - great job!

I have a weird problem though with FastClick when being used with it. Events are firing, I';m listening for "click" accurately, Vue JS is not bothered by it, until I try and set the data from the event to an object that is data-bound. It's almost like it doesn't update the rendering of the view for that binding.

The full use-case is I have an exercise selector component, where you select the exercise and then that exercise gets used in an input element on the previous screen. This all works fine until I use FastClick, and again the issue appears to be just the data-binding bit. Everything else is working fine.

Quite odd.

What's even weirder is that if I duplicate that exercise that has the selected exercise in it, then it shows up in the duplicated exercise in the array, but not the original. It's like the original isn't being rendered or hasn't detected a change.

Issue 2:
Version

2.2.6

Reproduction link

http://codepen.io/anon/pen/WGyrdz

Steps to reproduce

Open the codepen with MS Edge devtools open

What is expected?

No warning. When you execute el.outerHTML within vuejs while the element is being mounted, you will see that the class attribute is duplicated.

What is actually happening?

A warning (duplicate attribute class)

This has been dealt with in #3929 already but it seems that MS Edge 38 is not correctly handled.
Issue 1:
body.modal-open,
.modal-open .navbar-fixed-top,
.modal-open .navbar-fixed-bottom {
margin-right: 15px;
margin-right: 0: // fix
}

In my individual use case, and over on the (getbootstrap.com)[http://getbootstrap.com/javascript/#modals] docs, the above CSS is causing an unnecessary margin change on body and fixed nav bars. Removing it or setting it to 0 fixes the issue.

Issue 2:
When launching the modal component (http://getbootstrap.com/javascript/#modals) the entire content will slightly move to the left on mac OS (haven't tried it on windows yet). With the active modal the scrollbar seem to disappear, while the content width still changes.

You can observer the problem on the bootstrap page
Issue 1:
System Info

transformers version: 4.17.0

Python version: 3.7.0

torch version: 1.10.1

Who can help?

No response

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

CLIP(https://github.com/huggingface/transformers/tree/main/examples/pytorch/contrastive-image-text).

I have implemented a Dataset to train, but i have found that after each epoch the training loss will drop suddenly. The Dataset overrides three methods(init, getitem and len) and i couldn't figure out the reason for the above phenomenon.

I think the data is shuffled properly(checked) and the learning_rate drops smoothly(observed).

I would appreciate it if you could afford time to help me.

The picture is drawn according to the trainer_state.json

Expected behavior

Figure out the reason.

Issue 2:
System Info

transformers version: 4.27.0.dev0

Platform: Windows-10-10.0.19044-SP0

Python version: 3.10.4

Huggingface_hub version: 0.12.0

PyTorch version (GPU?): 1.13.1+cpu (False)

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?: No

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

Who can help?

@gante I believe.

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

Install transformers

Run the following script

from transformers import pipeline

summarizer = pipeline("summarization", max_new_tokens=50)

prompt = "text to summarize"
summary = summarizer(prompt)

It crashes with the following error:

ValueError: Both max_new_tokens and max_length have been set but they serve the same purpose -- setting a limit to the generated output length. Remove one of those arguments. Please refer to the documentation for more information. (https://huggingface.co/docs/transformers/main/en/main_classes/text_generation)

Expected behavior

Expected behavior is that the script should run. I only set max_new_tokens and not max_length.

This might seem like a duplicate of #20894 but the issue persists even after installing the latest version of transformers with the fix for that issue.
Issue 1:
Hi,

Version: VS 2015 / TS 1.5.4

To reproduce:

Set "Redirect JavaScript output to directory" to say bin.

Set "Generate declarations files".

Set "Compile on save".

Add file _references.ts to the project, with content

/// <reference path='../../foo/bar1/bin/bar1.d.ts' />
/// <reference path='../../foo/bar2/bin/bar2.d.ts' />

Build the project and check the output directory. The content of _references.d.ts should be

/// <reference path="../../../foo/bar1/bin/bar1.d.ts' />
/// <reference path="../../../foo/bar1/bin/bar2.d.ts' />

Now modify one file in the project and trigger compile-on-save by saving the file. Now the content of the same file should have changed to

/// <reference path="d:/x/y/z/foo/bar1/bin/bar1.d.ts' />
/// <reference path="d:/x/y/z/foo/bar1/bin/bar2.d.ts' />

This together with #4245 appears to be a regression introduced in the fix for #3939.

This is interfering with some systems we have in place.

Issue 2:
As reported by @licinioamendes in #2152 (comment):

Would be nice allow VS macros for build commands.

The result would be something like $(ProjectDir)outputDirectoryPath on textbox.

Also note that this is working in VS2013 but not in VS2015.
Issue 1:
Migrated issue, originally created by Ye Wang (@ye)

I am running into two issues with Union today using SQLAlchemy with MySQL.

Here is the iPython session output.

In [1]: from models.schedules import *

In [2]: from models.products import *

In [3]: from models.users import *

In [4]: query = db.session.query(Appointment)

In [5]: q_member = query.join(Schedule).join(User).filter(
User.last_name == 'Smith')

In [6]: q_practitioner = query.join(Product).join(User).filter(
User.last_name == 'Smith')

In [7]: q_member.count()
Out[7]: 135

In [8]: q_practitioner.count()
Out[8]: 277

In [9]: q_member.union(q_practitioner)
Out[9]: <sqlalchemy.orm.query.Query at 0x7f72307845f8>

In [10]: q_member.union(q_practitioner).count()
Out[10]: 388

In [11]: q_member.union(q_practitioner).scalar()
---------------------------------------------------------------------------
MultipleResultsFound Traceback (most recent call last)
<ipython-input-11-0456717d8d59> in <module>()
----> 1 q_member.union(q_practitioner).scalar()

/usr/local/lib/python3.4/site-packages/sqlalchemy/orm/query.py in scalar(self)
2622 try:
-> 2623 ret = self.one()
2624 if not isinstance(ret, tuple):
2625 return ret

/usr/local/lib/python3.4/site-packages/sqlalchemy/orm/query.py in one(self)
2599 else:
2600 raise orm_exc.MultipleResultsFound(
-> 2601 "Multiple rows were found for one()")
2602
2603 def scalar(self):

MultipleResultsFound: Multiple rows were found for one()

In [12]: sqlalchemy.__version__
Out[12]: '0.9.11'

The .union() call returns duplicated rows, as you can see above 135+277 > 388. This is violating MySQL's SELECT UNION statement syntax in that UNION DISTINCT is the default. (only UNION ALL allows duplicate rows) http://dev.mysql.com/doc/refman/5.6/en/union.html

Calling .scalar() on a union'd query object gets MultipleResultsFound exception

Issue 2:
Migrated issue, originally created by Anonymous

The problem doesn't occurs using pymsqldb, but, pymssqldb has many problems with unicode :(

When Lazy=True the problem doesn't occurs too !

Attachments: mssql-orderby.patch | test_orderby.py | monkeypatch_orderby.py
Issue 1:
Describe the bug

In version 131, fbx files are loaded without textures.

To Reproduce

Steps to reproduce the behavior:

extract attached file

run index.html

reproduce file is below

Code

let character = await new Promise((res,rej)=>{
new FBXLoader().load('ArcherRi01.FBX', newChar=>res(newChar));
});

Live example

nothing

Expected behavior

loaded without texture

Screenshots

Platform:

Device: [Desktop, Mobile]

OS: [Windows, MacOS, Linux, Android, iOS]

Browser: [Chrome, Firefox, Safari, Edge]

Three.js version: [dev, r131]

Issue 2:
FBXLoader doesn't load textures,

I tried swapping out the threejs lib in the node modules to an older one (a month old) and it works,

so some update happened which either broke it or changed the way it works?

Import:

import { FBXLoader } from "three/examples/jsm/loaders/FBXLoader";

Code:

loadFBXModel(path, modelFile, pos = [0, 0, 0], size = 0.1) {
const loader = new FBXLoader();
loader.setPath(path);
loader.load(modelFile, (fbx) => {
fbx.scale.setScalar(size);
fbx.traverse((c) => {
c.castShadow = true;
});
fbx.position.copy(new THREE.Vector3(...pos));
this._scene.add(fbx);
});
}

how it is with older version:

how it is in the current version:
Issue 1:
Migrated issue, originally created by Alex Rothberg

Right now startswith uses LIKE. It would be good if there were a flag it took that would use ILIKE. The same would be good of the contains operator.

Issue 2:
Migrated issue, originally created by jvanasco (@jvanasco)

discussed previously in

https://groups.google.com/forum/#!searchin/sqlalchemy/icontains/sqlalchemy/MUyt8zYaP0c/ht4fGR9q9w8J

https://groups.google.com/forum/#!searchin/sqlalchemy/icontains/sqlalchemy/331XoToT4lk/RPjIYNTkSEIJ

I tried doing this myself, but don't know enough of the internals to get this done on my own.

it looks like these need to be modified

sqlalchemy/sql/default_comparator.py

sqlalchemy/sql/operators.py

but not sure about

sqlalchemy/sql/compiler.py

there are probably more files.

if someone can get one working, I can do the rest and build out tests.
Issue 1:
I know this is out of spec, but it would be very nice to add support for Elvis operator in playground.

object?.property // object && object.property
foo?() // foo && foo()

Issue 2:
Making an issue here to track the work that needs to be done for the new @babel/eslint-* packages for the v8 release.

@babel/eslint-parser (taken from https://github.com/babel/babel-eslint/milestone/1):

add support for preset & plugins in babelOptions We can add this in a later minor version if need be.

11.0.0-beta.0 - Private class methods no-undef error This is not an issue specific to babel-eslint since the error is being thrown by @babel-core and the example code doesn't compile either.

11.0.0-beta.0 - Private Instance Methods - Parsing error: params is not iterable - Dupe of #9506 #10914

11.0.0-beta.0 - Typescript interface/type no-undef error I don't think we should consider this a blocker for v8, since TS support is currently fairly limited. I think it makes sense to focus on making TS support more robust in the future, though I'm still of the mind that folks should just use typescript-eslint.

Doesn't work with custom parser through parserOverride I don't think we should consider this a blocker for v8.

@babel/eslint-plugin

#10904

Ensure ClassPrivateProperty works correctly with no-unused-vars and no-undef. #10913

Can we create a shared config that enables the parser and corresponding rules automatically? I no longer think this is a good idea because ESLint doesn't provide any runtime hooks to see what the user has configured. Turning off incompatible rules works, but we can't enable the corresponding rule in our plugin.

Audit current rules to see if they need to exist. #10975 #10977

Remove deprecated rules? #10975

Figure out how we can be more proactive rather than reactive. Run core rules over fixtures that contain new experimental syntax? Fuzzer?

babel/babel-eslint#814

@babel/parser

Update ESTree plugin to output spec-compliant AST

RegExpLiteral is not converted to Literal in an edge case

Please feel free to edit this comment or discuss below.
Issue 1:
I create a table like Table wich contains

CheckBox Name LastName.

When I translate from one page to another I find that the headers Name and LastName translate from one page to another due to the length of their strings.

I added a style for TableCell :

width: 40%

But this doesn't solve the problem. How can I fix the headers columns to not translate from one page to another due the length of strings?

Tech
Version

Material-UI
1.0.0-beta.16

React
15.6.2

browser
Chrome

etc

Issue 2:
For Fixing table Head in material 1.0.0 11 alpha

I have a table with scrolling rows but I am not able to fix the header.

Is there a property to do so as fixedHeader was in material 0.15 and up but there doesnt seem to be something similar in 1.0.0 version

Versions

Material-UI: 1.0.0-alpha 11

React: 15.4.2
Issue 1:
[ x] I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

Clarify the section in the docs explaining the static folder convention and how it is handled by next. The docs should emphasize that static assets must be put in the static dir.

Current Behavior

I only discovered that static assets had to come from the static dir after running into problems and then poring over many GH issues.

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

Expected Behavior

Following the custom-server-hapi example with hapi's latest release should work.

Current Behavior

I came across two issues when trying to implement a custom hapi 17 server.

The server.connection method was removed in favor of passing the connection props to the server's constructor I fixed it like this:

//BEFORE

app.prepare()
.then(() => {
server.connection({ port })
server.register(pluginOptions)
.then(() => {
server.route({
method: 'GET',
path: '/{p*}', /* catch all route */
handler: defaultHandlerWrapper(app)
})

server.start().catch(error => {
console.log('Error starting server')
console.log(error)
}).then(() => {
console.log(`> Ready on http://localhost:${port}`)
})
})
})

//AFTER

app.prepare().then(() => {
const server = new Hapi.Server({ host, port });
server.route({
method: 'GET',
path: '/{p*}' /* catch all route */,
handler: defaultHandlerWrapper(app)
});
server.start(err => {
if (err) throw err;
console.log(`> Ready on http://${host}:${port}`);
});
});

The defaultHandlerWrapper was throwing this error UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: x): Cannot set headers after they are sent to the client. I fixed it like this:

//BEFORE

const defaultHandlerWrapper = app => {
const handler = app.getRequestHandler()
return ({ raw, url }, hapiReply) =>
handler(raw.req, raw.res, url)
.then(() => {
hapiReply.close(false)
})
}

//AFTER

const { parse } = require('url');
const defaultHandlerWrapper = app => (
{ raw: { req, res }, url },
hapiReply
) => {
const parsedUrl = parse(url, true);
const { pathname, query } = parsedUrl;
return app.renderToHTML(req, res, pathname, query).then(hapiReply);
};

Context

While following the custom-server-hapi example using the latest release of Hapi, I came across the issues described above. I managed to have it working by applying the fixes I attached to this issue. If this all makes sense I'm hapi (pun intended) to send a PR.

Your Environment

Tech
Version

next
4.1.4

node
9.2.0

OS
Linux hal9000 4.13.12-1-ARCH 1 SMP PREEMPT Wed Nov 8 11:54:06 CET 2017 x86_64 GNU/Linux

hapi
17.0.2
Issue 1:
My apologies if this is the wrong venue. It wasn't clear from the contributors guidelines whether issues are a suitable place for questions/feature-requests, and when I asked via the community chat room and the usual places I didn't get much engagement.

Does Deno have a supported-or-experimental way to track the creation of asynchronous contexts? I see async_hooks isn't something you'll be implementing -- at least until Node lands a non-experimental version of it.

The specific use-case I have in mind is an OpenTelementry context manager, but I'm also thinking of other Application Performance Monitoring use-cases where we're trying to tie multiple asynchronous actions to a single scope (scope meaning a single HTTP request, or a single GRPC method invocation, etc.)

Also, FWIW, the usual cowboy way APM vendors would handle this doesn't look like it's possible in Deno -- redefining the global Promise doesn't carry over when you import other modules. Probably "the right" behavior, but it does seem to make our usual monkey patching not possible.

Is this something that's on the roadmap and/or people's minds? "No" is a perfectly acceptable answer, I'm just trying to get the lay of the land before I go down one particular road or the other.

Issue 2:
Hey,

One of the features Node uses from V8 is promise hooks and in particular Node's async_hooks lets users keep context enabling a lot of use cases (like APMs).

I saw the last issue but it doesn't look like there was a lot of discussion there. As far as I'm aware there is no analogy in the DOM/browser world for this. When I talked to some tooling people in browser vendors they said they were not aware of a direct analogy.

I would recommend (barring actual discussions with APM vendors or telling users to use a user promise library and instrumenting its scheduler):

Exposing SetPromiseHook pretty directly and letting users and vendors deal with it.

Exposing an async_hooks like API - possibly based on Zones (or hopefully another web proposal).

Exposing only the node async hooks API under std/node.

Wait for vendors and complain and not solve it until APM vendors or users complain (then use their feedback to pick an API).

Something else entirely.

It's true async_hooks are experimental and domains are deprecated but without neither - it is pretty impossible to build an APM for Node. You have to instrument methods to know "where you came from" in an async context and APMs are pretty valuable tools.
Issue 1:
Example use case: I allocate a buffer, and put multiple things using out= into the buffer (with views). Naturally I don't want any one of them to resize storage. But currently it's hard to make sure.

cc @colesbury @ezyang

Issue 2:
I want to implement linear regression in Pytorch with sparse connections. To build such a network I cannot use nn.Linear because it is a densely connected layer. I have first tried to make a binary matrix with 0 and 1 to indicate the presence and absence of connections. But it won't work in my case because it is not computationally efficient. I am looking for a sparse weight matrix or sparse linear layer type solutions. I would be really grateful if someone would help me in this regard. I have attached a screenshot also to explain what I'm trying to do.
Issue 1:
This commit implements a fully-automated development setup using Gitpod.io, an

online IDE for GitLab, GitHub, and Bitbucket that enables Dev-Environments-As-Code.

This makes it easy for anyone to get a ready-to-code workspace for any branch,

issue or pull request almost instantly with a single click.

Thanks for the help and efforts, please remove all api's and reset my accounts and balance to zero (0). Since, I was bugged or hacked.

Originally posted by @F0o0De in SocketCluster/socketcluster#545

Issue 2:
Remove all my api’s and reset all my accounts and balance to zero. Since, I was bugged and hacked.

Thank you I really appreciate all the hard work and effort.