WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Request header keys are being encoded and then checked for later. In python 3 this is causing issues.

In an example use case, if Content-Type is explicitly set, when making a post request, you end up getting both the user-set type and the default type, eg: application/x-www-form-urlencoded.

https://github.com/kennethreitz/requests/blob/master/requests/models.py#L364

headers = dict((name.encode('ascii'), value) for name, value in headers.items())

https://github.com/kennethreitz/requests/blob/master/requests/models.py#L417

# Add content-type if it wasn't explicitly provided.
if (content_type) and (not 'content-type' in self.headers):
self.headers['Content-Type'] = content_type

Issue 2:
Summary

Started getting SSLError when invoking API using requests module.

SSLError: HTTPSConnectionPool(host=', port=443): Max retries exceeded with url: /oauth/token (Caused by SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)'),))

Just to add that this is on RHEL

ssl.OPENSSL_VERSION

'OpenSSL 1.0.1e-fips 11 Feb 2013'

The system openssl is

Version : 1.0.1e,

Release : 58.el6_10

python was built using source.

Expected Result

Was not expecting an SSLError. This is not a problem with the source website as the same call works fine using postman. Could this have anything to do with letsencryt root certificate expiration?

Actual Result

SSLError: HTTPSConnectionPool(host=', port=443): Max retries exceeded with url: /oauth/token (Caused by SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)'),))

Reproduction Steps

Invoke API using python requests and without verify=False

System Information

Just to add that this is on RHEL

ssl.OPENSSL_VERSION

'OpenSSL 1.0.1e-fips 11 Feb 2013'

The system openssl is

Version : 1.0.1e,

Release : 58.el6_10

python was built using source.

$ python -m requests.help

{
"chardet": {
"version": "4.0.0"
},
"charset_normalizer": {
"version": null
},
"cryptography": {
"version": ""
},
"idna": {
"version": "2.10"
},
"implementation": {
"name": "CPython",
"version": "2.7.9"
},
"platform": {
"release": "2.6.32-754.9.1.el6.x86_64",
"system": "Linux"
},
"pyOpenSSL": {
"openssl_version": "",
"version": null
},
"requests": {
"version": "2.26.0"
},
"system_ssl": {
"version": "1000105f"
},
"urllib3": {
"version": "1.26.6"
},
"using_charset_normalizer": false,
"using_pyopenssl": false
}

This command is only available on Requests v2.16.4 and greater. Otherwise,

please provide some basic information about your system (Python version,

operating system, &c).
Issue 1:
I have a Vim workflow that I am having trouble recreating in Atom. Most of my tabs consist of a split, for a file and its tests:

Thus I can { and } my way through tabs and [ and ] my way through splits within them, and all was right with the world. My splits are about keeping related files together, not separate panes or editors.

The modeling of Pane and EditSession doesn't really allow this right now. It's fairly easy to see a number of ways to do it, but I was stymied when I started to edit core stuff by things marked as internal. @kevinsawicki said to ignore that, so I'm going to slowly work on something that works for me. But he also said to make an issue, so here it is. I'm hoping that one of you core guys sees a super easy way to do it :)

Issue 2:
Halp ticket:

support/7866493ac7c811e394e434282a9ab820

If an untitled document is dragged from one atom window to another, a "save/don't save" window pops up in the source window. In addition to that, the duplicates title is 'undefined' instead of 'untitled'.

I can't reproduce this exact error (strange, because the user who reported this is on 0.89.0, as am I), but I still see errors in the console when dragging an untitled tab to another window:

Uncaught TypeError: Arguments to path.join must be strings path.js:378
(anonymous function) path.js:378
exports.join path.js:376
module.exports.Project.resolve /Applications/Atom.app/Contents/Resources/app/src/project.js:162
module.exports.Workspace.open /Applications/Atom.app/Contents/Resources/app/src/workspace.js:121
module.exports.TabBarView.onDrop /Applications/Atom.app/Contents/Resources/app/node_modules/tabs/lib/tab-bar-view.js:362
(anonymous function) /Applications/Atom.app/Contents/Resources/app/node_modules/tabs/lib/tab-bar-view.js:3
jQuery.event.dispatch /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4676
elemData.handle /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4360
Issue 1:
VSCode Version: 0.10.11

OS Version: Ubuntu 15.10 (64-bit)

Steps to Reproduce:

Enter

asm("movw $0x38, %ax; ltr %ax");

Example:

Issue 2:
VSCode Version: 0.10.11

OS Version: Windows 7

Issue 1:

In the following code (using C++ syntax highlighting), the string literal(s) are not highlighted at all.

This issue is exclusive to C++ syntax highlighting and does not occur with C syntax highlighting.

Code:

int main()
{
printf("%s\n", "a string");
}

Result

Issue 2:

In custom tmLanguage based colorizers that reference source.c from within rules that begin with certain patterns, the inlined C highlighting is incorrect (this issue also applies to rules using source.c++ but does not occur in rules using source.js).

Code

(See https://github.com/SE2Dev/VSCode-BugExample)

Result
Issue 1:
Hi, after customizing my layout the download give the following error.txt:

{"type":"Parse","message":"Syntax Error on line 810","index":25572,"filename":"bootstrap.css","line":810,"column":11,"extract":[" *margin: -5px 0 5px;"," ove rflow: hidden;"," background-color: @top;"]}

I dont know whats wrong?

Issue 2:
I'm trying to get Bootsrap through Customize, but every time I get a blank boostrap.css and file error.txt with the error:

A less error occured trying to build your bundle.

You've likely entered an invalid input into the less variable field. Check your syntax and try again!

thanks!

{"type": "Parse", "message": "Syntax Error on line 792", "index": 25106, "filename": "bootstrap.css", "line": 792, "column": 11, "extract ": [" * margin:-5px 0 5px; "," ove rflow: hidden; "," background-color: @ top; "]}

My Settings: all items marked, except Icons.

What is the problem?
Issue 1:
I am using Angular 2.0.0-beta.12 & D3, i am injecting D3 barchart after viewInit, and inject css in component by adding attribute "styles", element injected and display on browser, but css is not apply on dynamic elements which are created by D3, found an issue, after component initialization css embed in document head tag, and all css selectors changed to .myClass[_ngcontent-[variable]], and this variable attribute attached to all elements of that component, but not with dynamically appended components.

here are my code

@Component({
selector: 'app',
template: `
<h1>D3.js Integrated if background is yellow</h1>

style apply on this static element but not dynamic element
<svg><rect class="bar" width="200" height="200"></rect></svg>
`,
styles : [`.bar { fill: steelblue; } .bar:hover { fill: brown; }
` ]
})
class App {

constructor(public elementRef: ElementRef){
}

ngOnInit(){
var componentContainer = d3.select(this.elementRef.nativeElement);

componentContainer.select("h1").style("background-color", "yellow");

//Dynamic Element Injeciton
componentContainer.append("svg")
.append("rect")
.attr("class", "bar")
.attr("width", 200)
.attr("height", 200);
}

}

Issue 2:
currently there are several layers in our build system that log and rethrow exceptions, we need to unify these and suppress errors (or stack traces for errors) so that the output is easy to understand and doesn't contain duplicate messages or useless stack traces.

Sources of exceptions/exception logging:

broccoli plugins

angular_builder.ts

gulp's runSequence

gulp's tasks

common scenarios to tackle:

interactive/watch mode:

typescript compilation error

traceur compilation error

karma browser test failure/error (gulp test.unit.js)

jasmine test failure/error (gulp test.unit.cjs)

ts2dart errors

dart unit tests failures/errors

ci mode:

typescript compilation error

traceur compilation error

karma browser test failure/error (gulp test.unit.js)

jasmine test failure/error (gulp test.unit.cjs)

ts2dart errors

dart unit tests failures/errors

WIP branch resolving some errors: https://github.com/angular/angular/compare/master...IgorMinar:tripple-errors?expand=1
Issue 1:
Table header horizontal line

The horizontal line in the header table component doesn't behave correctly. It doesn't move when the whole table moves. For example, http://www.material-ui.com/#/components/table

Versions

Material-UI: 0.14.4, 0.15.0

React:

Browser: Chrome

Issue 2:
Hello,

I noticed the border-bottom width does not resize when resizing window. To repeat this create simple table and then open browser window as default with small size and put it to fullscreen.

-XDVarpunen
Issue 1:
Build: https://github.visualstudio.com/electron/_build/results?buildId=14677&view=logs

Patch: #15056

We should fix this properly instead of patching out the sys.exit

Issue 2:
Electron version: 0.36.9

Operating system: Mac OSX 10.11.14

When I click on a link that triggers a file download, it emits a did-fail-load event with an error code -3. The download works and is saved as expected though.

As a side note, I was calling loadURL in the did-fail-load handler which caused Electron to crash. I can provide the full dump for that if you'd like.

Let me know if you'd like any more details.
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Hi there,

I want to setup this node_module https://react-styleguidist.js.org/docs/webpack#create-react-app-typescript

and in order for it to work, it needs to access the webpack.config, how do I go about exposing that to this node_module?

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

I built my Next app and deployed it as I usually do, but when loading the page, I got the following on the browser:

Uncaught ReferenceError: webpackJsonp is not defined in main.js 1:1

Also, all JS interactivity was broken, but the style/design of the website was looking okay.

Here is the beginning of main.js file:

module.exports =
webpackJsonp([0],{

I rebuilt and redeployed the application and it disappeared.

I believe it is because I had a running Next.js app while building, and I was changing the code on it, which trigger other rebuilds. It probably messed up the build process (the first main.js wasn't uglified at all, while the new/fixed version I have now is correctly uglified/onelined)

I'm reporting the issue because I could have not noticed it, maybe something should be done when a build is ran when another build is in process. The main issue is deploying a non-working app to production without noticing it. I agree that's a very particular use case, which is very hard to reproduce. People shouldn't be building while doing modification to the source code with a watcher enabled. =D
Issue 1:
Hi!

I'm trying to prepare dataset splits for a problem I'm working on, and would ultimately like a hybrid of Stratified K-Fold and Grouped K-Fold. Is there a way to accomplish this using logic already built into sklearn? If not, where would be the right place for me to add it/do you have any suggestions for how to get started before I give it a go?

For a bit more context, my dataset is a considerably larger version of the following structure:

groups = [1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4] # you can think of this as a sample-id
y = [1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2] # this is some trait of the samples

The objective would be to balance y across the train and test sets, and have each group only represented on one side of the folds. Thanks in advance!

Issue 2:
Description

Currently sklearn does not have a stratified group kfold feature. Either we can use stratification or we can use group kfold. However, it would be good to have both.

I would like to implement it, if we decide to have it.
Issue 1:
Just now i download the Bootstrap Customized version and extract the file, in css folder contains only the two error.txt files.

In that error.txt file contain:-

A less error occured trying to build your bundle. You've likely entered an invalid input into the less variable field. Check your syntax and try again!

thanks!

{"type":"Parse","message":"missing opening {","filename":"bootstrap.css","index":374741,"line":6383,"column":0,"extract":["}","",null]}

Now what can i do and how to download my customized css version file..

Thank U,

vjn_23

Issue 2:
when the user try to download a custom version only without the responsive 1200, the navbar, and the hero unit, the download get an error >

"""

A less error occured trying to build your bundle. You've likely entered an invalid input into the less variable field. Check your syntax and try again!

thanks!

{}

"""
Issue 1:
I just installed the latest version of Atom yesterday, and have been trying it out. I had an unsaved file open and noticed that soft wrap was not on. I went into the preferences panel, turned it on, and went back to my open file (not saved yet) and soft wrap still wasn't applied.

Instead, I copied the text, and pasted it into a new unsaved file and soft wrap was working then.

Maybe this happens for files that are already open too? Not sure.

Issue 2:
Moved over from atom/settings-view#47
Issue 1:
Challenge Waypoint: Use Hex Code for Specific Colors has an issue.

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36.

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

My code:

<style>
body {
background-color: #000000;
}
</style>

Correct code does not run test properly. Cannot move on.

Issue 2:
I've done what was expected but still can't move on. The code is correct since it was simply changing the color black to its hex code. Please help.
Issue 1:
5l seems to explode on the TST instruction

TST $3, R0

5a is quite happy to assemble this, but 5l then produces

main.tst: illegal combination TST C_RCON C_REG C_NONE, 8 1
(3) TST $3,R0,
main.tst: illegal combination TST C_RCON C_REG C_NONE, 8 1
(3) TST $3,R0,

I conjecture this might be easy to fix since the very similar TEQ instruction works fine.

-------------------

What steps will reproduce the problem?

Save the attached files into a temporary directory

Run

GOARCH="arm" GOOS="linux" go build

What is the expected output?

Nothing (it compiles)

What do you see instead?

# _/tmp/tst
main.tst: illegal combination TST C_RCON C_REG C_NONE, 8 1
(3) TST $3,R0,
main.tst: illegal combination TST C_RCON C_REG C_NONE, 8 1
(3) TST $3,R0,

Which compiler are you using (5g, 6g, 8g, gccgo)?

5a & 5l

Which operating system are you using?

Cross compiling for arm linux on amd64 linux

$ go-linux-arm env
GOARCH="arm"
GOBIN=""
GOCHAR="5"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/ncw/Code/Go"
GORACE=""
GOROOT="/home/ncw/Code/go"
GOTOOLDIR="/home/ncw/Code/go/pkg/tool/linux_amd64"
CC="gcc"
GOGCCFLAGS="-g -O2 -fPIC -marm"
CGO_ENABLED="0"

Which version are you using? (run 'go version')

go version devel +77be25034f84 Fri Jul 19 01:22:26 2013 +0400 linux/amd64

Attachments:

tst.s (74 bytes)

tst.go (49 bytes)

Issue 2:
The following go function

func ss(u, q uint32) uint32 {
if u & q == 0 {
return 2
}
if u + q == 0 {
return 3
}
if q ^ u == 0 {
return 9
}
return 1
}

is compiled to

......
a.go:7 0x9ca50 e0002001 AND R1, R0, R2
a.go:7 0x9ca54 e3520000 CMP $0, R2
a.go:7 0x9ca58 0a00000e B.EQ 0x9ca98
a.go:10 0x9ca5c e0802001 ADD R1, R0, R2
a.go:10 0x9ca60 e3520000 CMP $0, R2
a.go:10 0x9ca64 0a000008 B.EQ 0x9ca8c
a.go:13 0x9ca68 e0210000 EOR R0, R1, R0
a.go:13 0x9ca6c e3500000 CMP $0, R0
a.go:13 0x9ca70 1a000002 B.NE 0x9ca80
......

But can be optimized to

CMN	R1, R0, R2
B.EQ	xxx
TST	R1, R0, R2
B.EQ	XXX
TEQ	R0, R1, r2
B.NE	xxx
Issue 1:
Compiling this small snippet

enum Expression {
Symbol(~str),
Compound(~str, ~[Expression])
}

fn standard_form(expr: &Expression) -> ~str {
match (*expr) {
Compound(~"List", ref items) => ~"list",

Compound(~"Blank", []) => ~"_",

_ => ~"default"
}
}

fn main() {
let x = ~Symbol(~"x");
println(standard_form(x));
}

yields the following error

error: internal compiler error: sequence_element_type called on non-sequence value
This message reflects a bug in the Rust compiler.
We would appreciate a bug report: https://github.com/mozilla/rust/wiki/HOWTO-submit-a-Rust-bug-report
task 'rustc' failed at 'explicit failure', /var/tmp/portage/dev-lang/rust-9999/work/rust-9999/src/libsyntax/diagnostic.rs:102
task '<main>' failed at 'explicit failure', /var/tmp/portage/dev-lang/rust-9999/work/rust-9999/src/librustc/lib.rs:394

Swapping the order of the List and Blank cases makes the error go away. This might be a duplicate of Issue #7990, but the code there that elicits this is so different I thought it'd be worthwhile to open a whole new issue.

Issue 2:
If you try to compile tag list<T> { nil; cons(int, list<T>); } (note "list" instead of "@list" in the recursive constructor), then the compiler crashes with rt: e2b5:0x00000000: Out of stack space, sorry.

It would be nice to detect this condition and provide a more useful error message instead.

The bottom of the stack is:

#24545 0x080ff28e in middle::ty::type_structurally_contains::_5f3ac45ea1b71c45 ()
#24546 0x080ff28e in middle::ty::type_structurally_contains::_5f3ac45ea1b71c45 ()
#24547 0x080ff28e in middle::ty::type_structurally_contains::_5f3ac45ea1b71c45 ()
#24548 0x080ff28e in middle::ty::type_structurally_contains::_5f3ac45ea1b71c45 ()
#24549 0x080ff28e in middle::ty::type_structurally_contains::_5f3ac45ea1b71c45 ()
#24550 0x080ff28e in middle::ty::type_structurally_contains::_5f3ac45ea1b71c45 ()
#24551 0x08061feb in middle::trans::type_of_tag::_a125eb2fba6a34ee ()
#24552 0x08061522 in middle::trans::type_of_inner::_f9908926438f2236 ()
#24553 0x080603bb in middle::trans::type_of_fn::_d1c7c2dc9390d6d7 ()
#24554 0x08060a5e in middle::trans::type_of_fn_from_ty::_e121377dba6b8bd0 ()
#24555 0x080bc50c in middle::trans::register_fn_full::_3897f5c49d271367 ()
#24556 0x080bc358 in middle::trans::register_fn::_2c73ab4a26be7a7a ()
#24557 0x080c2fd1 in middle::trans::collect_tag_ctor::_5ff72ae6ae3153d1 ()
#24558 0x082a833e in middle::trans::collect_tag_ctors::thunk1669 ()
#24559 0x082c9589 in syntax::visit::default_visitor::thunk5653 ()
#24560 0x080c354b in middle::trans::collect_tag_ctors::_ec22d712145eb498 ()
#24561 0x080c9503 in middle::trans::trans_crate::_19245ca61421d176 ()
#24562 0x082e809b in driver::rustc::compile_input::thunk8685 ()
#24563 0x0827812d in driver::rustc::time::_8bcb4789e2c2f57e ()
#24564 0x0827acff in driver::rustc::compile_input::_c6e994438f359ee8 ()
#24565 0x08286208 in driver::rustc::main::_ed54e060591e3a31 ()
#24566 0x08286e93 in _rust_main ()
#24567 0x082eb12c in _rust_main_wrap ()
#24568 0x01337321 in task_start_wrapper (a=0xb7fe0010) at ../src/rt/rust_task.cpp:150
#24569 0xdeadbeef in ?? ()
#24570 0xb7fe0010 in ?? ()
#24571 0x00000010 in ?? ()
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: 2.6.2 and lower

Operating System version: all version

Java version: all version

Step to reproduce this issue

shutdown provider

consumer side use ReferenceConfigCache.get() to invoke provider

invoke provider one time

startup provider

invoker provider again

Pls. provide [GitHub address] to reproduce this issue.

Expected Result

when provider startup, the second time invoke should success.

Actual Result

second time invoke failed

What cause it

When no provider, config.get() return null, at this time we shouldn't store this reference into cache.

public <T> T get(ReferenceConfig<T> referenceConfig) {
String key = generator.generateKey(referenceConfig);

ReferenceConfig<?> config = cache.get(key);
if (config != null) {
return (T) config.get();
}

cache.putIfAbsent(key, referenceConfig);
config = cache.get(key);
return (T) config.get();
}

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

I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: master branch

Operating System version: all

Java version: all

Steps to reproduce this issue

fastjson <= 1.2.48 considers vulnerable, see https://www.anquanke.com/post/id/181874

we are using 1.2.46, I think it's better to use the latest version fastjson-1.2.58 if possible.
Issue 1:
Ok this is an odd one:

If you have a matplotlib figure with multiple subplots and try to plot a regplot inside one of the the axes, regplot will update the axes limits of the last axes of the subplot.

The cause for this is pretty simple. in this line the regplot function calls plt.plot instead of ax.plot. Hence the currently active axes (meaning the last subplot) is targeted by this line, automatically updating its limits.

Issue 2:
When using regplot() on a figure with multiple axes, the x and y limits on the last subplot are partially determined by data plotted in the other axes.

For example, the following code will produce a figure where the range of x values is way too large on the second subplot:

import seaborn
import numpy as np
import pandas as pd

np.random.seed(32)
y = np.random.randn(20, 1)
x0 = np.random.randn(20, 1) + 100
x1 = np.random.randn(20, 1)

df = pd.DataFrame(np.hstack([y, x0, x1]), columns=['y', 'x0', 'x1'])

fig, axes = plt.subplots(1, 2)
seaborn.regplot(x='x0', y='y', data=df, ax=axes[0])
seaborn.regplot(x='x1', y='y', data=df, ax=axes[1])

plt.show();

The reason seems to be that the plot() function in _RegressionPlotter uses plt.plot() to create (and then remove) a line, in order to determine what colour to use for the regplot (line 327 of regression.py).

lines, = plt.plot(self.x.mean(), self.y.mean())

This has the unintended side effect of updating the limits of one of the plots. Because this is done with plt instead of ax, this affects the last of the subplots created using subplots(), rather than the ax that has been passed to regplot. In the example above, because the first and second columns of X have very different means, the xlim of the second plot is pulled very far to the right.

I believe this can be fixed by changing plt.plot() on line 327 of regression.py to ax.plot(), and will submit a PR. The proposed change will also cause all subplots to be plotted in the same colour by default (unlike above). However, this will also be more consistent with lmplot.

Version info:

python: 3.6.1

seaborn: 0.9.0

matplotlib: 2.0.2
Issue 1:
Hi!

when i create a new Bundle it suggests to create the target path in the app/cache folder since Version 2.4.5

Issue 2:
In 2.3.14, 2.3.15, and 2.4.5, when I run php app/console generate:bundle I get the following prompt:

Target directory [/home/intrepion/path/app/cache/dev/../src]:

But when I revert back to 2.3.13 or 2.4.4, I get exactly what I expect:

Target directory [/home/intrepion/path/src]:
Issue 1:
Mergable Zones on Drag.

See the two examples for clearance:

A: Merge Columns

B: Merge Rows

Grid of 3x2

v 3 Columns
--- --- ---
| | | | < 2 Rows
--- --- ---
| | | |
--- --- ---

v A: Drag to here to merge columns
--- --- ---
| x | |
--- --- -x- < B: Drag to here to merge rows
| | | |
--- --- ---

I would like to be able to create a grid of equal 6 squares. 3 columns and 2 rows.

If I drag a window in the middle area between two rows or columns it would merge them and use them both. For me that would make it not necessary to swap out layouts between different tasks.

Btw, what an amazing utility. Thanks!!

Issue 2:
Generated issue from Watson

Watson Link: https://watsonportal.microsoft.com/Failure?FailureSearchText=7ee1d5de-38db-4c13-f82a-a993a6ae8960

ADO Link: https://microsoft.visualstudio.com/DefaultCollection/OS/_workitems#id=29029627&triage=true&fullScreen=true&_a=edit

Process: powerlauncher.exe,

Module: system.data.oledb.dll v4.700.20.21406