WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
After upgrading to Druid 0.16.0-incubating, I am receiving a MySQLIntegrityConstraintViolationException complaining about:

"Duplicate entry XXX for key 'PRIMARY' [statement:"INSERT INTO druid_pendingSegments (id, dataSource.."

This results in the Kafka indexing tasks not being able to complete and the eventual failure of the coordinator/overlord nodes. This scenario only seems to happen after I drop some segments from Druid and then push in new data for the time period which was dropped. The only way I have found to fix this has been to force stop all of my Kafka indexing supervisors & tasks and manually delete all of the entires in the druid_pendingSegments table. After I do that, I no longer receive the sql exception and corresponding duplicate entry error message. Any thoughts on this would be greatly appreciated!

How to Reproduce:

Suspend a Kafka indexing supervisor for a given data source and wait for the indexing task(s) to complete.

Drop segments for a certain time period from the given data source and wait for the segments to be unloaded from the historical nodes.

Resume the Kafka indexing supervisor for a given data source.

Push new data through Kafka for the same time period which was previously dropped on the given data source.

Check the indexing logs for the Kafka indexing tasks to see them complaining about duplicate primary key errors.

Other Notables:

The druid_pendingSegments table doesn't seem to get cleaned up once a Kafka indexing supervisor is suspended. Entries are still left in this table for the given data source despite all the segments having been published to deepstorage / historical nodes. I do have druid.coordinator.kill.pendingSegments.on=true enabled. Maybe this is normal?

Issue 2:
There have been multiple discussions about Druid source having too many sub-projects which really doesn't provide much value and often leads to complications e.g. server/src/main/java/io/druid/client/indexing/ClientXXXQuery.java classes are equivalent to XXXTask.java classes in indexing-service/ and needs to stay in sync .. more such classes are created in #5102 .

similar desire has been mentioned in metamx/java-util#74 (comment) and #5102 (comment) .

So, here is my initial idea....

merge druid-api, druid-commons, java-utils, druid-processing into druid-core

merge druid-server, druid-indexing-service into druid-server

we can merge things further if necessary.
Issue 1:
Electron Version (output of node_modules/.bin/electron --version): 4.0.x also in 3.x.x or older

Operating System (Platform and Version): Windows 7 & Windows 10

Expected Behavior

The tray menu displays the same speed as normal.

Actual behavior

Windows 7:

It took almost a second to show up.

Almost impossible to display when the number of menus increases.

macOS 10.14.2:

No difference from the normal menu. There is no problem.

To Reproduce

multi-level-menu-for-tray

link issue#16156

link issue#16413

Screenshots

Additional Information

In issue #16413, codebytere is said to be a limitation of the Windows platform, but I use the miniblink (more compact, which implements most of the electron functions) to create a tray menu that loads the multi-level menu at a different speed than the normal menu. . So I want to re-create a new problem for loading multi-level menus.

demo(with miniblink).zip

Can you please re-emphasize this issue? Thanks.

@codebytere @MarshallOfSound @zcbenz

Issue 2:
electron@3.0.12(It also happens in 4.0.0)

win7 ultimate 64bit

Hi guys,

When I try to create multi-level menu for tray-menu,it worked,but loading speed is too slow.

Example code is below.

main.js

'use strict';
const app = require('electron').app;
const Tray = require('electron').Tray;
const Menu = require('electron').Menu;
const path = require('path');

let tray;
let contextMenu;

class Test {
constructor() {

}

initApp() {
app.on('ready', () => {
this.createTray();
});
}

createTray() {
tray = new Tray(path.join(__dirname, 'icon.png'));
tray.setToolTip('Test');

let childMenu = [];
let submenu = [];
let lastLv = [];

for (let index = 0; index < 5; index++) {
lastLv.push({
label: `lastLv${index}`
});
}

for (let index = 0; index < 10; index++) {
childMenu.push({
label: `childMenu${index}`,
type: 'submenu',
submenu: lastLv
});
}

for (let index = 0; index < 500; index++) {
submenu.push({
label: `menuItem${index}`,
type: 'submenu',
submenu: childMenu
});
}

contextMenu = Menu.buildFromTemplate([{
label: 'test',
type: 'submenu',
submenu
}]);

tray.on('right-click', () => {
//It may be cost 2's or more
tray.popUpContextMenu(contextMenu);
});
}
}

new Test().initApp();
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

In the docs and in the code the Tooltip component uses the prop placement to position the Tooltip, but in the declaration file the prop is called place. I believe it's just a simple typo.

Your Environment

Tech
Version

Material-UI
1.0.0-beta.10

Issue 2:
Thanks for the new Tooltip component! Currently the label does not use the font from the theme.

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

Expected Behavior

The tooltip label should be in the same fontface as the theme

Current Behavior

The label fontface is inherited from parent

Steps to Reproduce (for bugs)

<Tooltip label='My Tooltip' placement='bottom'>
<Button onClick={onClick}>
<AddIcon />
</Button>
</Tooltip>

Your Environment

Tech
Version

Material-UI
1.0.0-beta.10

React
15.6.1
Issue 1:
The source code is contained within this repo:

https://github.com/ChiKler/2D-container-of-2D-items-TS-JS/tree/36ef9c152bc3f27b0d2eef00ef599be696331fcf

Here's the sequence of commands you must execute in order to replicate this behaviour:

git clone https://github.com/ChiKler/2D-container-of-2D-items-TS-JS.git
cd 2D-container-of-2D-items-TS-JS
git reset --hard 36ef9c152bc3f27b0d2eef00ef599be696331fcf
deno run --allow-net --allow-read --reload ./src/mod.test.ts
deno run --allow-net --allow-read ./src/mod.test.ts

As you can see, the first time you run the script, it throws some errors; the next time it doesn't.

Edit: In order to fix this, I added some // @ts-ignore comments.

Here's the commit that fixes it:

https://github.com/ChiKler/2D-container-of-2D-items-TS-JS/commit/2adf4611d4f9b13ec4ec4d64524a66a491f7508d

Issue 2:
Because std/http/server.ts uses MuxAsyncIterator to serve up requests, any errors thrown there cannot be caught:

deno/std/http/server.ts

Lines 235 to 239
in
e34a3b6

[Symbol.asyncIterator](): AsyncIterableIterator<ServerRequest> {

const mux: MuxAsyncIterator<ServerRequest> = new MuxAsyncIterator();

mux.add(this.acceptConnAndIterateHttpRequests(mux));

return mux.iterate();

}

The comments on MuxAsyncIterator make it clear that:

deno/std/async/mux_async_iterator.ts

Lines 9 to 14
in
e34a3b6

/** The MuxAsyncIterator class multiplexes multiple async iterators into a

* single stream. It currently makes a few assumptions:

* - The iterators do not throw.

* - The final result (the value returned and not yielded from the iterator)

* does not matter; if there is any, it is discarded.

*/

And in situations where you have a TLS connection where the browser rejects the certificate, you end up with something like this with Deno dumping and no way to recover:

error: Uncaught InvalidData: received corrupt message
at unwrapResponse ($deno$/ops/dispatch_json.ts:43:11)
at Object.sendAsync ($deno$/ops/dispatch_json.ts:98:10)
at async TLSListenerImpl.accept ($deno$/tls.ts:31:17)
at async Server.acceptConnAndIterateHttpRequests (https://deno.land/std@0.50.0/http/server.ts:221:14)
at async MuxAsyncIterator.callIteratorNext (https://deno.land/std@0.50.0/async/mux_async_iterator.ts:28:29)

We need a way to iterate that allows errors to be caught when iterating on HTTP server.
Issue 1:
Migrated issue, originally created by Anonymous

I'm building a search doo-dad and trying to describe criteria with chains of attributes, like might appear in a loading option: Song.album, Album.artist, Artist.birth_year.

* Some tables need to be joined to multiple times, so I have to alias every table involved to be safe. If all I have is `attr = Song.album`, the best way I can find to create a corresponding alias is `getattr(aliased(attr.property.argument), attr.key)` -- which is ugly, not really documented, and doesn't work with association proxies and other special relationships that have no `key` attribute.

* After getting some result rows, I often want to retrieve the column data corresponding to some criteria; e.g. if the user searched for a range, it's helpful to show the actual values. How do I get `some_song.album` given `Song.album`? I've only come up with the `key` line above, or the slightly more "correct" `attr.__get__(type(some_song), some_song)`.

I could just use string names of properties, I suppose, but I like the compile-time checking I get by using the actual objects.

A more general comment: some of the recipes and examples are absolutely fabulous, but I'd never have guessed that SQLAlchemy was even capable of such things, let alone figured out how to implement them. More documentation on extending SQLAlchemy itself would be phenomenally helpful. Note, for example, that the docs for ConnectionEvents don't describe the events' arguments.

Issue 2:
Is your feature request related to a problem? Please describe.

In the next major version of GINO which will be built on SQLAlchemy 1.4, AsyncConnection is subclassed to be lazy (and together with many other contextual features, to be compatible with the current GINO version). It would be neat to put the lazy-connection initialization code in the overridden AsyncConnection._sync_connection() method to avoid a lot of code duplicates.

Describe the solution you'd like

As demonstrated in fantix@async-sync-connection, making the _sync_connection() method sync would allow subclasses to blend in async logic to get the actual connection.

Describe alternatives you've considered

Otherwise, the subclasses would have to override and copy over all AsyncConnection methods to add async logic.

Additional context

https://github.com/python-gino/gino/blob/501840be96a875490fda39f43ed5139fdee56d5d/src/gino/engine.py#L154-L166

Have a nice day!
Issue 1:
Bug report

Bug summary

When I try to plot a scatterplot where all points are positioned in a regular 2D-grid layout, plotted points are not evenly spaced. Spacings differ systematically which leads to strange regular vertical patterns. With a 100x100 grid, this is the case for (9, 9) or smaller figures. Patterns get less visible with larger figures and disappear around (12, 12)

Code for reproduction

import numpy as np
import matplotlib.pyplot as plt

x = np.tile(np.arange(100), 100)
y = np.repeat(np.arange(100), 100)

f, ax = plt.subplots(figsize=(7, 7))
ax.scatter(x, y, s=1, c='k')

Actual outcome

Expected outcome

Here is a figure of size (12, 12):

Here is a figure from R for comparison:

Matplotlib version

Operating system: osx 10.14

Matplotlib version: 3.0.2

Matplotlib backend (print(matplotlib.get_backend())): module://ipykernel.pylab.backend_inline

Python version: 3.6.6

Jupyter version (if applicable): 4.4.0

Issue 2:
mpl 1.5.3/2.0b4/master, no matplotlibrc

_xs = np.linspace(0, 30, 201); plt.plot(_xs, scipy.stats.lognorm.pdf(_xs / 14, .472) / 14, ".")

Note the slight inaccuracy in positioning of the markers at the positioning of the markers at the positions marked with the red circles, resulting in a "step-like" behavior (you may need to open the image in a larger viewer to notice it).

The data itself does not present this behavior, as can be checked just by zooming in these regions.
Issue 1:
Go spec says:

Converting a signed or unsigned integer value to a string type yields a string containing the UTF-8 representation of the integer. Values outside the range of valid Unicode code points are converted to "\uFFFD".

cmd/compile rejects string(1<<100) instead of yielding "\uFFFD": http://play.golang.org/p/1s6ge-XFqd (gccgo also rejects this; gotype accepts it.)

runtime incorrectly truncates 64-bit integer values to uint32 before checking if they're a valid Unicode code point: http://play.golang.org/p/M_Gkll5VY-

Issue 2:
Gc rejects to compile the following program:

package a
var a = string(9223372036854775808)

saying:

overflow in int -> string

go/types compile it successfully.

Compilers must agree on whether it is a valid Go program or not.

on commit af81789
Issue 1:
See:

Caused by the position:relative of the navbar and / or the same z-index of the .navbar and .dropdown menu class

Issue 2:
With Bootstrap 3.0.0 if you have a navbar below a dropdown it will overlap on top of the dropdown links and block vision and input.

Here's an example (try using the dropdown link or button in the primary nav): http://jsfiddle.net/dBdpj/embedded/result/

Edit: This could probably be solved by ensuring dropdowns have a higher z-index.
Issue 1:
FreeCodeCamp Issue template

To Use this Template:

Fill out what you can

Delete what you do not fill out

NOTE: ISSUES ARE NOT FOR CODE HELP - Ask for Help at https://gitter.im/FreeCodeCamp/Help

Issue Description

On page 'Link to External Pages with Anchor Elements' of 'HTML5 and CSS' under 'Front End Development Certification'

After creating the link in the solution, click on the link displayed in the preview window, with or without control clicked. The original link won't open. Now, try submitting the solution either with the button or with 'ctrl-enter'. None of them work, until the page is refreshed.

Browser Information

Google Chrome, v48.0.2564.116 m

Windows 7 Enterprise

Your Code

<link href="http://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
.red-text {
color: red;
}

h2 {
font-family: Lobster, Monospace;
}

p {
font-size: 16px;
font-family: Monospace;
}

.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
border-radius: 50%;
}

.smaller-image {
width: 100px;
}
</style>

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

<img class="smaller-image thick-green-border" src="https://bit.ly/fcc-relaxing-cat">

<p class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p class="red-text">Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>

<a href="http://freecatphotoapp.com">cat photos</a>

Screenshot

Issue 2:
Challenge Link to External Pages with Anchor Elements has an issue.

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

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

My code:

<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
.red-text {
color: red;
}

h2 {
font-family: Lobster, Monospace;
}

p {
font-size: 16px;
font-family: Monospace;
}

.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
border-radius: 50%;
}

.smaller-image {
width: 100px;
}
</style>

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

<img class="smaller-image thick-green-border" src="https://bit.ly/fcc-relaxing-cat">
<a href="http://freecatphotoapp.com">cat photos</a>
<p class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p class="red-text">Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>

Edit by @raisedadead :

Issue Description:

Clicking on the link in the iphone preview area hangs the run test
Issue 1:
Code Sample, a copy-pastable example if possible

import pandas as pd
df = pd.read_csv(file)
df.index = pd.to_datetime(df[['Year','Month','Day','Hour']], unit='s')
df[df.index.duplicated()].index

DatetimeIndex(['2009-01-01 00:00:00', '2009-01-01 00:30:00',

'2009-01-01 01:00:00', '2009-01-01 01:30:00',

'2009-01-01 02:00:00', '2009-01-01 02:30:00',

'2009-01-01 03:00:00', '2009-01-01 03:30:00',

'2009-01-01 04:00:00', '2009-01-01 04:30:00',

...

'2013-12-31 19:00:00', '2013-12-31 19:30:00',

'2013-12-31 20:00:00', '2013-12-31 20:30:00',

'2013-12-31 21:00:00', '2013-12-31 21:30:00',

'2013-12-31 22:00:00', '2013-12-31 22:30:00',

'2013-12-31 23:00:00', '2013-12-31 23:30:00'],

dtype='datetime64[ns]', length=175296, freq=None)

Problem description

The behaviour of duplicated() is returning duplicated days when the datetime values are in fact unique at their native temporal resolution. I would expect this function to return true duplicates.

Issue 2:
Code Sample, a copy-pastable example if possible

import pandas as pd, numpy as np

idx = pd.MultiIndex.from_tuples([(0, 0), (1, 1), (1, 1), (2, 2)])
a = pd.Series(np.arange(4), index=idx)
new_idx = pd.MultiIndex.from_tuples([(0, 0), (1, 1), (2, 2)])
a.reindex(new_idx)

(...)
2094 else:
-> 2095 raise Exception("cannot handle a non-unique multi-index!")
2096
2097 if not isinstance(target, MultiIndex):

Exception: cannot handle a non-unique multi-index!

Problem description

class MultiIndex(Index):
(...)
def reindex(self, target, method=None, level=None, limit=None,
tolerance=None):
(...)
else:
raise Exception("cannot handle a non-unique multi-index!")

In MultiIndex.reindex, this exception is too generic, and thus not easily filtered. I think it should be an IndexError

Expected Output

raise IndexError("cannot handle a non-unique multi-index!")

I can do a very minimal PR to fix this if needed.

Output of pd.show_versions()

INSTALLED VERSIONS

commit: None

python: 3.6.5.final.0

python-bits: 64

OS: Linux

OS-release: 4.15.0-24-generic

machine: x86_64

processor: x86_64

byteorder: little

LC_ALL: None

LANG: fr_FR.UTF-8

LOCALE: fr_FR.UTF-8

pandas: 0.23.1

pytest: 3.6.2

pip: 10.0.1

setuptools: 39.2.0

Cython: 0.28.3

numpy: 1.14.5

scipy: 1.1.0

pyarrow: None

xarray: None

IPython: 6.4.0

sphinx: None

patsy: 0.5.0

dateutil: 2.7.3

pytz: 2018.5

blosc: None

bottleneck: None

tables: 3.4.4

numexpr: 2.6.5

feather: None

matplotlib: 2.2.2

openpyxl: None

xlrd: None

xlwt: None

xlsxwriter: None

lxml: None

bs4: None

html5lib: 1.0.1

sqlalchemy: None

pymysql: None

psycopg2: None

jinja2: 2.10

s3fs: None

fastparquet: None

pandas_gbq: None

pandas_datareader: None
Issue 1:
Electron version: 1.2.0

Operating system: OSX (probably others)

Hi, I'm the maintainer of serialport. We've been getting a bunch if issues with people not being able to use our latest release or beta release with electron versions 1.2.x, the 1.1.x line seemed to work well enough. I don't have the greatest of bug reports but a few users seem to have narrowed it down to the versions change and I'm suggesting it to the new issues to see if reverting to 1.1 solves their problems.

serialport/node-serialport#838 (comment)

serialport/node-serialport#856

I'm going to upgrade nan for our next release but nothing in the change log suggests it should effect support.

Any idea what I can do?

Issue 2:
This is process.versions in electron 1.2.0:

{
"http_parser": "2.7.0",
"node": "6.1.0",
"v8": "5.1.281.47",
"uv": "1.9.0",
"zlib": "1.2.8",
"ares": "1.10.1-DEV",
"modules": "48",
"openssl": "1.0.2h",
"electron": "1.2.0",
"atom-shell": "1.2.0",
"chrome": "51.0.2704.63"
}

v8 5.1 is not abi compatible with 5.0, which node 6 ships with. So, .modules=48 is incorrect. The way to fix this (I guess) would be to bundle a chrome version that comes with v8 that is compatible with the bundled node version.

See nodejs/nan#578 for answers from node, nan and v8 maintainers.
Issue 1:
I have a bit of code that Babel 5 parses but 6 does not:

listenerPromise = async () => {
// Wait for the other listeners to throw
await Promise.resolve();
expect(errorCount).toBe(2);
await Promise.resolve();
return 'success';
}();

If I put parens around the async function expression (as in listenerPromise = (async () => {})();), then it successfully parses. I haven't looked at the grammar closely yet... anyone know if my original JS is even valid and Babel 5 was too lenient, or if this is a bug with Babel 6?

Versions of Babel and plugins I'm using:

"babel-core": "^6.1.2",
"babel-plugin-syntax-async-functions": "^6.0.14",
"babel-plugin-syntax-flow": "^6.0.14",
"babel-plugin-syntax-trailing-function-commas": "^6.0.14",
"babel-plugin-transform-async-to-generator": "^6.0.14",
"babel-plugin-transform-es2015-arrow-functions": "^6.0.14",
"babel-plugin-transform-es2015-classes": "^6.1.2",
"babel-plugin-transform-es2015-destructuring": "^6.0.18",
"babel-plugin-transform-es2015-modules-commonjs": "^6.1.3",
"babel-plugin-transform-es2015-parameters": "^6.0.18",
"babel-plugin-transform-es2015-shorthand-properties": "^6.0.14",
"babel-plugin-transform-es2015-spread": "^6.0.14",
"babel-plugin-transform-flow-strip-types": "^6.0.14",
"babel-plugin-transform-function-bind": "^6.0.14",
"babel-plugin-transform-runtime": "^6.1.2",
"babel-plugin-transform-strict-mode": "^6.1.2",

Issue 2:
In Babel 5, it was possible to do this:

() => {
console.log("test");
}();

However, this is no longer possible in Babel 6 - it gives an "unexpected token" error. Instead, I have to wrap the function as an expression:

(() => {
console.log("test");
})();

I'm transpiling with the following Gulp task:

var gulp = require("gulp");
var browserify = require("browserify");
var buffer = require("vinyl-buffer");
var source = require("vinyl-source-stream");
var sourcemaps = require("gulp-sourcemaps");

gulp.task("js", function() {
var bundler = browserify("src/app.js")
.transform("babelify", {
presets: ["es2015"]
});

return bundler.bundle()
.on("error", function(err) {
console.error(err);
this.emit("end");
})
.pipe(source("app.js"))
.pipe(buffer())
.pipe(sourcemaps.init({ loadMaps: true }))
.pipe(sourcemaps.write("./"))
.pipe(rename("dist/app.js"))
.pipe(gulp.dest("./"));
});

This script works fine with everything else, as long as I wrap my self-calling arrow functions in brackets. Is this intentional, or is this a regression?
Issue 1:
Environment

Microsoft Windows NT 10.0.18362.0

Steps to reproduce

Install app from windows store OR build from source and deploy Cascadia package.

Expected behavior

Terminal runs successfully.

Actual behavior

Error "The data area passed to a system call is too small." is shown and terminal does not open.

Issue 2:
Environment

Windows build number:Microsoft Windows [Version 10.0.18999.1]
Windows Terminal version (if applicable): 0.5.2762.0

Steps to reproduce

Install Font with glyphsupport like NerdFonts ( I tried DroidSansMono NF and Hack NF) and use a powerline promt for example

Expected behavior

Render the line like this:

Render the line like this (this is the vscode terminal with the same font selected)

Actual behavior

Looking like this:
Issue 1:
Currently new Intl.DateTimeFormat('en-US') error.

Ref: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl

Related: #1968

Issue 2:
As seen in #1952 / #1636 ICU needs to be added in Deno build.

Switching this flag to true maybe: https://github.com/denoland/deno/blob/master/.gn#L50 ?

ref: https://v8.dev/docs/i18n
Issue 1:
SimpleImputer assigns all missing values in a column the same value based on training statistics. We should consider adding an alternative imputer (RandomImputer? SamplingImputer?) which samples imputation values from the values seen for the same feature in training.

Issue 2:
The purpose would be to provide an unbiased, stochastic, univariate imputer. The imputer would replace missing values by values sampled uniformly at random from the non-missing values of the sample column.

This would require to add additional random_state constructor parameter to the class.

As for #11208 this strategy should work both on numerical and non-numerical dtypes.