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

When a user specifies multiple chunks as output report a numeric statistic about the amount of bundle duplication across chunks.

For example:

*chunks*
* 124124.js ~ 10% duplication
* 213412.js ~ 50% duplication
* 545634.js ~ 25% duplication

run build -- -bundle-stats-viz to explore duplication

Why:

When multiple chunks are output the volume of duplication is non-obvious and actually quite hard to know without using external tools. (see this post to understand the full implications http://www.susielu.com/data-viz/bundle-buddy) Since this "duplication" number is critical to ensuring good bundle chunk settings these values should be reported to the user so that they can better tweak their splitting process to minimize duplicaiton.

Inspired by the work here

https://github.com/samccone/bundle-buddy

How:

The current approach used in bundle buddy uses source maps to build up a mapping of source lines to final bundle outputs, reusing this code should be possible if we keep using source maps as the backing data store.

Thanks.

Issue 2:
Feature request

What is the expected behavior?

There should be a function that allow entrypoint to be changed after the compiler is created, but before compilation has started.

What is motivation or use case for adding/changing the behavior?

See this issue in webpack-serve. In short, iterating entrypoints from a compiler, process, and calling compiler.hooks.entryOption with the new value does not works well with runtimeChunk: single as the old entrypoint plugin will still exists.

How should this be implemented in your opinion?

Plan A: Creating a registry of active entrypoint plugin instances (MultiEntryPlugin/SingleEntryPlugin/DynamicEntryPlugin), then when EntryOptionPlugin trigger again:

A: Ask the old instance of the same entrypoint to deregister.

B: Recreate all instances. This allow entrypoints to be removed, but caller now has to send list of ALL entrypoints which is a breaking change.

Plan B: Investigate in why RuntimeChunkPlugin does not work with duplicated entrypoints. This might resolve this issue, but could run into more issues in the future.

Are you willing to work on this yourself?

If I have some guideline.
Issue 1:
System information (version)

OpenCV => 3.1

Operating System / Platform => Windows 10 64bit and Ubuntu Linux 64bit

Compiler => gcc 5.3.0

Detailed description

The gstreamer implementation in videoio module uses CV_ERROR() on open() instead of just returning false like all other implementations. This causes an exception to be thrown, but in projects where exceptions are disabled we cannot have that - exceptions are just handled as crashes. But in this case an error can be thrown only if a file doesn't exist or if a pipeline is wrong. In our software we have a modular api that allows several pipelines in a priority order - if a pipeline cannot be used it goes to the next one. It doesn't work because the first pipeline crashes instead of returning false like the ffmpeg, dshow or any other implementation. This is clearly an inconsistency in OpenCV api.

Steps to reproduce

int main() {
cv::VideoCapture cap("shmsrc /tmp/socket ! video/x-raw, 1920, 1080, 1/60, format=UYVY ! videoconvert ! video/x-raw, BGR ! appsink sync=true");
}

That will crash if the socket doesn't exist. It would be good if it returned false if used with Open() and just set internally as not-running, so we could check with isOpened.

Issue 2:
Please state the information for your system

OpenCV version: 3.1.0

Host OS: Linux (Ubuntu 14.04)

In which part of the OpenCV library you got the issue?

-videoio

Expected behaviour

I expect ot be able to open an "OpenNI" device with gstreamer conpiled in, but no gstreamer capable devices available

Actual behaviour

The gstreamer capture device throws a CV_ERROR when it fails to open a gstreamer device. Preventing the auto selection feature from continuing to the OpenNI open code.

Additional description

at line 818 of cap_gstreamer.cpp (tag 3.1.0)

you will find the following

CV_ERROR(CV_StsError, "GStreamer: unable to start pipeline\n");

This line aborts the autosearch feature of VideoCapture with a device # of 0 (first video device found)

Code example to reproduce the issue / Steps to reproduce the issue

Please try to give a full example which will compile as is.

#include "opencv2/core.hpp"
#include <iostream>
using namespace std;
using namespace cv;

int main()
{
VideoCapture cap(0);

return 0;
}
Issue 1:
Hi,

The following code runs without problems:

import numpy as np
from scipy.fftpack import rfft
rfft(np.random.random(450000))

while this one takes forever:

Reproducing code example:

import numpy as np
from scipy.fftpack import rfft
rfft(np.random.random(450001))

Scipy/Numpy/Python version information:

tested on macOS 10.14.5:

>>> import sys, scipy, numpy; print(scipy.__version__, numpy.__version__, sys.version_info)
1.2.1 1.16.2 sys.version_info(major=3, minor=7, micro=3, releaselevel='final', serial=0)

and Debian 9.9:

>>> import sys, scipy, numpy; print(scipy.__version__, numpy.__version__, sys.version_info)
0.18.1 1.12.1 sys.version_info(major=3, minor=5, micro=3, releaselevel='final', serial=0)

Issue 2:
FFT on len 262144 = 20m/s

FFT on len 257144 = 8000m/s

It actually seems quite erratic. Some will only take say 60m/s, others several hundred and if you go for an odd number I normally end up killing it after a few minutes
Issue 1:
In [13]: s = Series(np.arange(10))

In [14]: np.diff(s)
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
/home/wesm/code/pandas/<ipython-input-14-b5f9fe77ab7c> in <module>()
----> 1 np.diff(s)

/usr/lib/epd-7.1/lib/python2.7/site-packages/numpy/lib/function_base.pyc in diff(a, n, axis)
975 return diff(a[slice1]-a[slice2], n-1, axis=axis)
976 else:
--> 977 return a[slice1]-a[slice2]
978
979 def interp(x, xp, fp, left=None, right=None):

/home/wesm/code/pandas/pandas/core/series.pyc in __getitem__(self, key)
392 key = np.asarray(key, dtype=bool)
393
--> 394 return self._get_with(key)
395
396 def _get_with(self, key):

/home/wesm/code/pandas/pandas/core/series.pyc in _get_with(self, key)
406 else:
407 if isinstance(key, tuple):
--> 408 return self._get_values_tuple(key)
409
410 if not isinstance(key, (list, np.ndarray)): # pragma: no cover

/home/wesm/code/pandas/pandas/core/series.pyc in _get_values_tuple(self, key)
437
438 if not isinstance(self.index, MultiIndex):
--> 439 raise ValueError('Can only tuple-index with a MultiIndex')
440
441 # If key is contained, would have returned by now

ValueError: Can only tuple-index with a MultiIndex

Issue 2:
In trying to find out the fast way to count unique rows in a data frame, I stumbled upon an issue where dropping duplicates from a data frame of booleans is quite slow. @jreback asked me to open a ticket.

In [1]: import pandas as pd

In [2]: import numpy as np

In [3]: N = 100000

In [4]: np.random.seed(1234)

In [5]: df = pd.DataFrame({str(i) : [bool(x) for x in np.random.randint(0,2,size=N)] for i in range(500)})

In [6]: %timeit df.drop_duplicates()
1 loop, best of 3: 3.01 s per loop

In [7]: %timeit df.astype(int).drop_duplicates()
1 loop, best of 3: 1.4 s per loop

INSTALLED VERSIONS
------------------
commit: None
python: 3.5.1.final.0
python-bits: 64
OS: Darwin
OS-release: 15.4.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8

pandas: 0.18.0
nose: 1.3.7
pip: 8.1.1
setuptools: 20.3
Cython: 0.23.4
numpy: 1.10.4
scipy: 0.17.0
statsmodels: 0.6.1
xarray: None
IPython: 4.1.2
sphinx: 1.3.5
patsy: 0.4.0
dateutil: 2.5.1
pytz: 2016.2
blosc: None
bottleneck: 1.0.0
tables: 3.2.2
numexpr: 2.5
matplotlib: 1.5.1
openpyxl: 2.3.2
xlrd: 0.9.4
xlwt: 1.0.0
xlsxwriter: 0.8.4
lxml: 3.6.0
bs4: 4.4.1
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.12
pymysql: None
psycopg2: None
jinja2: 2.8
boto: 2.39.0
Issue 1:
Which version of ShardingSphere did you use?

5.0.0-alpha

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

ShardingSphere-JDBC

Expected behavior

Correct paging

Actual behavior

Wrong pagination, except for the first page

Reason analyze

When I use a paged query,It seems that the rewrite engine did not rewrite the paging parameters.

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

Environment: shardingsphere-jdbc-core 5.0.0-alpha sharding configuration with JavaAPI,SpringBoot v2.1.5.RELEASE,Oracle 11g,JPA

Only one table slice is configured,the rule is: inline,TABLENAME_${KEY}.

One physical table has two records, and two other physical tables have one record, and the rest have no records.

When the third page is queried with pagesize 1, it will not be found.

My code is: entityManager.createQuery(cq).setFirstResult(2).setMaxResults(1).getResultList();

Logic SQL: ...) row_ where rownum <= ?) where rownum_ > ? ::: [3, 2]

Actual SQL: ...) row_ where rownum <= ?) where rownum_ > ? ::: [3, 2]

Issue 2:
Hi, we are glad you can fix this issue to become a contributor to Apache Sharding Sphere.

Welcome! 😃

By doing this assignment, you can learn more about how a query SQL is parsed and how to verify the parsing result of a SQL in Apache ShardingSphere.

This issue is to add the parsing assertion for ComplexExpressionSegment by adding the start-index and stop-index attributes in parsing-result.xml.

It is not difficult, and the following comment also gives you the detailed instruction. BTW, if you need any help, please be free to reply to this one.
Issue 1:
Both rule and cost query planners implement

MATCH n
WHERE n:Male
RETURN n

with a NodeByLabelScan and not with an AllNodesScan plus a filter on the label. I therefore would expect

MATCH n
WHERE n:Male OR n:Female
RETURN n

to be implemented with two NodeByLabelScan's. Instead both planners use an AllNodesScan and then a filter.

For a simple label disjunction like this, would it not be possible and prudent for the planners to implement the query with label scans?

Related SO question.

Issue 2:
@gokcemutlu: 'Hi,

I have a simple model:

START root=node(0) CREATE UNIQUE root-[:PEOPLE]->(jake {Name:'Jake'}), root-[:PEOPLE]->(jill {Name:'Jill'}), jake-[:LIKE]->jill, jill-[:LIKE]->jake, jake-[:LIKE]->jake;

In this model

Jake likes Jill,

Jill likes Jake

Jake likes Jake

I want to find out Jake likes who.

START r = node(0) MATCH r-[:PEOPLE]->jake, path=(jake-[:LIKE]->person-[:LIKE]->jake) where jake.Name = 'Jake' RETURN person;

This query returns only Jill and this is wrong.

Please let me know.

Regards,

Gokce'
Issue 1:
Is this a request for help? (If yes, you should use our troubleshooting guide and community support channels, see http://kubernetes.io/docs/troubleshooting/.):

What keywords did you search in Kubernetes issues before filing this one? (If you have found any duplicates, you should instead reply there.):

Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG REPORT

Kubernetes version (use kubectl version):

Client Version: version.Info{Major:"1", Minor:"3", GitVersion:"v1.3.5", GitCommit:"b0deb2eb8f4037421077f77cb163dbb4c0a2a9f5", GitTreeState:"clean", BuildDate:"2016-08-11T20:29:08Z", GoVersion:"go1.6.2", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"3", GitVersion:"v1.3.0", GitCommit:"283137936a498aed572ee22af6774b6fb6e9fd94", GitTreeState:"clean", BuildDate:"2016-07-01T19:19:19Z", GoVersion:"go1.6.2", Compiler:"gc", Platform:"linux/amd64"}

Environment:

Cloud provider or hardware configuration: AWS

OS (e.g. from /etc/os-release): The one created by kube-up.sh

Kernel (e.g. uname -a): The one used by kube-up.sh

Install tools: kube-up.sh

Others:

What happened:

kubectl --kubeconfig=infra/dev/kubeconfig drain --ignore-daemonsets --force --delete-local-data --grace-period=120 ip-172-20-0-123.ec2.internal
node "ip-172-20-0-123.ec2.internal" already cordoned
error: replicationcontrollers "memcached" not found: memcached-4n9cy, memcached-4n9cy

It would seem that memcached-4n9cy is an orphan pod from a replication controller that doesn't exist anymore.

$ ./kubectl --kubeconfig=infra/dev/kubeconfig describe pod memcached-4n9cy | grep Controllers
Controllers: ReplicationController/memcached

We moved to ReplicaSets and don't have any ReplicationControllers left:

$ ./kubectl --kubeconfig=infra/dev/kubeconfig get --all-namespaces rc
NAMESPACE NAME DESIRED CURRENT AGE
kube-system kube-dns-v17 1 1 41d
kube-system kubernetes-dashboard-v1.1.0 1 1 41d
kube-system monitoring-influxdb-grafana-v3 1 1 41d

What you expected to happen:

Providing --force should allow you to drain the pods even if they are orphans from a replication controller.

I had to manually remove the pod before running kubectl drain again to make it work.

How to reproduce it (as minimally and precisely as possible):

I am not sure how the pods ended up being orphaned but I guess that getting an orphaned pod from a replication controller should make it easy to reproduce.

Anything else do we need to know:

Issue 2:
We had a micro-outage the other day when one of the machines in our cluster stopped trying to restart. On startup, it hit a transient error that prevented the server from starting up, but the pod did not try to restart again after that. The logs showed nothing between when it got stuck starting up and when I initiated a manual restart 20 minutes later. It seems we hit this issue during a network partition, though we are still investigating.

Does the pod need to talk to the master in order for a restart to be triggered?

Attached is our configuration file, including the restart policy apiserverProdConfig.txt

Thanks!

We're using Kubernetes 1.2.0
Issue 1:
An overflowing fp -> int cast, for example:

#[inline(never)]
fn show<T: std::fmt::Debug>(e: T) { println!("{:?}", e) }

fn main() {
show({
9.223372036854776e18f64 as i64
});
}

playpen

Causes LLVM to not initialise the parameter passed to show:

trs: uwtable
define internal void @_ZN4main20he0a80c27bce3fc14RaaE() unnamed_addr #0 {
entry-block:
tail call fastcc void @_ZN4show21h11375292364260386722E()
ret void
}

Issue 2:
If the value cannot fit within the destination type, ty2, then the results are undefined.

http://llvm.org/docs/LangRef.html#fptrunc-to-instruction

e.g. 1e300f64 as f32

cc #10184, #10185
Issue 1:
Hello. I was trying to build julia in Scientific Linux SL release 5.5 and got something like:

JULIA usr/lib/julia/sys.ji
error during bootstrap: assign array[5]: index out of range

make[1]: *** [/imports/home/s/shhong/src/julia/usr/lib/julia/sys.ji] Error 1
make: *** [debug] Error 2

Any idea? Also, in Julia how am I supposed to probe what is wrong in the case like this?

Issue 2:
I'm seeing an error on bootstrap but in a different location:

CC src/sys.o

CC src/init.o

CC src/task.o

CC src/array.o

CC src/dump.o

CC src/toplevel.o

CC src/gc.o

LINK usr/lib/libjulia-release.so

PERL base/pcre_h.jl

PERL base/errno_h.jl

PERL base/os_detect.jl

PERL extras/glpk_h.jl

PERL extras/julia_message_types_h.jl

CC ui/repl.o

CC ui/repl-basic.o

LINK usr/bin/julia-release-basic

CC ui/repl-readline.o

repl-readline.c: In function âinit_historyâ:

repl-readline.c:73: warning: implicit declaration of function âstpcpyâ

repl-readline.c:73: warning: incompatible implicit declaration of built-in function âstpcpyâ

LINK usr/bin/julia-release-readline

LINK usr/bin/julia-release-webserver

JULIA usr/lib/julia/sys.ji

could not show value of type ErrorException

error during bootstrap: syntax error: error expanding macro _jl_sort_functions at sort.jl:189

make[1]: *** [/n/home00/pedmon/test/julia/usr/lib/julia/sys.ji] Error 1

make: *** [release] Error 2

This is building on RedHat 5.1, but I also get it on CentOS 6.2
Issue 1:
hello, everyone.

i have a problem that the images are misplaced when the gridview is scrolling fast.

i just use glide in getView() like this:

Glide.with().load().asBitmap().thumbnail().into();

Issue 2:
I have a ListView for which each row contain one ImageView + TextViews.

Something very usual and unspectacular.

The first row's Imagaeview holds an animated GIF while all other rows hold regular JPG images.

On my Nexus4, somerhing funny is going on. Scrolling it the list, towards the 7th or 8th row (which are just offscreen) , a random unnanimated frame of the first GIF is displayed instead of the JPG image that should display for this row.

Sometimes these are several consecutive rows (possibly 5 or 6) that display a random frame of the animated GIF.

If I scroll enough in the list, all get back to normal as the GIF is evicted from the cache (guess).

It goes like this:

row 1: animated GIF plays fine and is correct for this row

row 2: JPG OK

...

row 7: JPG OK

row 8: displays still frame of row 1 GIF instead of correct JPG for this row

row 9: displays still frame of row 1 GIF instead of correct JPG for this row

row 10: JPG OK

...

This bug happens on my Nexus 4 running 4.4.4 but not my Nexus 5.

Looking at the logcat, there's something interesting.

Each time a row displays a frame of the animated GIF instead of the image it should, the logcat reads:

01-05 22:34:26.651: W/Adreno-ES20(26984): <core_glTexSubImage2D:575>: GL_INVALID_OPERATION

01-05 22:34:26.651: D/OpenGLRenderer(26984): GL error from OpenGLRenderer: 0x502

So the process of animating GIF somewhat trigger this (probable) driver bug when loading subsequent

images.

This looks to be a driver bug so I understand probably not much can be done at the library level although a workaround would be nice.
Issue 1:
Input Code

const makePromise = () => {
return new Promise((resolve) => {
setTimeout(() => {
resolve('FOO');
}, 500);
});
};

(async () => {
const foo = do {
try {
await makePromise();
} catch (error) {

}
};

console.log('foo', foo);
})();

Babel Configuration (.babelrc, package.json, cli command)

{
"plugins": [
"transform-async-to-generator",
"transform-do-expressions"
]
}

Expected Behavior

Expect program to output: foo FOO.

Current Behavior

Getting a run-time error:

$ babel-node ./foo.js
/test/foo.js:14
return yield makePromise();
^^^^^^^^^^^
SyntaxError: Unexpected identifier
at Object.exports.runInThisContext (vm.js:76:16)
at Module._compile (module.js:545:28)
at loader (/test/node_modules/babel-register/lib/node.js:144:5)
at Object.require.extensions.(anonymous function) [as .js] (/test/node_modules/babel-register/lib/node.js:154:7)
at Module.load (module.js:490:32)
at tryModuleLoad (module.js:449:12)
at Function.Module._load (module.js:441:3)
at Function.Module.runMain (module.js:607:10)
at /test/node_modules/babel-cli/lib/_babel-node.js:159:24
at Object.<anonymous> (/test/node_modules/babel-cli/lib/_babel-node.js:160:7)

Your Environment

software
version

Babel
6.18.0

node
v7.0.0

npm
3.10.8

Operating System
macOS v16.1.0

Issue 2:
Issue originally made by @AppShipIt

Bug information

Babel version: 6.3.17

Node version: 5.0.0

npm version: 3.5.1

Options

{
"presets": [
"es2015",
"stage-0"
]
}

Input code

const testSwitch = () => do {
switch (new Date().getDay()) {
case 0: case 6: "weekend 🚵"; break
default: "weekday 🚴"
}
}

alert(`Today is a ${testSwitch() || "🐛"}`)

Description

Per [[ https://twitter.com/BrendanEich/status/676497551495856129 | tweet ]] from Brendan Eich:

Expected

"use strict";

var testSwitch = function testSwitch() {
return (function () {
switch (new Date().getDay()) {
case 0:case 6:
return "weekend 🚵";
default:
return "weekday 🚴";
}
})();
};

alert("Today is a " + (testSwitch() || "🐛"));

Got

"use strict";

var testSwitch = function testSwitch() {
return (function () {
switch (new Date().getDay()) {
case 0:case 6:
"weekend 🚵";break;
default:
"weekday 🚴";
}
})();
};

alert("Today is a " + (testSwitch() || "🐛"));

[[ http://codepen.io/dnalot/pen/VewJez | Live demo ]]
Issue 1:
📝 Provide a description of the new feature

What is the expected behavior of the proposed feature? What is the scenario this would be used?

--- 3 finger swipe up shows the windows tabs, . Would be nice if we can remap certain keys for the finger gestures as well.

If you'd like to see this feature implemented, add a 👍 reaction to this post.

Issue 2:
would be nice if I could launch using the Touchpad settings for Taps with Three-finger gestures.
Issue 1:
As far as I can tell, when &str appears as the return type of a function, this silently implies &'static str. I think this holds for all other types as well, not just str. I propose that we force people to be explicit here, since our general rule is that any borrowed pointer that is returned from a function must have an explicit lifetime.

Issue 2:
We currently have Zero and One traits that are meant to work with Add and Mul and support iterator operations like sum, as well as the current step_by API.

It would be good to have a more comprehensive vision for this kind of trait before stabilization; an RFC would be ideal.
Issue 1:
Thank you for submitting a TensorFlow documentation issue. Per our GitHub

policy, we only address code/doc bugs, performance issues, feature requests, and

build/installation issues on GitHub.

The TensorFlow docs are open source! To get involved, read the documentation

contributor guide: https://www.tensorflow.org/community/contribute/docs

URL(s) with the issue:

Please provide a link to the documentation entry, for example:

https://www.tensorflow.org/versions/r2.0/api_docs/python/tf/MyMethod

Description of issue (what needs changing):

Clear description

For example, why should someone use this method? How is it useful?

Correct links

Is the link to the source code correct?

Parameters defined

Are all parameters defined and formatted correctly?

Returns defined

Are return values defined?

Raises listed and defined

Are the errors defined? For example,

https://www.tensorflow.org/versions/r2.0/api_docs/python/tf/feature_column/categorical_column_with_vocabulary_file#raises

Usage example

Is there a usage example?

Request visuals, if applicable

Are there currently visuals? If not, will it clarify the content?

Submit a pull request?

Are you planning to also submit a pull request to fix the issue? See the docs

contributor guide: https://www.tensorflow.org/community/contribute/docs and the

docs style guide: https://www.tensorflow.org/community/contribute/docs_style

Issue 2:
Thank you for submitting a TensorFlow documentation issue. Per our GitHub

policy, we only address code/doc bugs, performance issues, feature requests, and

build/installation issues on GitHub.

The TensorFlow docs are open source! To get involved, read the documentation

contributor guide: https://www.tensorflow.org/community/contribute/docs

URL(s) with the issue:

Please provide a link to the documentation entry, for example:

https://www.tensorflow.org/versions/r2.0/api_docs/python/tf/io/write_file

Description of issue (what needs changing):

Clear description

The description does not recommend at all in any way when and when not to use this symbol.

Correct links

Yes

Parameters defined

Yes

Returns defined

Yes

Raises listed and defined

The returned objects are not well defined and therefore not correct, complete and appropriately formatted

Usage example

Yes

Request visuals, if applicable

No single visual included in the symbol’s description. In some instances it will definitely clarify the content being presented.

Submit a pull request?

Are you planning to also submit a pull request to fix the issue? See the docs

contributor guide: https://www.tensorflow.org/community/contribute/docs and the

docs style guide: https://www.tensorflow.org/community/contribute/docs_style