WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Hey everyone!

I am using bluebird as a replacement for global Promise object. I'be tried to update typedefs to latest version, published by @lhecker, and ran into problem: global Promsie is not overloaded now by default.

How cam I achieve previous behaviour? Maybe we could have bluebird-global.d.ts, for example?

Issue 2:
Hi.

I am having a series of really painful issues when I want to use the last version of angular.d.ts.

This is the first one.

I am using Visual Studio Community with the latest Web Essentials v2.6.36. I have AngularJS v1.4.5 installed. When I try to use angular.module in my .ts file, below

((): void => {
'use strict';

angular
.module('app', [
'app.core',
'app.layout',
'app.services',
'app.widgets',
'app.blocks'
]);
})();;

the compiler says "The property module doesn't exist on value of type 'typeof angular'".

Now I immediately guessed there must be something wrong with the angular.d.ts definition and I was correct. The definition file has errors and I would like you to help me out here, because I keep bumping my head for 3 hours and can't find the solution.

So I get the error written in the title: "Angular ambient external module declaration must be defined in global context"

The code where I get the error:

declare module 'angular' {
export = angular;
}

Oh and BTW, when the Angular module is being declared the debugger complains: "duplicate identifier 'angular'" (line 26)

I would really appreciate if anyone could help me out with this one. Thank you a lot.
Issue 1:
On Windows systems, you can hold the Alt key and type a number combination on the number pad to insert special characters. For example, I can insert an m-dash (—) by holding Alt and typing 0151.

This works fine in most text editors, including Sublime Text; however, in Atom, the Alt key + a number results in switching to a different tab.

Issue 2:
Pressing alt+1 through alt+9 will attempt to switch tabs. See code here

When entering an alt code, the tabs switch. It's hard to enter alt codes.

Workaround: Open a file in a separate pane, and enter alt codes there.
Issue 1:
https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gce/25570/

Failed: Up {e2e.go}

error running up: exit status 2

Previous issues for this test: #33357 #33377 #33993 #34033 #34796 #35306 #35315 #35396

Issue 2:
https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gce-federation/4526/

Failed: Up {e2e.go}

error running up: exit status 1

Previous issues for this test: #33357 #33377
Issue 1:
oneshot returns (ChanOne, PortOne) while stream returns (Port, Chan). I prefer the port to be first.

Issue 2:
Updated Test Case (warning: may not be faithful to the original problem)

use core::io::ReaderUtil;
use core::io::Reader;

fn foo(r:@Reader) -> ~str { r.read_line() }
fn baz<R:Reader>(r:R) -> ~str { r.read_line() }
fn waz<R:ReaderUtil>(r:R) -> ~str { r.read_line() }

fn main() {
let _m = foo(io::stdin());
let _m = baz(io::stdin());
let _m = waz(io::stdin());
}

Original Report

The following code compiles, but causes a segmentation fault when run:

let stdin = io::stdin() as &io::ReaderUtil;
let _m = stdin.read_line();

This is using master on Ubuntu.
Issue 1:
Hello,

When using the Koa router example I am seeing some strange behavior. When loading pages between routes the app it flashes a 404. I've isolated it down to:

router.get('*', async ctx => {
await handle(ctx.req, ctx.res);
ctx.respond = false;
});

When this block is removed we lose the next handled 404 page. Any guidance the app.getRequestHandler()(req, res) would be much appreciated.

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

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

Expected Behavior

It'd be nice to support config files with Babel syntax, e.g., as next.config.babel.js a la Webpack.

Current Behavior

next.config.babel.js isn't picked up, and next.config.js doesn't seem to support syntax enabled by .babelrc.

Steps to Reproduce (for bugs)

Use Babel-enabled syntax in next.config.js or try next.config.babel.js.

Context

We are all used to modern JavaScript features when writing our JS. Some features would be especially useful, e.g., object spread operator.

Your Environment

Tech
Version

next
3.2.1

node
8.4.0

OS
macOS Sierra 10.12.6 (16G29)

browser
Google Chrome 60.0.3112.113 (Official Build) (64-bit)
Issue 1:
Material UI is a great thing!!! Very helpful. The documentation is very discouraging for new users. Show sample of how the components are used. Code snippets!!! How do I add icons? Show an example in the documentation instead of saying, "Do this and that", come on.

Thanks!!!

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

Expected Behavior

Current Behavior

Steps to Reproduce (for bugs)

Context

Your Environment

Tech
Version

Material-UI
0.0

React
16.

browser
chrome

etc

Issue 2:
I am using typescript and material-ui in my project.

After upgrade to version v1.0.0-beta.11, now I am not able to add className in Grid Component
Issue 1:
Environment

Windows build number: 10.0.18632.175
Windows Terminal version (if applicable): 0.2.1715.0 (Windows Store Preview)
NVIDIA drivers version 430.64
NVIDIA GTX 1060 6GB graphics card
Dell Alienware AW3418DW monitor (GSYNC certified)

Steps to reproduce

Connect GSYNC compatible monitor to a computer with an NVIDIA GPU

Enable GSYNC, in either of the available modes

Open Windows Terminal Preview

Scroll mouse around

Expected behaviour

Normal performance without any jittering or lagging as demonstrated in the talks from Build 2019.

Actual behaviour

Significant jitter throughout the entire UI, including other windows, when Terminal is the active window. I attempted to capture it on video, but unfortunately, both direct capture using OBS and my phone camera were unable to capture it.

Additional information

This issue also occurs with the Spotify app, in which disabling hardware acceleration leads to the issue being fixed. I was unable to test this with the Terminal app, as I could not find an option to configure hardware acceleration. I imagine this will be a problem with most variable refresh rate configurations, however, I have been unable to test this as I only have NVIDIA hardware available.

Issue 2:
My main monitor is 144Hz. An easy way of seeing the current FPS is wiggling the mouse - the movement in 144 FPS is much smoother than 60 FPS, and this is very noticeable.

While using Terminal, the FPS constantly drops, and moves between low FPS and full 144 FPS. I can't tell if it drops to 60 FPS or a different amount, but it's way lower than 144 FPS. Wiggling the cursor while typing shows this problem well.

It seems like every interaction with the Terminal can cause the FPS to "flip" between low and high: Focusing on the window, typing, etc. Sometimes waiting ~3 seconds is enough for the FPS to switch back to high.

Graphics card is an Nvidia GTX 1080 Ti and monitor is an Asus PG279Q.

C:\WINDOWS\system32>ver

Microsoft Windows [Version 10.0.18362.86]
Issue 1:
Challenge Change the Color of Text has an issue.

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

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

My code:

<h2 style="color: blue">CatPhotoApp</h2>

<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>

Contains incorrect styling syntax.

"color: blue" is not closed with a semicolon. I know this is nitpicking. But stuff like that will be hard to find later on.

Issue 2:
Challenge Name

https://www.freecodecamp.com/challenges/change-the-color-of-text

Issue Description

Example code does not have a semicolon at the end of the rule. This could encourage bad habits.

<h2 style="color: blue">CatPhotoApp</h2>
Issue 1:
Bug report

Since v5.22, build are failing with this error:

ERROR in Error: The loader "/Users/my-user/project/node_modules/html-webpack-plugin/lib/loader.js!//Users/my-user/project/src/app/index.html" didn't return html.

- index.js:336 HtmlWebpackPlugin.evaluateCompilationResult
[ni-xbox2]/[html-webpack-plugin]/index.js:336:24

- index.js:243 Promise.resolve.then
[ni-xbox2]/[html-webpack-plugin]/index.js:243:22

- next_tick.js:68 process._tickCallback
internal/process/next_tick.js:68:7

webpack 5.22.0 compiled with 1 error and 1 warning in 73981 ms
ℹ ｢wdm｣: Failed to compile.

What is the current behavior?

The build are failing, saying that the html file did not return an HTML output.

If the current behavior is a bug, please provide the steps to reproduce.

Upgrade webpack from v5.21 to v5.22, reinstall node_modules and webpack will fail to build the project.

What is the expected behavior?

Webpack should build the project.

Other relevant information:

webpack version: v5.22

Node.js version: v15.8.0

Operating System: MacOs Catalina v10.15.7

Additional tools:

Issue 2:
Do you want to request a feature or report a bug?

bug

What is the current behavior?

With babel 7 this doesn't work:

const file = 'test.js'
require(`./${file}`)

I think it's because babel 7 transpiles template literals to use concat which webpack doesn't understand:

const file = 'test.js'
require('./'.concat(file))

If the current behavior is a bug, please provide the steps to reproduce.

https://github.com/laggingreflex/webpack-3-require-test

What is the expected behavior?

If this is a feature request, what is motivation or use case for changing the behavior?

Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.
Issue 1:
The coverage of Sharding-Proxy is 45.64% now. It's necessary to improve the coverage now.

sharding-proxy-backend

sharding-proxy-bootstrap

sharding-proxy-common

sharding-proxy-frontend-core

sharding-proxy-frontend-mysql

sharding-proxy-frontend-postgresql

sharding-proxy-frontend-spi

Issue 2:
Bug Report

For English only, other languages will not accept.

Before report a bug, make sure you have:

Searched open and closed GitHub issues.

Read documentation: ShardingSphere Doc.

Please pay attention on issues you submitted, because we maybe need more details.

If no response anymore and we cannot reproduce it on current information, we will close it.

Please answer these questions before submitting your issue. Thanks!

Which version of ShardingSphere did you use?

SS 5.0

Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?

ShardingSphere-JDBC

Expected behavior

Actual behavior

java.sql.SQLException:Error while preparing seatment

SELECT dd.FullDateAlternateKey dataTime, IFNULL(rr.innum,0) innum, IFNULL(rr.jkl,0.00) jkl

FROM dimdate dd

LEFT JOIN

(SELECT SUM(rsd.innum) innum,ROUND(SUM(rsd.innum)/SUM(rsd.area),2) jkl,rsd.datatime datatime

FROM report_site_day rsd

LEFT JOIN site_relation sr ON sr.childId=rsd.relationId

LEFT JOIN project_status ps ON rsd.relationId=ps.site_id

LEFT JOIN site_all_info sai ON rsd.relationId=sai.SiteId

LEFT JOIN privilege_userssite AS pu ON pu.sitekey = sai.siteid

LEFT JOIN userinsmallprogram AS us ON us.userid = pu.userid

WHERE

us.openid = ?

AND sr.id =?

AND ps.status=1

AND rsd.dataTime BETWEEN ? AND ?

GROUP BY rsd.datatime

)rr

ON dd.FullDateAlternateKey=rr.datatime

WHERE dd.FullDateAlternateKey BETWEEN ? AND ?

ORDER BY dd.FullDateAlternateKey ASC

Reason analyze (If you can)

Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.

Example codes for reproduce this issue (such as a github link).
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

The Grid component lacks the API to modify the align-content CSS property. I believe this property is important for layout configurations.

Current Behavior

Through the Grid API, the justify-content and the align-items CSS props can be set. However align-content is missing.

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

Expected Behavior

I can bundle Material-UI fine with rollup

Current Behavior

While bundling, this error is thrown and rollup aborts:

[!] Error: 'default' is not exported by node_modules/material-ui/styles/MuiThemeProvider.js
https://github.com/rollup/rollup/wiki/Troubleshooting#name-is-not-exported-by-module
src/index.js (702:7)
702: import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'

Steps to Reproduce (for bugs)

git clone https://github.com/binarykitchen/8b8698a5dc0ec165f948676d59c2c495.git

yarn

yarn start

Booom!

Context

I think it has to do with the way how you are exporting stuff within MuiThemeProvider maybe?

Already tried to fix that with the commonjs plugin like that

commonjs({
namedExports: {
'node_modules/material-ui/styles/MuiThemeProvider.js': ['MuiThemeProvider']
}
}),

but doesnt make a difference. Must be something else.

Your Environment

Tech
Version

Material-UI
0.19.1

React
15.6.1

browser
Latest Chrome
Issue 1:
Environment

Microsoft Windows [Version 10.0.18362.418]

Any other software?

WSL1, Windows Terminal, tmux

Steps to reproduce

Just installed Windows Terminal.Opened it, opened tmux, splitted the screen and noticed that

tmux command "set -g mouse on" wasn't working (already in my .tmux.conf).I re-entered the

command manually, nothing changed.

In addition, while using tmux, i also checked for similar issue with set=mouse"a" of vim, which also

wasnt working as expected.

Issue 2:
Environment

Windows build number: 18985.1
Windows Terminal version 0.5.2661.0

Any other software?

Steps to reproduce

I can't type Chinese char in terminal with Microsoft Pinyin ver bind in win10 20H1

Expected behavior

Can type Chinese chars

Actual behavior

I can't type Chinese char in terminal by Microsoft Pinyin bind in win10 20H1
Issue 1:
(Migrated from gitter)

We could potentially introduce some basic cache cleaning commands for Deno.

Currently 2 super-duper simple and crude ideas:

Clean by domain, something like deno clean https://github.com deletes all cached files under that domain (this one is somewhat easy to implement)

This could be slightly more granular: deno clean -d https://unpkg.com/lodash-es@4.17.11/

Rationale: assume related files to be hosted under the same domain/common path segment

Clean by dependency exclusion. Since when we are building dependency tree each time we run a file, we can use such info to dictate deno to clean every file EXCEPT those that serves as dependency of a file. This also potentially allows third-party cli to create "dep lockers" to prevent certain dependency from being cleaned.

e.g. deno clean -p ./mydeps.ts. If mydeps.ts imports from all https://deno.land/std/, running this command would delete every cached remote files except for deno_std ones

Issue 2:
Remove the cache files corresponding to the given targets.

deno clean src/mod.ts ≈ rm -f $DENO_DIR/gen/file$PWD/src/mod.ts.{js,map,meta}

deno clean dir1 dir2 ≈ rm -rf $DENO_DIR/gen/file$PWD/{dir1,dir2}

deno clean https://deno.land ≈ rm -rf $DENO_DIR/{deps,gen}/https/deno.land

deno clean --remote ≈ rm -rf $DENO_DIR/{deps,gen}/!(file)

deno clean --history ≈ rm -f $DENO_DIR/deno_history.txt

deno clean --web-storage=<URLs> ≈ rm -rf $DENO_DIR/web_storage/{<URLs>} refs #1657, #4981

deno clean --all ≈ rm -rf $DENO_DIR

Due to the current cache structure, cleaning for remote modules can only be done per-domain or coarser.
Issue 1:
Issue Type

Bug Report

Ansible Version

2.0.0 (devel 132c14e)

OS

OSX Yosemite (tested module file with pyenv against 2.7.8/2.7.9/2.7.10)

Summary

I've just encountered an issue with get_url on Github URLs, which are failing to verify certificates for some versions of Python. I'm fairly sure it's a manifestation of urllib3/urllib3#385, which describes potentially breaking changes to ._tunnel() in Python 3.4.1, backported to Python 2.7.9+. This logic seems to be identical to the connect method in lib/ansible/module_utils/urls.py, and behaves similarly -- the error I'm encountering is:

hostname 'webproxy.uhnres.utoronto.ca' doesn't match either of 'github.com', 'www.github.com'

The same URL can be requested just fine through browsers and curl, so it seems to be a Python-specific (and version-specific, it does not affect Python 2.7.8) certificate verification issue with proxies.

I think the modified logic in urllib3/urllib3#385 (comment) needs to be rolled into the connect method, so that self._tunnel_host is used in place of self.host if needed.

This is deep into the guts of various systems, and I'm not a Python person, but I'll make a PR if you want me to.

Steps to reproduce

This task should do it, if you have a proxy. All that matters is HTTPS + Github + Python 2/7/9+

- name: Webapp | Get release files
get_url:
url: "https://github.com/pughlab/tracker/releases/download/2.0.1-RC4/tracker-java-restlet-2.0.1-RC4.war"
dest: "output.war"

Expected Results

Successful download

Actual Results

{"msg": "hostname 'webproxy.uhnres.utoronto.ca' doesn't match either of 'github.com', 'www.github.com'", "failed": true}

Issue 2:
when i use the hoc cmd ' ansible test1 -m yum -u root -a "name=httpd state=installed" -k '

An error occurred :

"failed": true,

"msg": "Traceback (most recent call last):\n File "/root/.ansible/tmp/ansible-tmp-1407466908.63-106687021723210/yum", line 27, in \n import yum\nImportError: No module named yum\n",

"parsed": false

}

but i can user yum cmd in the client machine。how can i fix it ?
Issue 1:
julia> eigs(ones(2,2), eye(2,2); nev=1)
ERROR: Base.LinAlg.ARPACKException("unspecified ARPACK error: -9999")
Stacktrace:
[1] aupd_wrapper(::Type{T} where T, ::Base.LinAlg.#matvecA!#98{Array{Float64,2}}, ::Base.LinAlg.##95#102{Array{Float64,2}}, ::Base.LinAlg.##96#103, ::Int64, ::Bool, ::Bool, ::String, ::Int64, ::Int64, ::String, ::Float64, ::Int64, ::Int64, ::Array{Float64,1}) at ./linalg/arpack.jl:52
[2] #_eigs#91(::Int64, ::Int64, ::Symbol, ::Float64, ::Int64, ::Void, ::Array{Float64,1}, ::Bool, ::Base.LinAlg.#_eigs, ::Array{Float64,2}, ::Array{Float64,2}) at ./linalg/arnoldi.jl:285
[3] (::Base.LinAlg.#kw##_eigs)(::Array{Any,1}, ::Base.LinAlg.#_eigs, ::Array{Float64,2}, ::Array{Float64,2}) at ./<missing>:0
[4] #eigs#85(::Array{Any,1}, ::Function, ::Array{Float64,2}, ::Array{Float64,2}) at ./linalg/arnoldi.jl:93
[5] (::Base.LinAlg.#kw##eigs)(::Array{Any,1}, ::Base.LinAlg.#eigs, ::Array{Float64,2}, ::Array{Float64,2}) at ./<missing>:0

Issue 2:
The following problem was provided on julia users

julia> n = 10
10

julia> A = zeros(n,n);

julia> A[1,1] = 100;

julia> A[10,10] = -100;

julia> C = eye(n);

julia> eigs(A,C)
ERROR: Base.LinAlg.ARPACKException("unspecified ARPACK error: -9999")
in aupd_wrapper(::Type{T}, ::Base.LinAlg.#matvecA!#69{Array{Float64,2}}, ::Base.LinAlg.##66#73{Array{
Float64,2}}, ::Base.LinAlg.##67#74, ::Int64, ::Bool, ::Bool, ::String, ::Int64, ::Int64, ::String, ::F
loat64, ::Int64, ::Int64, ::Array{Float64,1}) at ./linalg/arpack.jl:53
in #_eigs#62(::Int64, ::Int64, ::Symbol, ::Float64, ::Int64, ::Void, ::Array{Float64,1}, ::Bool, ::Ba
se.LinAlg.#_eigs, ::Array{Float64,2}, ::Array{Float64,2}) at ./linalg/arnoldi.jl:271
in _eigs(::Array{Float64,2}, ::Array{Float64,2}) at ./linalg/arnoldi.jl:158
in #eigs#56(::Array{Any,1}, ::Function, ::Array{Float64,2}, ::Array{Float64,2}) at ./linalg/arnoldi.j
l:80
in eigs(::Array{Float64,2}, ::Array{Float64,2}) at ./linalg/arnoldi.jl:80

Right now, we are using mode 2 when solving symmetric generalized problems but according to the source we shouldn't. In dsaupd.f line 291

c 3. If M can be factored into a Cholesky factorization M = LL`
c then Mode = 2 should not be selected. Instead one should use
c Mode = 1 with OP = inv(L)*A*inv(L`). Appropriate triangular
c linear systems should be solved with L and L` rather
c than computing inverses. After convergence, an approximate
c eigenvector z of the original problem is recovered by solving
c L`z = x where x is a Ritz vector of OP.
Issue 1:
Code Sample, a copy-pastable example if possible

# not working
pd.read_json(path, encoding='cp1251')

# that works
import json
with open(path, 'r') as f:
js = json.load(f, encoding='cp1251')
pd.DataFrame(js)

Problem description

It is not mentioned explicitly in docstring that encoding option used in py3 only.

Currently pd.read_json mostly ignores encoding= option in python2.

Function pd.common._get_handle warns about using encoding with compression, but silently continues without actually using encoding otherwise.

It looks like subtasks are split in unfavourable way to pass encoding up to json.loads call.

Expected Output

One might expect pandas use encoding, to get life easier (as pandas usually do ;) ).

Or at least properly warn that option is ignored.

Output of pd.show_versions()

INSTALLED VERSIONS
------------------
commit: None
python: 2.7.12.final.0
python-bits: 64
OS: Windows
OS-release: 7
machine: AMD64
processor: Intel64 Family 6 Model 58 Stepping 9, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None

pandas: 0.19.2

nose: 1.3.7

pip: 9.0.1

setuptools: 28.8.0.post20161110

Cython: 0.24.1

numpy: 1.12.0

scipy: 0.18.1

statsmodels: 0.6.1

xarray: None

IPython: 5.1.0

sphinx: 1.4.6

patsy: 0.4.1

dateutil: 2.5.3

pytz: 2016.6.1

blosc: None

bottleneck: 1.0.0

tables: 3.2.2

numexpr: 2.6.2

matplotlib: 2.0.0

openpyxl: 2.3.2

xlrd: 1.0.0

xlwt: 1.1.2

xlsxwriter: 0.9.2

lxml: 3.6.4

bs4: 4.3.2

html5lib: None

httplib2: None

apiclient: None

sqlalchemy: 1.0.13

pymysql: 0.7.6.None

psycopg2: None

jinja2: 2.8

boto: 2.40.0

pandas_datareader: None

Issue 2:
xref #13351

Here's the test, currently skipped