WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Currently, we're not consistent with errors thrown in std/node and we should implement Node.js errors instead of throwing Deno errors.

For example a common check for Node.js fs is:

e.code === 'ENOENT'

The above is not currently supported.

Issue 2:
if we want to be compatible with node's API, we must be kind to its errors too.

we should support node's API errors listed here to be more consistent about errors.

todo list :

create error module in std/node

support node error codes ( like ERR_INVALID_CALLBACK )

replace handwritten errors with error codes ( like HERE )
Issue 1:
Not sure but I think this is a bug or I at least expected something else...

I made a fiddle here to demonstrate...

// definition of a shape ( a 40x40 square)
shape = new THREE.Shape();
shape.moveTo( 0, 0 );
shape.lineTo( 40, 0 );
shape.lineTo( 40, 40 );
shape.lineTo( 0, 40 );
shape.lineTo( 0, 0 );

// convert the shape to geometry
var geometry = shape.makeGeometry();

// material
var material = new THREE.LineBasicMaterial( { color: 0xff0000, linewidth: 2 } );

// line
line = new THREE.Line( geometry, material );
scene.add( line );

The last segment seems to be missing...

Issue 2:
When I tried to import from Blender meshes from a Blender scene with multiple materials don't work correctly with ObjectLoader. ( I think is because json has't assign correctly the material to the object, it uses a single uuid. (this happens in previous versions of three.js & blender exporter ( It is nothing new of this r73 version ) ).

I can only use MultipleMaterial with JSONLoader ( although with the R73 I have to remove 'DbgColor' & 'colorAmbient' info from .json file ) but in this case I need a json flie for every object.

Here an example > http://unboring.net/lab/7415/

And the source files > http://unboring.net/lab/7415/7415.zip
Issue 1:
Bug report

Bug summary

Definitely a low-priority bug, but at some figure sizes, there seems to be an issue with the colorbar not being drawn at the correct position in some backends (seems like PDF and SVG are affected, but not Agg).

The colorbar "fill" (the actual colored bit) will not line up with the box that contains it (the black marker edge that makes the rectangle that is filled by the color bar, see below). Seems like some sort of rounding issue.

I have a more "dramatic" example, but still need to distill it to a minimum working example, as it is a plot of proprietary data.

Code for reproduction

import matplotlib.pyplot as plt
import matplotlib.cm

fig, ax = plt.subplots(figsize=(2, 1.5))

plt.plot()

sm = matplotlib.cm.ScalarMappable()
sm.set_array([])
plt.colorbar(sm)

plt.savefig('/home/bbeltr1/Downloads/test.svg')
plt.savefig('/home/bbeltr1/Downloads/test.pdf')
plt.savefig('/home/bbeltr1/Downloads/test.png', dpi=800)

Actual outcome

SVG:

PDF:

PNG:

Expected outcome

The PNG output has the expected outcome.

Matplotlib version

Operating system: Debian Jessie

Matplotlib version: master

Matplotlib backend (print(matplotlib.get_backend())):

Python version: 3.7

Jupyter version (if applicable):

Other libraries:

Issue 2:
The following example (with Matplotlib 2.0.0b3) causes the colorbar inside the colorbar axes to be offset when outputting to PDF with a low DPI:

import matplotlib.pyplot as plt

fig = plt.figure()
ax = fig.add_subplot(1,1,1)
im = ax.imshow([[1]])
fig.colorbar(im)
fig.savefig('colorbar_test.pdf', dpi=7)

This wasn't an issue with Matplotlib 1.4:

and the bug was apparently introduces in Matplotlib 1.5:
Issue 1:
Find -> Find File (cmd-P) does nothing if you haven't opened any files yet. Not even an error message. Now that I've used Atom for a few minutes, I think I see why that is, but I have to admit that I was about to write off Atom as still too beta to use when the first button I pressed (well, besides cmd-shift-P at welcome.md's insistence) fell flat and did nothing. Maybe the button should be grayed out until it's ready.

I'm on OS X with Atom Version 0.111.0.

Issue 2:
(moved over from atom/atom#1642)

support/b62ac6b69fc211e387a72d6e148f9cfd?page=1

cmd-t should work when you start Atom from the OS (launchpad, dock, finder, spotlight) and it doesn't have a current working directory.

This was really confusing to me, especially as I was trying to follow the getting started guide. I only discovered that things worked by running 'atom' from the command-line in a git repo directory.
Issue 1:
Ansible Version

ansible 2.0.0 (devel da4b4a2a33) last updated 2015/11/09 08:53:14 (GMT +300)
lib/ansible/modules/core: (detached HEAD 750aa16a06) last updated 2015/11/09 08:53:39 (GMT +300)
lib/ansible/modules/extras: (detached HEAD 62f52d702a) last updated 2015/11/09 08:53:39 (GMT +300)

Summary

Given a task like this:

- apt: name="{{ item }}" state=present
with_items: "{{ packages }}"

Ansible v1 processes it correctly, but ansible v2 installs the 1st package N times.

Steps to Reproduce

create a test.yml:

---
- hosts: localhost
gather_facts: no
vars:
packages:
- build-essential
- python-dev
- python-virtualenv
- gettext
tasks:
- apt: name="{{ item }}" state=present
with_items: "{{ packages }}"

run ansible-playbook test.yml -C

Expected Behavior

PLAY [localhost] **************************************************************

TASK: [apt name="{{ item }}" state=present] ***********************************
ok: [localhost] => (item=build-essential,python-dev,python-virtualenv,gettext)

PLAY RECAP ********************************************************************
localhost : ok=1 changed=0 unreachable=0 failed=0

Actual Behavior

PLAY ***************************************************************************

TASK [apt state=present name={{ item }}] ***************************************
ok: [localhost] => (item=[u'build-essential', u'build-essential', u'build-essential', u'build-essential'])

PLAY RECAP *********************************************************************
localhost : ok=1 changed=0 unreachable=0 failed=0

Other Comments

The bug goes away if I use a different module (such as command: echo {{ item }}) instead of apt.

Issue 2:
Issue Type:

Bug Report

Ansible Version:

this was the commit that broke it

ansible checkout 5040aba

Ansible Configuration:

N/A

Environment:

Centos 6.7

Summary:

Steps To Reproduce:

yum: name={{ item }} state=installed
with_items: yum_pkgs

it just lists the the first item in yum_pkgs as every item so if for example

yum_pkgs:
- vim
- gedit

Expected Results:

It installs vim and gedit

Actual Results:

It would install vim and vim

it would act like the list was

yum_pkgs:
- vim
- vim

same thing for

yum: name={{ item }} state=installed
with_items: "{{ yum_pkgs }}"

and

yum: name={{ item}} state=installed
with_items:
- "{{ yum_pkgs }}"
Issue 1:
Challenge http://freecodecamp.com/challenges/waypoint-delete-your-jquery-functions has an issue.

Browser: Chrome Version 44.0.2403.157

OS: OS X 10.9.5

While progressing through the jQuery section, I ran into a couple of errors. After inserting a new jQuery call, I get an "Unexpected token }" message. This is not totally unexpected I guess since I'm activity modifying script that will run on the page. However, occasionally this will cause the list of tasks to complete to disappear. The only way to make them reappear is to click reset my code.

Here's a screen shot of the page without the tasks listed.

Issue 2:
Challenge Name

http://beta.freecodecamp.com/en/challenges/data-visualization-with-d3/work-with-data-in-d3

Issue Description

Not sure if this is related to the local memory issues..

The tests fail if you leave the variable as dataset because it says that it has already been declared as a variable. But if you change the variable it works fine.

Browser Information

PC Chrome

Browser Name, Version:

Operating System:

Mobile, Desktop, or Tablet:

Your Code

Screenshot
Issue 1:
Migrated issue, originally created by Anonymous

QueuePool do_return_invalid needs to always decrement overflow, or eventually (assuming max_overflow >= 0) you'll try to do a blocking get on an empty Queue, and hang.

You can reproduce this with a DBProxy having a small pool_size, max_overflow=0, and just get a connection + invalidate it until you hang.

It's more clear that "always decrement on invalidation" is the correct policy when you consider that pool_size + _overflow represents the number of created connections that will go back into the queue when released; an invalidated connection should thus always result in _overflow -= 1.

Issue 2:
Migrated issue, originally created by Oleg Pidsadnyi (@olegp)

Mike, I've encountered a behavior that is a bit unexpected:

class Model(Base):
a = Column(Integer, nullable=True, default=1)

m = Model()
m.a = None
session.add(m)

In: print m.a
Out: None

session.commit()

In: print m.a
Out: 1

None is expected :(

I understand that the configuration is silly, but this is the existing code. Setting None to the column doesn't cancel the default and the default thinks that the column wasn't set, so it uses the default value in the end.
Issue 1:
Commas (",") and pluses ("+") are legal characters in path segment of the URL so I think Symfony\Component\Routing\Generator\UrlGenerator should not escape them.

Currently due to escaping:

correct route doesn't match when the "requirements" regex contains these characters (it's a bug)

bad looking url shows up in the user browser address bar

this can lead to duplicate content issues with search engines

Example use case:

route:

category_with_params:
pattern: /{category}/{params}/
defaults: { _controller: CompanyProjectBundle:Category:show }
requirements: { params: "[0-9a-z-]+(,[0-9a-z-]+)+(/[0-9a-z-]+(,[0-9a-z-]+)+)*" }

passed values:

category = laptops
params = brand,acer

expected path:

/laptops/brand,acer/

generated path:

/laptops/brand%2Cacer/

following generated path doesn't match "category_with_params" route and produces error (if no other matching routes exists):

No route found for "GET /laptops/brand%2Cacer/"

Possible fix:

Replace 115 line in Symfony\Component\Routing\Generator\UrlGenerator:

$url = $token[1].str_replace('%2F', '/', urlencode($tparams[$token[3]])).$url;

with

$url = $token[1].str_replace(
array('%2F', '%2B', '%2C'),
array('/', '+', ','),
urlencode($tparams[$token[3]])
).$url;

Issue 2:
Description

2FA shoud be natively supported by the security component, to get more interoperability between projects and support from the community (as well as external bundles provinding specific 2FA features, e.g. U2F).

There are bundles providing support, but most of them are either outdated or not providing a simple, low level API (with a seamless integration in the Symfony security component). They also do not provide the same guaranteed support as Symfony does.

Example

The latest version of scheb/two-factor-bundle provides a good proof of concept, but the API is too restrictive, high level and some of the validation / handling code for the 2FA is a duplicate from existing code in the security component.

Some of the main low levels features which would be useful:

Providers/Challengers: used to implement a way for validating 2FA

Activators: used to enable/disabled 2FA for specific providers based on the authentication context

SecondFactorInterface, which may be used to persist challenges (same use as the UserInterface, but for 2FA)

I guess a new role equivalent to IS_AUTHENTICATED_ANONYMOUSLY would be required, like in the process described here: https://github.com/scheb/two-factor-bundle/blob/master/Resources/doc/index.md#the-authentication-process

[Edit] See this comment for a proposal to unify sudo mode, MFA and remember me:

#28868 (comment)
Issue 1:
I was doing some buffer geo flippin' yesterday when I came across this nice utility function:

https://stackoverflow.com/questions/16824650/#answer-54496265

Wouldn't this be handy to have in BufferGeometryUtils? Or is there a more convenient way to flip BufferGeometries?

Issue 2:
Description of the problem

I am trying to flip a mesh (mirror operation). For doing so if if "scale negatively" its geometry the faces are inside-outside and the mesh does not render properly.

const geom = new THREE.BoxGeometry(10,10,10);
geom.applyMatrix(new THREE.Matrix4().makeScale(-1, 1, 1));

Instead, if I apply it directly to the mesh it works just fine:

this.mesh.scale.set(-1,1,1);

Unfortunatelly I need to apply it to the geometry

You can check the project using this at https://beta.bitbloq.cc/app/playground/3d

Three.js version

Dev

r0.107.0

...

Browser

All of them

Chrome

Firefox

Internet Explorer

OS

All of them

Windows

macOS

Linux

Android

iOS
Issue 1:
Since #19488, the network service is enabled and the old path has been deleted. Some features are broken as a result and will need to be fixed before 8.0.0. This is a tracking issue for those features.

webRequest API (zcbenz)

service workers on file protocol (#20132)

session.clearAuthCache - tests (#20015)

session.getBlobData (#20041)

session.setUserAgent (#20014)

custom standard schemes / registerSchemesAsPrivileged

Rewire Login Handler from NetworkDelegate into ProxyingURLLoaderFactory

fix 'login' event not firing on net requests

cc @deepak1556 @jkleinsc @zcbenz

Issue 2:
Preflight Checklist

I have read the Contributing Guidelines for this project.

I agree to follow the Code of Conduct that this project adheres to.

I have searched the issue tracker for an issue that matches the one I want to file, without success.

Issue Details

Electron Version:

9.0.5

Operating System:

Windows 10 (1803)

Last Known Working Electron version:

Don't know

Expected Behavior

A normal launch of the application.

Actual Behavior

Doesn't launch the application because it can't find "cli.js" in the electron node module, this started happening after I resolved the issue that npm can't find certain node_modules via npm install

To Reproduce

/
Issue 1:
The strings.Replacer is a real race car.

It would be very useful to have a bytes.Replacer with similar feature set.

Issue 2:
by andres.erbsen:

Thanks.

What does 'go version' print?

go version go1.2.1 linux/amd64; postgresql 9.3+146really9.1+148 on Ubuntu
go version devel +93ad232384f8 Fri Apr 11 10:11:21 2014 -0700 linux/amd64
c; postgresql 9.3.4-1 on Arch Linux
go version devel +877b2382424b Wed Apr 16 14:36:44 2014 -0700 linux/amd64; postgresql
9.3.4-1 on Arch Linux

What steps reproduce the problem?

Run http://play.golang.org/p/_o6E3COOIZ with suitable database config

What happened?

panic: dial tcp 127.0.0.1:5432: too many open files
OR
panic: pq: remaining connection slots are reserved for non-replication superuser

What should have happened instead?

Each db.Query should have blocked until the previous one has finished, resulting in an
infinite loop creating many many idle goroutines.
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

<CircularProgress> is most often used as a loading spinner. I usually find it most convenient to style my loading spinners to be sized relative to the text, for example 1.2em diameter, so that I don't have to waste time styling each particular usage. But currently <CircularProgress> only supports a fixed pixel size.

So would you be willing to make the API (or accept a PR to) support any valid CSS length value (as a string)?

Issue 2:
When passing a style rules callback or object withStyles() hoc does not raise a type error if the rules contain invalid CSS properties.

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

Expected Behavior

There should be a type error if the styles object contains non-CSS properties.

Note the property styles.root.foo in the code below is not a valid CSS property, but it compiles just fine.

I don't know if this is a problem in the typings, typescript itself, or the way I am doing things. Or perhaps this is not expected to be caught at compile time?

Current Behavior

The code compiles. This means one will easily fail to catch a mis-spelled CSS property.

The Code

import * as React from 'react';
import { withStyles, WithStyles, StyleRulesCallback } from 'material-ui/styles';

const drawerWidth = 240;

type ClassNames =
| 'root'
| 'content';

const styles: StyleRulesCallback<ClassNames> = theme => ({
root: {
width: '100%',
height: 430,
marginTop: theme.spacing.unit * 3,
foo: 0, // I expected this to cause a compile error
},
content: {
backgroundColor: theme.palette.background.default,
width: '100%',
padding: theme.spacing.unit * 3,
},
});

export type Props = WithStyles<ClassNames>;

class App extends React.Component<Props> {

render() {
const { classes, theme } = this.props;

return (
<div className={classes.root}>
<main className={classes.content}>
Hello World
</main>
</div>
);
}
}

export default withStyles(styles)<{}>(App);

Context

Looking at the definition of StyleRules, it appears to be attempting to enforce that values in the StyleRules record should be a subset of React.CSSProperties.

export type StyleRules<ClassKey extends string = string> = Record<ClassKey, Partial<React.CSSProperties>>;

If I use a style rules object instead of a callback the result is the same.

Your Environment

Tech
Version

Material-UI
1.0.0-beta.16

React
16.0.10

browser
61.0.3163.100

Typescript
2.5.2
Issue 1:
This can be done in nodejs.

This is not possible in deno.

import { serve } from "https://deno.land/std@0.144.0/http/mod.ts";
import { assertEquals } from "https://deno.land/std@0.144.0/testing/asserts.ts";

Deno.test("websocket-host", async () => {
const ac = new AbortController();
const { signal } = ac;
const p = serve(
function (req) {
console.log("request", req);
const { socket, response } = Deno.upgradeWebSocket(req);

socket.addEventListener("open", () => {
socket.send(req.url);
socket.close();
});

return response;
},
{
signal,
port: 5000,
}
);
const socket = new WebSocketStream("ws://127.0.0.1:5000/", {
headers: { host: "localhost.hello.world:9900" },
});
const connection = await socket.connection;
const reader = connection.readable.getReader();
let text = "";

while (true) {
const result = await reader.read();
if (result.done) {
break;
} else {
text = text + result.value;
}
}
assertEquals(text, "http://localhost.hello.world:9900/");
ac.abort();
await p;
});

websocket-host => ./test.ts:26:6
error: AssertionError: Values are not equal:

[Diff] Actual / Expected

- http://127.0.0.1:5000/
+ http://localhost.hello.world:9900/

throw new AssertionError(message);
^
at assertEquals (https://deno.land/std@0.144.0/testing/asserts.ts:176:9)
at file:///C:/Documents/test/test.ts:62:5

FAILURES

websocket-host => ./test.ts:26:6

Issue 2:
The current version of deno seems to read deno.json from the current directory by default without --config parameter specified. This default is certainly convenient, but if there is a special case where I need to run deno without config when there is deno.json in the current directory, how should I do it? If there is no way to do this, is it considered to add an option or some way to achieve it?
Issue 1:
Summary of the new feature/enhancement

Can we set some alias for apps? Such as launch VSCode by typing vscode or launch Windows Terminal just by typing t and press enter. I think it's useful when users have many unrelated files in his disk like the screenshot below 😂

Issue 2:
Summary of the new feature/enhancement

I'd love to be able to setup aliases where a user-meaningful short keyword can be mapped to an app, file, or URL (with parameters / arguments optional).

This would be similar in ways to "magic words" in the old SlickRun (https://bayden.com/SlickRun/1033/SlickRunHelp.aspx).

Typing the keyword would autocomplete and opening / selecting / invoking would launch the corresponding file / app / url.

Proposed technical implementation details (optional)

A "..." button could appear near search icon to launch a config screen or open a config file. There might also be a syntax or keyword to configure these aliases (like "setup" in SlickRun).
Issue 1:
Created a new file rulers.ts:

If you add it, be sure to refresh given new files are not picked up properly by TS....

CPU-20160201T100230.cpuprofile.txt

See // >>>>>>>>> TYPED BELOW LINE

/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/

'use strict';

import 'vs/css!./rulers';

import {ViewPart} from 'vs/editor/browser/view/viewPart';
import EditorBrowser = require('vs/editor/browser/editorBrowser');
import EditorCommon = require('vs/editor/common/editorCommon');

export class Rulers extends ViewPart {

public domNode: HTMLElement;
private _rulers: number[];

constructor(context:EditorBrowser.IViewContext) {
super(context);
this.domNode = document.createElement('div');
this.domNode.className = 'view-rulers';
this._rulers = [];
}

public dispose(): void {
super.dispose();
}

// --- begin event handlers
public onConfigurationChanged(e: EditorCommon.IConfigurationChangedEvent): boolean {
if (e.rulers) {
this._rulers = this._context.configuration.editor.rulers;
return true;
}
return false;
}
public onLayoutChanged(layoutInfo: EditorCommon.IEditorLayoutInfo): boolean {
return true;
// if (this._width !== layoutInfo.width) {
// this._width = layoutInfo.width;
// return true;
// }
// return false;
}
// --- end event handlers

// public onBeforeForcedLayout(): void {
// }

// public onReadAfterForcedLayout(ctx:EditorBrowser.IRenderingContext): void {
// }

_render(ctx: EditorBrowser.IRenderingContext): void {
// console.log('rendering rulers');
this._requestModificationFrame(() => {

let existingRulers = this.domNode.children;
let existingRulersLength = existingRulers.length;
let max = Math.max(existingRulersLength, this._rulers.length);

for (let i = 0; i < max; i++) {
// >>>>>>>>> TYPED BELOW LINE
// if (i < existingRulersLength)
// if (i < existingRulersLength)
}

// Update existing rulers
let renderedRulers = this.domNode.children;
for (let i = 0; i < renderedRulers.length && i < this._rulers.length; i++) {
console.log('update @ ' + i);
}

// Insert new rulers

// remove extra rulers

// ruler
console.log('rendering rulers');
// DomUtils.StyleMutator.setWidth(this._domNode, this._width);
// DomUtils.toggleClass(this._domNode, EditorBrowser.ClassNames.SCROLL_DECORATION, this._shouldShow);
});
}

}

Issue 2:
Steps to Reproduce:

command palette > Toggle use of tab key for setting focus

notice red notification in the status bar - I believe we can find a better color for this

Though there should be some contrast since this is an important scenario for accessibility