WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Deno claims to be a "secure runtime for JavaScript and TYPESCRIPT", and it is one of the main reasons why I started looking into Deno.

And yet, a simple test on deno repl shows that the typescript is not really supported. Is this by design? Is this Deno's technical limitations?

For me, personally, being able to transpile Typescript to Javascript has relatively low value. Whether I compile the code via tsc or deno (with embedded tsc), or any other tools, has very little difference. It's just a build process.

The real value for me (if Deno supports Typescript as a first class citizen, as it seems to promise) will be being able to "hide" the transpilation process from the user experience, like in REPL.

Issue 2:
PR #998 provides a REPL for Deno, but only supports plain JavaScript. It needs to support TypeScript as well.

I was thinking about the approach and am writing up a couple ideas. ts-node provides a REPL and in looking at how they accomplish it seems like a reasonably logical approach to attempt with Deno. In order to support that, I think we need to do the following:

Create a Deno Compiler API that takes in a source code and optionally previous output code, returning any new lines and any diagnostics. Maybe something like this:

incrementalCompile(sourceCode: SourceCode, previousOutput?: OutputCode): { diagnostics: ts.Diagnostic[], outputCode: OutputCode, additionalCode: OutputCode);

Note that the compiler.configure() in #1136 will likely be need as well to allow the REPL to change the configuration, which it will need to do. We might have to modify it so it actually allows some changes that we wouldn't normally allow.

The REPL keeps the "context" of the source code, appending lines to this context, and compiling the code incrementally.

The REPL then evals the incremental lines, (but not the full output code) or outputs diagnostics.

The reason it needs to work this way, is that in some cases, the TypeScript will output something higher up (like when it emits helpers) and those need to be evaled.

Things like imports and async are going to be complex, I would recommend we aim for an MVP and then figure out how to go from there.

cc: @bartlomieju
Issue 1:
I experience the following problem using the 0.3.5 binary on Windows 7.

Could anyone confirm, please ?

I could go back to previous binary versions,

0.3.3 was OK, the problem appeared in 0.3.4.

julia> 1,2,3
(1,2,0)
julia> (1,2,3)
(1,2,0)
julia> t=(1,2,3)
(1,2,0)
julia> t=tuple(1,2,3)
(1,2,0)

julia> versioninfo()
Julia Version 0.3.5
Commit a05f87b* (2015-01-08 22:33 UTC)
Platform Info:
System: Windows (x86_64-w64-mingw32)
CPU: Intel(R) Core(TM) i7-4790S CPU @ 3.20GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
LAPACK: libopenblas
LIBM: libopenlibm
LLVM: libLLVM-3.3

Issue 2:
$ julia
_
_ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: http://docs.julialang.org
_ _ _| |_ __ _ | Type "help()" to list help topics
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.3.0-prerelease+3908 (2014-06-26 23:41 UTC)
_/ |\__'_|_|_|\__'_| | Commit 8f99257 (0 days old master)
|__/ | x86_64-w64-mingw32

julia> x = tuple(1,2,3)
(1,2,0)

julia> x
(1,2,0)

julia> x[3]
3

julia>
julia> versioninfo()
Julia Version 0.3.0-prerelease+3908
Commit 8f99257 (2014-06-26 23:41 UTC)
Platform Info:
System: Windows (x86_64-w64-mingw32)
CPU: Intel(R) Core(TM) i7-4600M CPU @ 2.90GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY)
LAPACK: libopenblas
LIBM: libopenlibm

julia>
Issue 1:
I'm missing a getAssertType() function in the ConstraintViolation class which would indicate which constraint triggered the violation.

This is useful when you make your own error response format, as currently it's impossible to tell which of the constraints on a member was triggered.

Issue 2:
Following my (unanswered) question at StackOverflow I'm reporting this as a bug, as no one seems to know the answer.

Currently there's no way that I can see to populate the code property for the ConstraintViolation class, as it is not defined in the Constraint class. But as I see, it goes farther than that, as all the validators just ignore the parameters for the addViolation method, making it impossible for simple asserts to define a code for the violation.

What I expect it to allow is the following:

/**
* @Assert\NotBlank(code=400)
* @Assert\Email(code=401)
*/
protected $email;

Problem is, the current validators call addViolations without setting the 5th argument (code). Plus, the Constraint class doesn't implement such a code property as mentioned.

If this is indeed considered a bug, I would like to send a PR with a patch, provided that this is the way that it should be working.If it's not, some directions would be amazing!
Issue 1:
From @mapreri on December 24, 2014 15:19

ISSUE TYPE

Feature Idea

COMPONENT NAME

apt_repository module

ANSIBLE VERSION

never worked…

SUMMARY

I'm my systems I have a lot of repositories with an arch-qualifier.

e.g.:

deb [arch=ppc64el] http://ftp.debian.org/debian/ sid main
deb [arch=amd64,i386] http://dl.google.com/linux/talkplugin/deb/ stable main

apt_repository does not understand them and tries to re-add that repos, actually duplicating them.

Moreover I'd like to be able to specify these option in ansible. Currently available options are (from sources.list(5):

· arch=arch1,arch2,... can be used to specify for which architectures information should be downloaded. If this option is not set all architectures
defined by the APT::Architectures option will be downloaded.

· arch+=arch1,arch2,... and arch-=arch1,arch2,... which can be used to add/remove architectures from the set which will be downloaded.

· trusted=yes can be set to indicate that packages from this source are always authenticated even if the Release file is not signed or the signature can't
be checked. This disables parts of apt-secure(8) and should therefore only be used in a local and trusted context. trusted=no is the opposite which
handles even correctly authenticated sources as not authenticated.

these options are surrounded by square brackets, and can or cannot have leading and trailing spaces between the options and the brackets.

Copied from original issue: ansible/ansible-modules-core#563

Issue 2:
Feature Idea

COMPONENT NAME

ec2_group

ANSIBLE VERSION

ansible 2.3.2.0
config file = /home/aaron/projects/ops/provisioning/ansible.cfg
configured module search path = Default w/o overrides
python version = 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609]

CONFIGURATION

NR

OS / ENVIRONMENT

Ubuntu 16.04

SUMMARY

Amazon recently released an option for attach descriptions to security group rules. Would be great to add support for this in Ansible EC2 module.

STEPS TO REPRODUCE

NR Feature Request

EXPECTED RESULTS

Able to add description to rules when using ec2_group

ACTUAL RESULTS

NR Feature Request

If I have time, I'll probably introduce this myself (assuming Boto3 supports it already...). SS example from the Management console:
Issue 1:
function f(a, b)
for i = 1:1000000
size(a) == size(b)
end
end

julia> @time f([1], [1])
elapsed time: 0.096288154 seconds (48000208 bytes allocated, 47.00% gc time)

This does not affect tuples in general:

function f(a, b)
for i = 1:1000000
a == b
end
end

julia> @time f((1,), (1,))
elapsed time: 0.002870282 seconds (128 bytes allocated)

This hurts == for arrays, which checks equality of sizes before proceeding, as well as in-place functions that need to check that the output is the same size as the input.

Issue 2:
Hi all,

The following code seems to allocate a lot of memory:

function test!(arr::Array{(Int, Int)})
for i = 1:10_000_000
arr[1] = arr[2]
end
end

a = [(1, 1), (2, 2)]
test!(a)

Here are the results of @time test!(a) (using HEAD on the master branch, commit ce29d78) :

elapsed time: 0.439144953 seconds (320013808 bytes allocated, 40.35% gc time)

On the other hand, using a composite type works as expected:

immutable Pair{T1, T2}
a::T1
b::T2
end

function test!(arr::Array{Pair{Int, Int}})
for i = 1:10_000_000
arr[1] = arr[2]
end
end

a = [Pair(1, 1), Pair(2, 2)]
test!(a)

Here @time test!(a) yields

elapsed time: 0.022649237 seconds (80 bytes allocated)

Am I missing something obvious? It seems that each assignment triggers an allocation in the case of tuples (adding @time before the assignment suggests a 32 bytes allocation). Why is that? Is this documented somewhere?

(I ran into this problem when trying to use a heap to extract the top n elements from a list of tuples without sorting it first, as done in Python's heapq.nlargest method)
Issue 1:
Support compiling multiple input .ts files into one external module.

Need to determine exactly how the module boundaries are defined when doing this.

Issue 2:
For simple tsc projects, I just want to use tsc as my build command. Since tsc supports most options in tsconfig.json, it would be awesome if tsc could take --incremental as an argument, check if any of the sources are newer than the outputs and early exist if no sources are newer.

Currently in source depo and nmake land, we have to duplicate a lot of the tsconfig.json options in nmake just to support incremental builds.
Issue 1:
update - for real ORM upsert, please see SQLAlchemy 2.0's new feature at https://docs.sqlalchemy.org/en/20/orm/queryguide/dml.html#orm-upsert-statements

Currently there is no way to specify on conflict behaviour when using session class and it's add method which makes a decision to either insert or update.

This would be a nice addition to have on conflict behaviour of this method configurable.

Issue 2:
Migrated issue, originally created by Anonymous

Let's consider the example given in the documentation.

One can do:

s.query(User).filter(User.user_keywords.contains(user_keyword))

but he can't do:

s.query(User).filter(User.keywords.contains(keyword))

because:

AttributeError: 'AssociationProxy' object has no attribute 'contains'

That's why, when I use the association_proxy pattern, I also add another view only relation between the two referenced objects (in this case User and Keyword), using the secondary table.

I use this relation for selecting, and I use the association_proxy relation for inserting...

This duplication is annoying. I don't know if it's possible to solve the problem, but I want to be able to do:

s.query(User).filter(User.keywords.contains(keyword))

kobipe3@gmail.com

Attachments: ticket-1372-associationproxy-comparators.patch
Issue 1:
Is there an easy way to disable jitting for a part of the code only?

# can't @jax.jit because it contains a non-jittable section
def foo(a):
b = bar(a) # jittable
c = scipy.bfgs.minimize(b) # non-jittable
d = zar(c) # jittable
return d

This can be manually split into two different jit sections

bar = jax.jit(bar)
zar = jax.jit(zar)
def foo(a):
b = bar(a)
c = scipy.bfgs.minimize(b) # non-jittable
d = zar(c)
return d

However I often have an extremely long call-stack that explicit jitting is very tedious (especially through compositions and custom_vjps) and it would be nice to be able to specify something like @jax.nojit. Not sure how the implementation detail would work though, maybe automatically generate two sets of jaxprs/HLOs that sandwich the non-jittable part?

(and yes, I've tried tfp's bfgs optimizers and unfortunately it is very deficient compared to that of scipy's bfgs)

Issue 2:
It would be great to be able to jit functions that make use of custom CPU operation, i.e., implemented with NumPy arrays. This would be a really valuable extension point for integrating JAX with existing codes/algorithms, and would possibly solve the final remaining use-cases for autograd.

Right now, you can use custom CPU operations if you don't jit, but that adds a very large amount of dispatch overhead.

My understanding is this could be possible by making use of XLA's CustomCall support.
Issue 1:
Content: To support Top(expression) of SQLServer query SQL, the first step is to parse this grammar through Sharding-Parser.

Difficulty Rating: ★★★☆☆

Requirements:

- Understand g4 file of ANTLR

- Understand Visitor mechanism of ANTLR

- Can modify xml file

Issue 2:
Bug Report

For English only, other languages will not accept.

Before report a bug, make sure you have:

Searched open and closed GitHub issues.

Read documentation: ShardingSphere Doc.

Please pay attention on issues you submitted, because we maybe need more details.

If no response more than 7 days and we cannot reproduce it on current information, we will close it.

Please answer these questions before submitting your issue. Thanks!

Which version of ShardingSphere did you use?

4.0.1

Which project did you use? Sharding-JDBC or Sharding-Proxy?

Sharding-Proxy

Expected behavior

be opened

navicat version:

Testing is ok

IDEA database :

But DBeaver 7.0.1 is ok

Actual behavior

Reason analyze (If you can)

Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.

Example codes for reproduce this issue (such as a github link).
Issue 1:
Environment

Windows build number: 10.0.18363.836
PowerToys version: 0.18.2
PowerToy module for which you are reporting the bug (if applicable): Run

Steps to reproduce

Search for "Docker"/"Docker Desktop"

See that only the .lnk is listed

Expected behavior

Docker Desktop can be found.

Actual behavior

Docker Desktop is not found (except the .lnk).

Screenshots

Issue 2:
I've only tried PowerToys Run for the second time; coming from KeyPirinha, it feels a little slow, but the last release is a lot faster than it was, so kudos.

I'd like to propose some settings toggles to facilitate what could become the central place to launch things on Windows machines, much like Spotlight (which isn't that great -- but it's fast) or Alfred (which is pretty good, but not free) or KeyPirinha (fast, free, only windows)

Option to rank matching windows highest

this would make PTR a viable alternative for alt-tab and hunting for the correct window; right now, the suggestion is at the bottom, so harder to get to, and more often than not, if the window is open, the app is a bad match: I basically never want 2x mail clients, slack, web browsers, etc -- I'd like to open the app or switch to it. For things that I open frequently (and multiple instances), I have keyboard shortcuts

I see there's a "fuzzy match", and the latest release ranks exact matches higher -- which makes sense. I'd like to see PTR learning my fuzzy matches and ranking those at the top. If I type in "ff" and move downward to select Firefox Nightly, I'd like "ff" to bring up Firefox Nightly at the top every time, with other matches below. IOW, rank matches by user selection -- if I cursored there, it's a good match

Option to start up blank every time -- I basically never want the last selection, and yes, the text is already selected, so I can just start typing, but it looks cluttered.
Issue 1:
Setting lights: false for MeshStandardMaterial throws an error in the console

var material = new MeshStandardMaterial({ color: 0x28292d, side: DoubleSide, lights: false });

Dev

r98

...

Browser

All of them

Chrome

Firefox

Internet Explorer

OS

All of them

Windows

macOS

Linux

Android

iOS

Hardware Requirements (graphics card, VR Device, ...)

Issue 2:
Description of the problem

Here is one such example of a text node with a "size" field containing only one number.

Three.js version

r89

Browser

All of them

Chrome

Firefox

Internet Explorer

OS

All of them

Windows

macOS

Linux

Android

iOS
Issue 1:
We found that Glide did not work well when loading some larger GIFs, and in order to optimize it, we converted the GIF to webp, but it's a surprise that glide does not support loading it, There are someone trying to embed Fresco's webp-animite module in Glide now, but there are some uncontrollable issues. Hopefully glide will support it soon. If there is any intention, let us know thank you.

Issue 2:
Will be very great if you will add a support for WebP format. Witch includes loading WebP images and playing the animations.. Like the Fresco library does.

To add support of loading images shouldn't be hard.. the challenge is to add animation playing support.

Tnx.
Issue 1:
Hi

One may want to evaluate perplexity in language modelling task. In this case it is necessary to average over sequence length, then take exponent and only then average over batch size.

For now it is impossible to implement such logic with torch.nn.NLLLoss in case of implicitly result averaging or summing up.

From my point of view, it may be reasonable not to perform any implicitly operations with result of loss functions to make them more flexible.

Cheers!

Issue 2:
After it was verified on discuss.pytorch that this is indeed unwanted behaviour, I am forwarding this to you:

Issue description

I trained a model with among others had the following layer:

final_layer.append(nn.Conv2d(64, 1, kernel_size=1))

and then saved it to a file with state_dict and torch.save.

Then, when I wanted to load that model using load_state_dict, by accident the same layer was setup as follows:

final_layer.append(nn.Conv2d(64, 32, kernel_size=1))

Nevertheless, the model was loaded without error. It seemed that the weights were just duplicated 32 times, but I have not verified. So the question is how this is consistent with API documentation. I have not found a statement that says load_state_dict would somehow fix shape inconsistencies automatically. It seems you have a documentation vs reality mismatch here. (Now you need to decide which one to fix)

Code example

path = './test_model.pth'

model = nn.Conv2d(64, 1, 3, 1, 1)
torch.save(model.state_dict(), path)

model = nn.Conv2d(64, 32, 3, 1, 1)
model.load_state_dict(torch.load(path))

for w in model.weight[:, :, 0, 0]:
print(w)

Provided by discuss .pytorch user ptrblck

System Info

pytorch 0.4 release
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: xxx

Operating System version: xxx

Java version: xxx

Step to reproduce this issue

xxx

xxx

xxx

Pls. provide [GitHub address] to reproduce this issue.

Expected Result

What do you expected from the above steps？

Actual Result

What is actually happen?

If there is an exception, please attach the exception trace:

Just put your stack trace here!

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

I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: 2.5.7

Operating System version: linux redhat4.8

Java version: jdk1.8

Steps to reproduce this issue

connect zookeeper with zKcli;

setAcl /dubbo digest🔡base64(sha(abcd)):cdrwa

ls /dubbo 权限受限

addauth digest abcd:abcd

5.可以访问 ls /dubbo

What actually happens?

zookeeper acl设置在dubbo中不生效

If there is an exception, please attach the exception trace:

配置文件dubbo.properties中配置了如下信息
dubbo.registry.protocol=zookeeper
dubbo.registry.address=zookeeper的集群地址
dubbo.registry.username=abcde(故意不正确）
dubbo.registry.password=abcde(故意不正确）
dubbo.registry.client=zkclient

question（问题）：
实际情况不是应该出现noauth的异常吗？
现状是没有出现异常，这是为什么？
Issue 1:
Glide Version:

Integration libraries:

Device/Android Version:

Issue details / Repro steps / Use case background:

Glide load line / GlideModule (if any) / list Adapter code (if any):

Glide.with...

Layout XML:

<FrameLayout xmlns:android="...

Stack trace / LogCat:

paste stack trace and/or log here

Issue 2:
It'd be great if Glide can support Jetpack compose with a composable like GlideImage

Expected Usage (minimum)

setContent {
GlideImage(url)
}
Issue 1:
Hi!

I'm consuming declaration files from the node packages in my project so I'm not able to modify them.

Therefore I opted to override module definition.

I use redux and redux-thunk. Without this override of Dispatch type all my uses of dispatch will complain about wrong type (Correct behaviour). What redux-thunk does that it allows to dispatch to not dispatch object but also functions that can dispatch multiple objects.

TypeScript Version:

1.8.10

Code

// redux-dispatch-override.d.ts

import * as redux from 'redux';

declare module 'redux' {
export interface Dispatch<S> {
<R>(asyncAction: (dispatch: Dispatch<S>, getState: () => S) => R): R;
}
}

Expected behavior:

Typescript compiler actually does accept this and will no longer throw errors which is very nice.

Actual behavior:

On the other hand there is a problem with tsserver.

In Webstorm tsserver will no longer consume definitions defined in redux node package. Instead it will try to find all definitions in this overriden declaration.

Issue 2:
TypeScript Version:

1.9.0-dev.20160518-1.0

Code

bar/index.ts:

export interface Bar {}

foo/index.ts:

import {Bar} from '../bar';

namespace Bar {
export const foo = 3;
}

export const foo = Bar.foo;

Expected behavior:

foo/index.js:

"use strict";
var bar_1 = require('../bar');
var Bar;
(function (Bar) {
Bar.foo = 3;
})(Bar || (Bar = {}));
exports.foo = Bar.foo;

Actual behavior:

foo/index.js:

"use strict";
var bar_1 = require('../bar');
var Bar;
(function (Bar) {
Bar.foo = 3;
})(Bar || (Bar = {}));
exports.foo = bar_1.Bar.foo;

Notes:

This currently fails silently. At runtime foo/index.js will export {foo: undefined}. If merging a namespace declaration into a type name imported from another module is not allowed, then this should result in a compilation error. The issue I could find closest to this was #8288.

This issue does not occur if bar/index.ts additionally exports a namespace named Bar; tsc reports error TS2440: Import declaration conflicts with local declaration of 'Bar' in such a scenario.
Issue 1:
When I run an HTTPS server, somehow a request will trigger a panic error.

ConnectionReset: Connection reset by peer (os error 104)

error: Uncaught ConnectionReset: Connection reset by peer (os error 104)
at unwrapResponse (rt/10_dispatch_json.js:24:13)
at sendAsync (rt/10_dispatch_json.js:75:12)
at async TLSListener.accept (rt/40_tls.js:42:19)
at async Server.acceptConnAndIterateHttpRequests (file:///server/dist.server.js:1714:32)
at async MuxAsyncIterator.callIteratorNext (file:///server/dist.server.js:797:49)

Issue 2:
I have a problem running an https server and I can't solve it on my own. I tried various things which include:

switching linux distros

using different ssl certificates

changing server configurations

different domains

comparing to http server

and more

The problem is that after an indeterminable time, but mostly about 20 hours, the server stops working in the sense that requests just seem to timeout: curl: (28) Failed to connect to xyz.com port 443: Connection timed out. Before this time period, everything works prefectly. But the deno process is still running and the port is still used:

I don't use an nginx proxy server; just deno directly on a linux distro.

I execute deno with sudo and I also tried to start deno with pm2. In all cases it stops working after a couple of hours.

The server runs on AWS Lightsail and I can rule out that a huge amount of requests is causing this (maybe 10 requests per hour).

I can also say with certainty that this does not happen with a deno http server nor with a node https server, which I both tested at least once for two days.

There was no big CPU or memory load which I could see in the monitoring tools. I only respond with hello world to requests at the moment.

If necessary I would be happy to give ssh access to somebody who knows how to debug this issue.

Thanks a lot!