WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Hi,

I found problem in

parentLocation = self.locations[parentTask.locationID]

In python script:

https://github.com/opencv/opencv/blob/master/modules/ts/misc/trace_profiler.py

Read the documentation to test with the latest developer build.

Check if other person has already created the same issue to avoid duplicates. You can comment on it if there already is an issue.

Try to be as detailed as possible in your report.

Report only one problem per created issue.

System information (version)

OpenCV => 3.4.1

Operating System / Platform =linux 64 Bit

Compiler =GCC

-->

Detailed description

I found problem in

parentLocation = self.locations[parentTask.locationID]

In python script:

https://github.com/opencv/opencv/blob/master/modules/ts/misc/trace_profiler.py

first I found problem in read file string

https://github.com/opencv/opencv/blob/3.4.1/modules/ts/misc/trace_profiler.py#L164

This I fix by put whole name in variable:

filename = 'OpenCVTrace-000.txt'; before was '/OpenCVTrace-000.txt'

But after that I still get error

Traceback (most recent call last):

File "trace_profiler.py", line 442, in

trace.process()

File "trace_profiler.py", line 287, in process

parentLocation = self.locations[parentTask.locationID]

KeyError: 1

It show that dict is empty.

Test report file can by find in attachment.

-->

used command:

python trace_profiler.py /home/root/opencv_dnn_bench/trace/OpenCVTrace.txt

OpenCVTrace.txt

OpenCVTrace-000.txt

Issue 2:
System information (version)

OpenCV => 4.2.0

Operating System / Platform => Ubuntu 18.04, macOS 10.14, Windows 64 Bit

Compiler => gcc-7.2, Apple Clang XCode 11.3, Visual Studio 2017, Visual Studio 2019

Detailed description

I've found that some of my non-OpenCV thirdparty libraries are copied to the installation directory into lib/opencv4/3rdparty/. This is breaking my build because I can no longer resolve duplicate linking. Some libraries from lib/opencv4/3rdparty/ where copied from lib/ and exist now twice under different names. When they get pulled into the build by different dependencies then I can not easily resolve the duplication.

What is the purpose of lib/opencv4/3rdparty/? And can it be disabled/avoided/removed?
Issue 1:
Q
A

Bug report?
yes

Feature request?
no

BC Break report?
no

RFC?
no

Symfony version
master (likely 3.x and 2.x as well)

Consider a basic data class:

class MyClass
{
private $value = '';

public function setValue(string $value)
{
$this->value = $value;
}

public function getValue(): string
{
return $this->value;
}
}

Map a basic form with the field optional:

$form = $this->createFormBuilder(new MyClass())
->add('value', TextareaType::class, [
'required' => false,
])
->add('create', SubmitType::class)
->getForm();
// etc.

Submit the form with the field empty and we get an InvalidArgumentException:

Expected argument of type "string", "NULL" given

in vendor/symfony/symfony/src/Symfony/Component/PropertyAccess/PropertyAccessor.php at line 275

As the value itself is empty, the Form sets its $modelData to NULL, while $normData and $viewData are correctly the empty string. PropertyPathMapper::mapFormsToData subsequently attempts to set the property to null, which would have been fine if not for the type hinting in the setter, causing the exception.

edit: if I remove the type hint from the setter I then get a Doctrine error as the field itself is mandatory yet NULL was inserted. I most definitely want users to be able to have the empty string in there, not null. So this is in the Form component, not the PropertyAccess end doing as it's told.

Issue 2:
Q
A

Bug report?
yes

Symfony version
3.2.4

Hello.

I am getting null value after passing empty string to symfony form field.

After defining empty_data in form builder, the problem has gone:

$builder
->add('name', TextType::class, [
'empty_data' => '',
])

But documentation claims that empty_data is empty string ('') by default. So either the documentation should be changed or behavior of form field type.

Link to docs: http://symfony.com/doc/current/reference/forms/types/text.html#empty-data

Thanks.
Issue 1:
Following https://github.com/zeit/next.js/tree/v3-beta/examples/with-styled-components

Then I get this error when launching

Nesting detected at 1:757. Unfortunately nesting is not supported by styled-jsx.

500
Internal Server Error.
Nesting detected at 1:757. Unfortunately nesting is not supported by styled-jsx.
Error: Nesting detected at 1:757. Unfortunately nesting is not supported by styled-jsx.
at Function.disableNestingPlugin (/node_modules/styled-jsx/dist/lib/style-transform.js:19:13)
at proxy (/node_modules/stylis/stylis.js:1133:30)
at compile (/node_modules/stylis/stylis.js:679:10)
at compile (/node_modules/stylis/stylis.js:319:17)
at stylis (/node_modules/stylis/stylis.js:1270:16)
at stringifyRules (/node_modules/styled-components/lib/utils/stringifyRules.js:27:31)
at ComponentStyle.generateAndInjectStyles (/node_modules/styled-components/lib/models/ComponentStyle.js:59:24)
at StyledComponent.generateAndInjectStyles (/node_modules/styled-components/lib/models/StyledComponent.js:121:38)
at StyledComponent.componentWillMount (/node_modules/styled-components/lib/models/StyledComponent.js:150:39)

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

I'm playing with next 3.2.2 and am quite enjoying its simplicity and the plentifulness of examples. Awesome experience, even compared with other boilerplates I've used before!

After building a simple demo website based on the with-apollo example, I noticed a behaviour previously mentioned in #1888/#2305 and fixed in #2437.

Expected vs Current Behavior

My sandbox project has got three pages: index, about and _error, all wrapped into withData HOC that helps init and reuse the apollo client. There is also a custom _document page that enables i18n and styled-components. When I navigate between index and about, GraphQL cache persists and so there is no loading... message showing up after the data has been loaded for the first time (no matter if on the server or on the client). However, when visit a 404 page and then return to an existing page, the redux cache appears to be reset and so apollo does the data fetching again. Also when I click on a link that leads to a 404 error, Chrome's history of network requests wipes out, thus suggesting that the 404 page shows up after a full reload.

I deployed a built version of my experiment to https://example.com/, but this URI is likely to be deleted or replaced in a few days. Quite an ugly demo, but should be enough to reproduce what I mean. The sources are in a private gitlab repo, but I can upload them to github if necessary.

How could I avoid this refresh behaviour and thus provide future users with a smoother UX?

Your Environment

Tech
Version

next
3.2.2

node
8.5.0

OS
macos / alpine linux (docker)

browser
latest chrome
Issue 1:
What is not entirely clear to me in the "with-redux" example, how would I go about having an action dispatched on server render, that consists of thunks that fetch data from some api?

Issue 2:
Bug report

Describe the bug

If a module used in a polyfill becomes a separate chunk, any page that doesn't import the same module will break in production, because the chunk is added to main.js webpack dependencies but isn't added as a script tag.

To Reproduce

I've created a repo which reproduces the bug: https://github.com/jmswrnr/next-9.2.0-chunk-bug

The bug only occurs in a production build, so: npm run build and npm run start

http://localhost:3000/ - Simple page - fails mount

http://localhost:3000/dynamic - Dynamic import with { ssr: false } - fails mount

http://localhost:3000/import - Import polyfill dependency - successfully mounts

Expected behavior

All pages should trigger useEffect and display Mounted: true

System information

OS: Windows

Browser: chrome

Version of Next.js: 9.2.0 and 9.2.1-canary.2

Additional context

Using polyfill method from example: https://github.com/zeit/next.js/blob/master/examples/with-polyfills/next.config.js
Issue 1:
Code Sample, a copy-pastable example if possible

python3 setup.py test

Problem description

table_schema (unittest.loader._FailedTest) ... ERROR

json (unittest.loader._FailedTest) ... ERROR

normalize (unittest.loader._FailedTest) ... ERROR

======================================================================

ERROR: table_schema (unittest.loader._FailedTest)

AttributeError: module 'pandas.io.json' has no attribute 'table_schema'

======================================================================

ERROR: json (unittest.loader._FailedTest)

AttributeError: module 'pandas.io.json' has no attribute 'json'

======================================================================

ERROR: normalize (unittest.loader._FailedTest)

AttributeError: module 'pandas.io.json' has no attribute 'normalize'

Note: We receive a lot of issues on our GitHub tracker, so it is very possible that your issue has been posted before. Please check first before submitting so that we do not have to handle and close duplicates!

Note: Many problems can be resolved by simply upgrading pandas to the latest version. Before submitting, please check if that solution works for you. If possible, you may want to check if master addresses this issue, but that is not necessary.

For documentation-related issues, you can check the latest versions of the docs on master here:

https://pandas-docs.github.io/pandas-docs-travis/

If the issue has not been resolved there, go ahead and file it in the issue tracker.

Expected Output

Output of pd.show_versions()

[paste the output of pd.show_versions() here below this line]

Issue 2:
Code Sample

import pandas as pd
start_end_idx = pd.IntervalIndex.from_arrays(start, end)
start_end_idx.name = 'port_time'
mm = mm.set_index(['imo','port_id', start_end_idx])
global_bins = mm.index
global_bins.get_loc((8801527, 5610.0, pd.to_datetime('2016-10-16 16:57:44.316')))

/anaconda3/envs/mariquant/lib/python3.6/site-packages/pandas/core/indexes/interval.py in _engine(self)
283 @cache_readonly
284 def _engine(self):
--> 285 return IntervalTree(self.left, self.right, closed=self.closed)
286
287 @property

pandas/_libs/intervaltree.pxi in pandas._libs.interval.IntervalTree.__init__()

KeyError: ('datetime64[ns]', 'right')

Problem description

It is impossible to use non unique IntervalIndex with datetimes as start-end points. Both index.get_loc and DataFrame.loc produce the same error in IntervalTree.

Expected Output

Output of pd.show_versions()

[paste the output of pd.show_versions() here below this line]

INSTALLED VERSIONS

commit: None

pandas: 0.22.0

pytest: None

pip: 9.0.1

setuptools: 38.5.1

Cython: None

numpy: 1.14.2

scipy: 1.0.0

pyarrow: None

xarray: 0.10.2

IPython: 6.2.1

sphinx: 1.7.1

patsy: 0.5.0

dateutil: 2.7.0

pytz: 2018.3

blosc: None

bottleneck: 1.2.1

tables: None

numexpr: None

feather: None

matplotlib: 2.2.2

openpyxl: None

xlrd: None

xlwt: None

xlsxwriter: None

lxml: None

bs4: None

html5lib: 1.0.1

sqlalchemy: 1.2.5

pymysql: None

psycopg2: 2.7.4 (dt dec pq3 ext lo64)

jinja2: 2.10

s3fs: None

fastparquet: None

pandas_gbq: None

pandas_datareader: None
Issue 1:
Using ansible 1.9.4. reconfirmed by @global on 2.2.0.0

ISSUE TYPE

Bug Report

ANSIBLE VERSION

2.2.0.0

COMPONENT NAME

tags

If I have a role - example-3 which depends on example-1 then provisioning using --tags=example-3 will only run example-1 if example-3 is the first role in the list of roles.

Below are is the output for each case:

Dependencies do not run for --tags=example-3

Playbook:

---
- name: Demo with role tagging
hosts: vagrant
sudo: yes
roles:
- { role: 'example-2', tags: 'example-2' }
- { role: 'example-3', tags: 'example-3' }

Output:

PLAY [Demo with role tagging] *************************************************

GATHERING FACTS ***************************************************************
ok: [192.168.12.148]

TASK: [example-3 | Running example 3] *****************************************
ok: [192.168.12.148] => {
"msg": "Example 3"
}

PLAY RECAP ********************************************************************
192.168.12.148 : ok=2 changed=0 unreachable=0 failed=0

Dependencies do run for --tags=example-3

Playbook:

---
- name: Demo with role tagging
hosts: vagrant
sudo: yes
roles:
- { role: 'example-3', tags: 'example-3' }

Output:

PLAY [Demo with role tagging] *************************************************

GATHERING FACTS ***************************************************************
ok: [192.168.12.148]

TASK: [example-1 | Running example 1] *****************************************
ok: [192.168.12.148] => {
"msg": "Example 1"
}

TASK: [example-3 | Running example 3] *****************************************
ok: [192.168.12.148] => {
"msg": "Example 3"
}

PLAY RECAP ********************************************************************
192.168.12.148 : ok=3 changed=0 unreachable=0 failed=0

There is a sample repo here which runs the example-3 tag on vagrant provisioning. If you run vagrant up or subsequently vagrant provision or ansible-playbook against the VM box, then you can see the case where the dependencies do not run. To get the dependencies to run comment out the first role.

This problem is referenced by @ghostwords here

Issue 2:
ISSUE TYPE

Feature Idea

COMPONENT NAME

roles + tags

ANSIBLE VERSION

ansible 2.1.0.0
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides

CONFIGURATION

Irrelevant

OS / ENVIRONMENT

N/A

SUMMARY

It will be very convenient have possibility run only part of role.

STEPS TO REPRODUCE

Come from #14525.

Playbook:

- hosts: localhost
connection: local
roles:
- testdep

role test/tasks/main.yml:

- name: Task with tag1
raw: echo Run task with tag1
tags: tag1

- name: Task with tag2
raw: echo Run task with tag2
tags: tag2

It will be very helpful use it in dependency a part of other role in similar to ansible-playbook run way:

role testdep/meta/main.yml:

dependencies:
- { role: test, only-tags: tag1 }
- { role: test, skip-tags: [ 'tag1' ] }

EXPECTED RESULTS

For case of

- { role: test, only-tags: tag1 }

expected what only tasks with tag1 from role test will be applied.

Vise versa for case of

- { role: test, skip-tags: [ 'tag1' ] }

all tasks without tag tag1 will be run.
Issue 1:
Hello,

I upgraded from 2.0.0-alpha.45 to 2.0.0-alpha.47 and the folder angular2\bundles\typings\angular2 is not available any more. I need the bundled typings in order to compile my project.

Regards,

Vasil

Issue 2:
Please see the following gist:

https://gist.github.com/fuzing/ae762b795dd3376edf78

'dmodel' is simply an object that holds values for the fields in the form.

Angular 2 version: 2.0.0-beta.2

I have the following relevant js files loaded in the browser:

es6-shim

angular2-polyfills.js

system.src.js

Rx.min.js

angular2.js

router.dev.js

http.dev.js

Thanks!
Issue 1:
Description of the new feature/enhancement

Proposed technical implementation details (optional)

Issue 2:
Environment

Windows build number: 18363,418
Windows Terminal version (if applicable):

Any other software?

Steps to reproduce

Call ResizePseudoConsole with negative values stored in the passed COORD structure.

Expected behavior

returned HRESULT should indicate failure since a pty cannot have a negative size

Actual behavior

returned HRESULT indicates success.
Issue 1:
Ok, this is a (relatively) simple one: when there's no hits for text in the run bar, provide an option to web search. Of course, PowerToys should have configuration for search engines and include at least Google, DuckDuckGo, Bing and Yahoo. Or perhaps just provide an url input with replacement text, so I could, for instance, configure:

https://https://duckduckgo.com/?q=%q%

and have %q% replaced by my search text

Issue 2:
Summary of the new feature/enhancement

I want to be able to start a web search from the launcher.

Ideally, I'd type bing power toys and it would navigate to https://www.bing.com/search?q=power+toys in my default browser.

google power toys would go to the equivalent.

The ability to specify the keyword/search engine to use and the domain it goes to would also be necessary. Not only would this enable supporting other search engines, but it would also allow for people to adjust for different TLD versions of search engines.

This would be similar to functionality that used to be available in Enso launcher.

Proposed technical implementation details (optional)

This would presumably require some settings for determining which words are identified as initiating the search and the URL to submit the query to.

This could also be the base for similar functionality where a keyword could launch an app and pass other values as command-line arguments. Without additional arguments, this could also serve as a way to create aliases for apps so they could be launched with a small number of keystrokes.

crutkas: possible solution to this issue in #10619. It defers to default browser + user's search engine. Lets PT Run be generic
Issue 1:
Summary of the new feature/enhancement

Proposed technical implementation details (optional)

I would like to see the Thinkorswim windows recognized by FancyZones. Thanks for the help!

Issue 2:
Environment

Windows build number: Microsoft Windows [Version 10.0.17763.1039]
PowerToys version: 0.14 - 0.15
PowerToy module for which you are reporting the bug (if applicable): FancyZones

Steps to reproduce

Create FancyZone layout, use mouse to drag-and-drop "Solution Explorer" or any other window from Visual Studio (except main window) into a zone.

Expected behavior

The window resizes to the zone accordingly, works in v0.13 of PowerToys.

Actual behavior

The window does not resize to the zone.

In version 0.14 it is still possible to arrange the window by activating the "Override Windows snap hotkeys..."-option and using hotkeys to arrange it into place. Drag-and-drop does not work.

In version 0.15+ there is no option to arrange these windows into a zone.
Issue 1:
Challenge Waypoint: Record Collection 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.

Please describe how to reproduce this issue, and include links to screenshots if possible.

My code:

// Setup
var collection = {
2548: {
album: "Slippery When Wet",
artist: "Bon Jovi",
tracks: [
"Let It Rock",
"You Give Love a Bad Name"
]
},
2468: {
album: "1999",
artist: "Prince",
tracks: [
"1999",
"Little Red Corvette"
]
},
1245: {
artist: "Robert Palmer",
tracks: [ ]
},
5439: {
album: "ABBA Gold"
}
};
// Keep a copy of the collection for tests
var collectionCopy = JSON.parse(JSON.stringify(collection));

// Only change code below this line
function update(id, prop, value) {

if (value !== "") {
if (prop === "tracks") {
collection[id].tracks.push(value);
return;
}
collection[id][prop] = value;
} else {
delete collection[id][prop];
}
}

// Alter values below to test your code
update(5439, "artist", "ABBA");
update(1245, "tracks", "Addicted to Love");
console.log(collection[5439].artist);

Issue 2:
Using this function:

I am getting corrrect behaviour, but tests return as if it was wrong.

ie. When i test with:

update(1245, "tracks", "Addicted to Love");

both Chrome and built-in console shows correct output

but tests

Same with other input:
Issue 1:
I'm submitting a ... (check one with "x")

[ ] bug report => search github for a similar issue or PR before submitting
[x] 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

now schemas are not extendable, only hard-coded CUSTOM_ELEMENT_SCHEMA and NO_ERRORS_SCHEMA available. if a user want to add new schema, they have to modify DomElementSchemaRegistry.hasElement,DomElementSchemaRegistry.prototype.hasProperty or other compiler methods to do it. like this

https://github.com/moecube/electron-schema/blob/master/index.ts

Expected behavior

angular/packages/compiler/src/schema/dom_element_schema_registry.ts

Line 287
in
5b141fb

if (schemaMetas.some((schema) => schema.name === NO_ERRORS_SCHEMA.name)) {

make DomElementSchemaRegistry.hasElement,DomElementSchemaRegistry.prototype.hasProperty and other compiler methods to read schemaMetas not only name, but also some contents, for example, a string[] like SCHEMA defined in

angular/packages/compiler/src/schema/dom_element_schema_registry.ts

Line 79
in
5b141fb

const SCHEMA:

then user can just declare something like

const ELECTRON_SCHEMA = ['webview^[HTMLElement]|src,...']

then put it in ngModule.schemas .

@NgModule({
// ...
schemas: [ELECTRON_SCHEMA]
})
export class AppModule {
}

for more clearly, it could be a interface rather than a string, like..

interface SchemaData {
tagName: string
type: string
attributes: string[]
... // other security-related fields
}

for more dynamic use, it could also be a function-based interface, it can combined with normal SchemaMetadata interface, for example:

interface SchemaMeta {
name: string
hasElement?(tagName, schemaMetas): boolean
hasProperty?(tagName, propName, schemaMetas): boolean
... // other security-related methods
}

then CUSTOM_ELEMENTS_SCHEMA and NO_ERROES_SCHEMA could also be a normal SchemaMeta, and don't need hard-code in compiler, like

class NO_ERROES_SCHEMA implements SchemaMetadata {
name: 'no-errors-schema'
hasElement(tagName, schemaMetas) {return true}
hasProperty(tagName, propName, schemaMetas) {return true}
}

Issue 2:
I have two projects (SPA) using two different ports (front: 4200, Back : 8000):

Project 1:

Front : Angular 1

Back : Django / Django-rest-framework.

Project 2:

Front : Angular 2+

Back : Django / Django-rest-framework.

The problem I am facing (only) with project 2 (3 days trying to solve it) is that Angular 2+ can't receive cookies sent by the back.

Additional information :

Project 1 => cookies received OK

Project 2 => no cookies Problem

Back of project 1 with front of project 2 => no cookies Problem

Back of project 2 with front of project 1 => cookies received OK

withCredentials is configured in both projects.

cors configured for both projects.

Response for both projects contains set-cookie header attribute.
Issue 1:
OS: win8 + 64

Electron: 0.35.4

app.commandLine.appendSwitch('ppapi-flash-path', __dirname + '/pepflashplayer.dll');
app.commandLine.appendSwitch('ppapi-flash-version', '10.0.0.245');

when open a page which have flash object. a cmd window show 'NOT SANDBOXED' than quickly closed auto.

how can i configure to stop show the cmd window

Issue 2:
Create a Win32 Electron app that sets up Pepper Flash

Run the EXE from Explorer (you won't see this if you run Electron from a console)

Be very observant

You'll notice a DOS box flash open then immediately close. If we use Image File Execution Options to set a dummy EXE as our Debugger for "Cmd.exe" (I used Notepad), we can see what's happening:

PPAPI process is trying to echo "NOT SANDBOXED", but because we don't have an attached Console, it creates one