WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
TypeScript Version:

type-script playground

Code

TS

enum Color {Red = 6, Green=5, Blue};
let colorName: string = Color[2];

alert(colorName);

**

JS

var Color;
(function (Color) {
Color[Color["Red"] = 6] = "Red";
Color[Color["Green"] = 5] = "Green";
Color[Color["Blue"] = 6] = "Blue";
})(Color || (Color = {}));
;
var colorName = Color[2];
alert(colorName);

**

Expected behavior:

Since 'Red' is number 6, and 'Blue' defined automatically to follow 'Green's 5, 'Blue' should be getting any number that not listed yet,

The alert should not call 'Blue'.

Actual behavior:

The 'Blue' element in the enum get 6 because it follows 'Green' 5 and did not get a pre-set.

Issue 2:
Enum value incrementation does not consider previously defined values, nor does the compiler throws an error on duplicate values.

Which means you can end up with potential bugs:

enum Color {Red = 3, Green = 2, Blue};

Color.Red == Color.Blue; //true
Issue 1:
Building on a question I asked on StackOverlow, I was wondering if it would be a nice addition if it would be possible to define types recursively. If I am guessing correctly this wouldn't be too difficult to implement.

Example:

type Document = [number | string | Array<Document>]

Currently, according to the spec, only classes and interfaces are allowed to reference themselves. Is there a reason for this?

Classes and interfaces can reference themselves in their internal structure...

Issue 2:
interface A<a> {
brand: 'a';
nested: a;
}

interface B<a> {
brand: 'b';
nested: a;
}

type C<a> = A<a> | B<a>;

type D = C<D> | string; // <-- i wish
Issue 1:
I absolute LOVE atom, but this is the one and only big complaint I have.

My project compiles files to "public/" folder. This folder is not git-ignored, so therefore it shows up when I search my project for anything. This is very annoying as I never need to see results from this folder.

Would be perfect if I could exclude file types/folders. Specially if it was working with "Projects settings".

Thanks guys, you rock!

Issue 2:
When searching, filters can be specified. However, there's no way to exclude paths from the search.

E.g.: *.js, -*.min.js cannot be used to exclude minified files from a search of JS
Issue 1:
Apache Airflow version

2.2.2 (latest released)

What happened

If I pause/unpause dag in Tree, Graph, or Gantt page, /paused url is calling twice.

So paused events are logging twice.

What you expected to happen

It should be logging only once.

How to reproduce

Go to Tree, Graph, or Gantt page. And pause/unpause it.

Operating System

centos

Versions of Apache Airflow Providers

No response

Deployment

Other 3rd-party Helm chart

Deployment details

No response

Anything else

No response

Are you willing to submit PR?

Yes I am willing to submit a PR!

Code of Conduct

I agree to follow this project's Code of Conduct

Issue 2:
Apache Airflow version: 1.10.10 (master has same issue)

Kubernetes version (if you are using kubernetes) (use kubectl version): N/A

Environment:

Cloud provider or hardware configuration:

OS (e.g. from /etc/os-release): MacOS 10.15.4

Kernel (e.g. uname -a): Darwin Kernel Version 19.4.0

Install tools: pip

Others:

What happened:

What you expected to happen:

There is a mismatch between return value of job_completion of AwsGlueJobHook and end condition in poke of AwsGlueJobSensor. While job_completion returns a dictionary of JobRunState and JobRunId, poke checks if it is 'SUCCEEDED' or 'FAILED' which should be only JobRunState. So the condition always fails and poke always returns False which leads GlueSensor to run indefinitely even if Glue job finished.

Also, I think while loop in job_completion is useless. It should return immediately after it gets response from glue client but doesn't have to wait until it finishes or fails. It is duplicated with execution loop of Sensor.

How to reproduce it:

Run any job and wait for the job using GlueJobSensor.

Anything else we need to know:
Issue 1:
System information (version)

OpenCV => master, 834c992

Operating System / Platform => Ubuntu 18.04, Power 9

Compiler => clang version 10.0.0 (git@github.com:llvm/llvm-project.git 2f51a43f8c2b117e69a45eae6a7c849e035a793b)

Detailed description

In file included from .../opencv/modules/core/src/arithm.cpp:50:
In file included from .../opencv/modules/core/src/precomp.hpp:49:
In file included from .../opencv/modules/core/include/opencv2/core/utility.hpp:56:
In file included from .../opencv/modules/core/include/opencv2/core.hpp:57:
In file included from .../opencv/modules/core/include/opencv2/core/matx.hpp:54:
In file included from .../opencv/modules/core/include/opencv2/core/saturate.hpp:49:
.../opencv/modules/core/include/opencv2/core/fast_math.hpp:200:5: error: invalid instruction
CV_INLINE_ROUND_DBL(value);
^
.../opencv/modules/core/include/opencv2/core/fast_math.hpp:105:40: note: expanded from macro 'CV_INLINE_ROUND_DBL'
__asm__( "fctiw %[temp],%[in]\n\tmffprwz %[out],%[temp]\n\t" : [out] "=r" (out), [temp] "=d" (temp) : [in] "d" ((double)(value)) : ); \
^
<inline asm>:2:2: note: instantiated into assembly here
mffprwz 4,0
^~~~~~~

After investigating the most recent Power ISA (March 29, 2017. Page 131 of the pdf or 113 of the document) mffprwz is a mnemonic for mfvsrwz. Specifically:

Extended Mnemonics Equivalent To
mffprwz RA,FRS mfvsrwz RA,FRS
mfvrwz RA,VRS mfvsrwz RA,VRS+32

After investigating clang, it does not implement mffprwz, instead only mfvsrwz. I will be passing this along to the llvm project as well but we can fix this here as well, probably faster. I've prepared a patch to follow as well.

Steps to reproduce

Checkout opencv.

Make build directory.

cmake <path to source> -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang

make -j###

Receive above error message.

Issue 2:
System information (version)

OpenCV => 3.2.0-rc (from source)

Operating System / Platform => Ubuntu 16.10

Compiler => gcc 6.2.0

Detailed description

I'm trying to use the ts module in projects to use the same test functionalities as OpenCV. When I build OpenCV with either

-D BUILD_TESTS=ON
-D BUILD_PERF_TESTS=ON
-D BUILD_opencv_ts=ON

I see that the ts module is listed among the modules to built. However, it is never installed (not sure if that is intended).

The library is created (although statically, regardless of BUILD_SHARED_LIBS=ON), but not installed, and not findable by cmake, for example.

Steps to reproduce

cmake \
-D CMAKE_BUILD_TYPE=RELEASE \
-D ENABLE_PRECOMPILED_HEADERS=OFF \
-D CMAKE_INSTALL_PREFIX=/usr/local \
-D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules \
-D BUILD_NEW_PYTHON_SUPPORT=ON \
-D WITH_TBB=ON \
-D WITH_QT=ON \
-D WITH_OPENGL=ON \
-D BUILD_TIFF=ON \
-D BUILD_SHARED_LIBS=ON \
-D BUILD_EXAMPLES=ON \
-D BUILD_opencv_ts=ON \
..

make -j $(nproc)
sudo make install

Then try to use it, for example with cmake

find_package ( OpenCV REQUIRED ts )

fails to find the ts library.

Related questions

Already ask for help before posting, in here. However, we couldn't find a problem.
Issue 1:
Upgrading from Material UI 0.19.4 to 0.20.0, I get this error in the dev console

Warning: Unknown event handler property `onLeftIconButtonTouchTap`. It will be ignored.
in div (created by Paper)
in Paper (created by AppBar)
in AppBar (created by MainNavBar)

No code change was made for the past 8 months on that component, and it worked before upgrading.

<AppBar style={ style } title={ <MainNavTitle title={ title } /> } titleStyle={ titleStyle }
onLeftIconButtonTouchTap={ (event) => this.toggleSidenav(true) }
iconStyleLeft={ iconStyle }
iconElementRight={ MenuElement ? <MenuElement /> : null }
/>

I have searched for this issue, and I have found only related issues (e.g. #7972, #4221, #4156, etc.) but none of it seem to be addressing this probable breaking change, so...

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

Expected Behavior

The event handler for onLeftIconButtonTouchTap is supposed to be called when the icon is clicked.

Current Behavior

The event handler for onLeftIconButtonTouchTap is not called, but specifically ignored.

Your Environment

Tech
Version

Material-UI
0.20.0

React
16.2.0

browser
Google Chrome (latest)

Meteor
1.6.0.1

Note: I am well aware of the v1 branch, but since it is in beta, and I have no time right now to deal with this rather important migration, the 0.x branch needs to be supported. Projects can't always be expected to follow edge dependencies.

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

Expected Behavior

Drawer should not show up on re-render

Current Behavior

If the Drawer component is re-rendered, the nested Paper component loses its transform style setting and the drawer is shown despite open=false

Steps to Reproduce (for bugs)

codesandbox

Context

I believe this has something to do with the code removed from the Slide component with this update

Your Environment

Tech
Version

Material-UI
1.0.0-beta.19

React
v16

browser
Chrome, Firefox

etc
Issue 1:
hey, i am deploying my nextjs app on nginx where django is running on nginx. i want my nextjs app to run on mydomain/something but its not working giving 404 page not found error whereas when i run it on mydomain/ it work fine.

please suggest something how i can run it. i followed your wiki link but its not working.do i need to change my server.js file which is like this.

`const next = require('next')

const routes = require('./routes')

const app = next()

const handler = routes.getRequestHandler(app)

// Without express.js

const {createServer} = require('http')

app.prepare().then(() => {

createServer(handler).listen(4000, err => {

if (err) throw err

console.log('> Ready on http://192.168.90.12:4000')

})

})`

Issue 2:
Next uses routes like /_next and /static by default. If you wanted to run multiple different Next apps on the same domain, they would collide with each other. Can these paths be made configurable?
Issue 1:
Is code splitting possible with redux sagas? Does it hurt to load every single saga and reducer?

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

Expected Behavior

Current Behavior

Steps to Reproduce (for bugs)

Context

Your Environment

Tech
Version

next

node

OS

browser

etc

Issue 2:
Bug report

Next.js does not work with Visual Studio Code's Debugger. e.g breakpoints do not work. This makes Next.js (at least for me) very frustrating to use. Microsoft has not been maintaining the repo found here (https://github.com/microsoft/vscode-recipes/tree/master/Next-js). This used to work in previous versions of Next.js.

Can the Next.js team please look into this? Visual Studio Code is one of the most popular code editors for web development so it should be heavily supported. I'm sure this is frustrating for other people as well.

Describe the bug

Visual Studio Code's breakpoints do not work with Next.js

To Reproduce

Use the latest version of Visual Studio Code

Use the latest version of Next.js

Try to get debugging working properly

Expected behavior

Visual Studio Code's debugging feature should work with Next.js

Screenshots

N/A

System information

OS: MacOS

Browser: Chrome

Version of Next.js: 9
Issue 1:
hi,

I am using Sharding-JDBC with a version 5.1.2, and I am wondering if it supports to update actualDataNodes runtime in springboot, if does, how to do it?

Issue 2:
For English only, other languages we will close it directly.

Please answer these questions before submitting your issue. Thanks!

Which version of Sharding-Sphere do you using?

3.0.0.M2

Which project do you using? Sharding-JDBC or Sharding-Proxy?

Sharding-JDBC

Expected behavior

Separation of reading and writing

Actual behavior

Separation of reading and writing

Error

com.google.common.eventbus.EventBus$LoggingHandler.handleException Exception thrown by subscriber method listen(io.shardingsphere.core.transaction.event.TransactionEvent) on subscriber io.shardingsphere.core.transaction.listener.TransactionListener@602c052d when dispatching event: io.shardingsphere.core.transaction.event.WeakXaTransactionEvent@4c54b2ea

java.lang.NullPointerException

at io.shardingsphere.core.transaction.listener.TransactionListener.listen(TransactionListener.java:64)

at sun.reflect.GeneratedMethodAccessor60.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:45005)

at java.lang.reflect.Method.invoke(Method.java:498)

at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:95)

at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:80)

at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:456)

at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:76)

at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:119)

at com.google.common.eventbus.EventBus.post(EventBus.java:215)

at io.shardingsphere.core.jdbc.adapter.AbstractConnectionAdapter.commit(AbstractConnectionAdapter.java:96)

at org.springframework.jdbc.datasource.DataSourceTransactionManager.doCommit(DataSourceTransactionManager.java:272)

at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:761)

at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:730)

at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:485)

at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:291)

at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)

at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)

at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)

at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
Issue 1:
scipy.stats.rv_discrete requires that the x input for the values parameters are integers:

values : tuple of two array_like, optional

(xk, pk) where xk are integers and pk are the non-zero probabilities between 0 and 1 with sum(pk) = 1. xk and pk must have the same shape.

Reproducing code example:

The example code:

from scipy import stats
xk = np.arange(7)
pk = (0.1, 0.2, 0.3, 0.1, 0.1, 0.0, 0.2)
custm = stats.rv_discrete(name='custm', values=(xk, pk))

import matplotlib.pyplot as plt
fig, ax = plt.subplots(1, 1)
ax.plot(xk, custm.pmf(xk), 'ro', ms=12, mec='r')
ax.vlines(xk, 0, custm.pmf(xk), colors='r', lw=4)
plt.show()

returns

but if I change to xk = np.linspace(1., 6.9, 7) I get:

This is a user error with a silent fail. There should be a validation or at least a warning shown.

Scipy/Numpy/Python version information:

1.6.1 1.19.2 sys.version_info(major=3, minor=8, micro=8, releaselevel='final', serial=0)

Issue 2:
TestHausdorff.test_symmetry and a number of other directed_hausdorff tests triggered the check for unknown objects we just put into RandomState.shuffle (see here):

mtrand.pyx:4478: in numpy.random.mtrand.RandomState.shuffle
???
E UserWarning: `x` isn't a recognized object; `shuffle` is not guaranteed to behave correctly.
E.g., non-numpy array/tensor objects with view semantics may contain duplicates after shuffling.
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Steps to Reproduce (i don't know if bugs)

Upgrade to version 5 of next

In dev mode the terminal tells me the 404 error of the js source map

Keep running my application, but the message bothers me, I do not know if it's ok

Context

My big mental problem, is not knowing if this is a normal behavior or I have something wrong with my next application configuration or in the browser.

Terminal:

DONE Compiled successfully in 3408ms

"GET /_next/-/manifest.js.map HTTP/1.1" 404 Chrome/63.0.3239.132 Safari/537.36

"GET /_next/-/commons.js.map HTTP/1.1" 404 Chrome/63.0.3239.132 Safari/537.36

"GET /_next/-/main.js.map HTTP/1.1" 404 Chrome/63.0.3239.132 Safari/537.36

Your Environment

Tech
Version

next
v5.0.0

node
v8.9.4

OS
macos sierra

browser
google chrome

Issue 2:
Bug report

Describe the bug

Hello, I'm getting this error trying run yarn build. I want to deploy to now.sh my ssr app with firebase and antd. I tried npm i && npm rebuild && npm run build but it didn't work.

Solutions to another issues have not working.

gitpod /workspace/shopping $ yarn build

yarn run v1.16.0

warning package.json: No license field

$ next build

Creating an optimized production build ...

Using external babel configuration

Location: "/workspace/shopping/.babelrc"

Compiled with warnings.

./node_modules/bytebuffer/dist/bytebuffer-node.js

Module not found: Can't resolve 'memcpy' in '/workspace/shopping/node_modules/bytebuffer/dist'

Build error occurred

{ Error: The gRPC binary module was not installed. This may be fixed by running "npm rebuild"

Original error: Cannot find module './assets/src/node/extension_binary/node-v64-linux-x64-glibc/grpc_node.node'

at Object.L/Cg (/workspace/shopping/.next/serverless/pages/index.js:48582:17)

at webpack_require (/workspace/shopping/.next/serverless/pages/index.js:23:31)

at Object.7noQ (/workspace/shopping/.next/serverless/pages/index.js:7759:12)

at webpack_require (/workspace/shopping/.next/serverless/pages/index.js:23:31)

at Object.cJE4 (/workspace/shopping/.next/serverless/pages/index.js:62556:27)

at webpack_require (/workspace/shopping/.next/serverless/pages/index.js:23:31)

at Object.z77n (/workspace/shopping/.next/serverless/pages/index.js:75069:14)

at webpack_require (/workspace/shopping/.next/serverless/pages/index.js:23:31)

at Object.BYZf (/workspace/shopping/.next/serverless/pages/index.js:12181:12)

at webpack_require (/workspace/shopping/.next/serverless/pages/index.js:23:31) code: 'MODULE_NOT_FOUND' }

error Command failed with exit code 1.

info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

Clone this repo

yarn && yarn build

See error

System information

OS: [e.g. Linux]

Version of Next.js: 9.0.0

Node v10.15.3
Issue 1:
Please make sure that this is a bug. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:bug_template

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): Yes

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Mac

Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: None

TensorFlow installed from (source or binary): binary

TensorFlow version (use command below):

Python version: 2.0 alpha

Bazel version (if compiling from source): None

GCC/Compiler version (if compiling from source): None

CUDA/cuDNN version: None

GPU model and memory: None

The order of input data is changed.

For example:

inputs = {'A': [1,2,3,4], 'B':[7,8,9,10]}
A = fc.sequence_numeric_column('A')
B = fc.sequence_numeric_column('B')
columns = [A,B]
seq_feature_layer = keras.experimental.SequenceFeatures(columns)
seq_input, seq_len = seq_feature_layer(inputs)

And It prints like

print(seq_input)
> [[7, 1], [8, 2], [9, 3], [10,4]]

Issue 2:
This bug seems to exist in all versions of TensorFlow from (at least) 1.13 to the current 2.0 nightly under multiple configurations (host os, gpu, python versions...) with CUDA 10.0.

It can be reproduced fairly easily:

with tf.device('gpu:0'):
v = tf.ones((2**17, 1, 1), dtype=tf.float32)
print(tf.reduce_sum(tf.matmul(v, v)))

This prints 65535.0 instead of 131072.0 (stemming from the output values at indices >= 2**16 being 0)

Colab: https://colab.research.google.com/drive/1CZiKKWkI96SAVRJ5kMkT5kmMunipJhdx

Some observations:

This occurs for batch dimensions greater than or equal to 216.

This only occurs on the GPU. The CPU version seems fine.

This only occurs for FP32. FP64 seems fine.

In TensorFlow 2.0, the bug only manifests on the first run (as shown in the colab example). Subsequent runs produce the correct result.
Issue 1:
The example file:

包名,模块名,引入,名,简体,类型
Base,Base,否,-,#,符号
Base,Base,否,!,#,符号
Base,#,否,!=,#,符号
Base,Base,否,!==,#,符号
Base,Base,否,$,#,符号
Base,Base,否,%,#,符号
#,Base,否,&,#,符号
Base,Base,否,*,,符号
Base,Base,否,.-,#,符号

The result in Julia 0.4

julia> readcsv("Base.csv")
9x6 Array{Any,2}:
"包名" "模块名" "引入" "名" "简体" "类型"
"Base" "Base" "否" "-" "" ""
"Base" "Base" "否" "!" "" ""
"Base" "" "" "" "" ""
"Base" "Base" "否" "!==" "" ""
"Base" "Base" "否" "\$" "" ""
"Base" "Base" "否" "%" "" ""
"Base" "Base" "否" "*" "" "符号"
"Base" "Base" "否" ".-" "" ""

Julia Version 0.4.0-dev+2304
Commit 8cea71e (2014-12-29 02:07 UTC)
Platform Info:
System: Windows (i686-w64-mingw32)
CPU: Intel(R) Core(TM) i7-3517U CPU @ 1.90GHz
WORD_SIZE: 32
BLAS: libopenblas (DYNAMIC_ARCH NO_AFFINITY Nehalem)
LAPACK: libopenblas
LIBM: libopenlibm
LLVM: libLLVM-3.3

And There are some problems on my Windows box when I copy the texts from console. Some texts will be duplicated, Here is the origin paste result:

julia> readcsv("Base.csv")
9x6 Array{Any,2}:
"包包名名" "模模块块名名" "引引入入" "名名" "简简体体" "类类型型"
"Base" "Base" "否否" "-" "" ""
"Base" "Base" "否否" "!" "" ""
"Base" "" "" "" "" ""
"Base" "Base" "否否" "!==" "" ""
"Base" "Base" "否否" "\$" "" ""
"Base" "Base" "否否" "%" "" ""
"Base" "Base" "否否" "*" "" "符符号号"
"Base" "Base" "否否" ".-" "" ""

I also try this on JuliaBox

Out[1]:
9x6 Array{Any,2}:
"\u5305\u540d" "\u6a21\u5757\u540d" … "\u7b80\u4f53" "\u7c7b\u578b"
"Base" "Base" "" ""
"Base" "Base" "" ""
"Base" "" "" ""
"Base" "Base" "" ""
"Base" "Base" … "" ""
"Base" "Base" "" ""
"Base" "Base" "" "\u7b26\u53f7"
"Base" "Base" "" ""

Julia Version 0.3.3
Commit 21d5433* (2014-10-21 20:18 UTC)
Platform Info:
System: Linux (x86_64-linux-gnu)
CPU: Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz
WORD_SIZE: 64
BLAS: libblas.so.3
LAPACK: liblapack.so.3
LIBM: libopenlibm
LLVM: libLLVM-3.3

I read the source code of readcsv, it might be some problem with readdlm.

Issue 2:
Working on #15354 I realized that

A = rand(10, 10)
sA = sub(A, 1:10, 1:10)
sA'

works, but

As = sprand(10, 10, 0.3)
sAs = sub(As, 1:10, 1:10)
sAs'

does not. I would love to fix it, but I am wondering what the preferred way would be. Should I add a method in linalg/abstractsparse.jl, or?

Of course A' and As' works, but sA' seems to be redirected to the correct ctranspose, while sAs' does not get dispatched to the sparse method.

Edit: So I just realized that this goes for all matrix operations on subs of sparse matrices. Is this intentional? @andreasnoack