WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
For instance, we have 2 entities: Website and Domain.

Website have a OneToMany relation to Domain:

@ORM\OneToMany(targetEntity="Domain", mappedBy="domain", cascade={"all"}, orphanRemoval=true)
@Assert\Valid

And Domain have a ManyToOne relation and a unique constraint on the domain name field:

@UniqueEntity("name", message="Domain already exists.")

@ORM\Column(name="name", type="string", unique=true)
@Assert\NotBlank(message = "Domain required.")
$name

@ORM\ManyToOne(targetEntity="Website", inversedBy="domains")
@ORM\JoinColumn(name="website_id", referencedColumnName="id", nullable=false)
@Assert\NotBlank(message = "Website required.")
$website

I have 2 forms: WebsiteType and DomainType.

WebsiteType have a CollectionType of DomainType:

$builder
->add('domains', CollectionType::class, array(
'entry_type' => DomainType::class,
'allow_add' => true,
'allow_delete' => true,
'by_reference' => false,
))
;

I can save a new website with domains automatically created.

I can update website and domains in the same form too.

The problem is on an update, if we do not send domains in the same order then they have been saved, it will raise an error on the Domain unique constraint.

Example:

Create a new website with 2 domains:

domain[0][name] = domain1.com

domain[1][name] = domain2.com

Save it: OK

Update the website on the same form (changing domain order):

domain[0][name] = newdomain.com

domain[1][name] = domain1.com

Save it: ERROR: Unique constraint on domain name, domain1.com already exist

Update the website on the same form (without changing order):

domain[0][name] = domain1.com

domain[1][name] = newdomain.com

Save it: OK

Issue 2:
I am coding a project along the lines of the cookbook entry on embedded collections as stated on: http://symfony.com/doc/current/cookbook/form/form_collections.html.

I am considering the following use case:

Starting out with entering a new entity task, tag is the embedded collection

I click the Javascript 'add a tag'-link, which adds a bar 0 instance of the tag form

I click the Javascript 'add a tag'-link, which adds a bar 1 instance of the tag form

I click the Javascript 'add a tag'-link, which adds a bar 2 instance of the tag form

I click the Javascript 'delete this tag'-link for tag(1), which leaves me with the instances 0 and 2

Now, if I would leave all these tags blank (with a notblank validation on the tag name attribute), the returned form would be expected to visualize the error statements on instances 0 and 2. However, it turns out that the feedback is only displayed for instance 0.

If I change the returned form with firebug and set the instances on the name input field of instance 2 to '1', the feedback is displayed on the correct instance. This behavior indicates a mismatch between the indexing of the embedded form instances and the validators.
Issue 1:
VSCode Version: 1.0.1-insiders

OS Version: Windows 10 RTM

Steps to Reproduce:

Open Microsoft.PowerShell.Commands.Management.dll-Help.xml

Collapse the first <command:syntax> XML element you come across

Notice that the collapsing is prematurely canceled

Cheers,

Trevor Sullivan

https://trevorsullivan.net

https://twitter.com/pcgeek86

Issue 2:
The current implementation of folding uses an indentation based folding strategy that is unaware of the language it works on. Knowledge on the underlying language allows us to solve the following requests:

[folding] Cannot code fold empty functions #3349

[folding] Collapse ending brace to the same line #3352

[folding] Folded block comments should show */ #3350

[folding] should not fold whitespace after function #3353

[folding] Add code folding for markdown based on heading level #3347

[folding] [lua] Weird code folding with Lua #3602

[folding] Collapse code block ignore comments inside this block #3957

[folding] Code Folding: support golang multiline strings #5994

[folding] Optionally fold chained method calls #6991
Issue 1:
Q
A

Bug report?
yes

Feature request?
no

BC Break report?
no

RFC?
no

Symfony version
3.2.2

I'm getting an exception whilst using Browser-Kit whereby, if the response returns a Set-Cookie expiration time that's in the past, it throws the an exception like the following:

Fatal error: Uncaught UnexpectedValueException: The cookie expiration time "-39600" is not valid.

An example of an HTTP header in my response:

Set-Cookie	ADRUM_BTs=R:54|s:p; expires=Wed, 31-Dec-1969 13:00:00 GMT; path=/; HttpOnly

According to RFC 6265:

Finally, to remove a cookie, the server returns a Set-Cookie header with an expiration date in the past.

So therefore, having a date in the past is expected behaviour and should result in the cookie being deleted from the cookie jar, I'm assuming.

Issue 2:
BrowserKit Cookie class throws an UnexpectedValueException if Expires attribute contains invalid value, but RFC 6265 states that "If the attribute-value failed to parse as a cookie date, ignore the cookie-av."
Issue 1:
It doesn't matter what logic a class loader uses: it may load classes that follow a given naming convention or find them using name-path pairs. But it always does the same thing: loading classes. So, wouldn't it be better to have an AbstractClassLoader that all the loaders will have to extend? It will provide the final register() and unregister() methods, an abstract findClass() method and a default implementation of loadClass().

I can take the work if you think it's a good idea.

Issue 2:
Q
A

Bug report?
no

Feature request?
no

BC Break report?
yes

RFC?
no

Symfony version
3.2.6

BC break caused by #21370

Moving PhpDocExtractor before ReflectionExtractor changes behaviour in client code. This is a BC break.

Example:

class TravelDestination
{
/**
* @var TravelDestinationType Type of the travel destination.
*
* @ORM\Column(type="travel_destination_type_enum", nullable=true)
*/
protected $type;

/**
* Sets type.
*
* @param TravelDestinationType $type
*
* @return $this
*/
public function setType(?TravelDestinationType $type)
{
$this->type = $type;

return $this;
}

/**
* Gets type.
*
* @return TravelDestinationType|null
*/
public function getType(): ?TravelDestinationType
{
return $this->type;
}
}

Before:

nullable is true (from ReflectionExtractor)

After:

nullable is false (from PhpDocExtractor)
Issue 1:
It would be useful to have the last publish date presented in a package view on Atom.io. There are some packages out there that were really popular but haven't been updated in a long while. This would give some visibility that a package may potentially or definitely not work with your current install of Atom.

This would be used for this issue as well.

Issue 2:
It would be really helpful to show the release date for the latest version of a package on atom.io (or if not a date, time since the last release). This would make it a little easier to weed out packages that might not be maintained anymore. Maybe something like:
Issue 1:
They should be executed only once - their exports cached.

Node behavior

~/src/deno> cat test.js
require("./foo");
require("./foo");
~/src/deno> cat foo.js
console.log("HELLO");
~/src/deno> node test.js
HELLO
~/src/deno>

Current deno behavior

~/src/deno> cat test.ts
import "./foo.ts";
import "./foo.ts";
~/src/deno> cat foo.ts
console.log("HELLO");
~/src/deno> ./out/debug/deno test.ts
HELLO
HELLO
~/src/deno>

Issue 2:
https://embarkstudios.github.io/cargo-deny/index.html

cargo-deny provides checks for security advisories and licence checks.

It'd be very useful to add it to CI to ensure all dependencies have proper licenses and we're up to date with dependencies.
Issue 1:
I am using bootstrap in an asp.net app, and absolutely loving it. I ran into an issue, which I solved .. but I really wanted to know if anyone sees any red flags with my solution.

The issue is, asp.net demands that there is one

tag, with attribute runat="server" for their code behind stuff to work properly. I was using multiple 's on a page, but as only one can exist with attribute runat="server" (or asp.net errors out) only the controls within the one would get enabled for code behind.

My first solution was to wrap multiple 's in one enclosing but nested form tags create a problem, as HTML validation actively rejects them, and they were ignored (by firefox) and my styling went awry. (looked at view source and DOM after render, only parent was regarded)

So I did this .. I used one and only one enclosing , and then used div's instead of forms for control grouping . .eg ...

...

...

.. and everything seems to look and work just fine. (left out row and span divs for brevity)

so my question is .. is there any problem with using

.. specifically using class "form-horizontal" with div's. .. it works fine as far as i can tell so far, and I tried firefox/chrome/IE with good results .. but i'm no CSS expert so i'm concerned.

Issue 2:
I am using bootstrap in an asp.net app, and absolutely loving it. I ran into an issue, which I solved .. but I really wanted to know if anyone sees any red flags with my solution.

The issue is, asp.net demands that there is one <form> tag, with attribute runat="server" for their code behind stuff to work properly. I was using multiple <form class="form-horizontal"></form>'s on a page, but as only one <form> can exist with attribute runat="server" (or asp.net errors out) only the controls within the one <form runat="server"> would get enabled for code behind.

My first solution was to wrap multiple <form>'s in one enclosing <form runat="server"> but nested form tags create a problem, as HTML validation actively rejects them, and they were ignored (by firefox) and my styling went awry. (looked at view source and DOM after render, only parent <form> was regarded)

So I did this .. I used one and only one enclosing <form runat="server">, and then used div's instead of forms for control grouping . .eg <form runat="server">...<div class="form-horizontal">...</div><div class="form-horizontal">...</div></form> .. and everything seems to look and work just fine. (left out row and span divs for brevity)

so my question is .. is there any problem with using <div class="form-horizontal"> .. specifically using class "form-horizontal" with div's. .. it works fine as far as i can tell so far, and I tried firefox/chrome/IE with good results .. but i'm no CSS expert so i'm concerned.
Issue 1:
Describe the workflow you want to enable

Doing FeatureSelection droping correlated features is standard ml proc that sklearn covers.

But, as i interpret the documentation, sklearn treats the featureSelection based on correlations as a previous step, outside the pipeline.

An in the pipeline, you can only do univarte or iterative featureSelections docs

I would like to do FeatureSelection based on correlations, as a pipeline step

Describe your proposed solution

something like

from sklearn.covariance import MinCovDet_
clf = Pipeline([
('feature_selection', SelectFromModel(MinCovDet_())),
('classification', RandomForestClassifier())
])
clf.fit(X, y)

Where MinCovDet_ ~ MinCovDet but returns the ingested df, so the classification step can do the fit

Describe alternatives you've considered, if relevant

Maybe a SelectFromCorrelation wrapper that you can run on top of all the sklearn.covariance correlators would be better

Additional context

No response

Issue 2:
I wonder whether we should add unsupervised feature selection using correlation. It's a strategy that's very common in statistics and might just have it for completeness.

It's certainly more useful than the variance based one, which I think is useless for any threshold != 0.
Issue 1:
Environment

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

Steps to reproduce

Create a custom zone with four windows on each corner and then a fifth in the middle. Then when you hold shift and drag the fifth window there is no way I can find to drop to dock in the fifth spot.

Expected behavior

Actual behavior

Screenshots

Issue 2:
Summary of the new feature/enhancement

FancyZones is an awesome tool for larger format monitors. In many cases, a form of a grid layout is used for larger monitors. In these scenarios, it would useful to add an additional hotkey to enable resizing Windows, akin to WindowGrid's implementation.

Holding "Shift" is a useful hotkey to align a window into a zone. In an instance where I want an app window to occupy two neighboring zones, having an additional hotkey to toggle a resize function while moving a window with the mouse would be useful.

Eg: I have an ultrawide monitor with 3, horizontal, equivalent, square, zones. Occasionally I want to watch ultrawide media in a window that spans the left and middle zones. I would like to hold shift and align the window to the left zone, hold alt and then pull the mouse to the right to span the window over the second zone.

Proposed technical implementation details (optional)

¯\_(ツ)_/¯
Issue 1:
when having an accordion .accordion-toggle gets class collapsed when specified section is collapsed.

however, this hapens only when clicking on the same handler.

example: http://jsfiddle.net/DRfbh/

red background indicates that .accordion-toggle does not have class collapsed.

Clicking on the first item, works ok, but when clicking any other item, opened section is collapsed, but class is not added to the .accordion-toggle

Issue 2:
This line:

$this[$(target).hasClass('in') ? 'addClass' : 'removeClass']('collapsed')

Only works to remove or add the collapsed class on the element clicked. It does not updated the element that was previously expanded/clicked. So the class usage becomes inconsistent quickly and stops me easily styling stuff.

Note diff b/w accordion-heading and accordion-body.
Issue 1:
https://github.com/Microsoft/TypeScript/blob/ab9ce1e9e6636ec6a2aa4f01458525f249c4edf5/src/services/services.ts#L1172

I would expect them to get a special treatment. For instance

`Hello ${name}`

could have tokens like: string(Hello), punct(${), identifier(name), punct(}), string()

Issue 2:
String templates should be colorizes like string literals.
Issue 1:
Code Sample, a copy-pastable example if possible

import pandas as pd
import numpy as np

ts1 = np.datetime64('2017-11-29T03:30')
ts2 = np.datetime64('2017-11-29T03:45')
d = {'number' : pd.Series([1., 2.]), 'string': pd.Series(['haha', 'wawa']), 'datetime64': pd.Series([ts1, ts2])}
df = pd.DataFrame(d)
df.apply(lambda row: (row.number, row.string), axis=1)

Problem description

Applying lambda function to a DataFrame with columns of type numpy.datetime64 throws an unexpected error: ValueError: Shape of passed values is (2, 2), indices imply (2, 3). The error message is not helpful, and I believe this error is thrown due to a bug. Dropping columns of type numpy.datetime64 fixes the issue.

Expected Output

0 (1.0, haha)
1 (2.0, wawa)
dtype: object

Output of pd.show_versions()

INSTALLED VERSIONS

commit: None

python: 2.7.14.final.0

python-bits: 64

OS: Darwin

OS-release: 16.7.0

machine: x86_64

processor: i386

byteorder: little

LC_ALL: None

LANG: en_US.UTF-8

LOCALE: None.None

pandas: 0.20.3

pytest: 3.2.1

pip: 9.0.1

setuptools: 36.5.0.post20170921

Cython: 0.26.1

numpy: 1.13.3

scipy: 0.19.1

xarray: None

IPython: 5.4.1

sphinx: 1.6.3

patsy: 0.4.1

dateutil: 2.6.1

pytz: 2017.2

blosc: None

bottleneck: 1.2.1

tables: 3.4.2

numexpr: 2.6.2

feather: None

matplotlib: 2.1.0

openpyxl: 2.4.8

xlrd: 1.1.0

xlwt: 1.2.0

xlsxwriter: 1.0.2

lxml: 4.1.0

bs4: 4.6.0

html5lib: 0.999999999

sqlalchemy: 1.1.13

pymysql: None

psycopg2: None

jinja2: 2.9.6

s3fs: None

pandas_gbq: None

pandas_datareader: None

Issue 2:
Code Sample, a copy-pastable example if possible

pd.DataFrame({'col_1':['val_1','val_2','val_3']}).apply(lambda row: [1], axis=1, reduce=True)

Problem description

Per the documentation, calling Dataframe.apply w/ reduce=True should always produce a Series. However, if the applied function returns list values Dataframe.apply returns a Dataframe, not a Series.

Expected Output

When called with reduce=True, I expect Dataframe.apply to produce a Series where each element is a list, not a Dataframe.

Output of pd.show_versions()

0.18.1
Issue 1:
Challenge Waypoint: Nest an Anchor Element within a Paragraph has an issue.

User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36.

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

My code:

<link href="http://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
.red-text {
color: red;
}

h2 {
font-family: Lobster, Monospace;
}

p {
font-size: 16px;
font-family: Monospace;
}

.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
border-radius: 50%;
}

.smaller-image {
width: 100px;
}
</style>

<h2 class="red-text">CatPhotoApp</h2>

<a href="http://www.freecatphotoapp.com">cat photos</a>

<img class="smaller-image thick-green-border" src="https://bit.ly/fcc-relaxing-cat">

<p class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p class="red-text">Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>
<p>
View more
<a href='http://www.freecatphotoapp.com'>Cat photos
</a>
</p>

Issue 2:
Challenge Waypoint: Nest an Anchor Element within a Paragraph has an issue.

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

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

My code:

<link href="http://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
.red-text {
color: red;
}

h2 {
font-family: Lobster, Monospace;
}

p {
font-size: 16px;
font-family: Monospace;
}

.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
border-radius: 50%;
}

.smaller-image {
width: 100px;
}
</style>

<h2 class="red-text">CatPhotoApp</h2>

<a href="http://www.freecatphotoapp.com">cat photos</a>

<img class="smaller-image thick-green-border" src="https://bit.ly/fcc-relaxing-cat">

<p class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p class="red-text">Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>
<p>View more <a href="http://www.freecatphotoapp.com">cat photos</a></p>
Issue 1:
Mac OS X version 10.10.2 (14C109)

Atom Version 0.186.0 (0.186.0)

Standard OS X behavior (e.g. Mail.app) is:

option+left/right arrow moves by one word

control+left/right arrow moves to beginning/end of line

(For reference, in Sublime Text, both those options move by one word, which I happen to prefer.)

In current versions of Atom, the cursor does not move at all with these key combinations.

(I don't have any custom bindings for these keys in my keymap.cson)

Issue 2:
SublimeText supports navigation by subwords (underscore separated or hills in camelcase):

{ "keys": ["alt+left"], "command": "move", "args": {"by": "subwords", "forward": false} },
{ "keys": ["alt+right"], "command": "move", "args": {"by": "subword_ends", "forward": true} },
{ "keys": ["alt+shift+left"], "command": "move", "args": {"by": "subwords", "forward": false, "extend": true} },
{ "keys": ["alt+shift+right"], "command": "move", "args": {"by": "subword_ends", "forward": true, "extend": true} }

It would be nice if Atom also supported move*, delete*, backspace*, select* editor commands based on subwords.
Issue 1:
In version 4.0.1, HintManager getInstance (). SetDatabaseShardingValue () can't use, don't enter DataSourceTypeHintShardingAlgorithm，I just want to switch database, not tables

m1: !!org.apache.shardingsphere.orchestration.yaml.config.YamlDataSourceConfiguration

dataSourceClassName: com.zaxxer.hikari.HikariDataSource

properties:

driverClassName: com.mysql.cj.jdbc.Driver

jdbcUrl: jdbc:mysql://127.0.0.1:3306/order_db_1?useSSL=true&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&autoReconnect=true&failOverReadOnly=false&allowMultiQueries=true&serverTimezone=GMT

username: root

password: admin888

connectionTimeout: 30000

minimumIdle: 5

maximumPoolSize: 15

idleTimeout: 30000

maxLifetime: 120000

autoCommit: true

m2: !!org.apache.shardingsphere.orchestration.yaml.config.YamlDataSourceConfiguration

dataSourceClassName: com.zaxxer.hikari.HikariDataSource

properties:

driverClassName: com.mysql.cj.jdbc.Driver

jdbcUrl: jdbc:mysql://127.0.0.1:3306/order_db_2?useSSL=true&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&autoReconnect=true&failOverReadOnly=false&allowMultiQueries=true&serverTimezone=GMT

username: root

password: admin888

connectionTimeout: 30000

minimumIdle: 5

maximumPoolSize: 15

idleTimeout: 30000

maxLifetime: 120000

autoCommit: true

config:

sharding:

defaultDatabaseStrategy:

hint:

algorithmClassName: cn.com.hatech.sharding.config.DataSourceTypeHintShardingAlgorithm

public class DataSourceTypeHintShardingAlgorithm implements HintShardingAlgorithm {

@Override
public Collection<String> doSharding(Collection<String> availableTargetNames, HintShardingValue<String> shardingValue) {
if (!CollectionUtils.isEmpty(shardingValue.getValues())) {
log.info("当前所选择的数据源是：{}",shardingValue.getValues());
return availableTargetNames.stream().filter(availableTargetName ->
shardingValue.getValues().contains(availableTargetName)).collect(Collectors.toList());
}
return availableTargetNames;
}

}

Issue 2:
For English only, other languages we will close it directly.

Please answer these questions before submitting your issue. Thanks!

Which version of Sharding-Sphere do you using?

2.0.3

Expected behavior

result success

Actual behavior

SQL：SELECT COUNT(1) FROM training_student WHERE (follow_up_status = ? OR tel1 = ? AND del_flag = ?)

Reason analyze

官方文档上标明支持or语句，为何上面截图中的代码不支持呢？

（抱歉，英文不灵光）

Steps to reproduce the behavior

For bug report, please MUST provide the reproduce example codes (such as a github link).

mybatis mapper.xml 中的任意select * from tb_name where field1=1 or field2=1 都不支持
Issue 1:
Please add Drag and Dropping from the Powertoys Run

I love the Powertoys Run feature because it works better for me than the normal search! :P

I would love to be able to drag Files out of it into other Programs or Folders!

That would make getting files way quicker and easier! :P

Crutkas: The suggested implementation would be treating this as if it was dragging an file to the app. Also should work against an icon.

If you'd like to see this feature implemented, add a 👍 reaction to this post.

Issue 2:
Summary of the new feature/enhancement

PowerToys Run is a amazing way to find files. I already used Wox, Listary and Everything, but the fact that Microsoft is developing it's own tool is very promising. I know a lot of artists who uses those kind of tools to search quickly through their assets, and integrate it into their work.

Listary and Everything already has the possibility to drag and drop the file directly from the search results into any app. So you can move/copy files into another folder, or integrate a image directly into a Photoshop composition, or a video file into Premiere for example. This will open so much possibilities !

Currently, you can't do that directly from the search results and have to open the containing folder, and then move the corresponding file into your app.

Example of this feature in Eveything. Works similarly in Listary. The same feature is open on Wox .

Proposed technical implementation details (optional)

Sorry, I'm not a Windows developer, but I'm pretty sure there is a corresponding API for those kind of thing.

Thanks to all the contributors of this amazing feature toolset !