WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
It says:

<ul class="pagination">
<li><a href="#">&laquo;</a></li>
<li><a href="#">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#">4</a></li>
<li><a href="#">5</a></li>
<li><a href="#">&raquo;</a></li>
</ul>

but it should be:

<div class="pagination">
<ul>
<li><a href="#">&laquo;</a></li>
<li><a href="#">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#">4</a></li>
<li><a href="#">5</a></li>
<li><a href="#">&raquo;</a></li>
</ul>
</div>

http://getbootstrap.com/components/#pagination

Issue 2:
In the pagination examples on the Twitter bootstrap website the example markup places the pagination class on the ul tag

<ul class="pagination"></ul>

However in version 3 the CSS rules only apply when the markup is

<div class="pagination"><ul></ul></div>

I'm not sure if the example are wrong or the CSS.
Issue 1:
This is the benchmark script:

function mysum_int(data)
sum = 0
for i in Int(1):Int(endof(data))
@inbounds sum += data[i]
end
return sum
end

function mysum_uint(data)
sum = 0
for i in UInt(1):UInt(endof(data))
@inbounds sum += data[i]
end
return sum
end

let
size = 128 * 2^20
data = zeros(UInt8, size)
println("mysum_int")
mysum_int(data)
@time mysum_int(data)
@time mysum_int(data)
@time mysum_int(data)

println("mysum_uint")
mysum_uint(data)
@time mysum_uint(data)
@time mysum_uint(data)
@time mysum_uint(data)
end

And the result:

~/.j/v/BGZFStreams (master|✚1…) $ julia-dev access.jl
mysum_int
0.022742 seconds (152 allocations: 9.028 KB)
0.020606 seconds (4 allocations: 160 bytes)
0.023985 seconds (4 allocations: 160 bytes)
mysum_uint
0.118161 seconds (4 allocations: 160 bytes)
0.116512 seconds (4 allocations: 160 bytes)
0.118702 seconds (4 allocations: 160 bytes)

I don't know the internal, but I guess an index value is converted to Int before accessing and inexact check imposes the cost on it. data[Int(i)] results in the slowdown at the same level but data[reinterpret(Int, i)] doesn't show any slowdown.

julia> versioninfo()
Julia Version 0.5.0-dev+4934
Commit 1a1a9a6* (2016-06-25 02:49 UTC)
Platform Info:
System: Darwin (x86_64-apple-darwin14.5.0)
CPU: Intel(R) Core(TM) i5-4288U CPU @ 2.60GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
LAPACK: libopenblas64_
LIBM: libopenlibm
LLVM: libLLVM-3.7.1 (ORCJIT, haswell)

Issue 2:
julia> @which [2 3] .+ [1 2]
ERROR: UndefVarError: .+ not defined

My intuition is something like a .+ b gets changed to broadcasted_+(a, b), and was hoping it would return something like

broadcasted_+(a::Array{Int64}...)

but now I see it wouldn’t make sense.

The error message could be made to say something like

Did you mean '@which broadcast(+, a, b)'?
Issue 1:
Atom 0.123.0 on Ubuntu/Linux 14.04 (Unity) -- enhancement

The menu control for a setting like Toggle Soft Wrap should have a visible status-check for On/Off, e.g., a button-dot or a checkmark, beside it in the menu (View for this one), so the user can tell at a glance what that features current setting is...

Soft Wrap should not be a global editor setting, but should be applied on a syntax/file-type basis. For example, I'd (likely) want soft wrap set On always for plain text files (e.g., *.txt), but always Off for Ruby code.

Issue 2:
A feature I love about ST2 and iA Writer, which I'm missing in Atom, is when you quit the app with open windows (including unsaved documents), they all appear again when you reopen.

This has saved me countless times in my workflow to handle having to do a system restart for software update, etc and not have to take time to save all my unsaved docs, etc.

It's also nice because I generally have five or six open projects that I just keep minimized in the editor for ease of access. It would be great to have such a feature in Atom.
Issue 1:
I have a pipeline object with two steps, StandardScaler() and ElasticNet(). When I try to access the feature_names_in_ attribute of the trained ElasticNet(), I am getting an error.

This is how I'm fitting the pipeline (no errors)

pipe = Pipeline([
('scale', StandardScaler()),
('estimator', ElasticNet())])
pipe.fit(X, y)

This is how I'm trying to access the attributes.

model_coef = pipe.named_steps['estimator'].coef_
model_feature_names = pipe.named_steps['estimator'].feature_names_in_

This is the error message.

AttributeError Traceback (most recent call last)
/tmp/ipykernel_32626/1722639289.py in <module>
1 model_coef = pipe.named_steps['estimator'].coef_
----> 2 model_feature_names = pipe.named_steps['estimator'].feature_names_in_

AttributeError: 'ElasticNet' object has no attribute 'feature_names_in_'

As you can see, accessing the coef_ attribute works just fine.

Issue 2:
ERROR: sklearn.tests.test_common.test_transformer_n_iter('CCA', CCA(copy=True, m

ax_iter=500, n_components=2, scale=True, tol=1e-06))

Traceback (most recent call last):

File "C:\Python27\lib\site-packages\nose\case.py", line 197, in runTest

self.test(*self.arg)

File "C:\Python27\lib\site-packages\sklearn\utils\estimator_checks.py", line 1

112, in check_transformer_n_iter

estimator.fit(X, y_)

File "C:\Python27\lib\site-packages\sklearn\cross_decomposition\pls_.py", line

329, in fit

linalg.pinv(np.dot(self.x_loadings_.T, self.x_weights_)))

File "C:\Python27\lib\site-packages\scipy\linalg\basic.py", line 600, in pinv

a = np.asarray_chkfinite(a)

File "C:\Python27\lib\site-packages\numpy\lib\function_base.py", line 595, in

asarray_chkfinite

"array must not contain infs or NaNs")

ValueError: array must not contain infs or NaNs

Ran 4063 tests in 126.356s

FAILED (SKIP=25, errors=1)
Issue 1:
Requests 2.2.1. Same thing happens in 1.2.3 (I upgraded from that).

I get this traceback:

Traceback (most recent call last):
File "/usr/local/lib/python3.3/site-packages/requests/packages/urllib3/connectionpool.py", line 313, in _make_request
httplib_response = conn.getresponse(buffering=True)
TypeError: getresponse() got an unexpected keyword argument 'buffering'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.3/site-packages/requests/packages/urllib3/connectionpool.py", line 480, in urlopen
body=body, headers=headers)
File "/usr/local/lib/python3.3/site-packages/requests/packages/urllib3/connectionpool.py", line 315, in _make_request
httplib_response = conn.getresponse()
File "/usr/local/lib/python3.3/http/client.py", line 1147, in getresponse
response.begin()
File "/usr/local/lib/python3.3/http/client.py", line 358, in begin
version, status, reason = self._read_status()
File "/usr/local/lib/python3.3/http/client.py", line 328, in _read_status
raise BadStatusLine(line)
http.client.BadStatusLine: ''

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.3/site-packages/requests/adapters.py", line 330, in send
timeout=timeout
File "/usr/local/lib/python3.3/site-packages/requests/packages/urllib3/connectionpool.py", line 530, in urlopen
raise MaxRetryError(self, url, e)
requests.packages.urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='heimdallr.jcea.es', port=443): Max retries exceeded with url: /PANICO (Caused by <class 'http.client.BadStatusLine'>: '')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "./heimdallr.py", line 203, in <module>
module.start()
File "__main__", line 59, in start
File "main", line 23, in start
File "panic_report", line 17, in envia_tb_pendiente
File "/usr/local/lib/python3.3/site-packages/requests/sessions.py", line 425, in post
return self.request('POST', url, data=data, **kwargs)
File "auth_http", line 48, in request
File "/usr/local/lib/python3.3/site-packages/requests/sessions.py", line 383, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.3/site-packages/requests/sessions.py", line 486, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.3/site-packages/requests/adapters.py", line 378, in send
raise ConnectionError(e)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='heimdallr.jcea.es', port=443): Max retries exceeded with url: /PANICO (Caused by <class 'http.client.BadStatusLine'>: '')
Makefile:69: recipe for target 'run' failed
make: *** [run] Error 1

Issue 2:
I am unable to make a pull request at this time, but I think this should be added. The server will not understand the request if the content-type header's barrier= is not the same as the one generated by requests. At the very least there should be a warning.
Issue 1:
See this handy gif:

Here's a snippy snip of the last line of the developer console:

RangeError: Maximum call stack size exceeded: RangeError: Maximum call stack size exceeded
at o (typescriptServices.js:10)
at n (typescriptServices.js:10)
at r (typescriptServices.js:10)
at o (typescriptServices.js:10)
at n (typescriptServices.js:10)
at r (typescriptServices.js:10)
at o (typescriptServices.js:10)
at n (typescriptServices.js:10)
at r (typescriptServices.js:10)
at o (typescriptServices.js:10)e.doShow @ workbench.main.js:63
workbench.main.js:16 Main Thread sent to worker the following message:e._onError @ workbench.main.js:16e._onmessage @ workbench.main.js:16e._onSerializedMessage @ workbench.main.js:16(anonymous function) @ workbench.main.js:16worker.onmessage @ workbench.main.js:19
workbench.main.js:16 Object {type: "threadService", payload: Array[3]}
workbench.main.js:16 And the worker replied with an error:e._onError @ workbench.main.js:16e._onmessage @ workbench.main.js:16e._onSerializedMessage @ workbench.main.js:16(anonymous function) @ workbench.main.js:16worker.onmessage @ workbench.main.js:19
workbench.main.js:16 Object {stack: "RangeError: Maximum call stack size exceeded↵ a…ript/common/js/importAndExportRewriter.js:4:3903)", message: "RangeError: Maximum call stack size exceeded"}
workbench.main.js:91 RangeError: Maximum call stack size exceeded: RangeError: Maximum call stack size exceeded
at importAndExportRewriter.js:4
at r (typescriptServices.js:10)
at Object.o [as forEachChild] (typescriptServices.js:10)
at e._visitNode (importAndExportRewriter.js:4)
at e.visitBinaryExpression (importAndExportRewriter.js:4)
at importAndExportRewriter.js:4
at r (typescriptServices.js:10)
at Object.o [as forEachChild] (typescriptServices.js:10)
at e._visitNode (importAndExportRewriter.js:4)
at e.visitBinaryExpression (importAndExportRewriter.js:4)

...?

Issue 2:
See GIF again:

Literally none of the editor features work.

My jsconfig.json:

{
"compilerOptions": {
"target": "ES6",
"module": "commonjs"
},
"exclude": [
"node_modules"
]
}
Issue 1:
When you hit t while looking at a complicated tree, e.g. the gallery pull-to-refresh screen, the tool times out and quits, even though information is flowing.

Issue 2:
Run the gallery, start the bottom app bar demo, type 't' at the console.

After loads of output the app crashes:

TimeoutException: Request to Dart VM Service timed out: ext.flutter.debugDumpRenderTree({isolateId: isolates/71568905})
Issue 1:
Version

2.5.17

Reproduction link

https://codesandbox.io/s/nrpjvl3v0

Steps to reproduce

If you look at the linked code sandbox, there is a simple directive being used on a normal component, a functional component using a render function, and a functional component using a template. I could not find a way to get the directive passed through in the functional template example. Essentially a similar approach to v-bind="attrs" and v-on='listeners" but for directives.

Is this currently possible? If not, would it be considered? Otherwise - in order to write functional template components, you would need to ensure they are never intended to be used with custom directives.

Our specific use case was that we have a base button component that is a functional template components, but it doesn't work with https://www.npmjs.com/package/vue2-touch-events

What is expected?

A method through the functional template to proxy through directives.

What is actually happening?

The custom directive cannot be applied to the functional template component.

Issue 2:
Version

15.4.0

Reproduction link

https://codesandbox.io/s/7yxprmx12j

Steps to reproduce

A component with <template functional>

A parent component including the previous component with v-show="false" directive

What is expected?

Expected to hide the child component

What is actually happening?

The child component is still shown, no CSS style added on the component

I'm posting on vue-loader specifically because of this issue: vuejs/vue#8261

Thanks for your work :)

Sidenote: a raw tag in a field of this bug report page (<xxx>), without using backquotes, breaks the preview.
Issue 1:
Hello Julia Dev Team,

please implement the ability to access the sourcecode of a function by typing in the

function name. R has this ability and it is incredibly helpfull to read good, performant code

and understand the system.

Article about the matter:

http://dorophone.blogspot.de/2011/07/duckspeak-vs-smalltalk.html

regards 0x75

Issue 2:
Julia has a lot of useful REPL things like methods and help.

However, I still end up needing to just look at the code to see what it's doing.

It would be cool to be able to do:

julia> methods(base)
# methods for generic function base
base(base::Integer,n::Integer,pad::Integer) at intfuncs.jl:290
base(symbols::Array{Uint8,N},n::Integer,p::Integer) at intfuncs.jl:291
base(base_or_symbols::Union(Integer,Array{Uint8,N}),n::Integer) at intfuncs.jl:292

julia> implementation(base,1)
base(base::Integer, n::Integer, pad::Integer) = _base(dig_syms,int(base),unsigned(abs(n)),pad,n<0)

julia> implementation(base,3)
base(base_or_symbols::Union(Integer,Array{Uint8}), n::Integer) = base(base_or_symbols, n, 1)

It's kind of like the jump-to code stuff in some IDEs, but in the REPL, and only showing the one function.

This obviously has limitations, since you can't just scroll up and see the implementation of _base or search for the definition of dig_syms in that file, but it does let you see what the default values are.

You can already see the signature for _base, which makes the implementations of base more meaningful. (without needing to switch from the REPL to a text editor)

julia> methods(Base._base)
# methods for generic function _base
_base(symbols::Array{Uint8,N},b::Int32,x::Unsigned,pad::Int32,neg::Bool) at intfuncs.jl:278

Considering that the line numbers/files are already included in the output of methods, it seems like it should be straightforward to grab the appropriate lines of code from the file.
Issue 1:
trait Trait { }

fn function(t: &mut Trait) {
t as *mut Trait
}

fn main() { }

This ICEs with the following message:

$ RUST_BACKTRACE=1 rustc a.rs
a.rs:4:5: 4:6 error: internal compiler error: expected object type
a.rs:4 t as *mut Trait
^
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
task 'rustc' panicked at 'Box<Any>', /home/hein/git/rust/src/libsyntax/diagnostic.rs:116

stack backtrace:
1: 0x7fba24ef8d50 - rt::backtrace::imp::write::h62769dcaa7983ed8FNs
2: 0x7fba24efbdd0 - <unknown>
3: 0x7fba256a43e0 - unwind::begin_unwind_inner::h3fca55fd1ce1f347o9c
4: 0x7fba23e4f460 - <unknown>
5: 0x7fba23e4f3e0 - diagnostic::SpanHandler::span_bug::hea3a64b392293aeaDRF
6: 0x7fba25c49ad0 - driver::session::Session::span_bug::hb3878c8c794bf1dcHNC
7: 0x7fba25f4a260 - middle::typeck::check::vtable::check_object_cast::h7d7ee59c0ae09980HKN
8: 0x7fba25fb8090 - <unknown>
9: 0x7fba25fe62b0 - <unknown>
10: 0x7fba25fab4c0 - <unknown>
11: 0x7fba25fa7eb0 - <unknown>
12: 0x7fba25fa7bf0 - <unknown>
13: 0x7fba25fa3cc0 - middle::typeck::check::check_item::h22ee00fbae37d0570pW
14: 0x7fba25fa79b0 - middle::typeck::check::check_item_types::h7de0aa0b52df316614V
15: 0x7fba25a9c960 - <unknown>
16: 0x7fba262c69f0 - middle::typeck::check_crate::hee34369af2a06be9Unp
17: 0x7fba2632e290 - driver::driver::phase_3_run_analysis_passes::h44dc3d0e5ab4847dJ4B
18: 0x7fba263292b0 - driver::driver::compile_input::hb7d473b561e2b247vLB
19: 0x7fba263afb50 - <unknown>
20: 0x7fba263afa40 - <unknown>
21: 0x7fba25ab5f60 - <unknown>
22: 0x7fba25ab5d50 - <unknown>
23: 0x7fba26c0aa00 - <unknown>
24: 0x7fba25706aa0 - <unknown>
25: 0x7fba25706a90 - rust_try
26: 0x7fba256a1d60 - unwind::try::h0709f530ff508047aYc
27: 0x7fba256a1bf0 - task::Task::run::h3302eb43beb0760es4b
28: 0x7fba26c0a740 - <unknown>
29: 0x7fba256a3400 - <unknown>
30: 0x7fba20872250 - start_thread
31: 0x7fba2537d3b9 - clone
32: 0x0 - <unknown>

Issue 2:
fn foo(bar: *const u8) {
let a = unsafe { (bar as *const Writer) };
}

fn main() {
}

<anon>:3:23: 3:26 error: internal compiler error: expected object type
<anon>:3 let a = unsafe { (bar as *const Writer) };
^~~
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
task 'rustc' panicked at 'Box<Any>', /build/rust-git/src/rust/src/libsyntax/diagnostic.rs:116
Issue 1:
Code Version 0.10.10 (0.10.10)

OS X 10.10.5

In the following code, syntax highlighting for the string literal on line 5 is wrong.

var key = 'hello';
var val = 'world';
var arr = [];
for(var i=0; i<5; i++) {
arr.push(key + ':' + val);
}

Issue 2:
Ported from microsoft/TypeScript-Sublime-Plugin#285

Related to microsoft/TypeScript-Sublime-Plugin#265.

Issue:

Correct:
Issue 1:
Summary.

Expected Result

i can import exception from requests.

Actual Result

when i catch LocationValueError, i need import LocationValueError from urllib3.exceptions, not from requests....

System Information

$ python v2.7.0

<paste here>

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 2:
I am using a 3rd party library that uses requests, and when I try to post using a session I get this error:

File "", line 1, in

File "/usr/local/lib/python2.7/dist-packages/pacer_lib/scraper.py", line 42, in init

self.refresh_login()

File "/usr/local/lib/python2.7/dist-packages/pacer_lib/scraper.py", line 74, in refresh_login

response = self.br.post(login_url, data=payload)

File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 500, in post

return self.request('POST', url, data=data, json=json, _kwargs)

File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 457, in request

resp = self.send(prep, *send_kwargs)

File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 595, in send

history = [resp for resp in gen] if allow_redirects else []

File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 189, in resolve_redirects

allow_redirects=False,

File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 569, in send

r = adapter.send(request, *_kwargs)

File "/usr/lib/python2.7/dist-packages/requests/adapters.py", line 329, in send

conn = self.get_connection(request.url, proxies)

File "/usr/lib/python2.7/dist-packages/requests/adapters.py", line 243, in get_connection

conn = self.poolmanager.connection_from_url(url)

File "/usr/lib/python2.7/dist-packages/urllib3/poolmanager.py", line 131, in connection_from_url

return self.connection_from_host(u.host, port=u.port, scheme=u.scheme)

File "/usr/lib/python2.7/dist-packages/urllib3/poolmanager.py", line 102, in connection_from_host

raise LocationValueError("No host specified.")

urllib3.exceptions.LocationValueError: No host specified.

here is the relevant source from pacer_lib

def refresh_login(self):

"""

Logs in to the PACER system using the login and password provided at

the initialization of search_agent(). This will create a Requests

session that will allow you to query the PACER system. If

auto_login =False, refresh_login() must be called before you can

query the case_locator. This function will raise an error if you

supply an invalid login or password.

Returns nothing.
"""
#SETTINGS (determined from the form from PACER's '/login.pl')
payload = {'loginid':self.username, 'passwd':self.password}
login_url = 'https://pacer.login.uscourts.gov/cgi-bin/check-pacer-passwd.pl'
self.br = requests.Session()
response = self.br.post(login_url, data=payload)

I have tried just posting without a session and it works (at least I get a 200), but every time I try to use a session I get that same error. Any help would be greatly appreciated
Issue 1:
Windows build number: 19631

PowerToys version: manual update from 0.17 to 0.18

PowerToy module for which you are reporting the bug (if applicable): Settings page

Steps to reproduce

probably uninstall + clean settings storage if you had previous version(s)

Install 0.17 (Bug / No UI)

Install 0.18 (no auto update detected)

Open settings

Light Theme is check <== This probably be System by default

Also as it indicated Light it was Dark (not sure if default is really using Dark r System

Expected behavior

Very first load of Settings UI should reflect the loaded/running theme

Actual behavior

First defaulting does not match loaded theme

Forcing to

System changed nothing (logic because System is using Dark)

Light synch to Light (Synch is now OK)

System (Synch is now OK)

Screenshots

I can't reproduced without wipping installation / settings

Issue 2:
Summary of the new feature/enhancement

Currently PowerToys Run operates as a universal search. The original implementation (as Window Walker) appears to be an alt-tab system for those with many many many windows open.

Proposed technical implementation details (optional)

Can we have an option to limit searches to open windows/tabs? Or should I just install Window Walker?
Issue 1:
Copying from golang-dev

The vendor specification doesn't seem to speak much about the visibility of the vendored packages. Thus, should vendor be treated in similar ways to internal?

As it currently is, the following program compiles under go1.6beta2 (with the vendor experiment on):

package main

import "vendor/golang.org/x/net/http2/hpack"

func main() {
hpack.NewEncoder(nil)
}

Is this expected behavior? It seems kind of odd that I can import hpack as part of the "standard" library.

This is related to #13961 and #13929.

Issue 2:
$go version
go version go1.5 darwin/amd64

$uname -a
Darwin TonydeMacBook-Air-2.local 13.1.0 Darwin Kernel Version 13.1.0: Thu Jan 16 19:40:37 PST 2014; root:xnu-2422.90.20~2/RELEASE_X86_64 x86_64

the project layout is below: (GOPATH=/home/bigwhite/gotestinternal)

/home/bigwhite/gotestinternal
└── src
├── mypkg
│ ├── internal
│ │ └── foo
│ │ └── foo.go
│ ├── main.o
│ └── pkg1
│ ├── main
│ └── main.go
└── otherpkg
└── main.go

I am trying to test the internal package in go 1.5 final release. according to the internal design doc, if we import internal/foo in mypkg/main.go or mypkg/pkg1/main.go, it is ok. but if we import mypkg/internal/foo in otherpkg/main.go， it should be invalid.

But the test result is not as the above:

//otherpkg/main.go
package main

import "mypkg/internal/foo"

func main() {
foo.Foo()
}

we build otherpkg/main.go in otherpkg directory, but no error occurs. It is not the result expected.

but go list -json tell us we has a not-allowed use of internal package：

"DepsErrors": [
{
"ImportStack": [
"otherpkg",
"mypkg/internal/foo"
],
"Pos": "",
"Err": "use of internal package not allowed"
}
]

I'm not sure whether it is a problem of go1.5.