WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Native video player on last version of Android OS doesn't display correctly due to css conflict rules with last version of bootstrap.min,css file.

The control bar on the android player shorten's in length, also, the fullscreen and play buttons become a small pixel on the screen. We have tested the player on a recent samsug tablet and a samsung galaxy II smartphone.

The problem identified is as follow's 👍

The two lines below are the rules which produce the conflict.

// original line in bootstrap css

input,textarea,.uneditable-input{width:206px;}

input[type="file"],input[type="image"],input[type="submit"],input[type="reset"],input[type="button"], input[type="radio"],input[type="checkbox"]{width:auto;}

// more specificly

input {width:206px;} // control bar bug

input[type="button"]{width:auto;}// fullscreen and play buttons bug

To solve the bug i did this :

// Hack solution

form input {width:206px;}

form input[type="button"]{width:auto;}

It would be great if you guys could solve the bug for next version.

Thanks

Issue 2:
I've been going at this for the past half day and finally pinpointed this problem to Bootstrap.

I am using an android tablet with version 4.0.3. I am using whatever browser this tablet came with (Asus Transformer).

Our app has an HTML5 video tag and the controls are showing up, however, the play button and the full screen button are displayed at maybe a few pixels each. Basically they look like white dots. The scrub bar is there and displaying correctly.

I can still click the buttons and they function correctly, but you can't even tell what they are to begin with.
Issue 1:
Travis is failing more often than passing. There are a variety of different flakes, most of which have already been reported. I am opening this issue to aggregate them so that on-calls don't waste time filing duplicates.

Unit tests:

#9843: data race in pkg/volumeclaimbinder

#10773: TestMaxInFlight unexpected response: 429 in pkg/apiserver

#9119: TestRequestExecuteRemoteCommand remotecommand_test.go:207: 1: expected true, got false in pkg/client/remotecommand

#10776: test timed out in contrib/mesos/pkg/election

#10795: runtime error: index out of range in contrib/mesos/pkg/scheduler

Issue 2:
Provide a mechanism to ensure idempotent creation of all resources and/or update kubernetes.raml if it is already possible.
Issue 1:
Electron version: Tested 1.6.12 and 1.7.5

Operating system: At least Linux

Expected behavior

When calling fork from the child_process module, I'd expect the execArgv argument to work as it does when calling fork from a node script.

Actual behavior

Flags such as --expose-gc and --max-old-space-size do not work. In the child process, process.execArgv contains the arguments as expected.

How to reproduce

danielscottjames/electron-quick-start@3d8e548

Running the example electron program, either packaged or not, results in:

process.execArgv:--expose-gc
expose.gc is not defined

Running the mainnode.js script like node mainnode.js results in:

process.execArgv:--expose-gc
expose.gc is defined

as expected.

Issue 2:
Electron version: 1.6.10

Expected behavior

I expect --max_old_space_size to work when electron is run as node. This was initially discussed here (Sorry for the double post in case you follow-up on comments in closed issues)

How to reproduce

Have a program that keeps allocating memory (see below, save it as big.js)

Run it via ./node_modules/electron/dist/Electron.app/Contents/MacOS/Electron --js-flags="--max_old_space_size=128" ~/Desktop/big.js and see that the last message is heapTotal: 139

Now run as node via env ELECTRON_RUN_AS_NODE=true ./node_modules/electron/dist/Electron.app/Contents/MacOS/Electron --max_old_space_size=128 ~/Desktop/big.js and see that the last message is heapTotal: 1504

🐛 The max_old_space_size-flag has no effect when running as node, the limit is always ~1.5GB and cannot be lowered nor increased.

let all = [];
let big = [];
all.push(big);
for (let i = 0; i < 1000000000; i++) {
let newLen = big.push(Math.random());
if (newLen % 500000 === 0) {
big = [];
all.push(big);
console.log('all.length: ' + all.length);
console.log('heapTotal: ' + Math.round(process.memoryUsage().heapTotal / 1e6));
}
}

console.log(all.length);
Issue 1:
I find that some jar package conflict.

I solve this problem like the configuration below:

compile('org.apache.shardingsphere:sharding-jdbc-orchestration-spring-boot-starter:4.0.0-RC2') {
exclude group: 'org.apache.curator', module: 'curator-framework'
}
compile('org.apache.shardingsphere:sharding-orchestration-reg-zookeeper-curator:4.0.0-RC2') {
exclude group: 'org.apache.curator', module: 'curator-framework'
exclude group: 'org.apache.curator', module: 'curator-recipes'
exclude group: 'org.apache.curator', module: 'curator-client'
}
compile group: 'org.apache.curator', name: 'curator-framework', version: '2.10.0'
compile group: 'org.apache.curator', name: 'curator-recipes', version: '2.10.0'

something wrong with orchestration

Issue 2:
My datasource are named from 'ds0000' to 'ds0015', is there only one way for xml like this?

Or any other batter suggestions?

<sharding:sharding-rule data-source-names="ds000$->{0..9},ds00$->{10..15}">

actual-data-nodes="ds000$->{0..9}.user,ds00$->{10..15}.user"
Issue 1:
Consider:

julia> Val{:a}
Val{:a}

julia> Val{Int}
Val{Int64}

julia> Val{(:a,)}
Val{(:a,)}

julia> Val{(Int,)}
ERROR: TypeError: in Type, in parameter, expected Type, got Tuple{DataType}

It would be consistent (and nice) if (Int,) also worked as type-parameter.

Issue 2:
The new keyword argument syntax that uses the name of the rvalue as the keyword if no name is given does not seem to work with the Test.@test macro.

Fore example:

using Test: @test

atol = 1
@test isapprox(0.1, 0; atol = atol) # works
@test isapprox(0.1, 0; atol) # fails

Other macros like @assert isapprox(0.1, 0; atol) work as expected.
Issue 1:
I have a feeling this is more related to Go than kubernetes specifically but the CGO_ENABLED=0 builds cause this problem to occur.

➜ amd64 ./kubectl get po
Unable to connect to the server: dial tcp: lookup kube-apiserver01.internal: no such host

When rebuilding off the v1.2.0 tag with CGO_ENABLED=1 in the hack/lib/golang.sh DNS works as expected:

➜ kubernetes git:(5cb86ee) ./_output/local/bin/darwin/amd64/kubectl get po
NAME READY STATUS RESTARTS AGE
pod123 3/3 Running 0 19h

You can also reproduce that the go dns implementation is lacking with the CGO_ENABLED=1 bin via env variables:

➜ kubernetes git:(5cb86ee) GODEBUG=netdns=go ./_output/local/bin/darwin/amd64/kubectl get po
Unable to connect to the server: dial tcp: lookup kube-apiserver01.internal on 8.8.8.8:53: no such host

As expected, it isn't an option to force cgo resolution via runtime env variables for the CGO_ENABLED=0 bin:

➜ amd64 GODEBUG=netdns=cgo ./kubectl get po
Unable to connect to the server: dial tcp: lookup prod-kube-apiserver01.nyc3.internal.digitalocean.com: no such host

Issue 2:
cgo is required for certain go std libraries to work. See this article for details.

This breaks kubectl name resolution for some cases. See kubernetes/kubectl#48 for details.
Issue 1:
I'm submitting a ... (check one with "x")

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior

If a route has a canActive provider which returns false and navigate to '/', the 'HomeComponent' is not displayed. The problem doesn't occurs when the canActive navigate to a path that is not '/' (f.e: '/login')

My real problem

an user has permissions to navigate to a custom path

the user go to the path

the user copy the URL

the user lost the session

the user paste the URL and navigate

If the canActivate returns false and goes to '/', it fails. If it goes to '/login' it works.

Expected behavior

Display the 'HomeComponent' in the router-outlet

Minimal reproduction of the problem with instructions

https://plnkr.co/edit/qXH60zedNRpRUp0nHQxO?p=preview

Angular version: 2.4.1

Browser: Chrome

Language: TypeScript 2.0

Issue 2:
I'm submitting a ... (check one with "x")

[x ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior

The skipLocationChange in the router used to change the component and keep the url as it was.

Expected behavior

The skipLocationChange in the router would change the component without changing the route.

Minimal reproduction of the problem with instructions

http://plnkr.co/edit/F2YVpAV1EtNUolNgFClR?p=preview

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

Redirections to 404's etc should not change the url

Please tell us about your environment:

Angular version: 4.0.X

Was working correctly in 2.0.X

Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

all

Language: [all | TypeScript X.X | ES6/7 | ES5]

Typescript

Node (for AoT issues): node --version =
Issue 1:
Don't know if this is the right place to post this bug, please let me know if it isen't.

Failing to install latest angular2 package with npm:

npm ERR! 404 Not Found

npm ERR! 404

npm ERR! 404 'reactivex/rxjs' is not in the npm registry.

npm ERR! 404 You should bug the author to publish it

npm ERR! 404 It was specified as a dependency of 'angular2'

npm ERR! 404

npm ERR! 404 Note that you can also install from a

npm ERR! 404 tarball, folder, or http url, or git url.

npm ERR! System Windows_NT 6.2.9200

npm ERR! command "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\External\node\node" "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\External\npm\node_modules\npm\bin\npm-cli.js" "install"

npm ERR! cwd C:************

npm ERR! node -v v0.10.31

npm ERR! npm -v 1.4.9

npm ERR! code E404

Issue 2:
As I see in scripts/dev-bundle-tool-package.js the version for npm is still 1.4.28. Unfortunately angular@2.0.0-alpha.38 has @reactivex/rxjs as a dependency and npm@1.4.28 doesn't support this package naming syntax.

I simply changed the version of npm to npms LTS 2.14.6 in scripts/dev-bundle-tool-package.js, and now I can upgrade the angular dependency in @barbatus angular2 to angular@2.0.0-alpha.38 and run my app with it.

I don't know, if this change will have any sideeffects in meteor.
Issue 1:
on mac, after upgrading Deno from 1.1.3 to 1.2.2 I see this error:

error: TS2345 [ERROR]: Argument of type 'string | URL' is not assignable to parameter of type 'string'.
Type 'URL' is not assignable to type 'string'.
return new URL(url).pathname
~~~
at https://deno.land/std@0.51.0/path/win32.ts:911:18

TS2345 [ERROR]: Argument of type 'string | URL' is not assignable to parameter of type 'string'.
Type 'URL' is not assignable to type 'string'.
return new URL(url).pathname;
~~~
at https://deno.land/std@0.51.0/path/posix.ts:433:18

I did --reload for all modules, and another similar error disappeared, but this did not. How can I isolate which module is causing this incompatibility issue to appear?

Issue 2:
@ I'm running very simple server. But I have some errors. How I can solve this? I already updated to deno v1.2.1. But steel have this error.

error: TS2345 [ERROR]: Argument of type 'string | URL' is not assignable to parameter of type 'string'.

Type 'URL' is not assignable to type 'string'.

return new URL(url).pathname

~~~

at https://deno.land/std@v0.50.0/path/win32.ts:911:18

TS2345 [ERROR]: Argument of type 'string | URL' is not assignable to parameter of type 'string'.

Type 'URL' is not assignable to type 'string'.

return new URL(url).pathname;

~~~

at https://deno.land/std@v0.50.0/path/posix.ts:433:18
Issue 1:
The select popover gets horizontally shrunk once a value is selected

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

Expected Behavior

The popover should not get shrunk on the popover exit animation

Current Behavior

The popover gets shrunk horizontally on the exit animation.

Steps to Reproduce (for bugs)

https://material-ui.com/demos/selects/

Open the select and select a value, you will see the popover is horizontally shrunk when it is exiting.

Your Environment

Tech
Version

Material-UI
latest beta

React
16

browser
Chrome 64

etc
n/a

Issue 2:
I've just updated from beta.18 to beta.20 and my flow is breaking now:

Error: node_modules/material-ui/internal/Portal.js.flow:101
101: return ReactDOM.createPortal(children, this.getLayer());
^^^^^^^^^^^^^^^ null. This type is incompatible with the expected param type of
23: container: Element,
^^^^^^^ Element. See lib: /tmp/flow/flowlib_290fc575/react-dom.js:23

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

Tech
Version

Material-UI
beta.20

React
16.0
Issue 1:
Features like thread_local or unsafe_no_drop_flag or box_syntax, which are needed to use language features, are not caught by the unused_feature lint.

Perhaps we should add some more robust usage-checking?

Issue 2:
For the following snippet, rustc only warns about rustc_privat being unused:

#![feature(rustc_private)]
#![feature(box_syntax)]
#![feature(trace_macros)]
#![feature(slicing_syntax)]
#![feature(log_syntax)]

fn main() {}

According to the documentation, check_unused_or_stable_features only checks unused non-langauge features, but it is the only place that emits UNSUSED_FEATURES.
Issue 1:
There is no option for this.

Actually some of modules define default property in exports.

https://github.com/expressjs/morgan/blob/master/index.js#L191

exports.format = function(name, fmt){
exports[name] = fmt;
return this;
};
exports.format('default', ...);

Issue 2:
Issue originally made by @jmm

Bug information

Babel version: Latest

Input code

function arrayDestruct (...rest) {
[rest[0]] = x;
}

function forIn (...rest) {
for (rest[0] in x);
}

function forOf (...rest) {
for (rest[0] of x);
}

function updatePrefixIncrement (...rest) {
++rest[0];
}

function updatePostfixDecrement (...rest) {
rest[0]--;
}

function del (...rest) {
delete rest[0];
}

function call (...rest) {
rest[0]();
}

function newExprArgs (...rest) {
new rest[0]();
}

function newExprBare (...rest) {
new rest[0];
}

Description

This is a followup to T6932. I'm working on fixing it. I'll provide better details later. I just want there to be an issue tracking it so people know it's being worked on and don't waste their time duplicating the effort to no avail.

The errors either crash transformation or result in incorrect program execution.
Issue 1:
Discussed in #9264

import pydantic
from sqlalchemy.orm import (
DeclarativeBase,
Mapped,
MappedAsDataclass,
mapped_column,
registry,
)

class MappedAsPydanticDataclass(MappedAsDataclass):
registry = registry(dataclass_callable=pydantic.dataclasses.dataclass)

class Base(MappedAsPydanticDataclass, DeclarativeBase):
"""subclasses will be converted to dataclasses"""

# we need to write __annotations__ on mixins the way we do on mapped
# classes
name: Mapped[str]

class User(Base):
__tablename__ = "user"

id: Mapped[int] = mapped_column(primary_key=True)

Issue 2:
Discussed in #9264

it seems that there are 3rd party libraries that extend dataclasses with additional functionality, like pydantic

The registry could have an argument that allows customization of the dataclasses library

@zzzeek do you think we should accept a module or a single dataclass classable here?

let's pass a single callable, since the pydantic dataclasses module has a different interface than the builtin one
Issue 1:
Currently navigation using VS commands ends at interfaces. A "navigate to implementation(s)" action on function definitions would be great.

Issue 2:
Could you provide a way for Typescript Editors to list the implementations of a type?

This would definitely help developer productivity to be able to find implementations of types faster.

For example, in the Atom Editor atom-typescript plugin you can press F12 to 'Go to Declaration' which as currently implemented you often arrive at the typescript .d.ts file which has the function signature but not the actual implementation.

Since the Typescript parser often generates the d.ts files from the .ts implementation files. Could that association between the d.ts and .ts files be preserved (perhaps output with a typescript compiler option) so that Typescript editors could take developers to a list of the implementing classes or functions?

I opened a similar request for the Atom-typescript editor, but they indicate that they cannot implement this without Typescript parser support:

TypeStrong/atom-typescript#790
Issue 1:
Hi everyone. I have a babel application, use to work fine, but ever since I updated to 6.0 it had had an issue. On android 4.2, my application was not working. I lookup and found the culprit, my line

if (assetToPreload instanceof Image) {

was replaced by a call to this function

function n(t, e) {
return null != e && e[Symbol.hasInstance] ? e[Symbol.hasInstance](t) : t instanceof e
}

namely the _instanceof helper in helpers.js

var _instanceof = _babelTemplate2["default"]("\n (function (left, right) {\n if (right != null && right[Symbol.hasInstance]) {\n return right[Symbol.hasInstance](left);\n } else {\n return left instanceof right;\n }\n });\n");

but you can see that this helper assume that Symbol exists, which might not be the case if you don't have the polyfill and are not on a recent browser.

replacing the helper by

var _instanceof = _babelTemplate2["default"]("\n (function (left, right) {\n if (right != null && window.Symbol && right[Symbol.hasInstance]) {\n return right[Symbol.hasInstance](left);\n } else {\n return left instanceof right;\n }\n });\n");]

does the trick, but I'm don't have time to see the procedure to make a pull request.

Have a nice day.

Issue 2:
My Node 0.10 build is failing due to Symbol being undefined down in classCallCheck.js. Succeeds on 0.12+ presumably because V8 defines Symbol since then.

Not a problem in transform-runtime@6.0.2.

I tried adding external-helpers-2 as a shot in the dark; it seemed to fail more tests for the same reason.
Issue 1:
The following example works:

df = DataFrame(np.arange(20).reshape(5,4))

df2 = df.set_index(keys=[0,1,2])

df2.ix[(4,5,6)]

for using a MultiIndex

So I created a file sample_data.csv that looks like this:

col1,col2,year,amount

111111,3.5,2012,700

111112,3.5,2011,600

222221,4.0,2012,222

...

I then ran the following:

import numpy as np

import pandas as pd

sd=pd.read_csv('sample_data.csv')

sd2=sd.set_index(keys=['col2','year'])

sd2.ix[(4.0,2012)]

But this produces the following error: IndexError: index out of bounds

Can anyone explain why the former example works, but the latter doesn't ?

Issue 2:
I was wondering if, given the recent set of developments and improvements to asfreq and resample, we now have a more efficient method for solving this problem [from SO].

Example:

item_uid created_at value
0S0099v8iI 2015-03-25 10652.79
0F01ddgkRa 2015-03-25 1414.71
0F02BZeTr6 2015-03-20 51505.22
0F02BZeTr6 2015-03-23 51837.97
0F02BZeTr6 2015-03-24 51578.63
0F02BZeTr6 2015-03-25 NaN
0F02BZeTr6 2015-03-26 NaN
0F02BZeTr6 2015-03-27 50893.42
0F02BcIzNo 2015-03-17 1230.00
0F02BcIzNo 2015-03-23 1130.00
0F02F4gAMs 2015-03-25 1855.96
0F02Vwd6Ou 2015-03-19 5709.33
0F04OlAs0R 2015-03-18 321.44
0F05GInfPa 2015-03-16 664.68
0F05PQARFJ 2015-03-18 1074.31
0F05PQARFJ 2015-03-26 1098.31
0F06LFhBCK 2015-03-18 211.49
0F06ryso80 2015-03-16 13.73
0F06ryso80 2015-03-20 12.00
0F07gg7Oth 2015-03-19 2325.70

which, if we were to resample with a daily frequency, would return (e.g. for item_uid = 0F02BZeTr6):

item_uid created_at value
0F02BZeTr6 2015-03-20 51505.22
0F02BZeTr6 2015-03-21 51505.22
0F02BZeTr6 2015-03-22 51505.22
0F02BZeTr6 2015-03-23 51837.97
0F02BZeTr6 2015-03-24 51578.63
0F02BZeTr6 2015-03-25 51578.63
0F02BZeTr6 2015-03-26 51578.63
0F02BZeTr6 2015-03-27 50893.42
0F02BZeTr6 2015-03-28 50893.42
0F02BZeTr6 2015-03-29 50893.42

I mention this partly because unstacking can be very slow when our index is huge. Any thoughts here are welcome!
Issue 1:
The text is jumping at the end.

I add a line at the end to allow the correct edition of the code.

Challenge Use HTML5 to Require a Field has an issue.

User Agent is: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 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>

<p>Click here for <a href="#">cat photos</a>.</p>

<a href="#"><img class="smaller-image thick-green-border" alt="A cute orange cat lying on its back" src="https://bit.ly/fcc-relaxing-cat"></a>

<p>Things cats love:</p>
<ul>
<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>
<form action="/submit-cat-photo">
<input type="text" required placeholder="cat photo URL">
<button type="submit">Submit</button>
</form>

Issue 2:
In all the exercises, we the users are forced to press the enter key before writing any code.

Update:

We have locked the conversation temporarily on this thread to collaborators only, this has been resolved in staging, and will be live soon.

The fix can be confirmed on the beta website.

The workaround currently on production website is:

Press the Enter key on the challenge editor and then proceed with the challenge.

Apologies for the inconvenience meanwhile.

Reach us in the chat room if you need any assistance.
Issue 1:
vec previously had some code that looked like this:

let vp: *T = ...;
let v = move *vp;

This had the effect of memcpying *vp to v and zeroing *vp. move is being removed so this doesn't work. I've replaced that with:

let mut vp: *T = ...;
let mut v: T = rusti::init(); // Create a zeroed value
v <-> *vp;

This could probably be more efficient by 1) not zeroing the value (in most cases), 2) not doing the swap.

Probably this is what we should do:

let mut vp: *T = ...;
let mut v: T = rusti::uninit(); // Create a non-zeroed value
ptr:memcpy(&mut T, vp, 1);

And if you need the zeroing you can do a memset.

Issue 2:
Perhaps we should add an intrinsic like:

fn zero<T: POD>() -> T

that basically fills T with zeros. This is perfectly safe for POD types. Of course, we don't have a POD kind yet, but that's a separate issue I guess. This is particularly useful in C interop, where you often have functions with out-params that otherwise need to be initialized by hand.

We could also add an intrinsic like

fn undefined<T: POD>() -> T

which would just leave the data uninitialized. This would be more efficient but less safe in some sense. Though restricting it to POD at least preserves memory safety, more-or-less.

The idea is you'd write something like:

struct FooResult { /*something POD*/ }

extern mod c_library { fn foo(p: &mut FooResult) -> bool; }

fn foo() -> FooResult {
let result = defined();
if !c_library::foo(&mut result) { fail; }
return result;
}