WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Functional component which looks like this

function DateTime({ dateTime }) {
return <span>{(dateTime || new Date()).toLocaleDateString(currentLocale)}</span>;
}

being included to any conventional component causes this component's test failing with

TypeError: inst.render is not a function
at ReactCompositeComponentMixin._renderValidatedComponentWithoutOwnerOrContext (node_modules/react/lib/ReactCompositeComponent.js:587:34)
at ReactCompositeComponentMixin._renderValidatedComponent (node_modules/react/lib/ReactCompositeComponent.js:607:32)
at ...

React 0.14.3, JEST 0.8.0, npm 3.5.2, node 5.2

Any suggestions on how to get rid of this?

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:
System information (version)

OpenCV => Master

Operating System / Platform => Any

Compiler => Any

Detailed description

I am using the FFV1 codec proivded by FFMPEG to record videos with VideoWriter. This defaults to using FFV1 version 3, however, I would like to change the codec used to FFV1 version 1. In plain FFMPEG this can be done by passing the -level 1 flag to the call.

Is it possible to do something like this through OpenCV? So far, I have not found anything useful regarding this.

I have asked the same question on the forum but have recieved no response. Hence I am asking here as well.

Issue 2:
I'm looking for guidance in regards to submitting a PR that will allow you to specify raw options (i.e preset) using av_dict_set. This applies to VideoCapture and VideoWriter The use case here being that you could support encoding videos targeting a specific device (i.e Apple iPad). Or tune encoding performance for a given codec i.e. VP9

Specify backend options by instantiating a new VideoWriter (!?)

VideoWriter::VideoWriter(const String& filename, int fourcc, double fps, Size frameSize, bool isColor=true, std::map<std::string, std::string> backendOptions)
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.1

Operating System version: Windows 10 专业版 1809 64位

Java version: 1.8.0.191

Nacos version: 1.1.3

Redis version: 5.0.6

Steps to reproduce this issue

1.使用nacos作为注册中心

dubbo.registry.protocol = nacos

dubbo.registry.address = 172.16.1.10:8848

启用meta data report

dubbo.metadata-report.address = redis://172.16.1.11:6379

设置registry simplified

dubbo.registry.simplified = true

Expected Result

nacos的服务列表中service名称正常显示

如：consumers:com.xxx.services.DubboServiceProviderA:1.0.0:

Actual Result

service名称丢失

consumers:::1.0.0:

Service详情中的元数据

path=com.xxx.services.DubboServiceProviderA
protocol=consumer
application=dubbo-consumer-a
release=2.7.4.1
dubbo=2.0.2
check=false
category=consumers
version=1.0.0

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.

Recently I have found that some PRs do not trigger codecov-io. But it seemed all PRs could trigger codecov-io previously. Does someone know why ?
Issue 1:
Question

For English only, other languages will not accept.

Before asking a question, make sure you have:

Googled your question.

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.

Issue 2:
Which version of ShardingSphere did you use?

ghcr.io/apache/shardingsphere-proxy:c9cc117c8f4b42c220f89c92851bf945c40c71b0 （helm cluster）

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

ShardingSphere-Proxy

Expected behavior

JDBC connection is normal.

Actual behavior

java.sql.SQLException: Unknown system variable 'query_cache_size'

Environment Configurations

props:
check-duplicate-table-enabled: false
check-table-metadata-enabled: true
kernel-executor-size: 16
max-connections-size-per-query: 1
proxy-backend-driver-type: JDBC
proxy-backend-executor-suitable: OLAP
proxy-backend-query-fetch-size: -1
proxy-frontend-executor-size: 0
proxy-frontend-flush-threshold: 128
proxy-frontend-max-connections: 0
proxy-hint-enabled: true
proxy-opentracing-enabled: false
show-process-list-enabled: false
sql-federation-enabled: false
sql-show: true
proxy-mysql-default-version: 8.0.21

My mysql cloud server version is 8.0.21-5

I need a little help.
Issue 1:
Hello.

I read https://docs.opencv.org/2.4/doc/tutorials/introduction/ios_install/ios_install.html#ios-installation for iOS development.

"sudo ln -s /Applications/Xcode.app/Contents/Developer Developer" fails on macOS Catalina as below.

ln: Developer: Read-only file system

Are there any workarounds?

Thanks.

Issue 2:
Instructions here have you creating a symbolic link between the Xcode developer folder and a root level developer folder. I don't know who thinks creating symbolic links to the root level is a good idea, but it breaks toolchains. For example, Android Studio, Google Cardboard, and a host of other products in the past have all placed symbolic links to various things at this location, with the same name.

This has never been an acceptable or good idea

On some earlier versions of MacOS, this is an actual folder with other tools located inside it.

Is there really no other way to make this work, other than a symbolic link to a 'Developer' folder at the root?

https://docs.opencv.org/master/d5/da3/tutorial_ios_install.html
Issue 1:
Version

2.6.11

Reproduction link

https://codepen.io/PatriciusSanctus/pen/PowdQpq

Steps to reproduce

Vue.component('func-parent', {
functional: true,
provide: () => ({ foo: 'bar' }) // || { foo: 'bar' }
})
Vue.component('func-child', {
functional: true,
inject: ['foo']
})

What is expected?

i want use injection in render() function

What is actually happening?

[Vue warn]: Injection "foo" not found

without DOM i can't send parent`s props to child for control child behavior (simple example: "grid-row -> grid-col")

Issue 2:
What problem does this feature solve?

being buffered by linting- / validation-tools about the invalid html

risking conflicts with future html / svg / MathML-specs

What does the proposed API look like?

short version

Instead of <… v-bind= …> use <… data-v-bind= …>

long version

I think I can add to the discussion on #273 but unfortunately I am not allowed to, so I opened this duplicate.

Why it buffers me much:

Any html-validator I know – Node.js, browser-plugin, IDE – thinks it is invalid and will tell me so.

Why it buffers me minor:

The specs gave us the data- for custom attributes so we can be sure not to conflict with native attributes in future specs. Since native attributes will be intepreted as is in source-code I think that JS will remove the invalid attributes is not a fitting argument.

custom attributes with data also have there own JavaScript API. I like how it differs the code from native attributes structurally and visually.

Why I think it's great

I think data- might be more bloated but that is a problem with the specs.
Issue 1:
MultinomialNB inherits coef_, intercept_ from BaseDiscreteNB defined by

def _get_coef(self):
return (self.feature_log_prob_[1:]
if len(self.classes_) == 2 else self.feature_log_prob_)

def _get_intercept(self):
return (self.class_log_prior_[1:]
if len(self.classes_) == 2 else self.class_log_prior_)

coef_ = property(_get_coef)
intercept_ = property(_get_intercept)

For binary classification, in order to be consistent with LinearClassifierMixin, the coef_(intercept_) should be the difference between second and first rows(elements)

Issue 2:
Hello. I think I found a mistake in brier_score_loss.

When you have a target = 1 and a prediction = 1 too, brier_score_loss should be 0 (best result), but it gives 1. Why is it happening? Because _check_binary_probabilistic_predictions gets target with only one class and convert it to 0. And metric calculates for target = 0 and prediction = 1. The same problem for target = 1 and prediction = 0. brier_score_loss is 0 (the best result), but it should be 1.

Examples:

Approx = [0, 0, 0, 0]

Target = [1, 1, 1, 1]

Weight = [1, 1, 1, 1]

brier_score_loss(Target, Approx, sample_weight=Weight)

result is 0

Approx = [1, 1, 1, 1]

Target = [1, 1, 1, 1]

Weight = [1, 1, 1, 1]

brier_score_loss(Target, Approx, sample_weight=Weight)

result is 1

Maybe we should fix it? Thank you.
Issue 1:
Had a ts-typings slack conversation with @mhegazy just now, regarding angular2 changing our typings to stop polluting the type-checker with our dependencies.

(details on that change: https://docs.google.com/document/d/1vgepQPkuHS4P3rzANQpoMIDIXe0Rl9Z2QyTtb8dpMoI/edit# )

While correct, this makes the getting started experience worse for Angular 2 users (many of whom are new to TypeScript and even JavaScript).

The major stumbling block is our dependency on es6-promise and es6-collections. For users with --target=es5 (the majority and default case), they need these two .d.ts files presented to the compiler. When --target=es6, we must avoid Duplicate identifier errors. We would prefer not to have the typings tool involved in our first five minutes, since we may lose some audience from the complexity and possibility of a mistake ruining their first app.

To make it really seamless we need two things:

If the user has a dependency on angular2, we want the compiler to add es6-promise and es6-collections typings. Imagine if angular2/package.json could declare "ambientTypingsDependencies": ["es6-promise","es6-collections"]. (We don't care what the right-hand side means - it could mean any typing discoverable by typings search but that has versioning issues. It should probably instead be done by splitting lib.es6.d.ts in the TypeScript distro into smaller files, then the option "typingDeps":["XXX"] causes reference to lib.XXX.d.ts and this does not become a general-purpose mechanism. This is really similar to --target=es5+es6-promise+es6-collections except that the user doesn't need to specify it, rather it appears via the dependency on angular2)

No Duplicate identifier errors based on the --target setting. This could be either a fix for #3215, or else avoiding the addition of those typings for --target=es6, maybe with something like "typingsDependencies__ButEs5Only": ["es6-promise","es6-collections"]

Issue 2:
Referring modules in CommonJS and AMD is quite different. AMD can understand CommonJS (relative paths) to some extent. CommonJS cannot understand AMD mostly.

So this is the problem. What do I need to do to share the same code base between CommonJS and AMD? What is a best practice for this?

Currently the options known to me are:

copying the code after compiling so the modules are where the module system can find them

running a path transformation routine over compiled code

Neither of those look right to me.
Issue 1:
What / Why

npm ERR! cb() never called! every time I try to install -g eslint

When

Everytime I try to install eslint via:

sudo npm install -g eslint

Where

$ npm -v
6.13.4
$ uname -a
Linux debian10 4.19.0-6-amd64 #1 SMP Debian 4.19.67-2+deb10u2 (2019-11-11) x86_64 GNU/Linux

How

Current Behavior

Installing eslintalways crashes with an error like this:

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! /root/.npm/_logs/2019-12-16T12_34_57_744Z-debug.log

I have tried npm cache clean --force but that did not help.

Steps to Reproduce

Update npm to latest and install eslint:

ms@debian10:~$ sudo npm install -g npm@latest
/usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm-cli.js
/usr/local/bin/npx -> /usr/local/lib/node_modules/npm/bin/npx-cli.js
+ npm@6.13.4
updated 1 package in 6.632s
ms@debian10:~$ sudo npm install -g eslint
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! /root/.npm/_logs/2019-12-16T12_34_57_744Z-debug.log

Expected Behavior

The package should be installed successfully

Who

n/a

References

Collection of similar issues in ticket #417

Issue 2:
Is there an existing issue for this?

I have searched the existing issues

This issue exists in the latest npm version

I am using the latest npm

Current Behavior

I'm trying to run:

npx https://gist.github.com/kentcdodds/bb452ffe53a5caa3600197e1d8005733

However I get:

sh: workshop-setup: command not found

For context, I use this for step of my workshop repositories. It checks that learner's machines have the correct versions of things installed, installs dependencies, and runs validation to make sure things were installed correctly. This worked before I updated to npx v8.

Expected Behavior

I expect the bin of the gist's package.json to be run as previous versions of npx as recent as v7.

Steps To Reproduce

In any environment

With any config

Run npx https://gist.github.com/kentcdodds/bb452ffe53a5caa3600197e1d8005733

See the above error

Environment

npm: latest

Node.js: latest

OS Name: any

System Model Name: any

npm config: any

(All my students are running into this. Even my CI: https://github.com/kentcdodds/react-fundamentals/runs/6989184285?check_suite_focus=true)
Issue 1:
VSCode Version:1.0.0

windows 10 home

Steps to Reproduce:

when i use shortcuts workbench.action.terminal.openNativeConsole i can only open a cmd but i can't open a powerhsell. is there a why to change the shell vsc open?

Issue 2:
VSCode Version: 0.10.11

OS Version: Win7Sp1

Steps to Reproduce:

Before collapsing; Doesn't matter how many newlines I use.

After collapsing; I really don't think it should collapse all the newlines, it looks horrible.
Issue 1:
I've seen several questions regarding deleting images but none of them are good for me.

Let's have a use case like this:

user adds an entity to a list ("favorites")

we load all the images for the entity and store them via Glide cache

now user can have the images even in offline mode

user removes entity from the list

Now what? I dont want to clear the cache completely (I want to keep all the images of the other favorites) but I don't want to keep images in cache I dont need (seems to pile up).

Havent checked the internal implementation but what stops from Glide to find and delete an image of a particular URL if you're hashing it anyway? In our case the URL's rarely if ever change too. I'm very happy with Glide but this seems to be an issue which doesnt sound hard to fix.

Any future plans to do something like this?

Thanks

Issue 2:
Hi,

How can I clear Glide's cache in case.

Clear all cache

Clear cache of an URL.
Issue 1:
Environment

Windows build number: Microsoft Windows [Version 10.0.18362.295]
Windows Terminal version (if applicable):Windows Terminal (Preview)
Version: 0.5.2661.0

Any other software?

Steps to reproduce

Run Windows Terminal (Preview)

In drop down menu press Settings

Running settings

Expected behavior

Showing settings for terminal.

Actual behavior

MS Visual studio is launching with argument /dde instad settings.

Issue 2:
Save opened tabs and locations of the tabs

After reopening Windows Terminal, it would be nice to have loaded tabs from previous closed session, also with locations. (Exactly like browsers can do that).
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.6.2

Operating System version: win7

Java version: 1.8

Step to reproduce this issue

阅读源码发现，每个代理实现类都会去判断默认实现

public class Protocol$Adaptive implements org.apache.dubbo.rpc.Protocol
{
public void destroy()
{
throw new UnsupportedOperationException(
"method public abstract void org.apache.dubbo.rpc.Protocol.destroy() of interface org.apache.dubbo.rpc.Protocol is not adaptive method!");
}

public int getDefaultPort()
{
throw new UnsupportedOperationException(
"method public abstract int org.apache.dubbo.rpc.Protocol.getDefaultPort() of interface org.apache.dubbo.rpc.Protocol is not adaptive method!");
}

public org.apache.dubbo.rpc.Invoker refer(java.lang.Class arg0, org.apache.dubbo.common.URL arg1)
throws org.apache.dubbo.rpc.RpcException
{
if (arg1 == null)
throw new IllegalArgumentException("url == null");
org.apache.dubbo.common.URL url = arg1;
String extName = (url.getProtocol() == null ? "dubbo" : url.getProtocol());
if (extName == null)
throw new IllegalStateException("Fail to get extension(org.apache.dubbo.rpc.Protocol) name from url("
+ url.toString() + ") use keys([protocol])");
org.apache.dubbo.rpc.Protocol extension = (org.apache.dubbo.rpc.Protocol) ExtensionLoader
.getExtensionLoader(org.apache.dubbo.rpc.Protocol.class).getExtension(extName);
return extension.refer(arg0, arg1);
}

public org.apache.dubbo.rpc.Exporter export(org.apache.dubbo.rpc.Invoker arg0)
throws org.apache.dubbo.rpc.RpcException
{
if (arg0 == null)
throw new IllegalArgumentException("org.apache.dubbo.rpc.Invoker argument == null");
if (arg0.getUrl() == null)
throw new IllegalArgumentException("org.apache.dubbo.rpc.Invoker argument getUrl() == null");
org.apache.dubbo.common.URL url = arg0.getUrl();
String extName = (url.getProtocol() == null ? "dubbo" : url.getProtocol());
if (extName == null)
throw new IllegalStateException("Fail to get extension(org.apache.dubbo.rpc.Protocol) name from url("
+ url.toString() + ") use keys([protocol])");
org.apache.dubbo.rpc.Protocol extension = (org.apache.dubbo.rpc.Protocol) ExtensionLoader
.getExtensionLoader(org.apache.dubbo.rpc.Protocol.class).getExtension(extName);
return extension.export(arg0);
}
}

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.

Environment

Dubbo version: 2.7.0-SNAPSHOT

Operating System version: mac os

Java version: 1.8

Step to reproduce this issue

Export a service

Make cluster = "forking"

Set Attachment in RpcContext

Do rpc invoke

Expected Result

The attachment in RpcContext has element.

Actual Result

The attachment in RpcContext don't have element.

The problem

I set attachment in the consumer side like this:

Then do rpc invoke,but the attachment is missing, (AbstractInvoker#invoke):

The problem is that ForkingClusterInvoker use threapool to do rpc invoke which will miss the threadlocal:
Issue 1:
Costin Leau opened SPR-4031 and commented

Right now, the beanAttributes group contains all the possible attributes used for a bean definition. However, namespaces that extend it, cannot reuse specific attributes and need to redefine them.

It would be nice to make the attributes global (while preserving the group) so that other NS can reuse their definitions.

Affects: 2.5 RC1

Issue Links:

#8708 make bean attributes global attributes inside spring-beans.xsd ("is duplicated by")

#8709 make bean attributes global attributes inside spring-beans.xsd ("is duplicated by")

Issue 2:
Rafał Piotrowski opened SPR-4935 and commented

I create simple bean which implements BeanFactoryPostProcessor and has dependent bean injected with @Autowired annotation. Injection does not occur.

Workaround is to use standard XML dependency injection.

Affects: 2.5.4

Attachments:

autowired_bug_2.zip (4.35 kB)

autowired_bug.zip (3.12 kB)

autowired.patch (1.32 kB)

mylyn-context.zip (2.29 kB)

Issue Links:

#12863 BeanFactoryPostProcessor not working for @Value ("is duplicated by")

Referenced from: commits a557878

0 votes, 6 watchers
Issue 1:
The bottom of the quickstart page has a link: Sharing your Localhost Server with Localtunnel to a page with old/outdated information on Localtunnel. (it is pointing to Localtunnel here, which doesn't exist).

Localtunnel now appears to be: here or on github here, and is installed via npm, not gem.

Issue 2:
At the Snippet 89 there is a link pointing to Localtunnel website. Unfortunelly, Localtunnel home page has changed from http://progrium.com/localtunnel/ to http://localtunnel.me/
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

Use new Next.js plugin for TypeScript

Current Behavior

Use a hack to transpile TypeScript to JSX and then let Next.js handle it.

Context

With the release of Next.js v5 the current example with TypeScript is outdated and can be simplified with the new next-typescript plugin.

Issue 2:
Bug report

Describe the bug

I was working on Next.js with Netlify CMS by using withAmp().

I add <style amp-custom> in Next Head but because of using withAmp() which (likely to) auto generate <style amp-custom> with blank style.

The result is duplication of using <style amp-custom> which will failed if used AMP validator.

I try searching around about adding CSS to withAmp and changing the 'auto added' amp-custom style but result was no luck, plus I can't seem to find a proper way to fix this and documentation about using withAmp properly (which is not on 'learn' and blog post) like: second parameter options of withAmp, does it only include { hybrid: true } ?

I can't seem to find a good documentation of withAmp and can't add <style amp-custom>

To Reproduce

I set up a repo if you wanted to properly take a look at:

git clone -b next-amp-issue-1 https://github.com/dusit-thani-core-team/Dusit-Blog

run yarn dev and go to localhost:3000, you should see there's two <style amp-custom="">, one contains style, one doesn't

yarn export, build failed as a result of failed AMP Validator from duplication of <style amp-custom>

Expected behavior

Is there a way to reduce <style amp-custom> to one, like adding a config to remove 'auto added' <style amp-custom> or add style to 'auto added' <style amp-custom>.

Screenshots

System information

OS: Windows 10

Tried on Chrome and Firefox.

Next.js 8.1.0, react: 16.8.6, react-dom: 16.8.6

Node 12.3.1, yarn 1.15.2

Additional context

Add any other context about the problem here.

Is there a clear documentation of using AMP with CSS or using AMP or just example using similar to this?