WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Hi,

Since yesterday I am facing problem with creation new deployments and pods assigned to those deployments. Due to some reason RC creates a lot of pods and right after terminates them. My pod require to have volume attached in AWS so I assume that is not possible to attach/detach volume more than several times within one minute.

Output from get pods command:

xxx-20150918-15-852712-3444524503-0b7z6 0/5 Terminating 0 38s

xxx-20150918-15-852712-3444524503-1jb57 4/5 Terminating 0 1m

xxx-20150918-15-852712-3444524503-1r94w 0/5 Terminating 0 1m

xxx-20150918-15-852712-3444524503-4kvwz 0/5 Terminating 0 1m

xxx-20150918-15-852712-3444524503-5aua3 0/5 Terminating 0 1m

xxx-20150918-15-852712-3444524503-7ae6n 0/5 Terminating 0 1m

xxx-20150918-15-852712-3444524503-feay6 0/5 Terminating 0 40s

xxx-20150918-15-852712-3444524503-g8opf 0/5 Terminating 0 1m

xxx-20150918-15-852712-3444524503-i9msv 0/5 ContainerCreating 0 37s

xxx-20150918-15-852712-3444524503-j1zjo 0/5 Terminating 0 1m

xxx-20150918-15-852712-3444524503-kbkm5 0/5 Terminating 0 1m

xxx-20150918-15-852712-3444524503-n70tx 0/5 Terminating 0 39s

xxx-20150918-15-852712-3444524503-ntmmz 0/5 Terminating 0 1m

xxx-20150918-15-852712-3444524503-nyuwp 0/5 Terminating 0 39s

xxx-20150918-15-852712-3444524503-po9kn 0/5 Terminating 0 1m

xxx-20150918-15-852712-3444524503-somw3 0/5 Terminating 0 1m

xxx-20150918-15-852712-3444524503-wpd4t 0/5 Terminating 0 38s

xxx-20150918-15-852712-3444524503-x2yip 0/5 Terminating 0 1m

When i execute describe pod method for any of those pods I have only mentioned that pod has been successfully assigned to the node.

My versions:

Client Version: version.Info{Major:"1", Minor:"3", GitVersion:"v1.3.4", GitCommit:"dd6b458ef8dbf24aff55795baa68f83383c9b3a9", GitTreeState:"clean", BuildDate:"2016-08-01T16:45:16Z", GoVersion:"go1.6.2", Compiler:"gc", Platform:"linux/amd64"}

Server Version: version.Info{Major:"1", Minor:"3", GitVersion:"v1.3.4+coreos.0", GitCommit:"be9bf3e842a90537e48361aded2872e389e902e7", GitTreeState:"clean", BuildDate:"2016-08-02T00:54:53Z", GoVersion:"go1.6.2", Compiler:"gc", Platform:"linux/amd64"}

Thanks for help in advance,

Adam

Issue 2:
In the document, expose should take rc and service as input. I tried kubectl expose po nginx --port=80 --target-port=8080 and kubectl expose -f pod-nginx.yaml ..., they all worked (when pod has labels).

Another thing is, in expose command, service name is duplicated from input resource name(when --name is not specified), if service with same name already exsits, it will return an error. Can we give the service a unique name as rc does to the pods it manages.

@kubernetes/kubectl @feihujiang
Issue 1:
action:

deno run --allow-read --allow-net xxx.ts

result:

Check file:///....../xxx.ts

error: TS2322 [ERROR]: Type 'import("https://deno.land/std@0.75.0/http/server.ts").ServerRequest | null' is not assignable to type 'import("https://deno.land/std/http/server.ts").ServerRequest | null'.

Type 'import("https://deno.land/std@0.75.0/http/server.ts").ServerRequest' is not assignable to type 'import("https://deno.land/std/http/server.ts").ServerRequest'.

Types have separate declarations of a private property '_contentLength'.
request = await readRequest(conn, reader);
~~~~~~~
at https://deno.land/std/http/server.ts:147:9

Issue 2:
// main.ts
import { serve } from "https://deno.land/std/http/server.ts";

1.4.6

❯❯❯ rm -rf $DENO_DIR
❯❯❯ deno1.4.6 run -A --reload main.ts
Download https://deno.land/std/http/server.ts
Warning Implicitly using latest version (0.75.0) for https://deno.land/std/http/server.ts
(snip)
Check file:///mnt/f9/Projects/github.com/denoland/deno/main.ts

1.5.0

❯❯❯ rm -rf $DENO_DIR
❯❯❯ deno1.5.0 run -A --reload main.ts
Download https://deno.land/std/http/server.ts
Warning Implicitly using latest version (0.75.0) for https://deno.land/std/http/server.ts
(snip)
Check file:///mnt/f9/Projects/github.com/denoland/deno/main.ts
error: TS2322 [ERROR]: Type 'import("https://deno.land/std@0.75.0/http/server.ts").ServerRequest | null' is not assignable to type 'import("https://deno.land/std/http/server.ts").ServerRequest | null'.
Type 'import("https://deno.land/std@0.75.0/http/server.ts").ServerRequest' is not assignable to type 'import("https://deno.land/std/http/server.ts").ServerRequest'.
Types have separate declarations of a private property '_contentLength'.
request = await readRequest(conn, reader);
~~~~~~~
at https://deno.land/std/http/server.ts:147:9

cc @kitsonk

For anyone looking at this issue now, we are planning to do a 1.5.1 hot fix release tomorrow with a bug fix.
Issue 1:
Challenge Add Placeholder Text to a Text Field has an issue.

User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.94 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>
<input type="text">

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:
Description of the problem

When using BasisTextureLoaded with a ShaderPass, the texture will only be used properly if the uniform value is set after the instantiation of the ShaderPass.

let shaderPass = new ShaderPass( {

vertexShader: vertexShader,
fragmentShader: fragmentShader,
uniforms: {
'tDiffuse': { value: null },
'tTexture': { value: texture }
}

} );

//Will only work if you add this line.

shaderPass.uniforms[ "tTexture" ].value = texture;

Without this line, the texture2D( tTexture, vUv) will be return vec4( 0., 0., 0., 0. )

I couldn't create a fiddle.

I don't know it it's due to webworkers or to webassembly, or some path issues, but it was a mess.

So I created a github repository.

https://github.com/Horsetopus/threejs-basistexturelaoder-shaderpass-issue

Three.js version

Dev

r113

...

Browser

Chrome

Firefox

Edge

Internet Explorer ? just won't work.

OS

All of them

Windows

[?] macOS

[?] Linux

[?] Android

[?] iOS

Issue 2:
UniformsUtils.merge use the clone method that does not seem to clone by reference. So uniforms variables are not update into the shader

So this, is not working:

uniforms = {
time: { type: "f", value: 1.0 },
};

var material = new THREE.ShaderMaterial( {
uniforms: THREE.UniformsUtils.merge( [
THREE.UniformsLib[ "common" ],
uniforms
] ),
...
...

uniforms.time.value ++;

Here my workaround

uniforms = THREE.UniformsUtils.merge([
THREE.UniformsLib[ "common" ],
myuniforms
]);

uniforms.time={ type: "f", value: 1.0 };

var groundMaterial = new THREE.ShaderMaterial( {
uniforms: uniforms,
...
...

uniforms.time.value ++;

[r71]
Issue 1:
Some code:

#![crate_type="lib"]

pub mod variant0 {
pub enum A { A(()) }
pub static B: A = A(());

pub fn main() {
}
}

#[cfg(variant1)]
pub mod variant1 {
pub enum A { A(()) }
pub static B: A = A(()); // <-- error here ...

// /tmp/s.rs:6:23: 6:28 error: unsupported constant expr
// /tmp/s.rs:6 pub static B: A = A(());
// ^~~~~

pub fn main() {
match A(()) {
B => (), // ... introduced by use of `B` here
_ => (), }
}
}

#[cfg(variant2)]
pub mod variant2 {
pub enum C { D=3, E=4 }
pub static F : C = D;

pub fn main() {
match D { F => (), _ => (), }
}
}

pub mod variant3 {
pub enum C { D=3, E=4 }
pub static F : int = 3;

pub fn main() {
match D as int { F => (), _ => (), }
}
}

Some funkiness:

% rustc /tmp/s.rs
% rustc --cfg variant1 /tmp/s.rs
/tmp/s.rs:14:23: 14:28 error: unsupported constant expr
/tmp/s.rs:14 pub static B: A = A(()); // <-- error here ...
^~~~~
% rustc --cfg variant2 /tmp/s.rs
error: internal compiler error: only scalars and strings supported in compare_values
note: the compiler hit an unexpected failure path. this is a bug.
note: we would appreciate a bug report: http://static.rust-lang.org/doc/master/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
task 'rustc' failed at '~Any', /Users/fklock/Dev/Mozilla/rust.git/src/libsyntax/diagnostic.rs:155

%

The oddity in variant1, as noted in the comments, is that the use of B in a match pattern is causing the compiler to complain about its definition as a static item.

The oddity in variant2 is that we hit an ICE. :)

Issue 2:
When compiling

static val: [u8, ..1] = [0];

fn main() {
match [1] {
val => (),
_ => ()
}
}

The error message

$ rustc errormsg.rs
errormsg.rs:1:25: 1:28 error: unsupported constant expr
errormsg.rs:1 static val: [u8, ..1] = [0];
^~~

points towards the definition of the constant and not the match statement which is misleading because the definition of the static value is perfectly fine but not its usage inside the match.

I am using rust 0.10.
Issue 1:
Migrated issue, originally created by Anonymous

I tried to redefine some of my classes and mappers using the declarative extension in 0.4.5, but I couldn't see how to set the schema argument on the table. At runtime, schema==None, which won't work for this application.

Looking at the code, it appears only "autoload" is honored, and other Table args are ignored.

Perhaps we could recognize a schema attribute on a declarative class?

Issue 2:
Migrated issue, originally created by Michael Bayer (@zzzeek)

consolidating #1328, #2797, #2845 as these are all dealing with the same thing from different angles.

SomeClass.some_m2o, which refers to OtherEntity as a many-to-one, would be interpreted:

for sess.query(SomeClass.some_m2o) as sess.query(OtherEntity)

for sess.query(SomeClass).filter(SomeClass.some_m2o == OtherEntity) as filter(SomeClass.other_entity_id == OtherEntity.id)

for sess.query(SomeClass).order_by(SomeClass.some_m2o), group_by(SomeClass.some_m2o), as order_by/group_by SomeClass.other_entity_id

as is currently the case, sess.query(SomeClass).filter(SomeClass.some_m2o == other_entity) compares to other_entity.id

any other query.something(SomeClass.m2o..something) type requests should get put here.
Issue 1:
The @gridColumns, @gridColumnWidth, and @gridGutterWidth options previously available on the Bootstrap 2 custom compile page seem to be missing from http://getbootstrap.com/customize/.

Issue 2:
See:

http://www.paulirish.com/2012/box-sizing-border-box-ftw/

http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/

box-sizing: border-box is currently implemented with a note on avoiding conflicts with third party components:

// Heads up! This reset may cause conflicts with some third-party widgets.
// For recommendations on resolving such conflicts, see
// http://getbootstrap.com/getting-started/#third-box-sizing
* {
.box-sizing(border-box);
}
*:before,
*:after {
.box-sizing(border-box);
}

Updating the implementation to the following will make it easier to reset box-sizing within components:

html {
box-sizing: border-box;
}
*, *:before, *:after {
box-sizing: inherit;
}

Components could simply reset like this and have all their descendant elements inherit correct box-sizing, something that wouldn't work with the current * { box-sizing: border-box } implementation:

.component {
box-sizing: content-box;
}
Issue 1:
When using read_excel to read excel files, I have to install xlrd.

read_excel has parameter engine, but its value only can be None or xlrd.

ExcelWrite can use openpyxl as engine.

Why we cannot use openpyxl to read excel files in pandas? Or whether I can or not?

Issue 2:
I took a brief look at the existing code for importing files with xlrd but it looks tightly coupled with that library and not particularly straightforward to adapt.

I think that the read-only mode of openpyxl would be a good fit for Pandas and would like to work with you to provide the necessary API to go from rows to a dataframe. Data is stored by row so this is the only sensible approach. We will be adding read-support for NumPy types, ie. when passed them, but probably not when reading Excel files.
Issue 1:
If the user waits for few minutes before giving pageoffset to get more results then user is getting duplicated results .This happens as the pageoffset we use for pagination becomes invalid due to merging of druid segments and search starts from offset 0 in new segment. Is there any way to know the pageoffset is valid or not

Issue 2:
How should I handle the below query in Druid?

In classic sql, it would be a simple sub-query & a JOIN. (Don't worry, I understand the reasons we don't support JOINs in Druid explained in the spec doc) So I'm wondering, for those experienced with Druid and faced with this problem, what would you do?

Desired Query: For each active user, what is their total purchase amount?

Data Sources

user_purchases

first_name last_name purchase_amount
--------------------------------------
james smith 1234
kate johnson 444

user_events (an active user is one with a "sign_up", but no "deactivate" event.

first_name last_name event
--------------------------------------
james smith sign_up
kate johson sign_up
james smith deactivate

Queries:

Here is the sloppy way I would currently do it:

Get all "first_name" + "last_name" combinations from user_events that do NOT have a deactivate event.

Use some code and turn the resulting (first_name, last_name) pairs into a giant filter clause, possibly with 1000's of conditions. Then do a query on user_purchases using this filter clause.
Issue 1:
I'm seeing lots of inconsistencies with JSX highlighting in 0.10.5:

export and default are keywords and should be colored accordingly

A class should be colored too

render is a method and should be colored accordingly

const is a keyword and should be colored accordingly

{'this is a string and has to be colored accordingly'}

string interpolation should work inside jsx parameters

Issue 2:
I've upgraded from 0.10.3 to 0.10.5, and the javascript syntax highlighting doesn't work as well as before (OSX El Capitan):

from this:

to this:

I also removed any extension I've installed, but it didn't fix it...
Issue 1:
Romeo Gregorie opened SPR-3176 and commented

I was exploring Spring remoting with the jpetstore sample from 2.0.2 release and wasted half a day trying to figure "...table not found..." errors and additionally created hsql database files ending with the \r char.

It turned out the shell script has DOS line ending. Unfortunately, I did not search here first. Issue SRP-305 reported in 2004 !? addresses the same issue.

Could someone please fix this issue, so nobody wastes time on it any more. And while you are at it, why not remove the DOS characters all together, from the code too. I doubt they are needed even on the win platform.

Affects: 2.0.2

Issue Links:

#5035 shell scripts in samples should not have DOS line delimiters ("duplicates")

2 votes, 1 watchers

Issue 2:
Christofer Dutz opened SPR-9246 and commented

I implemented a custom PersistenceUnitManager to allow easy merging of persistence-contexts. Unfortunately I cannot use this with Spring 3.1 anymore. Unfortunately the class is implemented in a way, that makes it impossible to extend it in a sensible way.

Here a link to my custom implementation and it's description:

https://dev.c-ware.de/confluence/display/PUBLIC/Multiple+persistence.xml+in+a+multi-module+application

The problem is that the method: preparePersistenceUnitInfos is throwing an IllegalStateException because of multiple persistence-contexts with the same name. Because persistenceUnitInfoNames and persistenceUnitInfos are private, I have no way of overriding the functionality of that class without cloning the entire class, which would be really ugly.

Affects: 3.1 GA

Issue Links:

#13565 DefaultPersistenceUnitManager must not reject multiple PersistenceUnits with the same name eagerly ("duplicates")
Issue 1:
VSCode Version:1.2.0

OS Version:Windows 10

Steps to Reproduce:

selected text from terminal

tried right click. no context menu open

Issue 2:
VSCode Version: 1.1.1

OS Version: Windows 10 Enterprise

Steps to Reproduce:

Create a new file and add a few lines of text, separated by newlines

Open find dialog, enable regex, use regex "\n"

No matches will be found. Expected behavior would be to find the newlines. Also does not work with replace, so you cannot find and replace newlines.
Issue 1:
Description

According to documentation in http://scikit-learn.org/stable/modules/label_propagation.html, when the alpha parameter, clamping factor, is 1, the algorithm performs hard clamping, which does not allow the labels to change cluster. However this is not the case in the following case. I copied and slightly changed the example found in http://scikit-learn.org/stable/modules/generated/sklearn.semi_supervised.LabelPropagation.html#sklearn.semi_supervised.LabelPropagation

Steps/Code to Reproduce

from sklearn import datasets

from sklearn.semi_supervised import LabelPropagation

import numpy as np

np.random.seed(1) # fix random seed

label_prop_model = LabelPropagation()

iris = datasets.load_iris()

inds = np.random.randint(0, 2,size=len(iris.target))

random_unlabeled_points = np.where(inds)

random_labeleled_points = np.where(inds == 0)

labels = np.copy(iris.target)

labels[random_unlabeled_points] = -1

label_prop_model.fit(iris.data, labels)

ypred = label_prop_model.transduction_

fracunchanged = sum(iris.target[random_labeleled_points] == ypred[random_labeleled_points])/len(iris.target[random_labeleled_points])

print(fracunchanged)

Expected Results

If for alpha = 1, the algorithm performs hard clamping, I was expecting the transduction labels of the labelled data to be unchanged and equal to the initial labels, therefore the printed fraction should be 1. Any deviation from 1 indicates something is wrong.

Actual Results

Actually, I am getting 0.985294117647, indicating some initial labels changed during transduction.

Versions

sklearn version: '0.18.1'

numpy version: '1.11.2'

Issue 2:
In some cases the labels don't stay clamped in LabelPropagation. For example:

from sklearn.semi_supervised import LabelPropagation
import numpy as np
lp = LabelPropagation(kernel = 'knn', n_neighbors = 2)
X = np.array([[1.,1.],[1.,0.],[0.,1.]])
y = np.array([1.,0.,-1.])
lp.fit(X,y)
print lp
print y
print lp.transduction_

# Produces:

LabelPropagation(alpha=1, gamma=20, kernel='knn', max_iter=30, n_neighbors=2,
tol=0.001)
[ 1. 0. -1.]
[ 0. 0. 1.]

I think the problem occurs in label_propagation.py at line 235 and line 249. When alpha is equal to 1, y_static is set to 0 in line 235, and then line 249 doesn't change self.label_distributions_, whereas it should clamp the values of the labelled data points.

My understanding from the documentation is that for LabelPropagation it is always supposed to do hard clamping, and thus it should be completely independent of alpha. I'm not actually sure what the intention was here since the same fit method is used for LabelSpreading.
Issue 1:
Environment

Microsoft Windows [Version 10.0.18362.239]

Steps to reproduce

Sorry, I don't figure out clearly but this step always make cmd.exe hang. At present, the method that can be reliably reproduced is to start vim.exe at the bottom line of cmd.exe.

Expected behavior

Do not hang.

Actual behavior

Hang.

FYI, I tried to run this code, but not reproduce.

#include <windows.h>

int
main(int argc, char* argv[]) {
HANDLE h = GetStdHandle(STD_OUTPUT_HANDLE);
COORD coord;
coord.X = 80;
coord.Y = 300;
SetConsoleScreenBufferSize(h, coord);
return 0;
}

Issue 2:
There is a new feature that appears to automatically generate profiles based on existing WSL distributions.

I tried messing around with these automatically-generated profiles, and it looks like you can add additional parameters to them, but if you change the GUID, they are regenerated automatically, so I assume there is a hidden GUID associated with each WSL installation.

However, when I used the wsl.exe -h, I couldn't find a way to verbosely print the GUID, although I assume it's stored somewhere in the registry.

This "Source" feature as well as the specific profile generator "Windows.Terminal.Wsl" should probably be documented.

For instance, I would like to be able to pass the ~ parameter, which tells wsl to launch in the Linux user's $HOME. Is there a way to pass that parameter to the profile generator? Can we build our own profile generators?
Issue 1:
Seems like getgrouplist is slightly different on darwin.

$ man getgrouplist

GETGROUPLIST(3) BSD Library Functions Manual GETGROUPLIST(3)

NAME
getgrouplist -- calculate partial group access list

LIBRARY
Standard system libraries.

SYNOPSIS
#include <unistd.h>

int
getgrouplist(const char *name, int basegid, int *groups, int *ngroups);

# os/user
os/user/lookup_unix.go:43:35: warning: passing 'gid_t *' (aka 'unsigned int *') to parameter of type 'int *' converts between pointers to integer types with different sign [-Wpointer-sign]
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/unistd.h:653:43: note: passing argument to parameter here

Issue 2:
Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

go version devel +8969ab8 Mon Mar 7 22:41:22 2016 +0000 darwin/amd64

What operating system and processor architecture are you using (go env)?

mac osx 10.11.3

gcc --version

Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/c++/4.2.1

Apple LLVM version 7.0.0 (clang-700.0.72)

Target: x86_64-apple-darwin15.3.0

Thread model: posix

What did you do?

./make.bash. I am now seeing

os/user/lookup_unix.go:43:35: warning: passing 'gid_t *' (aka 'unsigned int *') to parameter of type 'int *' converts between pointers to integer types with different sign [-Wpointer-sign]

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/unistd.h:653:43: note: passing argument to parameter here
Issue 1:
For historic reasons, scan implementation returns first the count, and then the hits in subsequent requests. While scrolling with regular search returns the first N results immediately.

It would be nice if SCAN behaved the same as regular scrolling? Maybe even automatically execute in "scan" mode if sort is set to an empty array or something like that, and scan search type is just a flavor on that?

Issue 2:
Scrolling with the search_type scan have a different initial response compared with scrolling without scan. Scans do not return documents in the initial response, but regular scrolling does. This can be a bit confusing for end users. According to @kimchy, this difference is no longer required by the implementation, but is maintained for backwards compatibility. It would be nice if at some point in the future we could do away with this difference.