WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
I'm having a hard time narrowing a repro down for this and there seem to be a lot of required moving parts, so I'll try to give as much information as I can.

Relevant snippet of package.json:

"react": "15.0.0-rc.2", // repros w/ 0.14.7 as well
"react-dom": "15.0.0-rc.2",
"react-redux": "4.0.6",
"react-router": "2.0.0-rc5",
"react-router-redux": "4.0.0-rc.1",
"redux": "3.2.1",

Our routes look something like this:

<Route component={App}>
<Route component={LayoutNoFooter}>
<Route component={Page2} />
</Route>
<Route component={Layout}>
<Route component={Page1} />
</Route>
</Route>

LayoutNoFooter simply wraps Layout and passes an additional prop in.

I have this component in the Header, which is rendered by Layout: https://gist.github.com/aaronjensen/86c9643ecc53ad4e9006

Header is a react-redux connected component.

Page1 has a componentWillUnmount that dispatches an action that ultimately toggles searchMode in HeaderLogo.

When I go from Page1 to Page2 the invariant violation fires.

If I setTimeout the action dispatch in componentWillUnmount it appears to work fine. If I replace LayoutNoFooter with Layout it appears to work fine.

The invariant violation is on the img tag of the HeaderLogo

I've tried building a repro in codepen, with a similar structure setState calls to simulate react-router and redux, but I suspect they are doing more that would require me to actually build a repro w/ those technologies. If that would be helpful, I can work on it over time and hopefully repro it. Maybe there's enough info here, however. Thanks!

Issue 2:
I'd assumed that although there are different ways of creating components, the results would be the same and we'd be able to find them in the document in a uniform manner. When I try and use the test utility method scryRenderedComponentsWithType, it can't find components created using a pure function.

const Wrapper = React.createClass({
render() {
return <div>{this.props.children}</div>
}
});

const ErrorMessage = React.createClass({
render() {
return (
<div className="alert alert-danger">
<div>{this.props.error.toString()}</div>
</div>
);
},
});

const ErrorMessagePureFunction = ({ error }) => (
<div className="alert alert-danger">
<div>{error.toString()}</div>
</div>
);

describe('when rendering pure function components', () => {
it('should be able to find in the document', () => {
const output = Utils.renderIntoDocument(<Wrapper><ErrorMessage error={new Error('whoops')} /></Wrapper>);
expect(Utils.scryRenderedComponentsWithType(output, ErrorMessage).length).toBe(1); // succeeds

const outputWithPureFunction = Utils.renderIntoDocument(<Wrapper><ErrorMessagePureFunction error={new Error('whoops')} /></Wrapper>);
expect(Utils.scryRenderedComponentsWithType(outputWithPureFunction, ErrorMessagePureFunction).length).toBe(1); // fails
});
});

Should this test pass or is there another way of getting pure function components in the document?
Issue 1:
Challenge Waypoint: Passing Values to Functions with Arguments has an issue.

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36.

Simply running the code produces

function myFunction(a, b) {
console.log(a + b);
}

My code:

function myFunction(a, b) {
console.log(a + b);
}

myFunction(46, 2);

Issue 2:
Challenge Waypoint: Passing Values to Functions with Arguments has an issue.

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36.

Running tests outputs RangeError: Maximum call stack size exceeded and no tests pass.

My code:

// Example
function ourFunction(a, b) {
console.log(a - b);
}
ourFunction(10, 5); // Outputs 5

// Only change code below this line.

function myFunction(c, d){
console.log(c + d);
}
myFunction(2, 3);
Issue 1:
I am using multiprocessing to speed up ARUCO target detection on a raspberry pi.

(Keep in mind I have gotten this working using no multiprocessing.)

Using this code:

``

workers = []

for i in range(num_workers):

workers.append(Worker_Bee(tasks,results,i))

for worker in workers:
worker.start()

for i in range(20):
tasks.put(Image_Processor(vs.read()))
time.sleep(.5)

``

The Image_Processor looks at the frame vs.read() which is an image. The image processor tries to find targets in the image.

The worker process Image_Processor hangs on the following line:

corners, ids, rejectedImgPoints = aruco.detectMarkers(gray, self.aruco_dict, parameters=self.parameters)

where gray is the image vs.read()

I've check the arguments to aruco.detectMarkers and they seem to be correct (and as I've said before, I've ran this before without multiprocessing fine).

There is no error message, and looking at top, I see the python process spawning but then quickly going away. The parent process stays.

I've seen similar problems with openCV hanging on cvtColor or resize, but all of their problems are fixed for me (compiling with TBB options and such).

Any advice on how to get this working?

Issue 2:
System information (version)

OpenCV => 4.0.1

Operating System / Platform => Windows UWP (Hololens)

Compiler => Visual Studio 2017

CMake GUI => 3.14.2

Detailed description

Hi,

I am able to build the OpenCv 4.0.1 with extra contrib for x86 and x64 on desktop.

However failed for UWP platform on windows 10.

Steps to reproduce

Fallowed steps as per the below link.

https://medium.com/@rabbi.cse.sust.bd/how-to-build-opencv-for-universal-windows-platform-uwp-1a642ec09955

After fallowing steps CMake generate project successfully with extra contrib .

When try to build the solution the module compilation fails.
Issue 1:
I have a situation where a lot of shared libs are duplicated into separate chunks.

And I've noticed the docs are saying things like "Nothing will be merged into the entry chunk, so as not to impact initial page loading time" or "The entry chunks have higher priority for file size.".

But I'd like to move everything common into the entry chunk without manually putting require.ensures() into the entry chunk.

Also, a separate question, is there a way to say - load this specific module as a separate chunk (e.g. highcharts which is quite large). That way it's not in entry chunk, it's not duplicated in the other chunks, but it's loaded and cached on it's own. Note that in this case, I'm not using async require like require(["highcharts"]).

Issue 2:
I am using handlebars-loader and when node_modules folder is linked from some other location Handlebars.SafeString is loaded from two location moduleA.SafeString and moduleB.SafeString

bundle if you search inside of this bundle you will find two instance of function SafeString

I have created demo so you can reproduce

https://github.com/feroc1ty/webpack-symbolic-link-bug
Issue 1:
Hi community,

ShardingKeyGenerator configuration on spring namespace is like this now,

<bean id="incrementAlgorithm" class="org.apache.shardingsphere.shardingjdbc.spring.namespace.factorybean.KeyGenerateAlgorithmFactoryBean">
<property name="type" value="INCREMENT" />
</bean>

<sharding:key-generator id="orderKeyGenerator" column="order_id" algorithm-ref="incrementAlgorithm" />

The following configuration will hide KeyGenerateAlgorithmFactoryBean may be more simplified,

<sharding:key-generate-algorithm id="incrementAlgorithm" type="INCREMENT"/>

<sharding:key-generator id="orderKeyGenerator" column="order_id" algorithm-ref="incrementAlgorithm" />

But element <sharding:key-generate-algorithm> has some strange for keyGenerateAlgorithm itself has nothing to do with Sharding. Besides, the elements <key-generate-algorithm> and <key-generator> has a duplicate word.

Do we need to make any changes to simplify this configuration? I will really appreciate any help on this. Thanks.

Issue 2:
Bug Report

for example db1 db2，table order

sql has been routed to the target db2, limit 15,15.but also pagination revision,sql rewrite as limit 0,30

Which version of Sharding-Sphere did you use?

3.0.0 / 3.0.0.M4

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

use sharding-jdbc

Expected behavior

select * from order where storeId=5 and (barcode is not null or barcode !='') limit 15,15

Actual behavior

select * from order where storeId=5 and (barcode is not null or barcode !='') limit 0,30

Reason analyze (If you can)

ParsingSQLRouter->method route->isSingleRouting=false->this.processLimit->limit->rewrite

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

sql:

select * from order where storeId=5 and (barcode is not null or barcode !='') limit 15,15

select * from order where storeId=5 and (firstcode in (1,2,3) or secondcode in (1,2,3) or thirdcode in(1,2,3)) limit 15,15

config:

sharding.jdbc.config.sharding.tables.order.database-strategy.standard.sharding-column: storeId

Example codes for reproduce this issue (such as a github link).
Issue 1:
First of all, awesome to have a 1.0 release!

When trying to upgrade deno (from 1.0.0-rc2) on my machine, I did:

❯ deno upgrade
Checking for latest version
Local deno version 1.0.0-rc2 is the most recent release

Which did not update to 1.0.0. However, specifying the version explicitly works:

❯ deno upgrade --version 1.0.0
Version has been found
Deno is upgrading to version 1.0.0
downloading https://github.com/denoland/deno/releases/download/v1.0.0/deno-x86_64-unknown-linux-gnu.zip
downloading https://github-production-release-asset-2e65be.s3.amazonaws.com/133442384/82fcd800-9567-11ea-8ecb-c6c01343a23e?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20200514%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20200514T052221Z&X-Amz-Expires=300&X-Amz-Signature=bd0cbdf7593adcd17e37db34503b09b33ab03017bc10466555330d81fa1eef4f&X-Amz-SignedHeaders=host&actor_id=0&repo_id=133442384&response-content-disposition=attachment%3B%20filename%3Ddeno-x86_64-unknown-linux-gnu.zip&response-content-type=application%2Foctet-stream
Archive: /tmp/.tmpiBZHRh/deno.zip
inflating: deno
Upgrade done successfully

Shouldn't it check for any updated released version without providing explicit version flag?

If it's a bug, I would like to contribute a fix.

Issue 2:
> deno -V
deno 1.0.0-rc3
> deno upgrade
Checking for latest version
Local deno version 1.0.0-rc3 is the most recent release

deno upgrade --version 1.0.0 works
Issue 1:
This code: (http://is.gd/tif86V)

struct Iter<'a>(&'a mut Vec<int>);

impl<'a> Iterator<&'a mut int> for Iter<'a> {
fn next(&mut self) -> Option<&'a mut int> {
self.0.as_mut_slice().get_mut(0)
}
}

Produces this:

<anon>:5:16: 5:30 error: cannot infer an appropriate lifetime for autoref due to conflicting requirements
<anon>:5 self.0.as_mut_slice().get_mut(0)
^~~~~~~~~~~~~~
<anon>:4:5: 6:6 help: consider using an explicit lifetime parameter as shown: fn next(&'a mut self) -> Option<&'a mut int>
<anon>:4 fn next(&mut self) -> Option<&'a mut int> {
<anon>:5 self.0.as_mut_slice().get_mut(0)
<anon>:6 }

I don't think there is anything unsafe with what I want to do (it's the exact same signature as MutItems).

This code does work but is incompatible with the Iterator trait definition: (http://is.gd/rMwbe6)

struct Iter<'a>(&'a mut Vec<int>);

impl<'a> Iter<'a> {
fn next<'c: 'a>(&'c mut self) -> Option<&'a mut int> {
self.0.as_mut_slice().get_mut(0)
}
}

Sorry if this is a duplicate.

Issue 2:
On top of the new I/O subsystem (#4248) build an easy to use HTTP client and server library. I want to demo something very simple to use like Go's HTTP library. Needs a lot of research still to figure out what to do here.
Issue 1:
It looks like the definitions for @types/history are wrong/duplicated. At the end of the file:

export interface Module {
createHistory: CreateHistory<History>;
createHashHistory: CreateHistory<History>;
createMemoryHistory: CreateHistory<History>;
createLocation(path?: Path, state?: LocationState, action?: Action, key?: LocationKey): Location;
useBasename<T>(createHistory: CreateHistory<T>): CreateHistory<T>;
useBeforeUnload<T>(createHistory: CreateHistory<T>): CreateHistory<T & HistoryBeforeUnload>;
useQueries<T>(createHistory: CreateHistory<T>): CreateHistory<T & HistoryQueries>;
actions: {
PUSH: string;
REPLACE: string;
POP: string;
};
}

export { default as createHistory } from "history/lib/createBrowserHistory";
export { default as createHashHistory } from "history/lib/createHashHistory";
export { default as createMemoryHistory } from "history/lib/createMemoryHistory";
export { default as createLocation } from "history/lib/createLocation";
export { default as useBasename } from "history/lib/useBasename";
export { default as useBeforeUnload } from "history/lib/useBeforeUnload";
export { default as useQueries } from "history/lib/useQueries";
import * as Actions from "history/lib/actions";
export { Actions };

It looks like functions like createHistory are tried to exported twice, but the second way is not correct, because history/lib/createBrowserHistory is not there.

Issue 2:
My dev environment:

OS X El Capitan 10.11.6

MacBook Air

VSC Version 1.12.2 (1.12.2)

Node: v7.4.0

We are trying to update our socket.io versions in our Angular app so that they match those we're using on the server. Currently, when I hover over our dependencies in our package.json file, this is what I see:

TypeScript definitions for socket.io

Latest version: 1.4.29

The server socket.io version we're using is 2.0.1.

Is there a timeline on having this updated to be compatible with 2.0.1?
Issue 1:
Hello,

When writing some after_flush code we noticed a strange behavior, where the last linked child object is duplicated in the parent object's association proxy. This association proxy is a many to many.

Here's a little script to reproduce

import sqlalchemy as sa
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.ext.associationproxy import association_proxy

engine = sa.create_engine('sqlite:///:memory:')
Base = declarative_base()
Base.metadata.bind = engine
Session = sa.orm.sessionmaker(autocommit=False, autoflush=False, bind=engine)
session = sa.orm.scoped_session(Session)

class Teacher(Base):
__tablename__ = 'teacher'
id = sa.Column(sa.Integer, primary_key=True)

class Class(Base):
__tablename__ = 'class'

teacher = sa.orm.relationship('Teacher', backref='classes')
teacher_id = sa.Column(sa.Integer, sa.ForeignKey('teacher.id'), primary_key=True)

student = sa.orm.relationship('Student', backref='classes')
student_id = sa.Column(sa.Integer, sa.ForeignKey('student.id'), primary_key=True)

class Student(Base):
__tablename__ = 'student'

id = sa.Column(sa.Integer, primary_key=True)

teachers = association_proxy('classes', 'teacher')

@sa.event.listens_for(Session, 'after_flush')
def report_teachers(session, flush_context):
for target in set(session.new).union(session.dirty):
if isinstance(target, Student):
print(target.teachers)
print([t.id for t in target.teachers])

Base.metadata.create_all()

student = Student()

french_class = Class(teacher=Teacher(), student=student)
session.add(french_class)
session.commit()

dutch_class = Class(teacher=Teacher(), student=student)
session.add(dutch_class)
session.commit()

When running this script, the result is

❱ python test.py
[<__main__.Teacher object at 0x7f6df50bb6d8>]
[1]
[<__main__.Teacher object at 0x7f6df5048cf8>, <__main__.Teacher object at 0x7f6df5048da0>, <__main__.Teacher object at 0x7f6df5088978>]
[1, 2, 2]

As you can see, after the first commit, the list only has the teacher for the french class, while after the second commit, the list has one teacher for the french class, and a duplicated teacher for the dutch class (same database id, different internal python id).

Doing a session.refresh(target) within the after flush is a current workaround.

Versions this was reproduced on:

1.2.0b3

current master branch (3836a90)

Python version is 3.6.7

To allow Mr. Bayer's fun on Link's awakening, I will investigate further and see if I can propose a fix at a later date ;)

Issue 2:
Migrated issue, originally created by Anonymous

In code like this:

Index('ix_foo',
sometable.c.somecol,
postgres_where=sometable.c.type=='somevalue')

I expect the index creation DDL to be:

CREATE UNIQUE INDEX ix_foo ON sometable (somecol) WHERE sometable.type = 'somevalue'

but it is:

CREATE UNIQUE INDEX ix_foo ON sometable (somecol) WHERE sometable.type = somevalue

So the string literal is not quoted, as it is when I specify WHERE conditions in queries. This violates the principle of least astonishment.

As a workaround, nested quoting ("'base'") works.

Attachments: 0001-test_create_partial_index_quoting.diff
Issue 1:
ISSUE TYPE

Feature Idea

COMPONENT NAME

ansible-playbook

ANSIBLE VERSION

ansible 2.1.3.0
config file =
configured module search path = Default w/o overrides

CONFIGURATION

Defaults from pip

OS / ENVIRONMENT

N/A

SUMMARY

When deprecated features disappear, the results of a playbook may change and yet not fail.

Users would benefit from a mode in ansible-playbook where deprecated tasks would fail, so as to identify them early on.

For example, in Ansible up to 2.1.x, this fake playbook should adds 4 configuration lines, but in 2.2 it would silently changes to adding a bogus line "my_config".

---
- hosts: bla
vars:
my_config:
- "vx200.configure=automagic"
- "autofibulator.variation_mode=static"
tasks:
- lineinfile:
dest=/etc/some-critical-file
line: "{{ item }}"
with_flattened:
- my_config
- ['kevo=levo', 'ano=revo']

STEPS TO REPRODUCE

The default would remain to not throw errors on deprecation.

Deprecation errors would be enabled/disabled through :

environment variable ANSIBLE_ERROR_ON_DEPRECATION

configuration option error_on_deprecation

command-line option --error-on-deprecation

EXPECTED RESULTS

Playbooks plainly fail when they are not upgrade-proof regarding Ansible.

ACTUAL RESULTS

Playbooks run with deprecation warnings which are non-blocking and may be difficult to spot in the output flow.

Issue 2:
Greetings!

I'm using the path property in my galaxy_roles.yml file to specify where the roles should be installed. Likewise:

---
- src: modX
- path: pathX

Unfortunately, modX dependencies are not installed in pathX - the system default is used instead (or - in recent enough ansibles, ansible.cfg roles_path should be used here).

This is inconsistent with the behavior of ansible-galaxy install modX -p pathX which will install dependencies in pathX as well.

Is this a bug?
Issue 1:
Context:

Playwright Version: ^1.12.2 (@playwright/test)

Operating System: macOS

Node.js version: v14.17.0

Browser: Chromium

Extra:

Code Snippet

Help us help you! Put down a short code snippet that illustrates your bug and

that we can run and debug locally. For example:

import { test, expect } from '@playwright/test';

test.describe('Some describe', () => {
test('some test title', async ({ page }) => {
const pageTitle: string | null = await page.textContent('#sample');
expect(pageTitle).toBe('Expected element text');
});
});

Describe the bug

All I do is just trying to assert text content of a DOM element. I'm unable to do so as the type the expect function returns does not seem to be correct.

Issue 2:
Hi !

In vscode, the expect library imported from '@playwright/test' proposes only a few choices:

And using the available assertions displays an error. For example:

import { expect } from '@playwright/test';
expect(...).toBe(...)
// Property 'toBe' does not exist on type 'Matchers<string>'.ts(2339)
Issue 1:
In this link http://jsfiddle.net/tZXTv/

1 -

has two classes: collapse navbar-collapse

2 -

the class "collapse" has his position changed, and a class "in" is add

3 - If resize the screem without click on this

this classes "navbar-collapse collapse in" aren't change

and why? because if i want to style the collapsed menu i need some class of reference, the only one is "in", and if this class is not removed i dont know what I can use a reference to style.

Issue 2:
Currently this is duped a few times over: #11243, #11301, and #11382—but the issue is described differently everywhere. This should clear things up and help us figure out what to do to fix it.

Problem

Starting with a narrow viewport, one with the collapsed navbar contents, open the menu, then resize to full-width with all navbar contents visible. Shrinking the viewport back to the narrow size still shows the un-collapsed navbar contents.

(Btw, this is currently visible in the docs.)

Why this happens

We're using the collapse plugin to do this. Right now it has no idea about the dimensions of your viewport. All it does is toggle the appropriate classes based on clicks—click to open, click to hide.

Our CSS utilizes those changes in classes from the plugin to style the menu accordingly. The CSS has no way to remove the .in class that the JS adds.

Fix

We need the JS plugin to be updated to detect the viewport changes and remove the class. I don't know when or how this could happen, but that's the only solution. Will need to hear from @fat or anyone else with more JS-fu.
Issue 1:
I need to put my application in background (and not close it) when users click back.

Currently we use something like:

@Override
public void onBackPressed() {
moveTaskToBack(true);
}

The problem is by doing so the back event into the flutter app is broken.

FlutterActivity already override this method to manage the back event.

public void onBackPressed() {
if (!this.eventDelegate.onBackPressed()) {
super.onBackPressed();
}
}

So I would like to do:

@Override
public void onBackPressed() {
if (!this.eventDelegate.onBackPressed()) {
moveTaskToBack(true);
}
}

but not possible as this.eventDelegate is only private. I have no way of doing this for now except copy/paste the FlutterActivity code.

Issue 2:
I'm trying to "stress test" the rendering performance of a little "painted" animation. When I display only a single instance of this animation, everything is fine,

but if I duplicate it, some visual glitches appear.

Here's a record showing the problem : http://www.rxlabz.com/labz/glitches.mov

Most of the time the glitch appears at the end of animation during the check mark drawing, but it changes sometimes

video2 : http://www.rxlabz.com/labz/glitches_2.mov

Some more informations :

Everything is drawn with a drawPath instruction

I use a stateful widget which uses an animation controller to know when to send the new drawing commands to it's CustomPaint child

this problem appears in release mode, on iOS and android

sometimes, after few seconds everything is back to normal on each instance, sometimes not.

Any idea on how I can try to prevent/avoid this ?

Flutter Doctor

[✓] Flutter (on Mac OS X 10.12.6 16G1036, locale fr-FR, channel master)
• Flutter at /Users/rxlabz/dev/tools/flutter
• Framework revision 928d2cc764 (3 days ago), 2017-11-17 15:45:27 -0800
• Engine revision 4733e33737
• Tools Dart version 1.25.0-dev.11.0

[✓] Android toolchain - develop for Android devices (Android SDK 25.0.3)
• Android SDK at /Users/rxlabz/Library/Android/sdk
• Platform android-25, build-tools 25.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)

[✓] iOS toolchain - develop for iOS devices (Xcode 9.0)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 9.0, Build version 9A235
• ios-deploy 1.9.2
• CocoaPods version 1.2.0

[✓] Android Studio (version 2.3)
• Android Studio at /Applications/Android Studio.app/Contents
• Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)

[✓] IntelliJ IDEA Ultimate Edition (version 2017.2.3 EAP)
• Flutter plugin version 19.1
• Dart plugin version 172.3317.48

[✓] Connected devices
• A3 A40 • 622004271815 • android-arm • Android 6.0 (API 23)
• iPhone 8 • 3550BDC4-7E32-43DB-BBB3-3A8B4D7254D9 • ios • iOS 11.0 (simulator)