WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Detail

When I run script, Deno always panics.

import $ from "https://deno.land/x/dax@0.17.0/mod.ts";

const cmds = [];
for (let i = 0; i < 5000; i++) {
cmds.push($`./target/debug/deno_runtime_example`.text());
}
await Promise.all(cmds);

$ RUST_BACKTRACE=full deno run -A main.ts

============================================================
Deno has panicked. This is a bug in Deno. Please report this
at https://github.com/denoland/deno/issues/new.
If you can reliably reproduce this panic, include the
reproduction steps and re-run with the RUST_BACKTRACE=1 env
var set and include the backtrace in your report.

Platform: macos aarch64
Version: 1.28.3
Args: ["deno", "run", "-A", "main.ts"]

thread 'main' panicked at 'internal error: entered unreachable code', runtime/errors.rs:61:19
stack backtrace:
0: 0x101adc7bc - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h2990a6f24ccff6db
1: 0x101288d7c - core::fmt::write::h91497fd291c8b104
2: 0x101ab2a24 - std::io::Write::write_fmt::h23fa41342cffacf4
3: 0x101ae0b94 - std::panicking::default_hook::{{closure}}::hb41cdb784f4c17ac
4: 0x101ae0858 - std::panicking::default_hook::hdfe992d5fb29a991
5: 0x1011d2fe8 - deno::setup_panic_hook::{{closure}}::h5e935c84e6e3da4b
6: 0x101ae10f0 - std::panicking::rust_panic_with_hook::h2eb0e4b718773521
7: 0x101ae0eb8 - std::panicking::begin_panic_handler::{{closure}}::h06a693206403b4d5
8: 0x101ae0e4c - std::sys_common::backtrace::__rust_end_short_backtrace::h8998defd518dbcad
9: 0x101ae0e28 - _rust_begin_unwind
10: 0x101286f0c - core::panicking::panic_fmt::ha46aa9af97eb193d
11: 0x101288a5c - core::panicking::panic::h5713e7735cef5fa8
12: 0x10158348c - deno_runtime::errors::get_io_error_class::h77396f967b032c77
13: 0x101582fa0 - deno_runtime::errors::get_error_class_name::h42dd95fe507b1825
14: 0x100fdb3b0 - deno::errors::get_error_class_name::h2a9918ddd642a50a
15: 0x10131b200 - deno_core::error::to_v8_error::h406ecfc9d61f68bb
16: 0x10167e340 - deno_runtime::ops::process::op_run::v8_func::h56971477b8014cd2
17: 0x10167940c - <extern "C" fn(A0) .> R as v8::support::CFnFrom<F>>::mapping::c_fn::h78d0641241932d68

How to reproduce

At first, please clone this repository.

$ git clone https://github.com/skanehira/deno_runtime_example
$ cargo build

And add this script at project root directory.

import $ from "https://deno.land/x/dax@0.17.0/mod.ts";

const cmds = [];
for (let i = 0; i < 5000; i++) {
cmds.push($`./target/debug/deno_runtime_example`.text());
}
await Promise.all(cmds);

Run script and we got panic.

deno run -A main.ts

Issue 2:
How to use http2 protocol client and server in deno?
Issue 1:
I defined a class:

export class TCommand<TSender, TParam, TThis>
{
}

and created an alias for the closed type:

export type Command = TCommand<any, any, any>;

now when i try:

export class NextCommand extends Command {

}

the compiler says: Error 1 Cannot find name 'Command'

var cmd = new MOD.mvvm.Command();

Produces the same error

but i can write

var cmd: Command = null;

without errors,

Expected: to allow using this type alias for inheritance purposes.

The problem is that Typescript creates not a true alias

it produces in the output:

var NextCommand = (function (_super) {
__extends(NextCommand, _super);
function NextCommand() {
_super.apply(this, arguments);
}
return NextCommand;
})(Command); /// notice Command is not defined.

but it should produce

var NextCommand = (function (_super) {
__extends(NextCommand, _super);
function NextCommand() {
_super.apply(this, arguments);
}
return NextCommand;
})(TCommand); /// notice Command is replaced with original TCommand

That means - we don't need new definitions in the output for alias, but alias should be replaced with the original definition in the output!

Issue 2:
Currently a type aliased class cannot be instantiated. Also there is no way to alias a type with type parameters. Please consider making type aliases as capable as the types that they represent, basically capturing the type expression under a different name.
Issue 1:
Hi

I need to pretrain the bert on one dataset and finetune it then on other datasets, so basically

removing classifier from first part and substitute it with a new one with the specific number of

labels, currently with current codes, it will be error to do it when loading pretrained model,

could you please assist me how I can do this? I have a deadline soon and really appreciate your help urgently.

thanks

Best

Julia

model = model_class.from_pretrained(args.model_name_or_path, from_tf=bool('.ckpt' in args.model_name_or_path), config=config)

File "julia/libs/anaconda3/envs/transformers/lib/python3.5/site-packages/pytorch_transformers/modeling_utils.py", line 461, in from_pretrained

model.class.name, "\n\t".join(error_msgs)))

RuntimeError: Error(s) in loading state_dict for BertRUBIForSequenceClassification:

size mismatch for classifier.weight: copying a param with shape torch.Size([174, 768]) from checkpoint, the shape in current model is torch.Size([3, 768]).

size mismatch for classifier.bias: copying a param with shape torch.Size([174]) from checkpoint, the shape in current model is torch.Size([3]).

Issue 2:
I am using the following version of transformer, datasets and huggingface_hub.

I am running into the following error:

NameError: name 'PartialState' is not defined.

How to resolve this issue to work with my versions of the transformer, datasets and huggingface_hub ?

My code was running just fine until yesterday.
Issue 1:
Challenge [Change the Font Size of an Element]

Do not add a class attribute to the second p element, without removing it from the first one

Countless members in chat read this as moving the class attribute from one

to the other. Just drop the second phrase starting with ", without".

Issue 2:
Challenge Change the Font Size of an Element has an issue.

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36.

My code:

<style>
.red-text {
color: red;
}

p {
font-size: 16px;
}
</style>

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

<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>

<p>Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>

When removing class atribute from both p elements, one of the tests is not passing, and the error is:

Do not add a class attribute to the second p element, without removing it from the first

one.

The description is misleading.

I think better say something like:

Do not add a class attribute to the second p element.

First p element should have a class attribute and it's content should remain red.
Issue 1:
by blake.mizerany:

Per email from Brad:

It looks like what you don't actually care about owning the TCP connection and ideally
just want something like:

var clientClosed chan bool
cn, ok := w.(http.CloseNotifier)
if ok {
clientClosed = cn.CloseChannel() // returns a chan bool, written to when/if this http request is closed
}

select {
case <-clientClosed:
// cancel expensive stuff
case ....
}

https://groups.google.com/d/topic/golang-nuts/PcEvewBB-AQ/discussion

Issue 2:
The current testing package documentation states:

"These TestXxx routines should be declared within the package they are
testing."

There's no mention of the commonly used technique of creating a file with

package foo_test

instead of

package foo

for blackbox or example purposes.
Issue 1:
t1 = Variable(torch.rand(3, 3))
t2 = Variable(torch.rand(3, 3))

print(t1 > t2)

Variable containing:
0 1 0
0 1 0
0 1 0
[torch.ByteTensor of size 3x3]

print((t1 > t2) * (t1 < t2))

Variable containing:
0 0 0
0 0 0
0 0 0
[torch.ByteTensor of size 3x3]

print((t1 > t2) & (t1 < t2))

---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-55-b70196d4c8b9> in <module>()
----> 1 print((t1 > t2) & (t1 < t2))

TypeError: unsupported operand type(s) for &: 'Variable' and 'Variable'

Same goes for + being used in place of |.

Issue 2:
High Priority:

repeat

split

std

var

renorm

eq

ge

gt

le

lt

ne

Mid Priority:

cross

cumsum

trace

unfold

cumprod

atan2

__and__

__bool__

__iand__

__ior__

__ixor__

__mod__

__nonzero__

__or__

__xor__

cauchy

exponential

fill

geometric

log_normal

normal

ones

random

uniform

zero

zeros

Wontfix (as in very very low priority, but PRs are welcome!):

gesv

inverse

potrf

svd

trtrs

orgqr

ormqr

potri

potrs

pstrf [NOW DEFUNCT]

qr

symeig

eig

gels

geqrf
Issue 1:
Migrated issue, originally created by Marcin Jabrzyk (@bzyx)

Just tried to create URI connection string where user have password with '+' character, SQLAlchemy gives no clue in error and connecting to database using psql works fine.

Example URI:

SQLALCHEMY_DATABASE_URI = "postgresql+psycopg2://user:user+@somehosy.somedomain.com:5432/some_db"

Output:

sqlalchemy.exc.OperationalError: (OperationalError) FATAL: password authentication failed for user "user"

FATAL: password authentication failed for user "user"

None None

Changing password to not having '+' works fine.

Issue 2:
Migrated issue, originally created by Anonymous

AFAIK, '+' symbol only needs to be unquoted to separate form values from URL. But why function _parse_rfc1738_args in sqlalchemy/lib/sqlalchemy/engine/url.py uses unquote_plus on password!? This is wrong, I think.

Following lines of code are replacing '+' symbol in password with space causing database connection to eventually fail.

if components'password' is not None:

components'password' =

util.unquote_plus(components'password')
Issue 1:
Mark Fisher opened SPR-8017 and commented

This appears to be a schema issue since the 'beans' element is enabled within a sequence where it would always be the last type.

Affects: 3.1 M1

Issue Links:

#14525 XML configuration: 'beans' element should be allowed between 'bean' elemebts ("is duplicated by")

1 votes, 1 watchers

Issue 2:
Thomas Risberg opened SPR-8095 and commented

This has been a problem in applications using @Provider combined with @Autowired where the bean look ups exhibit performance problems.

These are quotes from a user:

"Under heavy load we are experiencing heavy lock contention in DefaultListableBeanFactory.findAutowireCandidates()."

"Under heavy load this is severely limiting our throughput".

Issue Links:

#11536 Cache by-type lookups in DefaultListableBeanFactory ("duplicates")

1 votes, 2 watchers
Issue 1:
Environment

Windows build number: 10.0.19041.264
PowerToys version: PowerToysSetup-0.18.2-x64.msi

Steps to reproduce

Run any of the apps listed below and try to install Power Toys

Expected behavior

PowerToys should install as usual.

Actual behavior

PowerToys says that some applications that have nothing to do with PowerToys needs to be exited:

Windows Terminal

Slack

Toggl Desktop

Yubico Authenticator

Issue 2:
Windows build number: 10.0.19041.264
PowerToys version: v0.18.1
PowerToy module for which you are reporting the bug: auto update

The update program requires to disable the Microsoft Store, Microsoft Text Input Application, Mail which are run at background. I can manually kill the process for Microsoft Store and Mail but Microsoft Text Input Application. However, I can just ignore this to continue. Just unsure does this effect anything.
Issue 1:
fn main() {
static FOO: float = 10.0;

match 0.0 {
0.0 .. FOO => (),
_ => ()
}
}

/home/brian/dev/rust/src/test/run-pass/test.rs:5:15: 5:18 error: unexpected token: `FOO`
/home/brian/dev/rust/src/test/run-pass/test.rs:5 0.0 .. FOO => (),

Issue 2:
static foo: int = 16;

fn main() {
match 15 {
3 .. foo => io::println(~"success"),
_ => fail!()
}
}

/tmp/rusttest.rs:5:13: 5:16 error: unexpected token: `foo`
/tmp/rusttest.rs:5 3 .. foo => io::println(~"success"),
^~~
Issue 1:
The REPL's pathname tab completion inserts backslashes before spaces in paths, which results in an invalid string because \ is not a valid escape. For example, if you create a file named "foo bar"

julia> touch("foo bar")
"foo bar"

and then type "foo<TAB> in the REPL, you get:

julia> "foo\ bar"
ERROR: syntax: invalid escape sequence
Stacktrace:
[1] top-level scope at REPL[1]:0

These backslashes seem very shell-like — what are they doing in Julia filenames?

Issue 2:
Autocomplete in the REPL add \ when needed to file names but julia1.0 functions do not like them

julia> DelimitedFiles.readdlm("a\ a.txt")
ERROR: syntax: invalid escape sequence

julia> DelimitedFiles.readdlm("a a.txt")

works
Issue 1:
I'm not exactly sure what it's supposed to do, but it seems wrong:

#![feature(macro_rules)]
macro_rules! some_stmts(
({ $($s:stmt)* }) => ($($s)*)
)

fn main() {
some_stmts!({
//let a = 5;
type a = int;
})
}

As is, we get:

stmts.rs:10:5: 10:6 error: local ambiguity: multiple parsing options: built-in NTs stmt ('s') or 1 other options.
stmts.rs:10 })

even though there is no way } could start a statement. With the let instead, it's

stmts.rs:8:18: 8:19 error: unexpected token: `;`
stmts.rs:8 let a = 5;

which doesn't seem to make sense either.

rustc 0.11-pre-nightly (d35804e 2014-04-18 00:01:22 -0700)

Issue 2:
Currently, the following macro argument grammar will not successfully parse anything, complaining of a "local ambiguity":

$( $t:ty )* #

The problem is that if it were to use the Rust parser to try to parse a type and fail, the whole task would be killed. This is easy to fix after that problem is resolved. There are two options:

Break parsing into a separate task, and see whether it survives. However, parse.rs requires a parse_sess, which is mutable state, and can't be shared. So the second option is probably more doable:

Allow the parser to safely return instead of killing the task. This works much like the Error monad. Ordinarily, this would require a lot of tedious wrapping and unwrapping, but we have a macro system! It should be relatively easy to make a notation like Haskell's do, and the parser would be able to stay in the standard imperative style.
Issue 1:
After moving to numpy 1.10.0 b2 in Fedora rawhide, we're seeing bad gfortran flags when building scipy:

Fortran f77 compiler: /usr/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -fPIC -O2 -march=x86-64 -DMS_WIN64 -mtune=generic -msse2
Fortran f90 compiler: /usr/bin/gfortran -Wall -g -fno-second-underscore -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -fPIC -O2 -march=x86-64 -DMS_WIN64 -mtune=generic -msse2
Fortran fix compiler: /usr/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -Wall -g -fno-second-underscore -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -fPIC -O2 -march=x86-64 -DMS_WIN64 -mtune=generic -msse2

It appears to be tacking on the "-march=x86-64 -DMS_WIN64 -mtune=generic -msse2" options from the mingw settings to the fortran compiler flags.

Issue 2:
numpy.distutils adds a -ffpe-summary command line option to gfortran, but it's apparently not supported by all versions of the compiler.

See scipy/scipy#5380

Apparently this was added in b354c00 --- seems to affect also non-windows platforms.
Issue 1:
Description

Currently when a service is inlined in anoter service you get a log message like

Inlined service "abc" to "xyz".

And at the same time you also get a log message that the service got removed

Removed service "abc"; reason: unused.

IMO when it a service is inlined, it should not also log that it got removed.

This way you can actually find services that are unused. Currently you get alot of duplicate messages for inlined services. And the reason "unused" is even more irritating as it is not really unused, it was just inlined because it's only used once.

Another improvement can be made for the autowire pass. When an object argument has a default value that cannot be wired, it does not error but logs a message like

Symfony\Component\DependencyInjection\Compiler\AutowirePass

Cannot autowire service "Ekino\NewRelicBundle\Listener\ResponseListener": argument "$newRelicTwigExtension" of method "__construct()" references class "Ekino\NewRelicBundle\Twig\NewRelicExtension" but no such service exists.

This is good. But for consistency and debugging purposes, it would be good if a scalar argument that has a default value that wasn't wired explicitly, also triggers a log. You might have just forgotten to wire it with a parameter for example and that is hard to spot.

Issue 2:
Hi,

I am running Symfony 2.0.5 on Windows 7 with PHP version 5.3.8.

When I am calling cache:clear on the console tool, I get this error sometimes (I do not know why):

C:\projects\cnc_agency\trunk>php app\console cache:clear

Clearing the cache for the dev environment with debug true

[ErrorException]

Warning: rmdir(C:\projects\cnc_agency\trunk\app/cache/dev_old\twig\f8): Directory not empty in C:\projects\cnc_agency\trunk\vendor\symfony\src\Symfony\Component\HttpKernel\Util\Filesystem.php line 98

cache:clear [--no-warmup]

When I remove the cache dir, it works again. But this is annoying a little bit.
Issue 1:
CSG is a very important feature… other 3D frameworks have support for CSG built-in ( Babylon.js ), the only CSG I can find is the 7 years outdated plugin ( https://github.com/chandlerprall/ThreeCSG )

I propose that this plug-in gets updated for bufferGeometry and added to the three.js code base as an official plug-in for CSG support.

I am willing to contribute funds to see this happen.

Issue 2:
Hello,

It would be really convenient to have native support of separate repeat values for different types of maps (e.g. diffuse and bump). It is possible to use this setting through API, but it's a way more complex approach. StackOverflow discussion:

https://stackoverflow.com/questions/14371385/can-a-three-js-material-have-separate-repeat-values-for-a-bump-map-and-a-texture
Issue 1:
Output of node_modules/.bin/electron --version: 3.0.5

Operating System (Platform and Version): travis ubuntu 14

Output of node_modules/.bin/electron --version on last known working Electron version (if applicable): the 2 series does not seem to have this issue

Expected Behavior

window.setTitle, when issued on did-finish-load, should always succeed

Actual behavior

With electron 3.0, we are seeing spurious failures.

unknown error: Cannot call function 'setTitle' on missing remote object 1
Error: Cannot call function 'setTitle' on missing remote object 1
at throwRPCError (/home/travis/build/.../electron.asar/browser/rpc-server.js:145:17)
at EventEmitter.<anonymous> (/home/travis/build/.../electron.asar/browser/rpc-server.js:357:7)
at EventEmitter.emit (events.js:182:13)
at WebContents.<anonymous> (/home/travis/build/.../electron.asar/browser/api/web-contents.js:293:13)
at WebContents.emit (events.js:182:13)
Error: An unknown server-side error occurred while processing the command.
at execute(<Function>, "setTitle", Create an action with limits, using let, "require") - api.js:300:19

To Reproduce

We will see if we can bottle up this issue

Screenshots

Additional Information

Issue 2:
Electron version: 1.8.2

Operating system: Deepin Linux 15.5 x86_64

How to reproduce

register 'CommandOrControl+C' to gloablShortcuts in main.js

app.on('ready', function () {
createWindow()
// Then I register an shortcut
const ret = globalShortcut.register('CommandOrControl+C', () => {
console.log('CommandOrControl+C is pressed, do something special')
// As 'CommandOrControl+C' is the common behavior to update clipboard in OS
// Expect that my special action registered here could be triggered, and also the OS default behavior
})
if (!ret) {
console.log('registration on CommandOrControl+C failed')
}
console.log(`CommandOrControl+C register ${globalShortcut.isRegistered('CommandOrControl+C')}`)
})

do something special when 'CommandOrControl+C' triggered

As 'CommandOrControl+C' is OS common behavior, would update things in clipboard, but current would not

Actual behavior

'CommandOrControl+C' event is swallowed by globalShortcuts, and the OS could not update things in clipboard

Expected behavior

keys registered in globalShortcuts could keep popup to system, not to swallow or interrupt

this is related to #11226
Issue 1:
Symfony version(s) affected: 4.1.8+

Description

Symfony now redirects routes with trailing slashes to routes without trailing slashes on its own, which seems unexpected and like a bad practice, as two URLs are treated equally which are not automatically equal by any official standards.

URLs in my application never have a trailing slash, and if a link points towards an URL with a trailing slash this should always be treated as a 404, which can then be captured and logged by my application to find out why there was an incorrect link. Symfony now decides on its own that an URL followed by a slash is equal to the same URL without the trailing slash and does an additional redirect, which seems like an arbitrary convention and is a BC break.

I also feel Symfony doing redirects bypassing the application is unexpected in its own way - I expect routes to be matched, but not Symfony to decide how to redirect URLs and changing my URLs. In my case this broke part of my application, because suddenly there was an additional unexpected redirect which was not issued by my application but by Symfony itself.

Possible Solution

As far as I can tell there is no way for me to bypass this functionality - no option to switch it off, nothing to do (I went through all Symfony documentation, and this now seems to be required behavior). Generally, I want to turn off ANY automatic redirection of Symfony, as this is the responsibility of my application.

So if this change really needs to happen, then there should be a possibility to turn it off. There might also be possibilities to make the router more succinct if the whole trailing slash or not part does not need to be in there, because matching something 1:1 must be a lot easier and less error-prone than also checking about trailing slashes or not.

Issue 2:
Description

The automatic 301 redirection from /foo/ to /foo was introduced in Symfony 4.1. In previous Symfony versions this results in a 404 response.

This is a "magic" behaviour which can be unwanted in certain cases. For example it can break AJAX calls via HTTPS.

There should be an option to disable this behaviour and enforcing strict URL matching on the route, without any magic redirects behind.
Issue 1:
Challenge Waypoint: Using typeof has an issue.

User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64) 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.

This is not a challenge-specific error. It shows up for each and every exercise which uses the FCC IDE (waypoints, bonfires, etc) I cleared browser cache, and even restarted my computer

Issue 2:
Challenge Waypoint: Say Hello to HTML Elements has an issue.

User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64) 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:

<h1>Hello World</h1>

After I click run test. The output is not displayed on the right screen. I refreshed it multiple times, tried in different browser. Didn't help.

Please help me out of this. I am new to FCC.