WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Right now, every time Renderer needs to switch the brush colors, it does the following:

get the TextColor from the attribute run

get the RGB value of the color from the color table

pass that to Engine::UpdateDrawingBrushes

Step 2 is lossy, and is the source of a class of bugs I'll call "ConPTY narrowing" bugs. In addition, there's a step where VtEngine needs to know the color table to do a translation from RGB back into indexed color.

"narrowing" bugs

application output
conpty sends
why

\e[38;2;22;198;12m
\e[92m
RGB(22, 198, 12) matches color index 10 in Campbell

\e[38;5;127m
\e[38;2;175;0;175m
the xterm-256color color palette gets translated into RGB because Campbell only covers 0-16

\e[38;2;12;12;12m
\e[30m
RGB(12, 12, 12) matches index 0 in Campbell and index 0 is the default color (#293)

If Renderer passed the TextColor directly to the Engine, Xterm256Engine could pass through all indexed colors unchanged, and XtermEngine and WinTelnetEngine could flatten to the 16-color space.

#3076 is caused by us doing early unpacking of colors and boldness; deferring until later will yield an improvement in preservation of underline status.

Issue 2:
Pressing the settings-button does not open the settings tab. Instead it opens a .json file in Visual Studio 2019.

OS: Windows 10 Pro 1903 (Build 18362.418)

Windows Terminal Version 0.5.2762.0
Issue 1:
Alex Antonov opened SPR-6261 and commented

Provide interface definition model for generating HTTP client interface proxies wrapping RestTemplates.

Code implementation to follow.

Affects: 3.0 RC1

Issue Links:

#16747 Introduce proxy-based REST client similar to HttpInvokerProxyFactoryBean ("is duplicated by")

#10477 Spring REST @MVC: Add support for google Protocol Buffers resource representation format ("supersedes")

3 votes, 12 watchers

Issue 2:
Donny A. Wijaya opened SPR-6464 and commented

Geert Pante submitted the codes for this issue at: MOD-458.

Affects: 3.0 RC2

Reference URL: http://forum.springsource.org/showthread.php?t=73939&highlight=flash+scope

Attachments:

FlashScope.java (675 bytes)

FlashScopeFilter.java (1.16 kB)

Issue Links:

#7346 There is no way to display success message(s). ("is duplicated by")

#5775 Provide better options to specify attributes on a redirect ("supersedes")

31 votes, 29 watchers
Issue 1:
I've seen that v1.11 will be introducing aliases for different histogram binning optimization methods. I'm really looking forward to this feature, so thank you for implementing this!

My question is how these methods will interact with the range parameter (this is not currently documented).

If the range is within (min, max), I imagine that the data sent to the binning method is restricted to this range.

If the range is extends beyond (min, max), I am not sure how this would be handled. Will methods that return a binwidth fill the entire range according to this binwidth? And will methods that return a number of bins be forced to expand their binwidth to cover the full range?

Issue 2:
Travis CI has become too slow, simple PRs can take overnight to finish. Some of that is probably extra testing on the part of NumPy, OTOH, I look at the stats and active opensource builds are capped at 550 with a backlog of 10K That doesn't seem healthy.
Issue 1:
We need a general purpose FFI that can call any C library, using either tcc or clang.

Suggested interface:

loadc("libpcre") # loads the C library, reading headers and all

/* the namespace libpcre could be used to avoid naming clashes _/

pcre_compile("foo\s_bar", PCRE_CASELESS, ...)

Issue 2:
Long conversation with Jeff. Part of the discussion was around structs. We concluded that the main goal here is maximum compatibility with C. A struct is similar to a composite type (which we discussed renaming to class instead of type) except that it has immediate value semantics:

struct Foo
bar::Int32
baz::Int32
end

julia> foo = Foo(1,2)
Foo(1,2)

julia> foo2 = foo
Foo(1,2)

julia> foo2.bar = 3
3

julia> foo2
Foo(3,2)

julia> foo
Foo(1,2)

This is kind of like immutability but without not allowing anything. Types like Rational and Complex would be structs rather than classes. However, we don't go as far as preventing reaching in and changing a field value. If you want to do that, you can, but don't. It's rude. So we have immutability by convention.

A couple more things about structs:

struct fields must be typed

struct fields can only be bits types, other struct types, or refs

a ref is a pointer to the data part of a bits types or a struct type

Think of Ref like a C pointer in a struct — and it can be passed to C as-is since it points to the actual data part. However, if you look at the word before what the pointer points to, it is a valid Julia object too, so you can program with it in Julia and then just pass it to C without having to change anything. This provides maximum compatibility with C code. You could even write a linked list struct type in Julia and then just pass it to C code and have the C code traverse the linked list without any problems. Having C code pass structures back to Julia is more of a problem, however. Maybe it's a one-way street.

Structs are laid out exactly the way C lays them out; they can also be stored in concrete arrays without any tags, giving C compactness and efficiency. If you do Array(Foo,n) then it is initially just filled with junk like Array(Int32,n) would be. Structs are just plain old data. They can, however, have constructors.

Some issues we haven't fully thought through are fixed-size array fields and struct unions. But we can worry about those later.
Issue 1:
We need to be able to create a reusable memory module so that memory can be shared across all WASMModule.

An example code that would be valid for this use case may look like:

entry.js

import(“./abc.js”).then(abc => abc.doIt());

abc.js

import { duplicateText } from “./string.cpp”;

export function doIt() {
console.log(duplicateText(“Hello World”));
}

string.cpp

extern “C” const char* duplicateText(const char* text) {
int len = strlen(text);
char* newstr = new char[len*2 + 1];
strcpy(newstr, text);
strcat(newstr, text);
return newstr;
}

Issue 2:
Feature request

What is the expected behavior?

Webpack use JsonP to load other chunks. wondering whether we can load chunks by requireJs?

What is motivation or use case for adding/changing the behavior?

in my case, i want to share common chunks among different compilations, and assets from different compilations maybe used in the same page. since we use JsonP to load chunks, the output.chunkLoadingGlobal from certain compilation will be set in common chunk files. so between different compilations , we wont get common chunks exactly the same, and common share is failed.

How should this be implemented in your opinion?

maybe supply a option that splitChunks can be loaded by AMD, so the splitChunks dont have to set some logic related to the main chunk. so we can share among compilations

Are you willing to work on this yourself?

sorry，i would like to but maybe not qualified.
Issue 1:
VSCode Version:0.10.11

OS Version:Windows 10

Steps to Reproduce:

Open powershell and cd to a existing project folder

run "code ."

Try to rename an existing folder

VSCode return an error "Operation not permtited".

Issue 2:
VSCode Version: 0.10.11

OS Version: Windows 2012 R2

Steps to Reproduce:

Open project and do some work

Update a npm package. e.g. npm i -D typescript

It errors with:

npm ERR! Error: EPERM: operation not permitted, rename 'E:\hwong\p4\projects\pandash\node_modules\typescript' -> 'E:\hwong\p4\projects\pandash\node_modules\.typescript.DELETE'

Once I close VSCode and retry npm i -D typescript, it works fine.
Issue 1:
It's needed for things like an Any type, or safe dynamic loading.

It basically needs to be an generic intrinsic that returns some kind of data structure that uniquely identifies the generic type it has been instantiated with. Ideally it also includes information about the crate itself and it's meta data, so that two different named and/or versioned crates with the same type result in different TypeIDs.

Currently, the static pointers to type descriptors can be kinda used for this, but there is no guarantee that a type descriptor can not be duplicated, so using them for this purpose is incorrect.

Possible usage could look like this:

fn same_types<T, U>() -> bool {
let type_id_t = intrinsics::type_id::<T>();
let type_id_u = intrinsics::type_id::<U>();

type_id_t == type_id_u
}

fn main() {
assert!(same_types::<uint, uint>());

let type_id = intrinsics::type_id::<std::util::Void>();
assert!(type_id.path().to_str() == "<6df45e453>::std::util::Void");
assert!(type_id.crate().name() == "std");
assert!(type_id.crate().version() == "1.0");
assert!(type_id.crate().hash() == "6df45e453");

}

See also https://gist.github.com/Kimundi/6802198 for some prototype implementation of a TypeID using type descriptors.

Issue 2:
I discussed this briefly with @aturon, but I thought I would submit an issue to track the discussion.

I have been trying to implement an equivalent to Java's thread park / unpark using #[thread_local] but it requires being able to run some cleanup code when the thread exits. This currently isn't possible but should be with a little help from rust's thread support.
Issue 1:
I am using CentOS 7 and Anaconda 2. Recently, I updated the matplotlib package using conda, if I type

import matplotlib.pyplot as plt, the python interpreter will complain about

This application failed to start because it could not find or load the Qt platform plugin "xcb".

Reinstalling the application may fix this problem

I tried to remove pyqt and then reinstall the package, but that does not help. Finally I have to remove the

entire Anaconda install and reinstall Anaconda.

Is there a better way to solve this problem?

Issue 2:
When I try to run anaconda-navigator I get the following message:

This application failed to start because it could not find or load the Qt platform plugin "xcb"

in "".

Available platform plugins are: minimal, offscreen, xcb.

Reinstalling the application may fix this problem.

Aborted (core dumped)

I have no clue how to fix this and googling hasn't helped at all. This is my first install of Anaconda.
Issue 1:
Original

var constructorTestObject = new constructorTestClass(1, 'string', true, 2);
constructorTestObject.arg\u0031 = 1;
constructorTestObject.arg2 = 'string';
constructorTestObject.arg\u0033 = true;
constructorTestObject.arg4 = 2;

Expect

var constructorTestClass = (function () {
function constructorTestClass(arg1, arg\u0032, arg\u0033, arg4) {
this.arg1 = arg1;
this.arg\u0032 = arg\u0032;
this.arg\u0033 = arg\u0033;
this.arg4 = arg4;
}
return constructorTestClass;
}());

Actual

var constructorTestClass = (function () {
function constructorTestClass(arg1, arg\u0032, arg\u0033, arg4) {
this.arg1 = arg1;
this.arg2 = arg\u0032;
this.arg3 = arg\u0033;
this.arg4 = arg4;
}
return constructorTestClass;
}());

escapedIdentifiers.js

Issue 2:
Expected:

module moduleType\u0032 {
export var baz2: number;
}

//// [escapedIdentifiers.js]
var moduleType\u0032;
(function (moduleType2) {
})(moduleType\u0032 || (moduleType\u0032 = {}));

Actual:

module moduleType\u0032 {
export var baz2: number;
}

//// [escapedIdentifiers.js]
var moduleType2;
(function (moduleType\u0032) {
})(moduleType2 || (moduleType2 = {}));

And in property names:

// constructors
class constructorTestClass {
constructor (public arg1: number,public arg\u0032: string,public arg\u0033: boolean,public arg4: number) {
}
}

Expected:

// constructors
var constructorTestClass = (function () {
function constructorTestClass(arg1, arg\u0032, arg\u0033, arg4) {
this.arg1 = arg1;
this.arg\u0032 = arg\u0032;
this.arg\u0033 = arg\u0033;
this.arg4 = arg4;
}
return constructorTestClass;
}());

Actual:

// constructors
var constructorTestClass = (function () {
function constructorTestClass(arg1, arg\u0032, arg\u0033, arg4) {
this.arg1 = arg1;
this.arg2 = arg2;
this.arg3 = arg3;
this.arg4 = arg4;
}
return constructorTestClass;
}());

Failed tests:

escapedIdentifiers
Issue 1:
Bug report

Bug summary

The FigureCanvasBase defines the signatures of various event handlers, such as motion_notify_event(self, x, y, guiEvent=None). The qt and wx backends define their own handlers in a GUI-specific fashion (mouseMoveEvent(self, event) for qt (which is the only toolkit to use a subclassing approach), _onMotion(self, evt) + Bind(wx.EVT_MOTION, self._onMotion) for wx); as such, one can programatically trigger an event in a backend-independent fashion on a qt or wx canvas by calling its motion_notify_event method.

On the other hand, the gtk3 and tk backends, which use a registration approach like wx, redefine motion_notify_event to have a different signature that matches what the GUI toolkit expects. The signature of motion_notify_event is (self, widget, event) on gtk3, and (self, event) on tk.

Instead, these handlers should be made private (similarly to how the wx backend does), so that calling canvas.motion_notify_event(x, y) truly works in a backend-independent fashion. (Of course, a proper deprecation period can be implemented by temporarily making these methods take *args and dispatch accordingly.)

Matplotlib version

Matplotlib version: master/any

Issue 2:
FigureCanvas.motion_notify_event and other event handlers have different signatures across backends:

lib/matplotlib/backend_bases.py
1893: def motion_notify_event(self, x, y, guiEvent=None):

lib/matplotlib/backends/backend_gtk.py
321: def motion_notify_event(self, widget, event):

lib/matplotlib/backends/backend_tkagg.py
386: def motion_notify_event(self, event):

lib/matplotlib/backends/backend_gtk3.py
263: def motion_notify_event(self, widget, event):

Note that the default signature is written in such a way that one can programmatically trigger an event on the canvas without having to instantiate a native event object, which may be tricky (yes, you could always mock the event but that's obviously not optimal). It would be preferrable if all backends kept the same signature (which would probably involve breaking backcompat).
Issue 1:
Describe the bug

In the file 【axios/lib/core/mergeConfig.js】. the 'url ' has existed in 'valueFromConfig2Keys' and 'defaultToConfig2Keys'

By the way, I think the 'params' shoud exist in 'valueFromConfig2Keys' BUT NOT IN 'mergeDeepPropertiesKeys'

var valueFromConfig2Keys = ['url', 'method', 'data'];
var mergeDeepPropertiesKeys = ['headers', 'auth', 'proxy', 'params'];
var defaultToConfig2Keys = [
'baseURL', 'url', 'transformRequest', 'transformResponse', 'paramsSerializer',
'timeout', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName',
'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress',
'maxContentLength', 'maxBodyLength', 'validateStatus', 'maxRedirects', 'httpAgent',
'httpsAgent', 'cancelToken', 'socketPath', 'responseEncoding'
];

Issue 2:
Describe the bug

Axios depends on follow-redirects version 1.14.4.

There's a CVE that allows cookie exposure through redirects (described here). This CVE was fixed in follow-redirects v1.14.17.

To Reproduce

Run a vulnerability scan

Expected behavior

Depend on follow-redirects v1.14.17 or later.

Environment

Additional context/Screenshots

Related: follow-redirects/follow-redirects#183
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

Router.push has {scroll:false} option like Link component for back to previous scroll position

Current Behavior

Router.push has no {scroll:false} option

Steps to Reproduce (for bugs)

Context

Your Environment

Tech
Version

next

node

OS

browser

etc

Issue 2:
Hello. I try to insert a html comment in the _document, but when rendering a page, the comment falls into the text in body. Is there a solution to the problem?

Your Environment

Tech
Version

next
5.0.0

node
9.5.0

OS
win 10

browser
chrome 64

etc
Issue 1:
Hi guys, I have searched around existing Elvis Operator in TS and no result has found. That`s why I propose include this ability.

For example, like in C# or Groovy we can write next expression

let result = somevalue?.name;

it desugared to

var result = somevalue!==undefined?somevalue.name:undefined;

Is it good idea, or it has already discussed?

Issue 2:
Current Status

The TC39 proposal is now at stage 3 (🎉🎉🎉🎉🎉)

Implementation is in progress

You can expect this feature in TypeScript 3.7

We'll update here when it's available in a nightly build

Holding off on Optional Call until its semantics are clarified at committee

Open questions

What special-casing, if any, should document.all get?

C# and other languages have syntax sugar for accessing property chains where null (or in our case, undefined) might be encountered at any point in the object hierarchy.

var x = { y: { z: null, q: undefined } };
console.log(x?.y?.z?.foo); // Should print 'null'
console.log(x?.baz); // Still an error
console.log(x.y.q?.bar); // Should print 'undefined'

Need proposal on what exactly we should codegen, keeping in mind side effects of accessors.

Edit by @DanielRosenwasser February 27, 2018: This proposal is also called the "null propagation" operator.
Issue 1:
Hey

it might be a noob question but i tried using it in react native and all hell broke loose ... since all these are react components ... any idea why it cannot be used in react native? (i am a bit disappointed about this)

thanks

Rares

Issue 2:
version 0.14.1 produces this error:

Uncaught Error: Invariant Violation: addComponentAsRefTo(...): Only a ReactOwner can have refs. You might be adding a ref to a component that was not created inside a component's render method, or you have multiple copies of React loaded (details: https://fb.me/react-refs-must-have-owner).

If remove node_modules/material-ui/node_modules/react，the error isn't present.
Issue 1:
I've just changed a component from class Header extends React.Component to const Header = (props) => (/*JSX here*/ ).

Now one of my tests is failing because it can't find an instance of that component where there should be one. This line of code:

import Header from '../../header';
//...
let header = TestUtils.findRenderedComponentWithType(myRenderedPage, Header);
//I then need to simulate a click on a button that's inside the header component.

Gives this error:

Error: Did not find exactly one match for componentType:function Header(props) {
return _react2['default'].createElement(
//component implementation here
);
} (found 0)

I'm guessing it's because the function that I'm importing in my test file (i.e. Header) is not the same one that was used to create the component in my actual code, because each place that imports a function gets its own instance of it. Which means that the types never match according to TestUtils. And before it must have worked because ES6 classes are unique somehow, so you always import the same thing?

Is this expected behaviour when using functional components, or is there something I'm missing?

Issue 2:
I originally left a comment in #4936, but I felt this might be better as a separate issue.

I completely agree with the rationale behind no backing instances and no refs for stateless components. I want to use pure stateless components as much as possible.

However, I'm running into instances where testing stateless components gets tricky. For the most part, using the shallow renderer to render a stateless component has been fine. I can then make assertions on expected props and children. To reduce the duplication, I abstract out the shallow renderer process to a helper function.

When, I want to test events, though, I have to take a different route. If my component takes an onClick prop, then I wrap it in a class component, so I can access the DOM node to simulate my click event. Again, this isn't a huge deal because I can abstract out the wrap/render process into a helper function.

I bring all this up because I feel that it would be nice to have better facilities in TestUtils for stateless components. I don't think the answer is allowing ReactDOM.findDOMNode to work on stateless components because that opens up it to abuse in normal application code. Are you open to allowing extra functions in TestUtils to simplify the process of testing stateless components? Or am I creating a code smell in my testing?

I'd be happy to create a PR for TestUtils if you think some more helper functions for stateless components would be beneficial.
Issue 1:
npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:

npm ERR! https://npm.community

npm ERR! A complete log of this run can be found in:

npm ERR! C:\Users\abc\AppData\Roaming\npm-cache_logs\2020-11-03T13_58_52_163Z-debug.log

please help me to get fix this

Issue 2:
*Updated* as of 01/15/2021

Note: Please read this doc before filing a new issue.
Issue 1:
Code Sample, a copy-pastable example if possible

In [2]: df = pd.DataFrame([[1], [2], [3.3]])

In [3]: df.groupby([1,1,1]).agg(len)
Out[3]:
0
1 3.0

Problem description

The result of len should be int, regardless of the input. This is not specific to len: lambda x : 3 results in the same.

Expected Output

Compare to

In [4]: df.apply(len)
Out[4]:
0 3
dtype: int64

In [5]: df.groupby([1,1,1]).apply(len)
Out[5]:
1 3
dtype: int64

In [6]: df.astype(int).groupby([1,1,1]).agg(len)
Out[6]:
0
1 3

Output of pd.show_versions()

INSTALLED VERSIONS
------------------
commit: 9e7666d
python: 3.5.3.final.0
python-bits: 64
OS: Linux
OS-release: 4.9.0-3-amd64
machine: x86_64
processor:
byteorder: little
LC_ALL: None
LANG: it_IT.UTF-8
LOCALE: it_IT.UTF-8

pandas: 0.21.0.dev+265.g9e7666dae

pytest: 3.0.6

pip: 9.0.1

setuptools: None

Cython: 0.25.2

numpy: 1.12.1

scipy: 0.19.0

xarray: None

IPython: 5.1.0.dev

sphinx: 1.5.6

patsy: 0.4.1

dateutil: 2.6.0

pytz: 2017.2

blosc: None

bottleneck: 1.2.1

tables: 3.3.0

numexpr: 2.6.1

feather: 0.3.1

matplotlib: 2.0.2

openpyxl: None

xlrd: 1.0.0

xlwt: 1.1.2

xlsxwriter: 0.9.6

lxml: None

bs4: 4.5.3

html5lib: 0.999999999

sqlalchemy: 1.0.15

pymysql: None

psycopg2: None

jinja2: 2.9.6

s3fs: None

pandas_gbq: None

pandas_datareader: 0.2.1

Issue 2:
gbq.py currently returns an error if the result of a query is what Google considers to be 'Large'. The google api allows jobs to be sent with a flag to allow large results. It would be very beneficial to provide this as an option in the BigQuery connector.
Issue 1:
Summary

When configuring ROBOTSTXT_OBEY = True "delay requirement" Crawl-delay: is not considered.

Motivation

We want to fully comply with robots.txt requirements.

Workaround

Review robots.txt and checking delay config by hand.

Issue 2:
Crawl-Delay directive in robots.txt looks useful. If it is present the delay suggested there looks like a good way to adjust crawling rate. When crawling unknown domains it can be better than autothrottle.

A draft implementation: https://gist.github.com/kmike/76aca46cad18915b8695

Some notes:

it may be useful to respect only Crawl-Delay but not User-Agent rules, so this middleware is not inherited from an existing middleware;

Crawl-Delay maps nicely to Scrapy downloader slots; it is possible to implement this feature without per-request download delays (see #802) for which semantics are unclear;

currently RobotsCrawlDelayMiddleware doesn't use User-Agent because UA set by Scrapy is quite arbitrary, but I'm not sure this is a right thing to do;

instead of stdlib robotparser https://github.com/seomoz/reppy is used; robotparser can't parse robots.txt with Crawl-Delay properly.
Issue 1:
When i open a modal and click the data-dismiss="modal" button, it closes.

But when i reopen the modal and click the close button, nothing happens.

Issue 2:
Hi,

The code used on last Thursday worked fine. But after updated to latest code on Monday (GMT+8), the modal dialog when clicks to dismiss for seconds onward cannot be close.

I am checking on source code line 932, if I commented out this line then it is working again.

this.$element

.removeClass('in')

.attr('aria-hidden', true)

//.off('click.dismiss.modal')

Am I missing anything...?

Sorry for the grammar. Thanks.