WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
In THREE.js the repeat (tiling) property is bounded to the texture object, and personally I think it's a mistake. texture tiling will have much more flexibility if it would be a material property. for example, it's very common for a user to want to load a single texture and tile it differently on different surfaces, based on the size and proportions of each surface. but if repeat is part of the texture you are forced to duplicate the texture itself, which doesn't sound very efficient.

the fix I propose is very simple - add a repeat property to the material itself, which will override the 'repeat' of the texture if it's not undefined. I did this two-lines patch in my THREE.js project and it works well.

what do you think?

thanks

Issue 2:
Given prior decisions...

Maintain .d.ts typings, do not convert to TypeScript. (#15545)

Keep JSDoc and default values in d.ts files, not source code. (#19919)

Support i18N in documentation.

... I think there might be an easier option to maintain documentation, typings, and support i18n. The basic workflow would be:

Put full documentation (not just default values) in the JSDoc in .d.ts files.

Allow translators to use jsdoc-i18n to maintain text translations in a simple sqlite file.

Generate documentation — and all translations — from the sqlite file.

One advantage of this is that the documentation and typings are in the same place. I suspect it will also make things much easier for translators, but — to be clear — I don't know how robust json-i18n's workflow is. You can find some discussion of this on jsdoc/jsdoc#1127 and documentationjs/documentation#899.

The other effect of this, which could be a downside depending on our preferences, is that it does require a build step for generating the documentation. It's entirely possible to include headers and example code in JSDoc (example) but this may still limit the customization possible on individual docs pages.
Issue 1:
We have two mysql masters and I wanted to create an active/passive group based on which server has the VIP:

# ansible all -i inventory.py --limit tiers-production-app-mysql -m setup -a 'filter=ansible_eth1_1'
db-02.example.com | success >> {
"ansible_facts": {},
"changed": false
}

db-01.example.com | success >> {
"ansible_facts": {
"ansible_eth1_1": {
"ipv4": {
"address": "10.0.2.75",
"netmask": "255.255.255.255",
"network": "10.0.2.75"
}
}
},
"changed": false

So in the cause above, db-01.example.com is the master.

The debug playbook below shows the correct group names:

# ansible-playbook -i inventory.py all-debug.yml --limit tiers-production-app-mysql -vv;

PLAY [all] ********************************************************************

GATHERING FACTS ***************************************************************
<1.2.3.75> REMOTE_MODULE setup
<1.2.3.76> REMOTE_MODULE setup
ok: [db-02.example.com]
ok: [db-01.example.com]

TASK: [debug ] ****************************************************************
ok: [db-01.example.com] => {
"msg": "tiers-production-app-mysql-replication-master-active"
}
ok: [db-02.example.com] => {
"msg": "tiers-production-app-mysql-replication-master-passive"
}

Now comes the strange thing. I expected the group_by statement below to work:

- name: create dynamic active / passive groups
group_by:
key: "tiers-production-app-mysql-replication-master-{{ 'active' if ansible_eth1_1 is defined else 'passive' }}"

But it doesn't, the following statement does:

- name: create dynamic active / passive groups
group_by:
key: "tiers-production-app-mysql-replication-master-{{ 'active' if hostvars[inventory_hostname]['ansible_eth1_1'] is defined else 'passive' }}"

When I debug ansible_eth1_1 (use it as a group name), both machines have the same values. So it looks like variables are not been reset.

Issue 2:
Issue Type:

Bug Report

Ansible Version:

ansible 1.9.2
configured module search path = None

Ansible Configuration:

Reproduced with default config.

Environment:

Solaris 10, 11.

Summary:

With certain keys, group_by dumps all hosts into the same group, regardless of expected differences in the keys. I can reproduce the below problem using the ansible_container variable but not the ansible_virtualization_type variable; it's not clear to me how these variables differ in nature.

Steps To Reproduce:

- hosts: host-g:host-z
tasks:
- group_by: key=container_{{ ansible_container | default('global') }}
- debug: var=groups

In this example, host-z is a container, and host-g is not a container.

Expected Results:

ok: [host-g] => {
"var": {
"groups": {
"container_global": [
"host-g"
],
"container_zone": [
"host-z"
]
}
}
}

Actual Results:

ok: [host-g] => {
"var": {
"groups": {
"container_global": [
"host-g",
"host-z"
]
}
}
}
Issue 1:
FreeCodeCamp Issue template

What if I would be able to close done task map in settings if I wanted, because it`s really distructing to close them manually every time i open them.

Your Code

(not written yet)

Issue 2:
Challenge http://www.freecodecamp.com/challenges/zipline-build-a-simon-game has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

Shows the Tic-Tac-Toe video instead of the Simon Video
Issue 1:
by daviddengcn:

Before filing a bug, please check whether it has been fixed since the
latest release. Search the issue tracker and check that you're running the
latest version of Go:

Run "go version" and compare against
http://golang.org/doc/devel/release.html If a newer version of Go exists,
install it and retry what you did to reproduce the problem.

Thanks.

What steps will reproduce the problem?
If possible, include a link to a program on play.golang.org.
1.
2.
3.

What is the expected output?
After "go fmt" my example cases are not failed

What do you see instead?
They are failed by tabs

Which compiler are you using (5g, 6g, 8g, gccgo)?

Which operating system are you using?
MacOS

Which version are you using? (run 'go version')
1.0.3

Please provide any additional information below.
More information: https://groups.google.com/forum/#!topic/golang-nuts/ZH5YgwmjCXk

Issue 2:
Detected by experimental deadlock detector in cl/77450043.

==================
WARNING: DEADLOCK
Goroutine 999 lock mutex 35 while holding mutex 35:
sync.(*RWMutex).RLock()
src/pkg/sync/rwmutex.go:42 +0xa2
sync.(*rlocker).Lock()
src/pkg/sync/rwmutex.go:133 +0x34
sync_test.func·027()
src/pkg/sync/rwmutex_test.go:132 +0xb6

Mutex 35 was previously locked here:
sync.(*RWMutex).RLock()
src/pkg/sync/rwmutex.go:42 +0xa2
sync.(*rlocker).Lock()
src/pkg/sync/rwmutex.go:133 +0x34
sync_test.func·027()
src/pkg/sync/rwmutex_test.go:133 +0xda
==================

==================
WARNING: DEADLOCK
Goroutine 999 lock mutex 16 while holding mutex 16:
sync.(*RWMutex).RLock()
src/pkg/sync/rwmutex.go:42 +0xa2
sync_test.func·028()
src/pkg/sync/rwmutex_test.go:166 +0x88
testing.func·002()
src/pkg/testing/benchmark.go:416 +0x17d

Mutex 16 was previously locked here:
sync.(*RWMutex).RLock()
src/pkg/sync/rwmutex.go:42 +0xa2
sync_test.func·028()
src/pkg/sync/rwmutex_test.go:167 +0x96
testing.func·002()
src/pkg/testing/benchmark.go:416 +0x17d
==================

Tests lock RWMutex recursively. RWMutex is not recursive.
Issue 1:
Original bug ticket: [https://npm.community/t/9164](https://npm.community/t/9164)
Originally filed: 2019-07-29T19:05:16.541Z

From original issue: https://npm.community/t/9164

Debug log: n/a

Action triggered: sudo npm install -g npm

Platform info: (incomplete)

$ npm --versions
6.9.0
$ node -p process.platform
darwin

Additional information:

reference to a blog post which indicates solving the problem with an update of npm and clearing the cache.

Issue 2:
Is there an existing issue for this?

I have searched the existing issues

Current Behavior

When I run npm install in a project that has a "bin" section in package.json, the binary(s) specified doesn't get created in node_modules/.bin.

Expected Behavior

I'd expect a script to be created in node_modules/.bin/ since that's the behavior documented at

https://docs.npmjs.com/cli/v7/configuring-npm/package-json#bin

To use this, supply a bin field in your package.json which is a map of command name to local file name. On install, npm will symlink that file into prefix/bin for global installs, or ./node_modules/.bin/ for local installs.

A user on StackOverflow seems to have found that this case is excluded intentionally in code, but couldn't find a reason.

The code and the documentation are mismatched currently, in a way that eats developer time. One or the other should probably be updated so that they match. (IMO, I'd prefer a script be installed in this case, because sometimes I want to use a package's script without installing it globally!)

Steps To Reproduce

In any environment, AFAICT, with a simple script like example.js:

#!/usr/bin/env node

console.log("Hello, world!")

And a package.json that references it:

{
"name": "npm-bug",
"version": "1.0.0",
"description": "",
"main": "example.js",
"bin": "example.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC"
}

Run npm install

And observe that there's no script created in node_modules/.bin/

Aha. Recreating this fresh, I may have found the reasoning behind this exception -- if you have no dependencies, there isn't a node_modules/ or node_modules/.bin/ directory to install the script into.

However, that's probably the rare case. Often, such packages will have dependencies, so node_modules/.bin/ will exist, which makes the script's absence from it all the more confusing.

Environment

OS: Windows 10

Node: v14.17.0

npm: 7.19.0 (But I also observed this behavior on 6.14.x)
Issue 1:
In the gallery, inside Page Selector, if you drag towards the right, you'll see the glow appear:

Two things I noticed:

the glow looks like a rectangle, instead of a curve (go into the Photos app to see a vertical glow with a curve on the left side of the screen)

the glow is clipped by the page selector. Not sure if that's expected behavior.

Issue 2:
The horizontal overscroll glow is being clipped or rendered incorrectly. The vertical overscroll glow is correctly rendered.
Issue 1:
by shon.feder:

This issue was already raised here:
https://golang.org/issue/3733&;can=1&q=Writing%20Web%20Applications&colspec=ID%20Status%20Stars%20Priority%20Owner%20Reporter%20Summary

However, it persists though that ticket has been marked as 'fixed'.

- In the section "Handling Non-Existent Pages
(http://golang.org/doc/articles/wiki/#tmp_7), the second line of the example code for
viewHandler() reads `title, err := getTitle(w, r)`. However, getTitle() isn't
introduced until the section on "validation", at which point the learner is
instructed to add it to viewHandler().

Hope this is helpful and not-pestering. Thanks very much for all of youall's help and
work on this project. It's been great fun learning go.

Issue 2:
I'm looking for a way to limit the max memory consumption of a Go program, say the memory doesn't exceed X. Further discussion is here.

Does it make sense to make runtime.MaxMem configurable?

What version of Go are you using (go version)?

1.4.1.

What operating system and processor architecture are you using?

64 bit Linux.

What did you do?

I tried to limit the memory usage of my Go program. The server only has 1GB. The Go process was killed by the monitor process and the server was restarted.

What did you expect to see?

I expect there's a variable in Go runtime to set this limit, e.g., runtime.MaxMem = x.

What did you see instead?

I couldn't find a way to limit memory usage in Go. ulimit may be one option but it's not cross platform. Also ulimit requires root access and I don't have it since the server is hosted on Heroku.

/cc @davecheney
Issue 1:
It should be based on the actual text width instead of just the number of letters. Non-western Unicode characters are not in the same width as ASCII characters.

Issue 2:
Reported in Halp:

support/b47caffcaba511e3903bfcd96bef4da2

If I have a paragraph in CJK characters and toggle soft wrap, the wrapping point (should be the right edge of current window) is far away than the current edge and some characters are displayed out of window which is not visible.

I think this may because of the wrong processing of character wide. A latin letter has a width "one character width", but usually a CJK character has a width twice as a latin letter, it's "two character width". Hope this information may help you.

The debug info auto attached should include the test text I open now. It's include (from up to down): Chinese, Japanese, Korean, English. Actully they tell the same thing:)

I can reproduce this in Atom 0.75.0. (notice how CJK characters are not wrapped correctly at the right edge of the app)
Issue 1:
Challenge http://www.freecodecamp.com/challenges/waypoint-clone-an-element-using-jquery has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

This is a general "issue". When editing the code the instructions are constantly moving. It makes it hard to follow as your editing. Obviously workable, just annoying.

Thanks for all of your hard work! This is a great program!

Issue 2:
Currently, you go to the portfolio page to copy code. Click the bonfire link. Paste the code and run.

How about a dropdown that will let you select from your previous solutions to this problem? Bonus if we can get the ability to label multiple versions for easy identification.
Issue 1:
Original

get X() { // ok
return '';
}

Expected

get: function() { // ok
return '';
}

Result

get: // error
function () {
return '';
}

numericIndexerConstrainsPropertyDeclarations.js

Issue 2:
let impl: I = {
a: 12,
explicitVoid2: () => this.a, // ok, this: any because it refers to some outer object (window?)
explicitVoid1() { return 12; },
explicitStructural() {
return this.a;
},
explicitInterface() {
return this.a;
},
explicitThis() {
return this.a;
},
}

Expected

var impl = {
a: 12,
explicitVoid2: function () { return _this.a; },
explicitVoid1: function () { return 12; },
explicitStructural: function () {
return this.a;
},
explicitInterface: function () {
return this.a;
},
explicitThis: function () {
return this.a;
}
};

Actual

var impl = {
a: 12,
explicitVoid2: function () { return _this.a; },
explicitVoid1: // ok, this: any because it refers to some outer object (window?)
function () { return 12; },
explicitStructural: function () {
return this.a;
},
explicitInterface: function () {
return this.a;
},
explicitThis: function () {
return this.a;
}
};

thisTypeInFunctions

decoratorOnClass2
Issue 1:
Using latest tf-nightly-gpu-2.0-preview as of today.

Consider the following code:

import tensorflow as tf
resolver = tf.distribute.cluster_resolver.TPUClusterResolver()
tf.tpu.experimental.initialize_tpu_system(resolver)
tpu_strategy = tf.distribute.experimental.TPUStrategy(resolver)

It fails on Colab:

<ipython-input-4-8454559c747f> in <module>()
----> 1 tf.distribute.cluster_resolver.TPUClusterResolver()

AttributeError: module 'tensorflow._api.v1.distribute' has no attribute 'cluster_resolver'

This code comes from the TF 2.0 documentation.

Issue 2:
The doc on the scatter_nd does not specify the consequence of multiple updates that reference the same location.

I've tested this using the following code:

indices = tf.constant([[4], [3], [1], [1]])
updates = tf.constant([9, 10, 11, 12])
shape = tf.constant([8])
scatter = tf.scatter_nd(indices, updates, shape)
with tf.Session() as sess:
print sess.run(scatter)

The resulting tensor is:

[0, 23, 0, 10, 9, 0, 0, 0]

So it seems the updates are added. Is this the intended usage? If so, it would be great to clarify this in the docs.

Thanks!
Issue 1:
doc feedback verbatim:

"please put the extensions url that visual studio code tries to reach (all of them) when installing an extension. we use ssl inspection and installation is failing because of certificates. but I'm not able to whitelist the urls"

Issue 2:
Testing #6099

> code-alpha --install-extension aeschli.vscode-css-formatter
Found 'aeschli.vscode-css-formatter' in the marketplace.
Installing...
Extension 'aeschli.vscode-css-formatter' v0.0.2 was successfully installed!
> code-alpha --install-extension aeschli.vscode-css-formatteR
Found 'aeschli.vscode-css-formatteR' in the marketplace.
Installing...
WARNING: Promise with no error callback:14
{ exception: null,
error: [ , , [ [Object] ] ],
promise:
{ _oncancel: null,
_nextState: null,
_state:
{ name: 'error',
enter: [Function],
cancel: [Function: r],
done: null,
then: null,
_completed: [Function: r],
_error: [Function: r],
_notify: [Function: h],
_progress: [Function: r],
_setCompleteValue: [Function: r],
_setErrorValue: [Function: r] },
_listeners: null,
_value: [ , , [Object] ],
_isException: false,
_errorId: 14,
done: [Function],
then: [Function] },
handler: undefined,
id: 14,
parent: undefined }

C:\Program Files (x86)\Microsoft VS Code Alpha\resources\app\out\vs\code\node\cli.js:5
enter:function(e){if(e.done=z.prototype.done,e.then=z.prototype.then,e._listeners)for(var t,n=[e];n.length;)t=n.pop(),t._state._notify(t,n);e._setState(I)},cancel:r,done:null,then:null,_completed:r,_error:r,_notify:h,_progress:r,_setCompleteValue:r,_setErrorValue:r},I={name:"error",enter:function(e){e.done=z.prototype.done,e.then=z.prototype.then,e._cleanupAction()},cancel:r,done:null,then:null,_completed:r,_error:r,_notify:h,_progress:r,_setCompleteValue:r,_setErrorValue:r};var H,V=t.Class.define(null,{_listeners:null,_nextState:null,_state:null,_value:null,cancel:function(){this._state.cancel(this),this._run()},done:function(e,t,n){this._state.done(this,e,t,n)},then:function(e,t,n){return this._state.then(this,e,t,n)},_chainedError:function(e,t){var n=this._state._error(this,e,a,t);return this._run(),n},_completed:function(e){var t=this._state._completed(this,e);return this._run(),t},_error:function(e){var t=this._state
,,Error: ENOTEMPTY: directory not empty, rmdir 'C:\Users\martinae\.vscode-alpha\extensions\aeschli.vscode-css-formatter-0.0.2\node_modules\js-beautify'
Issue 1:
We need some way to interpret a &[u8] as UTF-8, using the replacement character for invalid sequences instead of conditions. This would ideally be provided in the form of an Iterator<char>.

Issue 2:
The current code for str::not_utf8 condition does this:

cond.raise(fmt!("from_bytes: input is not UTF-8; first bad byte is %u",
first_bad_byte as uint))

It might be more reasonable for condition handlers to recover in this situation if they had a reference to the original byte vector, rather than just a string describing what was wrong.

(In one case, the byte vector being passed is a ~[u8], but in another it is &[u8]; in the latter, case, attempting to do this would run into #5370, unless we were willing to allocate a copy when raising the condition, which is probably not a good idea.)

(Update: blake2-ppc makes a reasonable suggestion in his comment below, though it involves a more substantial revision to the code. I've generalized the title of this ticket accordingly.)
Issue 1:
VSCode Version:1.1.0

OS Version: Windows 7 x64

Steps to Reproduce:

Open any php document

Then click on any html tag. (eg. Div)

You will see that all div element highlighted

element not highlight its opening or closing tag like html document

Issue 2:
I don't know if it's just me but there's no support for HTML tag matching. If I click on div, every instance of div are highlighted instead of the closing </div>, which is a PITA.
Issue 1:
go version 1.4.2

Linux sanydellubuntu 3.19.0-30-generic #33-Ubuntu SMP Mon Sep 21 20:58:04 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

See my code below.

I expected mail.Address.String() can escape the comma for non-ASCII characters.

Comma is output without escape and cause error mail: no angle-addr during parsing.

package main

import (
"log"
"net/mail"
)

func formatEmailAddress(emailaddress, name string) string {
a := new(mail.Address)
if "" == emailaddress {
return ""
}
a.Address = emailaddress
if "" != name {
a.Name = name
}
return a.String()
}

func main() {
s := formatEmailAddress("test.mail@gmail.com", "naé, mée")
log.Println(s)
a, err := mail.ParseAddress(s)
if nil != err {
log.Println("error because:", err)
} else {
log.Println("name is:", a.Name, "email is:", a.Address)
}
}

Issue 2:
The following program fails the panic:

package main

import (
"fmt"
"net/mail"
)

func main() {
data := "\"\\\x1f,\"<0@0>"
addr, err := mail.ParseAddress(data)
if err != nil {
return
}
_, err = mail.ParseAddress(addr.String())
if err != nil {
fmt.Printf("failed to parse addr: %q -> %q\n", data, addr)
panic(err)
}
}

failed to parse addr: "\"\\\x1f,\"<0@0>" -> "=?utf-8?q?=1F,?= <0@0>"
panic: mail: no angle-addr

ParseAddress must handle result of Address.String, or else first ParseAddress must fail.

go version devel +514014c Thu Jun 18 15:54:35 2015 +0200 linux/amd64
Issue 1:
VSCode Version: 1.0.0

OS Version: Mac OSX

It would be nice if extensions are able to distinguish the autoSave event from a manual save. We need this information in our EditorConfig extension.

// @bpasero @jrieken

Issue 2:
It would be nice to have some extra events I guess. The first one I can think of is onPreSaveTextDocument (or onSaveTextDocument). One that will be invoked right before the document gets saved.

Use Cases

The first one I can think of is my own plugin final-newline that will insert a final newline at the end of the file when the user saves the document. At the moment it is implemented like this: Cmd + s → Save → Insert newline (if necessary) → Save

That last save triggers a new iteration of my plugin which will detect a final newline is already present and will stop the execution. So my loop is triggered twice because the plugin is triggered after the document was saved instead of before.

I think there will be other file manipulation plugins that want to manipulate the file before it gets saved as well.

From Alex:

I agree some sort of onBeforeSave action is indeed needed, we just need more thinking regarding how to expose this without causing any data loss. If we block the save to wait on extensions, I can imagine it possible that the wait could be indefinite, resulting in data loss. Maybe a time ceiling of 10s, after which the file gets saved...

@bpasero What do you think?
Issue 1:
Is it possible to turn off the name -> _name renaming used for let vars?

This works in Firefox (and Traceur) but doesn't work with 6to5:

function foo (n) {
let bar = n;
eval('console.log(bar)');
}

foo(42);

6to5 produces:

"use strict";
function foo (n) {
var _bar = n;
eval('console.log(bar)');
}

foo(42);

Function parameters are affected as well in some circumstances, which could break Function.toString hacks (e.g. DI in AngularJS):

let n = 42;

function square(n) {
return n * n;
}

6to5:

"use strict";
var _n = 42;

function square(_n) {
return _n * _n;
}

Issue 2:
Issue originally made by @aoberoi

Bug information

Babel version: 6.2.0

Node version: 4.2.2

npm version: 2.14.7

Description

I'd like to be able to declare my "extensions" inside my .babelrc file so that anyone running babel-cli in the project directory will get the same "extensions" option I chose. As I understand, this would mean extending the general options for babel to use extensions, rather than baking that into the babel-cli module. I think this makes sense because the extensions in which the code is authored is more a concern at the project level than a concern that someone could have regarding where input comes from and where output goes to (such as the current babel-cli options).