WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Challenge using-the-justifycontent-property-in-the-tweet-embed has an issue.

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

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

It makes me pass the challenge even if I have not inserted the css statement

justify-content:center;

<style>
body {
font-family: Arial, sans-serif;
}
header, footer {
display: flex;
flex-direction: row;
}
header .profile-thumbnail {
width: 50px;
height: 50px;
border-radius: 4px;
}
header .profile-name {
display: flex;
flex-direction: column;

margin-left: 10px;
}
header .follow-btn {
display: flex;
margin: 0 0 0 auto;
}
header .follow-btn button {
border: 0;
border-radius: 3px;
padding: 5px;
}
header h3, header h4 {
display: flex;
margin: 0;
}
#inner p {
margin-bottom: 10px;
font-size: 20px;
}
#inner hr {
margin: 20px 0;
border-style: solid;
opacity: 0.1;
}
footer .stats {
display: flex;
font-size: 15px;
}
footer .stats strong {
font-size: 18px;
}
footer .stats .likes {
margin-left: 10px;
}
footer .cta {
margin-left: auto;
}
footer .cta button {
border: 0;
background: transparent;
}
</style>
<header>
<img src="https://pbs.twimg.com/profile_images/378800000147359764/54dc9a5c34e912f34db8662d53d16a39_400x400.png" alt="Quincy Larson's profile picture" class="profile-thumbnail">
<div class="profile-name">
<h3>Quincy Larson</h3>
<h4>@ossia</h4>
</div>
<div class="follow-btn">
<button>Follow</button>
</div>
</header>
<div id="inner">
<p>How would you describe to a layperson the relationship between Node, Express, and npm in a single tweet? An analogy would be helpful.</p>
<span class="date">7:24 PM - 17 Aug 2016</span>
<hr>
</div>
<footer>
<div class="stats">
<div class="retweets">
<strong>56,203</strong> RETWEETS
</div>
<div class="likes">
<strong>84,703</strong> LIKES
</div>
</div>
<div class="cta">
<button class="share-btn">Share</button>
<button class="retweet-btn">Retweet</button>
<button class="like-btn">Like</button>
</div>
</footer>

```

Issue 2:
Challenge [Steamroller](https://www.freecodecamp.com/challenges/steamroller has an issue.

User Agent is:

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36.

Issue Description :

Global Variables value is not getting flushed.

My code:

var tempArr = [];
function steamrollArray(arr) {
// I'm a steamroller, baby
tempArr = []; // To fix the global var issue , we need to reset that global var
arr = arr.map(function(val,index){
return checkForArray(val);
});
console.log('tempArr',tempArr);
return tempArr;
}
function checkForArray(val_arr){
if(!Array.isArray(val_arr)) {tempArr.push(val_arr);return val_arr;}
val_arr.map(function(val,index){
if(Array.isArray(val)){
return checkForArray(val);
}
else {
tempArr.push(val);
return val;
}
});
}
steamrollArray([1, {}, [3, [[4]]]]);
Issue 1:
Hi,

Just installed deno and try to run welcome.ts file which is mentioned in docs, i am facing this issue. Details are below.

D:\deno>deno run https://deno.land/welcome.ts
Downloading https://deno.land/welcome.ts
WARN RS - Sending fatal alert BadCertificate
an error occurred trying to connect: invalid certificate: UnknownIssuer
an error occurred trying to connect: invalid certificate: UnknownIssuer

D:\deno>deno version
deno: 0.4.0
v8: 7.6.53
typescript: 3.4.1

Anybody faced this issue.

Issue 2:
There should be a way to allow insecure https requests, using window.fetch() for example.

It should disable certificate validation for all requests made from the program.

As of implementation, there are two optoins that come to my mind: environment variable and flag. Below are some examples of how it's done in other web-related software, so we can come up with intuitive name and approach.

Examples:

In NodeJS, there is a NODE_TLS_REJECT_UNAUTHORIZED environment variable that can be set to 0 to disable TLS certificate validation. It takes name from tls.connect options.rejectUnauthorized

In curl, there's a -k or --insecure flag, which allows insecure server connections when using SSL

In Chrome, there's a --unsafely-treat-insecure-origin-as-secure="https://example.com" for the same purposes

For WebDrivers, there's acceptInsecureCerts capability. It can allow self-signed or otherwise invalid certificates to be implicitly trusted by the browser.

That said, I'd like to see --accept-insecure-certs flag option, because deno already uses flags for a lot of things, including permissions.

My use-case: I'm using a corporate Windows laptop with network monitoring. AFAIK, all https requests are also monitored, so there's a custom SSL-certificate installed system-wide. So, most of the software, that uses system CA storage, works just fine. But some uses custom or bundled CA, and it seems like it's a case with deno. Anyway, it downloads deps just fine, but fails to perfprm any https request.

Issue created as a follow up to gitter conversation: December 18, 2018 1:24 PM
Issue 1:
Problem description

When props.animated is true, Popover calls setState from within a setTimeout.

// in componentWillReceiveProps
if (nextProps.animated) {
this.setState({ closing: true });
this.timeout = setTimeout(function () {
_this2.setState({
open: false
});
}, 500);
}

Because componentWillReceiveProps doesn't mean that props changed, Popover has the potential to call setState from within the setTimeout multiple times, when no props have changed. For me, this is consistently causing an error where setState is called on an unmounted component.

Steps to reproduce

Rapidly re-render Popover (animated=true) after having changed open to false.

Versions

Material-UI: 0.15.3

React: 15.3.0

Browser: Chrome Version 52.0.2743.116 (64-bit)

Issue 2:
Problem Description

On occasion clicking the SelectField will result in the label text disappearing and the dropdown menu not displaying. Clicking the SelectField again will cause the label text to reappear and clicking again brings up the dropdown menu as expected. The dropdown seems to briefly load before disappearing.

I'm encountering this issue on both my own app and the material-ui examples for the SelectField component. I've attached a gif of the bug on the material-ui examples.

Versions

Material-UI: 0.14.4

React: 0.14.8

Browser: Chrome 50.0.2661.94 (64-bit) and Safari 9.1
Issue 1:
We need a shorcut for move windows aplications to another virtual desktop. I use MoveToDesktop by Eun: MoveToDesktop, but it cannot be configured.

This tool provide combination for move application to next virtual desktop using "win+alt+arrow" powerstroke.

Issue 2:
Such as press twice 'Alt' to open PowerToys Run, Alfred can do this, this is powerful, and will help people who want to migrate from MacOS just like me, thanks.
Issue 1:
Twitch TV challenge

https://www.freecodecamp.com/challenges/use-the-twitchtv-json-api

Issue Description

Your example site https://codepen.io/FreeCodeCamp/full/Myvqmo/ is not working. link to each Twitch Channel is 404. Also, channel information is not displayed properley - it just says "Account Closed" for all the channels.

Browser Information

Chrome on MAC desktop

Issue 2:
Challenge Name

https://www.freecodecamp.com/challenges/use-the-twitchtv-json-api

Issue Description

JSONP calls to the channels API result in a bad request. This is due to an update to the Twitchtv API which now requires a client id, which means creating an account and registering your application with the service. Details can be read from the official developer blog:

https://blog.twitch.tv/client-id-required-for-kraken-api-calls-afbb8e95f843#.pm46cq40d

I confirmed this by console logging the response object from the channels API on my application and comparing it with the example provided by Free Code Camp (see screenshots).

Browser Information

N/A

Your Code

Screenshot
Issue 1:
Bug Report

I would like to work on a fix!

Current behavior

A clear and concise description of the behavior.

generate() produces incorrect code for arrow function expression.

const generate = require('@babel/generator').default;
const node = t.arrowFunctionExpression( [], t.objectExpression( [] ) );
console.log( generate( node ) );

Output:

() => {}

Output should be:

() => ({})

Babel Configuration (babel.config.js, .babelrc, package.json#babel, cli command, .eslintrc)

No config used. The above is the complete reproduction case.

Environment

System:
OS: macOS Mojave 10.14.6
Binaries:
Node: 14.9.0 - ~/.nvm/versions/node/v14.9.0/bin/node
npm: 6.14.8 - ~/.nvm/versions/node/v14.9.0/bin/npm
npmPackages:
@babel/core: ^7.11.6 => 7.11.6
@babel/generator: ^7.11.6 => 7.11.6
@babel/helper-module-transforms: ^7.11.0 => 7.11.0
@babel/parser: ^7.11.5 => 7.11.5
@babel/plugin-transform-modules-commonjs: ^7.10.4 => 7.10.4
@babel/plugin-transform-react-jsx: ^7.10.4 => 7.10.4
@babel/register: ^7.11.5 => 7.11.5
@babel/traverse: ^7.11.5 => 7.11.5
@babel/types: ^7.11.5 => 7.11.5
babel-jest: ^26.3.0 => 26.3.0
babel-plugin-dynamic-import-node: ^2.3.3 => 2.3.3
eslint: ^7.8.1 => 7.8.1
jest: ^26.4.2 => 26.4.2

Issue 2:
Issue originally made by @also

Bug information

Babel version: 6.2.0

Node version: 4.1.2

npm version: 3.4.1

Options

none

Input code

Dependencies in package.json:

{
"dependencies": {
"babel-runtime": "6.2.0"
},
"devDependencies": {
"babel-cli": "6.2.0",
"babel-plugin-transform-runtime": "6.1.18",
"babel-preset-es2015": "6.1.18"
}
}

Description

I have a relatively simple package.json (here).

Using npm 3.4 and Node.js 4.1, babel-doctor complains about 43 duplicate babel-runtime packages, even after running npm dedupe.

Output from Travis CI

$ babel-doctor

Babel Doctor
Running sanity checks on your system. This may take a few minutes...

✔ Found config at /home/travis/build/also/babel-6-runtime-test/.babelrc

✖ Found these duplicate packages:

- babel-runtime x 43

Recommend running `npm dedupe`

✔ All babel packages appear to be up to date
✔ You're on npm >=3.3.0

Found potential issues on your machine :(

It seems that it is possible to work around the issue by switching to the version of babel-runtime being duplicated, currently 5.8.34.
Issue 1:
Hello,

I've been creating notifications with https://github.com/electron/electron/blob/master/docs/tutorial/desktop-environment-integration.md#notifications-windows-linux-macos

Can someone please confirm what I suspect:

There is no way to bind some kind of click handler to a notification, all clicking ever does it close the notification

There is no way to add actions/buttons to a notification.

If these are true then I think as they stand, notifications are not very useful. If this functionality is not possible to implement, maybe it would be better to provide a standardised BrowserWindow implementation?

As an aside - can anyone recommend a third party package for implementing cross-platform rich notifications?

Thanks!

Issue 2:
It would be really great if Electron supported the "notification actions" feature added in Chrome 48:

https://www.chromestatus.com/features/5906566364528640

https://developers.google.com/web/updates/2016/01/notification-actions?hl=en

Essentially, you say:

new Notification("123", {title: "123", silent: true, actions: [{action: 'A', title: 'A'}, {action: 'B', title: 'B'}]})

To show the notification, and then listen for 'notificationclick' DOM event, which gives you the name of the chosen action.
Issue 1:
Description

Ability to clear or mark task groups as success/failure and have that propagate to the tasks within that task group. Sometimes there is a need to adjust the status of tasks within a task group, which can get unwieldy depending on the number of tasks in that task group. A great quality of life upgrade, and something that seems like an intuitive feature, would be the ability to clear or change the status of all tasks at their taskgroup level through the UI.

Use case/motivation

In the event a large number of tasks, or a whole task group in this case, need to be cleared or their status set to success/failure this would be a great improvement. For example, a manual DAG run triggered through the UI or the API that has a number of task sensors or tasks that otherwise don't matter for that DAG run - instead of setting each one as success by hand, doing so for each task group would be great.

Related issues

No response

Are you willing to submit a PR?

Yes I am willing to submit a PR!

Code of Conduct

I agree to follow this project's Code of Conduct

Issue 2:
Description

Hi,

It would be very interesting to be able to filter DagRuns by using the state field. That would affect the following methods:

/api/v1/dags/{dag_id}/dagRuns

/api/v1/dags/~/dagRuns/list

Currently accepting the following query/body filter parameters:

execution_date_gte

execution_date_lte

start_date_gte

start_date_lte

end_date_gte

end_date_lte

Our proposal is to add the state parameter ("queued", "running", "success", "failed") to be able to filter by the field "state" of the DagRun.

Thanks.

Use case/motivation

Being able to filter DagRuns by their state value.

Related issues

No response

Are you willing to submit a PR?

Yes I am willing to submit a PR!

Code of Conduct

I agree to follow this project's Code of Conduct
Issue 1:
Profiling vet on a large corpus shows about >10% time spent in syscalls initiated by
gcimporter.(*parser).next. Many of these reads are avoidable; there is high import
overlap across packages, particularly within a given project.

Concretely, instrumenting calls to Import (in gcimporter.go) and then running 'go vet'
on camlistore yields these top duplicate imports:

153 fmt.a
147 testing.a
120 io.a
119 strings.a
113 os.a
108 bytes.a
99 time.a
97 errors.a
82 io/ioutil.a
80 log.a
76 sync.a
70 strconv.a
64 net/http.a
56 path/filepath.a
51 camlistore.org/pkg/blob.a
44 runtime.a
39 sort.a
39 flag.a
35 reflect.a
35 net/url.a

These 20 account for 1627 of the 2750 import reads.

Hacking in a quick LRU that simply caches the raw data in the files cuts 'go vet' user
time for camlistore by ~10%. I'm not sure that that is the right long-term approach,
though.

Issue 2:
Currently gc generates the following code:

var s1 string
400c19: 48 c7 44 24 08 00 00 movq $0x0,0x8(%rsp)
400c22: 48 c7 44 24 10 00 00 movq $0x0,0x10(%rsp)

s2 := ""
400c2b: 48 8d 1c 25 20 63 42 lea 0x426320,%rbx
400c33: 48 8b 2b mov (%rbx),%rbp
400c36: 48 89 6c 24 18 mov %rbp,0x18(%rsp)
400c3b: 48 8b 6b 08 mov 0x8(%rbx),%rbp
400c3f: 48 89 6c 24 20 mov %rbp,0x20(%rsp)

s3 = ""
400c44: 48 8d 1c 25 20 63 42 lea 0x426320,%rbx
400c4c: 48 8b 2b mov (%rbx),%rbp
400c4f: 48 89 2c 25 f0 34 46 mov %rbp,0x4634f0
400c57: 48 8b 6b 08 mov 0x8(%rbx),%rbp
400c5b: 48 89 2c 25 f8 34 46 mov %rbp,0x4634f8

Ideally it is:

var s1 string
400c19: 48 c7 44 24 08 00 00 movq $0x0,0x8(%rsp)
400c22: 48 c7 44 24 10 00 00 movq $0x0,0x10(%rsp)

s2 := ""
400c19: 48 c7 44 24 08 00 00 movq $0x0,0x8(%rsp)
400c22: 48 c7 44 24 10 00 00 movq $0x0,0x10(%rsp)

s3 = ""
400c19: 48 c7 44 24 08 00 00 movq $0x0,0x8(%rsp)
400c22: 48 c7 44 24 10 00 00 movq $0x0,0x10(%rsp)

For := "", compiler can just remove the initializer.
For = "", compiler can recognize "" and store zeros.
Issue 1:
In the bonfire problem, it states:

Return the number of total permutations of the provided string that don't have repeated consecutive letters.

For example, 'aab' should return 2 because it has 6 total permutations, but only 2 of them don't have the same letter (in this case 'a') repeating.

I believe this is incorrect.

The possible permutations of 'aab' are 'aab' 'aba' and 'baa' which should be calculated as 3! / 2! (= 3), not 3! (= 6) as what was done in the description. The total number of permutations should be 3 not 6. Then you want to eliminate cases wherein identical letters are adjacent, namely, 'aab' and 'baa'. This leaves 'aba' which means the answer ought to be 1, not 2.

Let me give another example. For the string 'aabb', the possible permutations ought not be calculated as 4! (=24) then eliminate the ones with adjacent identical characters. This leads to an incorrect answer of 8.

The possible permutations of 'aabb' is actually just 6, namely 'aabb', 'abab', 'baba', 'bbaa', 'abba', 'baab'. This can also be calculated 4! / (2! * 2!) (=6). Then when the strings wherein there are adjacent identical characters are eliminated, this leaves 'abab' and 'baba' which means the answer is 2 (not 8 as the test case indicates).

Please advise. Apologies if this is deemed a spam

Issue 2:
I selected the buttons as checked but the waypoint is not noticing that the buttons are checked.
Issue 1:
I am trying to figure out how to center an item in the navbar. I would essentially like to be able to have two navs, one left and one right. Then have an element (logo or CSS styled div) in the middle of the nav. It would be nice to have something similar to .pull-right, a .pull-center or something to assist with this. I have been trying to override the css and write it in myself, but for the life of me can't get it to work right.

Issue 2:
Issue 1:
Hi,

again a bug which doesn't need fixing right now, but in a long run.

It would be good to be more FHS and distributions friendly, that means at least:

- honor libexecdir (binary architecture files) and datadir (documentation, etc.)

- allow to have standard library files to be read only (mostly goinstall issues)

- install additional packages to /usr/local/golang (f.e.)

- allow to have more than one path in $GOROOT (something like $PYTHONPATH, etc.), so the
users can install packages/libraries to their home directories (and godoc, goinstall,
etc. would know about that).

There's probably more, but it will probably pop-up during the time.

Issue 2:
What steps will reproduce the problem?
1. visit the documentation for any type (e.g.
http://golang.org/pkg/net/http/#CanonicalHeaderKey)
2. click on the title of the section, to go see the corresponding code

What is the expected output? What do you see instead?

I expect to get to a page where I can directly see the code for the clicked element.

Instead I get to the first line of the file containing the code I'm interested in.

Please use labels and text to provide additional information.
Issue 1:
Bug report

What is the current behavior?

Destructuring DefinePlugin variables causes runtime error Uncaught ReferenceError: process is not defined

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

have DefinePlugin plugin defined in the webpack config like this:

plugins: [
new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV)
})
]

try to access NODE_ENV via destructuring: const { NODE_ENV } = process.env;

you get runtime failure Uncaught ReferenceError: process is not defined

However!

if you access NODE_ENV like const NODE_ENV = process.env.NODE_ENV; instead of const { NODE_ENV } = process.env; you don't get runtime error and everything works like expected.

What is the expected behavior?

Both ways of accessing the variable should be equal and should not cause runtime error.

It is pretty confusing and hard to debug problem and also problematic due to widely used prefer-destructuring eslint rule.

Other relevant information:

webpack version: 5.64.4

Node.js version: v16.13.0

Operating System: MacOS Big Sur

Additional tools:

Issue 2:
Bug report

What is the current behavior?

Hi, I am working with webpack 4 and yarn berry workspaces.

whenever I try to import a "package (workspace)" the browser console gives me a warning:

"export 'IAppError' was not found in './src/reduce_request_error'

The app however works, and no other places throw this warning. It happens to all of the packages that we import and export in our index files index.ts

Thanks,

Best regards.

TC

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

What is the expected behavior?

No warnings... because app works.

Do you think its an issue on your side?

Thanks in advance,

best regards,

TC

Other relevant information:

webpack version: "^4.43.0",

Node.js version: 12.10

Operating System: macos

Additional tools: yarn berry
Issue 1:
The current implementation of autowiring seems to force unnecessary coupling and to be instable in case of change in a vendor's service implementation.

Example 1:

interface IA
interface IB extends IA
*service* class C implemets IB

I can autowire using the type hint IB, but not IA.

Example 2:

interface I
class CA implements I
*service* class CB extends CA

I cannot type hint on I.

This means, autowiring would break if an intermediary interface or an abstract class were added. Nothing in the documentation (http://symfony.com/doc/current/components/dependency_injection/autowiring.html) mentions this limitation and it seems highly counter-intuitive.

If you agree this should be addressed, I am ready to provide a PR to fix this.

Issue 2:
With a fresh 4.1.1 install, I override the framework's router:

namespace App\Service;
use Symfony\Bundle\FrameworkBundle\Routing\Router;
class AdminRouter extends Router
{
}

And make a service with:

App\Service\AdminRouter:
arguments:
$resource: 'resource'
$options: []

Which generates a rather ominous error message:

The service ".service_locator.G69Xsbl.App\Service\AdminRouter"
has a dependency on a non-existent service "Symfony\Component\Config\Loader\LoaderInterface".

LoaderInterface? Where the heck does that come from? Looking at the framework's router:

# Symfony\Bundle\FrameworkBundle\Routing\Router;
public function __construct(
ContainerInterface $container,
$resource,
array $options = array(),
RequestContext $context = null,
ContainerInterface $parameters = null,
LoggerInterface $logger = null)
{

Notice the two ContainerInterfaces. Someone got a bit "clever" with the parameters injection.

Changing the service definition fixes the problem:

App\Service\AdminRouter:
arguments:
$container: '@service_container'
$parameters: '@service_container'
$resource: 'resource'
$options: []

Is this a bug or some sort of feature? Obviously injecting the same type twice is a fairly rare thing. If it is a bug then is it even worth fixing?