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

let f: any;
(() => f = () => 0)();
export {f} // f is defined

emit:

"use strict";
var f;
exports.f = f; // f is undefined
(function () { return f = function () { return 0; }; })();

Issue 2:
Hi,

If I have the following typescript code:

var obj = {
someKey: 6
};

// For some reason I want to change the object
obj = {
someKey: 7
};

export {obj};

it compiles to:

var obj = {
someKey: 6
};
exports.obj = obj;
obj = {
someKey: 7
};

So if I importing the object I get:

import {obj} from './some-file';
console.log(obj.someKey === 6); // true

But I was expecting 7. I.e. I was expecting the following JS code:

var obj = {
someKey: 6
};
obj = {
someKey: 7
};
exports.obj = obj;

Is this a bug or expected behavior?

I am using version 1.6.0-dev.20150731 but it has the same behavior in 1.5.3.
Issue 1:
Currently the file watcher cannot work properly on network file systems, or file systems that doesn't support the underlying change notification mechanism that node's fs.watch relies on. This could lead to the language service crashing (#6726).

The alternative solution is to consider third party file watcher libraries. As suggested by Daniel (#7376 (comment)), Watchman or similar product can be used for the purpose. It may worth some research.

Issue 2:
From @rajeevkumarsharma on January 1, 2016 15:7

{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"noEmitOnError": false,
"rootDir": ".",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"sourceMap": false,
"sourceRoot": "",
"inlineSourceMap": false,
"inlineSources": false
},
"files": [
"app/app.ts"
]
}

It still show error on decorator class

Copied from original issue: microsoft/vscode#1730
Issue 1:
I've noticed that since April 2016 built python wheel files are missing css in tensorboard/lib.

Take a look at those two builds from Jenkins:

13.04.2016

31.03.2016

and compare the contents of wheel file:

This causes issues when trying to run tensorboard after installation of wheel file.

Manual installation from source provides the same result as above.

Issue 2:
Environment info

Operating System: Mac OS X

Using virtualenv

Installed version of CUDA and cuDNN: None

(please attach the output of ls -l /path/to/cuda/lib/libcud*):

If installed from binary pip package, provide:

Which pip package you installed.

sudo pip install --upgrade https://storage.googleapis.com/tensorflow/mac/tensorflow-0.8.0rc0-py2-none-any.whl

The output from python -c "import tensorflow; print(tensorflow.version)".

0.8.0rc0

If installed from sources, provide the commit hash:

Steps to reproduce

git clone --recurse-submodule https://github.com/tensorflow/tensorflow.git

cd tensorflow

git checkout r0.8

python tensorflow/examples/tutorials/mnist/mnist_with_summaries.py --summaries_dir=/tmp/summaries_1

tensorboard --logdir /tmp/summaries_1

Open http://127.0.0.1:6006 in Chrome

Notice that the CSS don't load properly. The graphs and charts don't show either.

What have you tried?

Logs or other output that would be helpful

(If logs are large, please upload as attachment).

If accessed from non-localhost, tensorboard prints messages like the following in console:

WARNING:tensorflow:IOError [Errno 2] No such file or directory: '/Users/cais/venv1/lib/python2.7/site-packages/tensorflow/tensorboard/rPc_sWiTcH' on path /Users/cais/venv1/lib/python2.7/site-packages/tensorflow/tensorboard/rPc_sWiTcH

10.1.2.3 - - [13/Apr/2016 12:28:20] code 404, message Not Found
Issue 1:
@himanshug noted that there are some classes that are duplicated between indexing-service and server modules (which classes?)

We don't want to resolve this by just merging this into one larger module, because it would bring hadoop dependencies to historical, broker, and router nodes.

The proposal is to

Identify all duplicated classes

Compute a transitive dependency closure (Java source - based) of them and extract this as server-common module

Leave the remaining classes in indexing-service and server modules, but keep them separate.

Issue 2:
My data events have duplicates. Data ingestion stream like below:

log -- >logstash --> kafka --> tranquility --> druid

Can druid supports to remove duplicates? or tranquility supports to remove duplicates?

or I should do it by myself . Can you give me some suggestions about how to remove duplicates?
Issue 1:
The shapes of decision_function and predict_proba are inconsistent across classifiers for the two-label case.

As far as I can see, all classifier except LDA and QDA have a (n_samples,) shape decision_function and all classifiers

except SGDClassifier have (n_samples, 2) shape predict_proba. So I guess we should make all classifiers have that shape.

Btw, this means atm LDA and QDA don't work with multiclass and probably some other methods.

Issue 2:
The shapes of decision_function and predict_proba are inconsistent across classifiers for the two-label case.

As far as I can see, all classifier except LDA and QDA have a (n_samples,) shape decision_function and all classifiers

except SGDClassifier have (n_samples, 2) shape predict_proba. So I guess we should make all classifiers have that shape.

Btw, this means atm LDA and QDA don't work with multiclass and probably some other methods.
Issue 1:
Bug summary

When providing a large number of x and height values, there are often missing bars.

Code for reproduction

import numpy as np
import matplotlib.pyplot as plt

num_elems = 35000
x = np.sort(np.random.random(num_elems))
plt.bar(range(num_elems), x)

Actual outcome

The expected outcome should be a smooth right-triangle.

Expected outcome

Additional information

No response

Operating system

No response

Matplotlib Version

3.3.4

Matplotlib Backend

module://IPython.kernel.zmq.pylab.backend_inline

Python version

No response

Jupyter version

No response

Installation

No response

Issue 2:
I found a bug in the bar plot when the bar size gets really small and lots of bins are represented. I found it while doing a histogram and traced it into the bar plot.

from pylab import *
import random

random.seed()

b = int(2.2 / 0.0006)
x = [-1 + i * 0.0006 for i in range(b)]
y = [random.uniform(0, 100) for _ in range(b)]

fig, (ax1, ax2) = subplots(2, 1)

ax1.bar(x, y, width=0.0001)
ax2.plot(x, y, lw=0.2)

plt.tight_layout()
plt.savefig('hist.png', dpi=150, format='png')
plt.close()

Actual outcome

The bug consists in missing bars for some unknown reason. The code below shows the comparison between the bar plot and the same x, y plotted as a line. It can be noticed the difference in number of represented points.

Matplotlib version

Operating System: Manjaro Linux

Matplotlib Version: 2.0.2

Python Version: 3.6.1

I installed through pre-compiled package provided by Manjaro maintainers
Issue 1:
VSCode Version: alpha

OS Version: Windows 10 (Insider 14342)

Steps to Reproduce:

New Workspace

settings.json

{
"editor.formatOnType": true,
"typescript.tsserver.trace": "verbose",
"files.trimTrailingWhitespace": false,
"editor.trimAutoWhitespace": false
}

tsconfig.josn

{
"compilerOptions": {
"module": "commonjs"
}
}

open output window

test.js

__foo;

<cursor>

select TypeScript channel in output window

open code assist

select abstract

type backspace very quickly. Don't hold the key down. You have to press it over and over again.

Issue 2:
VSCode Version: 1.5.2

OS Version: Windows 2008R2

Steps to Reproduce:

Open an Java Maven project with a lot of tests

Do a maven clean install as task command

You get an error message like:

When you wait until Maven is finished running all the tests, the VS Code windows are completely blocked.

Is there a way to increase the time-out from the OUTPUTwindow?
Issue 1:
VSCode Version:1.2.0

OS Version:Windows 10

Steps to Reproduce:

Use Ctrl+F or Ctrl+H to run the Find or Replace commands

Select something on one line.

The "Find in selection" toggle is disabled:

Note: it works when selecting multiple lines, but the replacement does not adhere to the selection, but rather the lines selected; e.g. if you select the first half of a line, the replacement will replace parts in the entire line

Issue 2:
VSCode Version: 0.10.11

OS Version: Win7

Steps to Reproduce:

Could not replace with selection in a line.

replace with selection mode get wrong result, vs code would replace all match items in docment
Issue 1:
Given deployment.yml:

kind: "Deployment"
apiVersion: "extensions/v1beta1"
metadata:
name: "web"
labels:
app: "web"
spec:
replicas: 1
template:
metadata:
labels:
app: "web"
spec:
containers:
- name: "nginx"
image: "REDACTED"
env:
- name: "TARGET_HOST"
value: "localhost"
- name: "TARGET_PORT"
value: "8080"
- name: "ENABLE_SSL"
value: "false"
ports:
- name: "nginx-http"
containerPort: 80
- name: "nginx-https"
containerPort: 443
resources:
limits:
memory: "500Mi"
cpu: "1000m"
volumeMounts:
- name: "ssl-credentials"
mountPath: "/etc/ssl-credentials"
readOnly: true
- name: "web"
image: "REDACTED"
ports:
- containerPort: 8080
livenessProbe:
httpGet:
path: "/healthy"
port: 8080
initialDelaySeconds: 30
timeoutSeconds: 1
resources:
requests:
memory: "1000Mi"
cpu: "250m"
limits:
memory: "7500Mi"
cpu: "2000m"
volumes:
- name: "ssl-credentials"
secret:
secretName: "ssl-credentials"
imagePullSecrets:
- name: "ecr"
selector:
matchLabels:
app: "web"

kubectl create -f deployment.yml fails with message unable to load "deployment.yml": json: cannot unmarshal object into Go value of type string.

Unfortunately not a very helpful error message. Any idea what I'm doing wrong?

Issue 2:
Hey guys,

I just wanted to try out the new Deployments feature and therefore tried to use one of the example deployment specs I found in this repo and the user guides:

https://github.com/kubernetes/kubernetes/blob/533bc598dd451feabeff85eb1345bb9cf5265300/docs/user-guide/deployment.yaml

When I run that locally against my cluster which is running v1.2.0-alpha.8 I get the following error:

kubectl create -f kubernetes/deployment.yaml --v=5

I0301 15:02:48.470600 12155 decoder.go:144] decoding stream as YAML

F0301 15:02:48.522049 12155 helpers.go:96] unable to load "kubernetes/deployment.yaml": json: cannot unmarshal object into Go value of type string

Any idea what could cause this and how I could possible resolve this? I know this feature is still in beta but I'm super excited for it and really would love to try it out!
Issue 1:
Is anyone else seeing this? In the test directory, julia runtests.jl repl hangs for me. Is this already noted somewhere? I couldn't find anythign mentioned.

Issue 2:
test/repl.jl was added in #6955, most of the file is @unix_only at the moment except a few lines at the very end. These lines are freezing for me on Windows, but they're using process commands that you'd think should work.

| | |_| | | | (_| | | Version 0.3.0-prerelease+3381 (2014-06-02 13:19 UTC)
_/ |\__'_|_|_|\__'_| | Commit ddf4197* (0 days old master)
|__/ | x86_64-w64-mingw32

julia> exename = joinpath(JULIA_HOME, "julia")
"D:\\code\\msys64\\home\\Tony\\julia\\usr\\bin\\julia"

julia> outs, ins, p = readandwrite(`$exename -f --quiet`)
(Pipe(active, 0 bytes waiting),Pipe(open, 0 bytes waiting),Process(`'D:\code\msy
s64\home\Tony\julia\usr\bin\julia' -f --quiet`, ProcessRunning))

julia> write(ins,"1\nquit()\n")
9

julia> ins
Pipe(open, 0 bytes waiting)

julia> outs
Pipe(active, 2 bytes waiting)

julia> readall(outs)

This last command never exits, I have to manually kill the julia process(es).

exename = joinpath(JULIA_HOME, "julia")
outs, ins, p = readandwrite(`$exename -f --quiet`)
write(ins,"1\nquit()\n")
readall(outs)
Issue 1:
Original ticket http://projects.scipy.org/scipy/ticket/1450 on 2011-05-31 by trac user coomteng, assigned to @wnbell.

the amount of nonzero elements are limited by the dtype of indptr in csr/csc_sparse matrix. It is better to convert this dtype from int32 to int64.

Issue 2:
Original ticket http://projects.scipy.org/scipy/ticket/1307 on 2010-10-13 by trac user peb, assigned to @wnbell.

compressed.py in scipy.sparse creates arrays with a dtype = intc. This limits the size of a sparse matrix to 2^31 non-zero elements, preventing the solution of very large matrices.

It is suggested that a keyword be added to allow these arrays to be created with other dtypes, such at uintc and uint64.
Issue 1:
I am unsure if this is caused by TS eagerly loading all syntax trees or by the tsserver eagerly loading all symbols (which btw seems crazy to me) but I think the tsserver should check how large a project is (or how much memory is already used) and fail gracefully.

I have a JavaScript project with little code but a lots of dependencies like node_modules and bower_components as well as files that get generated into a temp folder (on server start). I am aware of the exclude-property and the default excludes, but the challenge is to provide guidance to the user to use them. I have no chance to ask tsserver how many files are included by a project because it crashes already with the first open-file request.

A diagnostics message ala too many files (foo/jsconfig.json, files: [...]), would be much appreciated because otherwise we are going to duplicate a lot of logic on our (VS Code) end for such checks (and the server will still crashes).

Issue 2:
An extension to #1692

Our ts project uses a grunt-based build system, with bower dependencies for the application and node_modules for build-tools. We will need the ability to exclude node_modules and bower_components from the build by default (unless files are referenced via /// ).

This causes an issue: we have end-to-end tests running in protractor, as well as unit tests running in jasmine, and unless we have the ability to exclude node_modules and bower_components, both will be parsed and we'll get duplicate definition errors.

In Visual Studio today, this is why we need to exclude both bower_components and node_modules from the project, because visual studio automatically parses all files in the project with no way to exclude them except to keep them out of the project altogether.

A number of third party tools have started to support tsconfig.json, and one thing I've noticed is that most of them support some sort of extension to tsconfig.json that supports file globs. I propose we just add support into the spec for file globs. For the version of typescript on npm, we can just depend on the appropriate file glob libraries in the npm ecosystem. For the Visual Studio embedded version of TypeScript, just embed the glob libraries that are needed statically in the installation.

As a fallback, if the notion of including a third party glob library is a non-starter, then the following fallback supporting a subset of the glob patterns would solve our problem at least partially.

Fallback:

Support both file and directory inclusions and exclusions in the files property:

files: [
'app/', (equivalent to 'app/**/*.ts')
'!e2e/', (equivalent to '!e2e/**/*.ts')
'!node_modules/',
'!app/bower_components/',
'!app/vendor/fooLib/fooLib.ts'
]
Issue 1:
Following this question on StackOverflow, it appears that it's not possible to use absolute URLs within the styleUrls property of components.

There is a check in the isStyleUrlResolvable function:

export function isStyleUrlResolvable(url: string): boolean {
if (isBlank(url) || url.length === 0 || url[0] == '/') return false; // <-----
var schemeMatch = RegExpWrapper.firstMatch(_urlWithSchemaRe, url);
return isBlank(schemeMatch) || schemeMatch[1] == 'package' || schemeMatch[1] == 'asset';
}

I wonder if it's something normal?

Thanks!

Thierry

Issue 2:
styleUrls: ["dist/stylesheet/App.css"] // this works perfectly
styleUrls: ["/dist/stylesheet/App.css"] // this does not work

any idea?
Issue 1:
Ubuntu 14.04

GCC 4.8.4

Cuda 7.5

Cudnn 4.0.7

Bazel 0.2.2b

bazel build -c opt --config=cuda //tensorflow/cc:tutorials_example_trainer

INFO: Found 1 target...

ERROR: /home/peiguo/.cache/bazel/_bazel_peiguo/67521296d96959142b2d5d303d9c774c/external/re2/BUILD:9:1: undeclared inclusion(s) in rule '@re2//:re2':

this rule is missing dependency declarations for the following files included by 'external/re2/util/rune.cc':

'/usr/include/stdc-predef.h'

'/usr/lib/gcc/x86_64-linux-gnu/4.8/include/stdarg.h'

'/usr/include/string.h'

'/usr/include/features.h'

'/usr/include/x86_64-linux-gnu/sys/cdefs.h'

'/usr/include/x86_64-linux-gnu/bits/wordsize.h'

'/usr/include/x86_64-linux-gnu/gnu/stubs.h'

'/usr/include/x86_64-linux-gnu/gnu/stubs-64.h'

'/usr/lib/gcc/x86_64-linux-gnu/4.8/include/stddef.h'

'/usr/include/xlocale.h'

'/usr/include/x86_64-linux-gnu/bits/string3.h'

'/usr/lib/gcc/x86_64-linux-gnu/4.8/include/stdint.h'

'/usr/include/stdint.h'

'/usr/include/x86_64-linux-gnu/bits/wchar.h'.

Target //tensorflow/cc:tutorials_example_trainer failed to build

Use --verbose_failures to see the command lines of failed build steps.

INFO: Elapsed time: 2.329s, Critical Path: 2.01s

I have tried many times, the error is always undeclared inclusion(s) in rule xxxx, but the xxxx is changing constantly.

Issue 2:
With the new tf.summary module, the name shown in tensorboard has to be equal to the summary op in the graph.

As a result, the name shown in tensorboard cannot be the same as any existing op in the graph.

This can create a bit of problem. Before this change, I could have some op named loss and the summary of its output also named loss, which is very consistent and easy to play with -- I can just look for the name of the tensor in tensorboard.

Now it looks like I have to add a prefix/suffix to everything because they cannot use the same name. Otherwise I got loss_1 in tensorboard which is confusing especially to new users.

Is there some changes that could be done to the new summary module that keeps the nice old feature?
Issue 1:
I'm curious why I can't find any apps out their that download atom-shell or use a cached version, replace the app name and icon, compress the app with .asar and drop it in Resources. This seems like it's a lot to do manually every-time you make a change when developing. Mainly because our source code is so abstracted from all this stuff. It would be nice to have a config in the source code that could build the binaries like .app file for us.

{
"icon": "./whatever.icns",
"name": "Whatever",
"atom_shell_cache": "./source/Atom.app",
"output":"./build",
"asar_compress": true,
"codesign_signature": "Company Inc."
}

Does something like this exist?

Update: The grunt downloader only downloads atom shell, which is also useful to a team where nobody has atom shell installed, it just doesn't solve the problem of putting the app together.

Update: Also it would be nice to not include dev-dependencies within the packaged app, so ideally this thing would npm install --production when it's building the app.

Issue 2:
Hello,

It would be great feature and lot easier to work on atom-shell, if it can have CLI as of cordova:

http://cordova.apache.org/docs/en/4.0.0/guide_cli_index.md.html#The%20Command-Line%20Interface
Issue 1:
Challenge Waypoint: Use CSS Selectors to Style Elements has an issue.

User Agent is: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36.

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

MY CODE :

<style>
h2 {color: blue;}
</style>

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

ERROR: (Your h2 element should be blue.)

Color blue issue.docx

Issue 2:
Challenge Waypoint: Use Clockwise Notation to Specify the Padding of an Element has an issue.

User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:42.0) Gecko/20100101 Firefox/42.0.

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

My code:

<style>
.injected-text {
margin-bottom: -25px;
text-align: center;
}

.box {
border-style: solid;
border-color: black;
border-width: 5px;
text-align: center;
}

.yellow-box {
background-color: yellow;
padding: 20px 40px 20px 40px;
}

.red-box {
background-color:red;
padding: 20px 40px 20px 40px;
}

.green-box {
background-color: green;
padding: 40px 20px 20px 40px;
}
</style>
<h5 class="injected-text">margin</h5>

<div class="box yellow-box">
<h5 class="box red-box">padding</h5>
<h5 class="box green-box">padding</h5>
</div>

What am I doing wrong???
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: 2.7.5

when use protobuf serialization， method in proto file will translate to lowercase start method name， why do that ？

// proto
service DemoService {
rpc SayHello (HelloRequest) returns (HelloReply) {}
}
// generated java code
public interface IDemoService {

static Class<?> clazz = init();

org.apache.dubbo.demo.HelloReply sayHello(org.apache.dubbo.demo.HelloRequest request);

CompletableFuture<org.apache.dubbo.demo.HelloReply> sayHelloAsync(org.apache.dubbo.demo.HelloRequest request);
}
}

results

It will make other language like golang call java provider harder，in golang，lowerCaseFirst method means private。Just use original methodName is ok？

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.7.4.1

Operating System version: xxx

Java version: xxx

Steps to reproduce this issue

路径：org.apache.dubbo.config.ApplicationConfig

私有方法 updateParameters 第一个参数，并没有被使用

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

Expected Result

What do you expected from the above steps？

Actual Result

What actually happens?

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

Just put your stack trace here!
Issue 1:
I realized last edited dates can not be shown on welcome page. I checked web console and backend logs but didn't see any error shown. Problem occurs only in Recents tab, all other tabs works fine.

Expected results

Last modified date of charts and dashboards should be seen.

Actual results

They shown as invalid.

Screenshots

How to reproduce the bug

Modify charts or dashboards and check welcome page.

Environment

Installed superset via apache/superset image with celery worker.

superset version: 1.0.0

python version: 0.37

metadata store: mysql 5.7.32

Checklist

Make sure to follow these steps before submitting your issue - thank you!

I have checked the superset logs for python stacktraces and included it here as text if there are any.

I have reproduced the issue with at least the latest released version of superset.

I have checked the issue tracker for the same issue and I haven't found one similar.

Issue 2:
I am looking for charting options where I can plot day (1-30 days) trend of current month and compare it with day trend of previous month.

In this case X axis won't be date but integer (i.e. day) and currently SuperSet doesn't allow to do so. Can we have that feature.