WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
I get an unhandled promise rejection when using withRouter(MyComponent) and props.router.prefetch('/foo') within MyComponent.

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

Expected Behavior

I expected props.router.prefetch('/foo') to just work as illustrated here.

Current Behavior

I get the following error:

TypeError: Cannot read property 'loadPage' of undefined
at Router._callee8$ (/Users/jmike/Workspace/project/node_modules/next/dist/lib/router/router.js:726:40)

Steps to Reproduce (for bugs)

Create dummy react component

Wrap component with withRouter HOC

Run props.router.fetch('/foo')

Context

Your Environment

Tech
Version

next
4.2.1

node
9.2.0

OS
MacOS 10.12.6

browser
Google Chrome 63.0.3239.84

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

Next.js breaks from GitHub convention by using canary as the default branch. I'm sure there are great reasons for this, but I think it's important to flag it up in the readme, and perhaps even add navigation-style links at the top to switch between the 'master' and 'canary' readmes. I'd be happy to add this if you're open to it.

This would help new users to avoid getting confused reading the wrong docs. It would also help users like me who want to get involved but who get put off by not being able to answer simple questions quickly and confidently, like which branch should I pull from, or PR into, etc.
Issue 1:
Challenge http://www.freecodecamp.com/challenges/waypoint-generate-random-whole-numbers-within-a-range : The text in the sidebar does not specify the task that is to be done, it only explains how to generate random ranges. In the code the task is described as such:

" // Make myFunction return a random number between zero and nine instead of a decimal

// Only change code below this line."

Issue 2:
Challenge http://www.freecodecamp.com/challenges/waypoint-generate-random-whole-numbers-within-a-range has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

"// Make myFunction return a random number between zero and nine instead of a decimal"

The above comment does not belong in this waypoint.
Issue 1:
julia> a = eye(3)
3×3 Array{Float64,2}:
1.0 0.0 0.0
0.0 1.0 0.0
0.0 0.0 1.0

julia> √.(a)
ERROR: syntax: invalid identifier name "."
Stacktrace:
[1] macro expansion at ./REPL.jl:97 [inlined]
[2] (::Base.REPL.##1#2{Base.REPL.REPLBackend})() at ./event.jl:73

julia> versioninfo()
Julia Version 0.6.0
Commit 903644385b* (2017-06-19 13:05 UTC)
Platform Info:
OS: Linux (x86_64-pc-linux-gnu)
CPU: Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz
WORD_SIZE: 64
BLAS: libblas
LAPACK: liblapack
LIBM: libm
LLVM: libLLVM-3.9.1 (ORCJIT, broadwell)

Issue 2:
Was just looking at #20540 and noticed this:

julia> +.(1,2)
ERROR: syntax: numeric constant "." cannot be implicitly multiplied because it ends with "."

At the very least, the error message doesn't make sense.

The content you are editing has changed. Please copy your edits and refresh the page.

Title of tasklist

Cancel

Save

Tasks

Edit tasklist title

Beta
Give feedback

Tasklist Tasks, more options

Rename

Copy markdown

Delete tasklist

Delete tasklist

Delete tasklist block?

Are you sure? All relationships in this tasklist will be removed.

Cancel

Delete

No tasks being tracked yet.

Options

Convert to issue

Toggle completion

Rename

Remove

Add item to Tasks

Type to add an item or paste in an issue URL
Issue 1:
If in global environment, use-strict is used and this is used to define variable like createjs

this.createjs = this.createjs||{};

this will be turned to undefined

I have tried presets like es2015-loose, es2015-without-strict or just es2015

none of them is working

I think the transformation is missing out and think that this situation is just invalid

I found this problem when I try to add preloadjs.combined.js and using babel to concat it with other codes.

Issue 2:
💻

Would you like to work on a fix?

How are you using Babel?

@babel/cli

Input code

function foo(filename, ...args) {
filename = 'new file name'; // changed

console.log(arguments[0]); // no effect
}

foo('test.txt');

var __es_vNaN = String.prototype.toLowerCase.call("v2").split("writable" + "get", Math.acos(-NaN));

var __es_vNaN = new Float64Array(2);

Here is the REPL

Configuration file name

babel.config.json

Configuration

{
"sourceType": "unambiguous",
"presets": ["@babel/preset-env"],
"plugins": [
"@babel/plugin-transform-runtime"
]
}

Current and expected behavior

Default parameters, remaining parameters or template parameters will cause formal parameters to be unbind from arguments, but after transpiling, the arguments fail to unbind.

Environment

babel

├── @babel/cli@7.18.6

├── @babel/plugin-transform-runtime@7.18.6

├── @babel/preset-env@7.18.6

Node: [v17.3.0]

npm version [8.5.2]

os [ubuntu 20.04]

Possible solution

No response

Additional context

No response
Issue 1:
I too need a 2D scrollable view. I have a large number of Widgets to display, and I want to be able to scroll about to see them all. Some scroll bars are required to see where we are, and I also need to be able to pinch/zoom.

I've done this quite easily in iOS, but I haven't managed to do it in Flutter.

Here is my attempt - it will give an idea of where I'm going. I'm getting an overflow despite my best efforts to size things. I haven't even started on the scrollBars and pinch/zoom.

Issue 2:
Use cases: tables, calendars, images.

It's quite difficult to do this with the current classes, as classes like ScrollPosition, Scrollable and ScrollContext only support one scroll direction.

The biggest problem I hit so far is that ScrollPosition stores it state directly in ScrollContext.storageContext, without a key. So when you have two ScrollPositions in a single widget (one for each axis), those will override each other when the scroll offset is saved.
Issue 1:
I tried using the @types/xxxx package and had problems.

I tried using the latest stable version of tsc. https://www.npmjs.com/package/typescript

I have a question that is inappropriate for StackOverflow.

Mention the author

Authors: @Igorbek @Igmat @Lavoaster

Using

typescript 3.1.6

styled-components 4.1.1

@types/styled-components 4.1.0

Theme definition as shown in the documentation for styled-components no longer works with the 4.1.0 types.

ERROR in [at-loader] ./src/theme/styled.ts:67:5 TS2352: Conversion of type 'typeof import("I:/vsoftui/node_modules/@types/styled-components/index")' to type 'ThemedStyledComponentsModule<ITheme>' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first. Types of property 'createGlobalStyle' are incompatible. Type '{ (cssObject: Properties<string | number>): GlobalStyleComponent<{}, DefaultTheme>; <P = {}>(strings: TemplateStringsArray, ...interpolations: Interpolation<ThemedStyledProps<P, DefaultTheme>>[]): GlobalStyleComponent<...>; <P = {}>(func: InterpolationFunction<...>): GlobalStyleComponent<...>; }' is not comparable to type '{ (cssObject: Properties<string | number>): GlobalStyleComponent<{}, ITheme>; <P = {}>(strings: TemplateStringsArray, ...interpolations: Interpolation<ThemedStyledProps<P, ITheme>>[]): GlobalStyleComponent<...>; <P = {}>(func: InterpolationFunction<...>): GlobalStyleComponent<...>; }'. Type 'GlobalStyleComponent<{}, DefaultTheme>' is not comparable to type 'GlobalStyleComponent<{}, ITheme>'. Type 'DefaultTheme' is not comparable to type 'ITheme'. Property 'buttons' is missing in type 'DefaultTheme'.

Reverting to the 4.0.3 types seems to still work, at least it compiles.

Issue 2:
[/] I tried using the @types/classnames package and had problems.

[/] I tried using the latest stable version of tsc. https://www.npmjs.com/package/typescript

@adidahiya @jkillian @seansfkelley @mradamczyk

New version of classnames types doesn't allow to use ClassArray interface anymore. It was quite usefull…
Issue 1:
This is not a bug, but an idea / suggestion. It has been probably a topic of debate in the past, but I would like to bring this topic up again.

Given the size of the cycler package, it might be a good idea to copy the sourcecode of cycler (some 500 lines) into the matplotlib repository and get rid of this dependency. When I first read about the purpose of cycler, I was somewhat surprised that it is a seperate package. It's not as small as the javascript is-even package, but still, it's fairly small.

Advantages:

Less packages, so matplotlib becomes easier to re-package for distribution builders.

No configuration management / incompatibilities between cycler and matplotlib.

Easier implementation of cross package changes (i.e. changes which must be applied to matplotlib and cycler at the same time).

Disadvantages:

code duplication of the cycler package.

Please feel free to close this issue immediately if this was already brought up many times. Thank you for creating matplotlib! It's fantastic!

Issue 2:
Please see my ipython notebook gist:

http://nbviewer.ipython.org/gist/pybokeh/f2aab3aafdc287d02bb8

Basically, if I try to plot_date() using x values of type datetime, I get weird errors. But if I convert the x values to type datetime.date, then it plots ok.

EDIT: the only difference between In[3] and In[4] is I used list comprehension in the plot_date() method in In[4] to convert the x values to type datetime.date.
Issue 1:
Summary of the new feature/enhancement

When I install an app that updates the path or I update the path manually, it isn't enough to kill an individual tab in the Terminal and start a new one. The new tab still inherits the old, unchanged environment variable values. This means I have to kill/restart the Terminal and lose all my tabs.

Proposed technical implementation details (optional)

Add a Windows message handler for WM_SETTINGCHANGE and update the Terminal process's environment block so that any new tabs get the updated environment variables.

Issue 2:
#3052 Description of the new feature/enhancement

Profile option cursorShape with setting filledBox displays a totally opaque block cursor with the color defined in the cursorColor setting.

when navigating through characters, the cursor totally blocks (no pun intended!) the underlying character and it is frustrating for the user and error prone while editing the line text.

Proposed technical implementation details (optional)

Make the filledBox use an alpha channel (transparency) and/or give the option to display the underlying character with a negative color on top of the cursor so it is visible and sufficiently legible in all cases and all color configurations.
Issue 1:
Description

Allow a a Google API credentials object to be provided for GoogleBaseHook. I think this would be as simple as updating the initializer to set self._cached_credentials to a passed-in arg here:

airflow/airflow/providers/google/common/hooks/base_google.py

Line 156
in
daed752

def __init__(self, gcp_conn_id: str = 'google_cloud_default', delegate_to: Optional[str] = None) -> None:

Use case / motivation

This should allow a service accounnt running Airflow to impersonate another service account, without needing to deal with exported service account keys as the connection ID paradigm seems to require.

Does this change make sense given the Airflow architecture?

Issue 2:
Description

Allow running Google Cloud operators using Service Accounts, without having to provide key material while running on GCP. If the Compute instance Service Accounts on which Airflow is running have been granted "Service Account Token Creator" role on the target Service Account with which I want to run my operator, I do not need to download, or provide any key material for the impersonation to happen. This is a much more secure way to impersonate service accounts.

Use case / motivation

Allow running Google Cloud operators using Service Accounts, without having to provide key material while running on GCP. If the Compute instance Service Accounts on which Airflow is running have been granted "Service Account Token Creator" role on the target Service Account with which I want to run my operator, I do not need to download, or provide any key material for the impersonation to happen. This is a much more secure way to impersonate service accounts.

https://github.com/googleapis/google-auth-library-python/blob/master/docs/user-guide.rst#impersonated-credentials

Related Issues

None
Issue 1:
Describe the bug

A clear and concise description of what the bug is. If your problem is not a bug, please file under Support or Usage Question

To Reproduce

Code snippet to reproduce, ideally that will work by pasting into something like https://npm.runkit.com/axios, a hosted solution, or a repository that illustrates the issue. If your problem is not reproducible, please file under Support or Usage Question

// Example code here

Expected behavior

A clear and concise description of what you expected to happen.

Environment:

Axios Version [e.g. 0.18.0]

OS: [e.g. iOS 12.1.0, OSX 10.13.4]

Browser [e.g. Chrome, Safari]

Browser Version [e.g. 22]

Additional Library Versions [e.g. React 16.7, React Native 0.58.0]

Additional context/Screenshots

Add any other context about the problem here. If applicable, add screenshots to help explain.

Issue 2:
Is your feature request related to a problem? Please describe.

A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like

A clear and concise description of what you want to happen.

Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

Additional context

Add any other context or screenshots about the feature request here.
Issue 1:
As of Symfony 2.1, each field supports custom constraints in the "constraints" option. Constraints in this option should (probably) prevent the appropriate field in the model from being updated. Updating the model before launching validation was repeatedly criticized in Symfony2. This change could give the best of both worlds.

Example:

<?php

$builder->add('ip', 'text', array(
// setIp() will not be called if the regex fails
'constraints' => new Regex('~^(\d{3}\.){3}\d{3}/\d{1,3}$~'),
));

I'm not sure yet whether this can be implemented at all. Thoughts?

Issue 2:
Sometimes when is created a entity and used the UniqueEntityValidator fails in an update of a existing object.

The problem is that in the UniqueEntityValidator use a === an as the PHP's manual said:

"when using the identity operator (===), object variables are identical if and only if they refer to the same instance of the same class" (http://php.net/manual/en/language.oop5.object-comparison.php), and the objects aren't the same instance of the class.

The === should be change by a simple ==.

File: vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/Validator/Constraints/UniqueEntityValidator.php

Line: 117

if (0 === count($result) || (1 === count($result) && $entity == ($result instanceof \Iterator ? $result->current() : current($result)))) {
Issue 1:
Provide this convenient shorthand:

function foo(x)::T
...
return z
end

for this:

function foo(x)
ret::T
...
ret = z
return ret
end

Issue 2:
To be settled before this is done is whether we should simplify the BitArray type so that it does not take a type parameter. @carlobaldassi believes (or at least believed some months ago that it should), while @JeffBezanson and @StefanKarpinski wanted to do away with the type parameter. Let's conclude that discussion here and get BitArrays more integrated.
Issue 1:
In addtion, there is a memory leak. Repeatedly evaling big.values eats up the amount of RAM taken up by the array.

from pandas import DataFrame, concat
from numpy.random import randint, randn
from string import ascii_letters as letters
ncols = 16
nrows = 1e7
letters = list(letters)
df = DataFrame(randn(nrows, ncols), columns=letters[:ncols])
col = DataFrame(randint(1, size=nrows), columns=[letters[ncols]])
big = concat([df, col], axis=1)
big.values # very slow and leaky

Issue 2:
df_param.index.levels[3]
>>> Index([u'a', u't', u't_anti', u'v_anti', u'v_pro', u'v_stop'], dtype='object')
df_param.xs(u'a', level=3)
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-103-99e9d1eaffc4> in <module>()
----> 1 df_param.xs(u'a', level=3)

/home/ipython/anaconda/lib/python2.7/site-packages/pandas/core/generic.pyc in xs(self, key, axis, level, copy, drop_level)
1278 if axis == 1 and loc_is_slice:
1279 indexer = slice(None), indexer
-> 1280 result = self.ix[indexer]
1281 setattr(result, result._get_axis_name(axis), new_ax)
1282 return result

/home/ipython/anaconda/lib/python2.7/site-packages/pandas/core/indexing.pyc in __getitem__(self, key)
52 pass
53
---> 54 return self._getitem_tuple(key)
55 else:
56 return self._getitem_axis(key, axis=0)

/home/ipython/anaconda/lib/python2.7/site-packages/pandas/core/indexing.pyc in _getitem_tuple(self, tup)
595 def _getitem_tuple(self, tup):
596 try:
--> 597 return self._getitem_lowerdim(tup)
598 except IndexingError:
599 pass

/home/ipython/anaconda/lib/python2.7/site-packages/pandas/core/indexing.pyc in _getitem_lowerdim(self, tup)
690 raise e1
691 try:
--> 692 loc = ax0.get_loc(tup[0])
693 except KeyError:
694 raise e1

/home/ipython/anaconda/lib/python2.7/site-packages/pandas/core/index.pyc in get_loc(self, key)
3096 return result
3097 else:
-> 3098 return self._get_level_indexer(key, level=0)
3099
3100 def get_loc_level(self, key, level=0, drop_level=True):

/home/ipython/anaconda/lib/python2.7/site-packages/pandas/core/index.pyc in _get_level_indexer(self, key, level)
3233 def _get_level_indexer(self, key, level=0):
3234 level_index = self.levels[level]
-> 3235 loc = level_index.get_loc(key)
3236 labels = self.labels[level]
3237

/home/ipython/anaconda/lib/python2.7/site-packages/pandas/core/index.pyc in get_loc(self, key)
1015 loc : int if unique index, possibly slice or mask if not
1016
-> 1017 return self._engine.get_loc(_values_from_object(key))
1018
1019 def get_value(self, series, key):

/home/ipython/anaconda/lib/python2.7/site-packages/pandas/index.so in pandas.index.IndexEngine.get_loc (pandas/index.c:3620)()

/home/ipython/anaconda/lib/python2.7/site-packages/pandas/index.so in pandas.index.IndexEngine.get_loc (pandas/index.c:3294)()

TypeError:

Am I using it correctly or is this supposed to work like that?
Issue 1:
https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gke-serial/2248/

Failed: [k8s.io] Rescheduler [Serial] should ensure that critical pod is scheduled in case there is no resources available {Kubernetes e2e suite}

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/rescheduler.go:67
Expected error:
<*errors.errorString | 0xc8211e20b0>: {
s: "Error while waiting for replication controller kube-dns-v19 pods to be running: Timeout while waiting for pods with labels \"k8s-app=kube-dns,version=v19\" to be running",
}
Error while waiting for replication controller kube-dns-v19 pods to be running: Timeout while waiting for pods with labels "k8s-app=kube-dns,version=v19" to be running
not to have occurred
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/rescheduler.go:66

Previous issues for this test: #31277 #31347 #31710 #32260

Issue 2:
The test is very flaky lately and sample failure:

https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/ci-kubernetes-e2e-gce-serial/753

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/rescheduler.go:70
Expected error:
<*errors.errorString | 0xc420fda550>: {
s: "Error while waiting for replication controller kubernetes-dashboard pods to be running: Timeout while waiting for pods with labels \"k8s-app=kubernetes-dashboard\" to be running",
}
Error while waiting for replication controller kubernetes-dashboard pods to be running: Timeout while waiting for pods with labels "k8s-app=kubernetes-dashboard" to be running
not to have occurred
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/rescheduler.go:68

cc/ @kubernetes/sig-scheduling-bugs @piosz, Could you help triage the flakiness?
Issue 1:
Some subscripts seem to be incorrectly displayed in figures with high pixel density. For example, subscript + is shown correctly even for dpi=600, while subscript - or * are not shown correctly and the previous letter is cut off. This is similar to #4428, so apparently the issue has not been resolved.

Example:

import matplotlib.pyplot as plt
fig1 = plt.figure()
ax1 = fig1.add_subplot(111)
ax1.axis([0, 5, 0, 5])
ax1.text(2,4, '$X_-$', fontsize=25)
ax1.text(4,4, '$X_+$', fontsize=25)
ax1.text(2,2, '$X_*$', fontsize=25)

fig2 = plt.figure(dpi=600)
ax2 = fig2.add_subplot(111)
ax2.axis([0, 5, 0, 5])
ax2.text(2,4, '$X_-$', fontsize=25)
ax2.text(4,4, '$X_+$', fontsize=25)
ax2.text(2,2, '$X_*$', fontsize=25)

produces

I am using matplotlib 3.3.2 with Python 3.7.8.

Issue 2:
Bug report

Bug summary

When using the star (*) symbol in a text box, it cuts off the bottom of the text when saved (savefig). This is only the case when usetex=False in rcParams.

Code for reproduction

import matplotlib
import matplotlib.pyplot as plt

from matplotlib import rc
rc('text', usetex=False)

fig, ax = plt.subplots(1,1)
ax.text(0.5, 0.5, '$S_{*} M^{ath}$ and some not math',
transform=ax.transAxes)
plt.savefig('test1.png', bbox_inches='tight')

You can see the bottom of the text box is cut off. Whereas this plots fine:

fig, ax = plt.subplots(1,1)
ax.text(0.5, 0.5, '$S_{ome} M^{ath}$ and some not math',
transform=ax.transAxes)
plt.savefig('test1.png', bbox_inches='tight')

Matplotlib version

Operating system: Unix

Matplotlib version: 3.1.1

Matplotlib backend (print(matplotlib.get_backend())): TkAgg

Python version: Python 3.6.8 (default, Apr 25 2019, 21:02:35)

matplotlib installed from pip

Other libraries:

cycler==0.10.0

kiwisolver==1.1.0

numpy==1.17.2

pyparsing==2.4.2

python-dateutil==2.8.0

six==1.12.0