WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Describe your issue.

About a year ago (commit 6b08e08) the optimize.tnc module gained some deprecation warnings, indicating that symbols of the form optimze.tnc.<SYM> were deprecated, use instead optimize.<SYM>. Since none of these symbols exist in optimize directly, doing as suggested generates ImportError.

Reproducing Code Example

$ python -c 'from scipy.optimize.tnc import RCSTRINGS ; from scipy.optimize import RCSTRINGS'

Error message

<string>:1: DeprecationWarning: Please use `RCSTRINGS` from the `scipy.optimize` namespace, the `scipy.optimize.tnc` namespace is deprecated.

Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: cannot import name 'RCSTRINGS' from 'scipy.optimize' (C:\Program Files\Python310\lib\site-packages\scipy\optimize\__init__.py)

SciPy/NumPy/Python version information

1.9.3 1.24.1 sys.version_info(major=3, minor=10, micro=7, releaselevel='final', serial=0)

Issue 2:
Original ticket http://projects.scipy.org/scipy/ticket/645 on 2008-04-19 by @nilswagner01, assigned to unknown.

>>> numpy.__version__
'1.1.0.dev5046'
>>> scipy.__version__
'0.7.0.dev4152'

======================================================================
FAIL: test_gammaincinv (test_basic.TestGamma)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/scipy/special/tests/test_basic.py", line 1056, in test_gammaincinv
assert_almost_equal(0.05, x, decimal=10)
File "/usr/lib/python2.4/site-packages/numpy/testing/utils.py", line 158, in assert_almost_equal
assert round(abs(desired - actual),decimal) == 0, msg
AssertionError:
Items are not equal:
ACTUAL: 0.050000000000000003
DESIRED: 0.0
Issue 1:
persist datasource implementation YAML in registry center like this is not good:

ds_0: !!org.apache.commons.dbcp.BasicDataSource
accessToUnderlyingConnectionAllowed: false
defaultAutoCommit: true
defaultReadOnly: false
defaultTransactionIsolation: -1
driverClassName: com.mysql.jdbc.Driver
initialSize: 0
logAbandoned: false
maxActive: 8
maxIdle: 8
maxOpenPreparedStatements: -1
maxWait: -1
minEvictableIdleTimeMillis: 1800000
minIdle: 0
numTestsPerEvictionRun: 3
password: ''
poolPreparedStatements: false
removeAbandoned: false
removeAbandonedTimeout: 300
testOnBorrow: false
testOnReturn: false
testWhileIdle: false
timeBetweenEvictionRunsMillis: -1
url: jdbc:mysql://localhost:3306/demo_ds_0
username: root
validationQueryTimeout: -1
ds_1: !!org.apache.commons.dbcp.BasicDataSource
accessToUnderlyingConnectionAllowed: false
defaultAutoCommit: true
defaultReadOnly: false
defaultTransactionIsolation: -1
driverClassName: com.mysql.jdbc.Driver
initialSize: 0
logAbandoned: false
maxActive: 8
maxIdle: 8
maxOpenPreparedStatements: -1
maxWait: -1
minEvictableIdleTimeMillis: 1800000
minIdle: 0
numTestsPerEvictionRun: 3
password: ''
poolPreparedStatements: false
removeAbandoned: false
removeAbandonedTimeout: 300
testOnBorrow: false
testOnReturn: false
testWhileIdle: false
timeBetweenEvictionRunsMillis: -1
url: jdbc:mysql://localhost:3306/demo_ds_1
username: root
validationQueryTimeout: -1

Because every time to load YAML from registry center and convert them to object will create new object of database connection pool, it will cost resource of memory and database connection.

It should persist configuration info only and convert to configuration object when loading from registry center.

So the tasks should be:

Define connection pool configuration object

Auto convert from connection pool configuration and connection pool, use reflection

Replace persist content of Sharding-JDBC's datasource node

Replace persist content of Sharding-Proxy's datasource node

Refactor DataSourceParameter, make consist with reflected connection pool configuration

Issue 2:
Brief description of bug

Self-Diagnosis

I have reviewed the documentation.

I have reviewed the Wiki.

I have tried to use the latest version.

I have searched the issues for an answer to my question.

I have searched the web for an answer to my question.

Environment

Operating System: win10

Plugin version: 5.1

Using the JDBC batch function, insert tens of thousands of data, when you do not use ShardingJDBC, it is less than 1s, and the total consumption of 5s after introducing ShardingJDBC
Issue 1:
The icons from material-ui-icon have no TS typings, so there's no way to import them without getting a (Could not find a declaration module for module FOOBAR) warning.

The only workaround is to use an old const AddIcon = require('material-ui-icons/Add').default;

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

Expected Behavior

Icons from the package should have a typing so TS doesn't generate a warning when importing them.

Current Behavior

Importing them generates a TS warning, having to resort to require

Steps to Reproduce (for bugs)

import AddIcon from 'material-ui-icons/Add';

Your Environment

Tech
Version

Material-UI
1.0-beta9

React
15

browser
Chrome 61

TS
2.5.2 on strict mode

Issue 2:
I am trying to change the default color for the palette for example:

import { red, grey } from 'material-ui/colors'

const theme = createMyTheme({
palette: {
primary: red['300'],
secondary: grey,
},
status: {
danger: 'orange',
},
});

notice the red['300']

I also get a warning on the console for this:

Warning: Material-UI: primary color is missing the following hues: 50,100,200,300,400,500,600,700,800,900,A100,A200,A400,A700,contrastDefaultColor
[1] See the default colors, indigo, or pink, as exported from material-ui/colors.

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

I see that in #7332 the palette a collection of hue but if I do the following:

const theme = createMyTheme({
primary: red['100'],
palette: {
secondary: grey,
},
status: {
danger: 'orange',
},
});

The color defaults to original theme color.

Expected Behavior

I expect it to change the color to the different hue

Current Behavior

when I have it like red['400'] or red[400] I get color is undefined

When I leave it as red it works perfect.

Steps to Reproduce (for bugs)

Using zeit's nextjs with typescript

Install material ui following the typescript tutorial

Try adding primary: red['300'] to your color palette

??

Context

I see that in theme variables guide you could add:

"primary": {
"50": "#e3f2fd",
"100": "#bbdefb",
"200": "#90caf9",
"300": "#64b5f6",
"400": "#42a5f5",
"500": "#2196f3",
"600": "#1e88e5",
"700": "#1976d2",
"800": "#1565c0",
"900": "#0d47a1",
"A100": "#82b1ff",
"A200": "#448aff",
"A400": "#2979ff",
"A700": "#2962ff",
"contrastDefaultColor": "light"
}

And it works, is there a tool to create such variables by selecting, for example, the red color?

Your Environment

Tech
Version

Material-UI
1.0.0-beta.24

React
16.2.0

browser
firefox, chrome

etc
Issue 1:
Maybe something like this?

var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) Object.defineProperty(d, p, Object.getOwnPropertyDescriptor(b, p));
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};

Or is there a better polyfill around the corner?

Issue 2:
The following code:

var i = 0, j = 0;

class Base {
get instanceAccessor() { return ++i; }
static get staticAccessor() { return ++j; }
toString = () => 'instance: ' + this.instanceAccessor + ' static: ' + Base.staticAccessor;
}

class Derived extends Base {
toString = () => 'instance: ' + this.instanceAccessor + ' static: ' + Derived.staticAccessor;
}

console.log('Base:\n%s\n%s\n%s', new Base(), new Base(), new Base());
console.log('Derived:\n%s\n%s\n%s', new Derived(), new Derived(), new Derived());

generates the following output (with the v1.3 compiler):

Base:
instance: 1 static: 2
instance: 2 static: 3
instance: 3 static: 4
Derived:
instance: 4 static: 1
instance: 5 static: 1
instance: 6 static: 1

Clearly Derived.staticAccessor is no longer an accessor, but a 'snapshot' of the value of Base.staticAccessor when the Derived constructor function called __extends.

Just wondering if this is the expected/correct behaviour?

PS. I haven't run into this problem 'in the wild' as I rarely use classes or accessors, but merely came across a rant/blog post about another compile-to-JS language doing something similar, and was curious how TypeScript handled it.
Issue 1:
MSRA's deformable Convolution Net needed~

i found that it had been implement in pytorch at :https://github.com/oeway/pytorch-deform-conv

is there any possiblity add this module into core of pytorch?

Issue 2:
🚀 Feature

Exactly as introduced in Microsoft paper : https://arxiv.org/pdf/1703.06211.pdf

Motivation

This operator has great advantages and abilities, and his popularity is increasing.

I don't think that any further explanation is needed.

BTW, other frameworks already have this operator, and I'm not talking about private people githubs..
Issue 1:
I'm submitting a ... (check one with "x")

[ x] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

I am upgrading from beta.17

When using http.get I can give options to access auth-restricted area of my website.

let headers = new Headers({
'Content-Type': 'application/json',
'Authorization': 'Basic *password*='
});
let options = new RequestOptions({ headers: headers });
return this.http
.get(this.callback, options)
.map(this.extractData);

Current behavior

Uncaught EXCEPTION: Error in backoffice/funeral-events/event-death.component.html:30:9

ORIGINAL EXCEPTION: TypeError: Cannot read property 'toString' of null

ORIGINAL STACKTRACE:

TypeError: Cannot read property 'toString' of null

at Request.Body.text (http://admin.localhost:4000/@angular/http/http.umd.js:1138:30)

at Request.getBody (http://admin.localhost:4000/@angular/http/http.umd.js:1720:33)

at Observable.eval as _subscribe

at Observable.subscribe (http://admin.localhost:4000/rxjs/Observable.js:52:62)

at Observable._subscribe (http://admin.localhost:4000/rxjs/Observable.js:109:28)

at MapOperator.call (http://admin.localhost:4000/rxjs/operator/map.js:54:23)

at Observable.subscribe (http://admin.localhost:4000/rxjs/Observable.js:52:38)

at HospitalsComponent.getHospitals (http://admin.localhost:4000/js/advitam-bo.js:1592:26)

at HospitalsComponent.ngOnInit (http://admin.localhost:4000/js/advitam-bo.js:1584:26)

at DebugAppView._View_EventDeathComponent1.detectChangesInternal (EventDeathComponent.ngfactory.js:535:87)

ERROR CONTEXT:

[object Object]

Expected/desired behavior

I should get an observable I can call subscribe on, and no exception like this one. I had a really hard time to understand why this code failed when upgrading.

What is strange is that when I remove

'Content-Type': 'application/json',

the call is made and I can extract my data.

So for now I just remove the application/json part. But I think it's a bug so I report it

Please tell us about your environment:

Angular version: 2.0.0-rc.5

Browser: [all | Chrome ]

Language: [ TypeScript last]

Issue 2:
I'm submitting a ... (check one with "x")

[x] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior

<a routerLink="/team" routerLinkActive #rla="routerLinkActive"></a>
<p *ngIf="rla.isActive">{{rla.isActive}}</p>
<router-outlet></router-outlet>

Throws an exception because the QueryList isn't set when the isActive method is checked here.

Expected behavior

Should be able to bind to isActive property

Minimal reproduction of the problem with instructions

Refer to above code snippet

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

Please tell us about your environment:

Angular version: 2.3.0

Browser: [all]

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

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

Environment

Dubbo version: 2.7.7

Operating System version: Mac

Java version: jdk 1.8

Steps to reproduce this issue

configure consumer in xml file

<dubbo:reference id="demoServieRpc" interface="com.aop.demo.demo.dubbo.DemoService" group="ceshi" retries="1">

<dubbo:parameter key="hide" value="1" hide="true"/>

</dubbo:reference>

public interface DemoService {

String sayHello();

}

define a filter in provider side

@activate(group = "provider")

public class HideParameterFilter implements Filter {

@OverRide

public Result invoke(Invoker<?> invoker, Invocation invocation) throws RpcException {

String hide = invoker.getUrl().getParameter("hide");

System.out.println("context" + RpcContext.getContext().getAttachment("hide"));

System.out.println("隐式参数" + hide);

return invoker.invoke(invocation);

}

}

and we also create a file named "org.apache.dubbo.rpc.Filter" under META-INF/dubbo folder, and file content is

hideParameterFilter=com.aop.demo.demo.dubbo.HideParameterFilter

configure service in provider side

<dubbo:service interface="com.aop.demo.demo.dubbo.DemoService"

ref="demoService" executes="10" group="ceshi" filter="hideParameterFilter"/>

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

Expected Result

then consumer invode sayHello(), in provider side, hideParameterFilter should print 1.

Actual Result

hideParameterFilter print null.

Just put your stack trace here!

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

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

SOFARegistry is a production-level, low-latency, high-availability service registry. Can we integrate with it?
Issue 1:
It is very common to add statistical annotations when comparing boxplots or barplots. See the screenshot for an example.

(A) Are there any plans to include a similar feature or (B) to at least facilitate the addition of such annotations?

So far, it's rather difficult to add such annotations because seaborn's boxplot() and barplot() don't expose the boxes and bars they draw. One could grab the matplotlib artists and try to reverse engineer the plot content, but this is way too difficult.

I've found statannot, a great attempt to work around this missing feature. But the solution re-implements some of seaborn's code and recreates the plots internally. Also, the annotation logic was not matching my needs perfectly. Before digging into statannot, I thought to check first why seaborn is not offering that feature in first place.

Thanks!

Issue 2:
Seems like there is something preventing heatmap annotation but I'm not sure what. To reproduce this just run the example here.

This is what I get:

I'm using the most up to date version of seaborn on conda (0.6.0).

Also in the example the ticklabels are horizontal. For some reason I have to rotate them 360 degrees to get them back horizontal.
Issue 1:
Does anyone thought about adding support for fluent API (something similar/same as Dart does)?

class A {
k = 10;
constructor(private n) {
}

run(): void { ... }

test(): void { ... }
}

new A(2)
..k = 20
..run()
..test();

this could be translated to:

var a = new A(2);
a.k = 20;
a.run();
a.test();

That would simplify a lot writing A class in a way fluent API is supported.

Issue 2:
With noImplicitAny: true set, the following should fail, but it doesn't:

const x = ({ f }) => 1;

TS 1.8.7
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. (Please ask any appropriate questions there).

Mention the authors (see Definitions by: in index.d.ts) so they can respond.

Authors: @....

Hello,

I just upgraded my @types/react from ^16.0.1 to ^16.0.2 and now I'm seeing this typing conflict with @types/react-router-dom version ^4.0.7. I am using CRA with the latest react-scripts-ts which I believe uses tsc version 2.4.2

.../node_modules/@types/react-router-dom/node_modules/@types/react/index.d.ts
(3558,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'td' must be of type 'DetailedHTMLProps<TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>', but here has type 'DetailedHTMLProps<TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>

@richseviora @onigoetz @DovydasNavickas @tkrotoff @morcerf @ericanderson @digiguru @pzavolinsky @bbenezech @tdreyno @tdreyno @johnnyreilly

@tkrotoff @huy-nguyen

Issue 2:
I tried using the @types/react 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. (Please ask any appropriate questions there).

Mention the authors (see Definitions by: in index.d.ts) so they can respond.

Authors: @richseviora

I am grateful to the team that maintains these - please keep up the good work.

The @types definitions for React 16 are getting into the wild too soon causing errors in TypeScript builds.

Even though I have projects that depend on "15.6.0" in order lock-in the version of @types/react, the "*" dependencies in projects like @types/react-dom and @types/react-virtualized seem to allow npm to resolve it all to 16.0.1, which causes builds to break.

React itself is pushing its @16.x.x builds to npm with the @next tag so that builds that want @latest don't inadvertently update to the React 16 betas. The matching @types should do the same.

Here is the resulting error (one for each React.DOM item):

ERROR in [at-loader] ./node_modules/@types/react/index.d.ts:3458:13

TS2403: Subsequent variable declarations must have the same type. Variable 'a' must be of type 'DetailedHTMLProps<AnchorHTMLAttributes, HTMLAnchorElement>', but here has type 'DetailedHTMLProps<AnchorHTMLAttributes, HTMLAnchorElement>'.

If I hand-edit package-lock.json to make sure that the various dependencies don't resolve to @types/react 16.x.x, the errors go away.
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

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

Environment

Dubbo version: 2.7.4

Operating System version: Darwin Kernel Version 18.7.0

Java version: 1.8.0_181-b13)

Steps to reproduce this issue

invoke StringUtils.split("d,1,2,4", 'a')

invoke "d,1,2,4".split("a")

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

Expected Result

StringUtils.split("d,1,2,4", 'a') should return ["d,1,2,4"] just like "d,1,2,4".split("a").

Actual Result

empty array.

Issue 2:
There is a difference between timeout and network timeout. In FailoverClusterInvoker, whether it is timeout or network timeout, it is ignored. If it is a business timeout, then two retry attempts will cause an avalanche effect. In FailfastClusterInvoker, there is no fault tolerance for network timeouts. If it is a network partition, the SLA will inevitably fall. I think the implementation of these two Invokers must include the processing of the network timeout, otherwise the implementation is not correct.

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

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

Environment

Dubbo version: 2.6.5

Operating System version: centos 7.2

Java version: 1.8

Steps to reproduce this issue

xxx

xxx

xxx

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

Expected Result

What do you expected from the above steps？

Actual Result

What actually happens?

If there is an exception, please attach the exception trace:

Just put your stack trace here!
Issue 1:
Description of the problem

I have an issue when I export a JSON file from Maya using the JSONExporter. I have been trying to export a character with morph targets, but can see no option for this on export and no field for 'Morph Targets' in the JSON file after export.

I have searched all over for an answer to this and posted a question to StackOverflow, still with no solution (http://stackoverflow.com/questions/36773360/how-do-i-export-a-json-file-with-morph-targets-from-maya) leading me to believe that this is an issue.

Another issue with the JSON export from Maya is that when I import my character into my Three.js scene and move a bone, there seems to be a duplicate mesh underneath that doesn't move. This does not occur when I export from Blender. I'm not sure if this issue is related to the one I am posting about.

Three.js version

Dev

r76

...

Browser

All of them

Chrome

Firefox

Internet Explorer

OS

All of them

Windows

Linux

Android

IOS

Issue 2:
Browserify

Moving to this architecture has advantages and disadvantages. Please add your thoughts.

Note: this does not require three.js consumers to use browserify.
Issue 1:
Starting the 0.3 pre-release binary on Mac 10.8.5 and also another machine with 10.9.1 just stops after the the call

"exec '/Users/.../.../julia.app/Contents/Resources/julia/bin/julia'

[Process completed]

0.2 works.

Issue 2:
Julia-0.3.0-prerelease-d2d9bd93ed for OSX 10.6 64-bit crashes instantly at launch on an iMac model iMac10,1 with Mac OS X 10.6.8 processor Intel Core 2 Duo 3.06 GHz

I don't have any debug tools on this machine but I think it is an illegal instruction.

Julia 0.2 for OSX 10.6 64-bit works.
Issue 1:
Preflight Checklist

I have read the Contributing Guidelines for this project.

I agree to follow the Code of Conduct that this project adheres to.

I have searched the issue tracker for an issue that matches the one I want to file, without success.

Issue Details

Electron Version:

11.0.0-beta1

Operating System:

Windows 10 (18363.1379)

Last Known Working Electron version:

10.4.0

Expected Behavior

Some events like input,keydown,keyup,compositionstart,compositionupdate,compositionend would be fired correctly.

Actual Behavior

Some input IMEs like Sogou Pinyin would never trigger the event like keydown when they are inputing.

To Reproduce

for windows:

download the Sogou IME installer from https://pinyin.sogou.com/

try to input Chinese words or Japanese words in integrated terminal of vscode

Screenshots

Additional Information

Issue 2:
Before I begin, I am aware that this is a duplicate of #4583, but I couldn't find sufficient troubleshooting info.

Reproductional Steps:

Download YakYak for Linux from the GitHub Repo and extract it to the /opt directory for installation

Open the Bash terminal and run yakyak. You can also use the run dialogue, but this allows for output.
Issue 1:
When a site redirects to an URL containing "/../", requests passes it verbatim instead of interpreting it.

Expected Result

requests should remove the ".." component and the previous component, by interpreting the ".." as meaning "parent folder".

All real browsers do it. libcurl/curl (and wget) does it too.

Test for example https://httpbin.org/redirect-to?url=https%3A%2F%2Fhttpbin.org%2Ffoo%2F%2E%2E%2Fget

Actual Result

requests fails to interpret it like other HTTP clients do and passes the "/../" verbatim, leading to errors on servers, ranging from 500 errors to 404 errors (as for httpbin).

Reproduction Steps

import requests
r = requests.get('https://httpbin.org/redirect-to?url=https%3A%2F%2Fhttpbin.org%2Ffoo%2F%2E%2E%2Fget')
print(r.status_code, r.url)

System Information

$ python -m requests.help

{
"chardet": {
"version": "3.0.4"
},
"cryptography": {
"version": ""
},
"idna": {
"version": "2.6"
},
"implementation": {
"name": "CPython",
"version": "2.7.15"
},
"platform": {
"release": "4.15.0-1-amd64",
"system": "Linux"
},
"pyOpenSSL": {
"openssl_version": "",
"version": null
},
"requests": {
"version": "2.18.4"
},
"system_ssl": {
"version": "1010008f"
},
"urllib3": {
"version": "1.22"
},
"using_pyopenssl": false
}

Issue 2:
Browser & other tools seem to ignore trailing dot in the URL. Unfortunately requests does not.

Compare

$ curl -s https://github.com/. -o /dev/null -w "%{http_code}"; echo
200

With

$ python -c 'import requests; print(requests.get("https://github.com/.").status_code)'
404