WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
I created a question on SO: http://stackoverflow.com/questions/25763600/how-to-patch-collection-using-symfony2-forms-and-rest

The problem is that when I PATCH the data, the "signature" setting is removed from the "settings" collection. However, if I do the same with any direct field of the "user" entity, PATCH request is handled properly (only the field that is included in the request is being changed, and nothing else is being deleted or set to null).

Is it anyhow possible to handle this in case of OneToMany collection (i.e. I want to change only one particular setting or some of them, but not all)?

Issue 2:
I'm trying to update a form collection item with a PATCH request and or $form->submit($request,false);. Either way, all items are removed from the collection except the new one.

echo "Items from the database ------------------------------------";
\Doctrine\Common\Util\Debug::dump($entity->getItems(), 1);

$form->submit($request,false);

echo "Items in the form ------------------------------------";
\Doctrine\Common\Util\Debug::dump($form->get('items')->getData());

echo "updated items ready to save to database";
\Doctrine\Common\Util\Debug::dump($entity->getItems(), 1);

I submit the form with modifications for item[0] entity[items][0][description] test 1234.

The output dump is shown below.

Items from the database ------------------------------------
array(2) {
[0]=>
string(29) "CoBo\RecipeBundle\Entity\Item"
[1]=>
string(29) "CoBo\RecipeBundle\Entity\Item"
}

Items in the form ------------------------------------
array(1) {
[0]=>
object(stdClass)#776 (8) {
["__CLASS__"]=>
string(29) "CoBo\RecipeBundle\Entity\Item"
["id"]=>
int(248)
["description"]=>
string(9) "test 1234"
}
}

updated items ready to save to database
array(1) {
[0]=>
string(29) "CoBo\RecipeBundle\Entity\Item"
}

As said, item[1] got removed. I'm not quite sure, if this is the expected behaviour, since a PATCH request should not remove items?!
Issue 1:
http://typescriptlang.org links to https://github.com/Microsoft/TypeScript/blob/master/doc/spec.md but this version does not contain any images. There are only slashes (/) instead.

An example:

A typical client would not need to add any additional typing but could just use a community-supplied typing to discover (through statement completion with documentation tips) and verify (through static checking) correct use of the library, as in the following screen shot.

/

Section [3.3](#3.3) provides additional information about object types.

## <a name="1.4"/>1.4 Structural Subtyping

Issue 2:
At the end of 1.3 section of mark down version of language spec., the spec. says "...as in following screen shot" but there is no screen shot attached.
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: v2.7.6

Operating System version: window10

Java version: 1.8

Steps to reproduce this issue

本机存在多个虚拟网卡

采用nacos注册中心，服务提供者配置dubbo.protocol.host之后可以注册本地真实ip但是服务消费者一直找不到这个提供者

禁用虚拟网卡后一切都会好

尝试启动参数也无效

-DDUBBO_IP_TO_BIND和DDUBBO_IP_TO_REGISTRY在idea中vm options 配置都没有效果

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: the last

Operating System version: any

Java version: java8

Steps to reproduce this issue

The EagerThreadPoolExecutor class extends java ThreadPoolExecutor, int ThreadPoolExecutor when invoke runWorker method, it will invoke method afterExecute in try finally block.

final void runWorker(Worker w) {
Thread wt = Thread.currentThread();
Runnable task = w.firstTask;
w.firstTask = null;
w.unlock(); // allow interrupts
boolean completedAbruptly = true;
try {
while (task != null || (task = getTask()) != null) {
w.lock();
// If pool is stopping, ensure thread is interrupted;
// if not, ensure thread is not interrupted. This
// requires a recheck in second case to deal with
// shutdownNow race while clearing interrupt
if ((runStateAtLeast(ctl.get(), STOP) ||
(Thread.interrupted() &&
runStateAtLeast(ctl.get(), STOP))) &&
!wt.isInterrupted())
wt.interrupt();
try {
beforeExecute(wt, task);
Throwable thrown = null;
try {
task.run();
} catch (RuntimeException x) {
thrown = x; throw x;
} catch (Error x) {
thrown = x; throw x;
} catch (Throwable x) {
thrown = x; throw new Error(x);
} finally {
afterExecute(task, thrown);
}
} finally {
task = null;
w.completedTasks++;
w.unlock();
}
}
completedAbruptly = false;
} finally {
processWorkerExit(w, completedAbruptly);
}
}

and this method is override in EagerThreadPoolExecutor.

@Override
protected void afterExecute(Runnable r, Throwable t) {
submittedTaskCount.decrementAndGet();
}

so when use this EagerThreadPoolExecutor and throw a exception but not RejectedExecutionException, it may decrement submittedTaskCount more then one times.

@Override
public void execute(Runnable command) {
if (command == null) {
throw new NullPointerException();
}
// do not increment in method beforeExecute!
submittedTaskCount.incrementAndGet();
try {
super.execute(command);
} catch (RejectedExecutionException rx) {
// retry to offer the task into queue.
final TaskQueue queue = (TaskQueue) super.getQueue();
try {
if (!queue.retryOffer(command, 0, TimeUnit.MILLISECONDS)) {
submittedTaskCount.decrementAndGet();
throw new RejectedExecutionException("Queue capacity is full.", rx);
}
} catch (InterruptedException x) {
submittedTaskCount.decrementAndGet();
throw new RejectedExecutionException(x);
}
} catch (Throwable t) {
// decrease any way
submittedTaskCount.decrementAndGet();
throw t;
}
}

or may be any other reason for it?
Issue 1:
This does have some overlap to issue #1939, but I'm targeting the overall use case for forms. It's fairly common to update a form with error messages using js or to display some error messages after an unsuccessful submission. Some errors might target a field, while other might be global in nature. See the following jsfiddle for examples:

http://jsfiddle.net/HFzQv/

The first form displayed has a form-level error message (not isolated to a certain field). One way to markup/style that would be for it to be an .alert, but I'm not certain if that is the correct usage and/or if you guys might have another approach in mind for this.

The second form shows a field in an error state with an error message for the field just before the field's .help-block providing general help on filling out the field. It seems like the error message for the field should stand out; as it is now, it seems lost along with the other text. Thoughts? (this is the part that is also addressed by #1939)

Issue 2:
When a form is styled with form control states (http://twitter.github.com/bootstrap/base-css.html?#forms, scroll down a little), all help texts (both help-inline and help-block) take their styling from the control state (error, warning, etc).

However, the example fails to take regular help text into account.

With the current version of Bootstrap, any help text within a control-group with a state class is styled as if it is part of the error message, which is wrong. The help text should be styled as what it is, a help text. The underlying issue here of course is that the messages are using the classes for help.

I made a small demo of the official Bootstrap example with added help-block p's with regular help text. I hope this illustrates the problem:

http://jsfiddle.net/TE7HK/1/ (same goes for help-inline)

I see two possible solutions.

Make a difference between help-inline/help-block and message-inline/message-block. Messages are styled like help texts, but take their colors from a surrounding control-group.error class. This would break compatibility with 2.0.0 as far as colors go, but not the actual display of items. Also, it would introduce 2 new classes (message-inline, message-block).

Add the option to define a help-block and help-inline with an extra class "help", which makes them unaffected by surrounding error, warning, etc.

e.g.

<p class="help-block">I will take the color from my control state. If there isn't any, I'll be styled like help.</p>
<p class="help-block help">You won't see mee turn red because of an error!</p>
<p class="help-block error">I will always be displayed as an error text, regardless of the control state.</p>

After writing this up, I'm in favor of solution #2.
Issue 1:
After updating to version 0.201.0, keyboard shortcuts, which are displayed next to the commands when going through the command palette (Ctrl+Shift+P), have a white font on a bright background.

I think the font colour should be black instead.

I use the webupd8 PPA ppa:webupd8team/atom on Ubuntu 14.04

This issue can be worked around by using a dark UI theme. But with UI themes "One Light" and "Atom Light" the text is pretty much unreadable.

Issue 2:
Since the Bootstrap update with Atom Version 0.201.0 the keybindings displayed in the Command Palette are not readable anymore when using a light UI theme like One Light or Atom Light.

The new bootstrap now sets a white color for the kbd tag.
Issue 1:
Gives an error while trying to add checked to first radio and checkbox

Syntax error, unrecognized expression

Syntax error, unrecognized expression

code for form

<form action="/submit-cat-photo">
<label><input type='radio' name='indoor-outdoor' checked> Indoor</label>
<label><input type='radio' name='indoor-outdoor'> Outdoor</label>
<br>
<label><input type='checkbox' name='personality' checked> Loving</label>
<label><input type='checkbox' name='personality'> Lazy</label>
<label><input type='checkbox' name='personality'> Crazy</label>
<br>
<input type='text' placeholder='cat photo URL' required>
<button type='submit'>Submit</button>
</form>

Issue 2:
This issue is to track Syntax error popping up in the challenges.
Issue 1:
When creating a default Vite project with TypeScript, importing local modules does not work.

Below is a simple example when installing Vite, then Playwright, and adding an import to the test file. cause a 'Cannot find module' error. No tests are found in this case by the runner.

System info

Playwright Version: [1.32.2]

Operating System: [Windows 10]

Browser: [All,]

Source code

Link to the GitHub repository with the repro

https://github.com/apisarev/pw-test

Steps

Run npx playwright test with the repo

OR

npm create vite@latest pw-test -- --template vanilla-ts

cd pw-test

npm install

npm init playwright@latest // With default parameters

npx playwright test // All good

Add file tests/utisl.ts: export const testValue = 1;

import and use it in tests/example.spec.ts:

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

test('has title', async ({ page }) => {
console.log(testValue);
// the rest of the code

npx playwright test

Expected

Running 6 tests using 4 workers

6 passed

Actual

Cannot find module '...\pw-test\tests\utils'

Error: No tests found

Issue 2:
Context:

SvelteKit 1.0

Windows 11

Playwright 1.28.1 (comes with SvelteKit 1.0)

Code Snippet

tests/tests.ts

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

test('index page has expected h1', async ({ page }) => {
console.log(my_module);
await page.goto('/');
expect(await page.textContent('h1')).toBe('Welcome to SvelteKit');
});

tests/utils.ts

export const my_module = 'testing buddy!';

Describe the bug

I run npm run test and I get this error:

Error: Cannot find module 'C:\web projects\testing-import\tests\utils'
imported from C:\web projects\testing-import\tests\test.ts

This is a brand new SvelteKit project with Playwright. All I did was add those two files. I created a repo regardless:

https://github.com/jdgamble555/testing-import

Playwright is supposed to support Typescript out-of-the-box.

How can I get a basic TS import working?

J

I also am not using any fancy TS Module alias etc... just basic importing.
Issue 1:
Rossen Stoyanchev opened SPR-8694 and commented

This issue was pointed out in a comment by Doug Breaux under #13131:

https://jira.springsource.org/browse/SPR-8485?focusedCommentId=67922&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-67922

The InputTag always renders type="text". Since type is not declared as an attribute in spring-forms.tld when the type attribute is added (e.g. type="email") it gets rendered a second time. Browsers seem to deal with it, hence the current priority of "Minor".

Affects: 3.0.6

Issue Links:

#13131 Spring MVC form binding tags for new HTML5 form field types would be nice

Referenced from: commits c290a4e

1 votes, 5 watchers

Issue 2:
Dave Syer opened SPR-8404 and commented

Please undeprecate XmlBeanFactory. It's only a few lines of code, so not a big deal to keep it I would have thought. It's really useful for testing, and those few lines have to be duplicated, plus I never remember how to do it.

Affects: 3.1 M1

Issue Links:

#18064 Revisit remaining XmlBeanFactory usage in reference documentation
Issue 1:
Issue Type:

Bug Report

Ansible Version:

Works fine in 1.6.3, broken in Ansible 1.7.0

Environment:

OSX Mavericks 10.9.4

Summary:

Running an unrachive task with a .tgz file with hundreds of files in it is unusably slow or possibly broken in Ansible 1.7.0. Looking at top on the remote system, I see the task finishes after a few seconds. However on my master the ansible Python process's CPU usage hits 100%. I ran it a few times and only waited a few minutes each time, but this tasks only takes a few seconds in 1.6.3.

Steps To Reproduce:

- name: unpack sources
unarchive: src={{ appfile_Location }}/{{ appfile }} dest={{ root_path }} copy=no

Where src is a .tgz file with hundreds of files.

Expected Results:

TASK: [ ... | unpack sources] *****
...
Copying '/webapps/mathprojects/server/copa/users/static/fonts/LightLight.woff'\n\n265 static files copied to '/webapps/mathprojects/server/static'."}

Actual Results:

TASK: [ ... | unpack sources] *****

^^^ ansible hangs here and master CPU process hits 100% for a long time.

Issue 2:
Issue Type:

Bug Report

Ansible Version:

devel branch HEAD

Environment:

Ubuntu 14.04 and OSX

Summary:

Unarchive task seems to hang.

Looking at a process listing, the tar command finishes, and then the ansible task process stays pegged at 100% CPU

Steps To Reproduce:

Create large tar archive.

(Listing of our tar file contents: https://gist.github.com/leth/bc059d52be90b1ef9e14 )

unarchive tar using ansible

Watch

Expected Results:

I'd expect this to complete within reasonable time

Actual Results:

This task does not ever seem to complete
Issue 1:
JSX code for me that works on Node 5.11 is failing with Node 6. It appears to be a problem with the Acorn module Webpack is relying on.

ERROR in ./src/index.js

Module parse failed: c:\code\app\src\index.js Unexpected token (17:2)

You may need an appropriate loader to handle this file type.

SyntaxError: Unexpected token (17:2)

at Parser.pp.raise (C:\code\canopy-app\node_modules\webpack\node_modules\acorn\dist\acorn.js:920:13)

at Parser.pp.unexpected (C:\code\canopy-app\node_modules\webpack\node_modules\acorn\dist\acorn.js:1483:8)

at Parser.pp.parseExprAtom (C:\code\canopy-app\node_modules\webpack\node_modules\acorn\dist\acorn.js:330:12)

at Parser.pp.parseExprSubscripts (C:\code\canopy-app\node_modules\webpack\node_modules\acorn\dist\acorn.js:225:19)

at Parser.pp.parseMaybeUnary (C:\code\canopy-app\node_modules\webpack\node_modules\acorn\dist\acorn.js:204:17)

at Parser.pp.parseExprOps (C:\code\canopy-app\node_modules\webpack\node_modules\acorn\dist\acorn.js:151:19)

at Parser.pp.parseMaybeConditional (C:\code\canopy-app\node_modules\webpack\node_modules\acorn\dist\acorn.js:133:19)
at Parser.pp.parseMaybeAssign (C:\code\canopy-app\node_modules\webpack\node_modules\acorn\dist\acorn.js:110:19)
at Parser.pp.parseExprList (C:\code\canopy-app\node_modules\webpack\node_modules\acorn\dist\acorn.js:657:23)
at Parser.pp.parseSubscripts (C:\code\canopy-app\node_modules\webpack\node_modules\acorn\dist\acorn.js:249:29)

@ multi main

Extra info:

Webpack version: 1.13.0

Referenced Acorn version within Webpack's node_modules: 3.1.0

Chunk of code the parser is choking on:

render( <Root />, document.getElementById('root') );

It seems to just choke on basic JSX syntax. However, if I downgrade Node back to 5.11 it works as it should.

Issue 2:
In reference to this

Current behavior

Same module found in multiple chunks

Steps to reproduce:

This repo

npm i
npm run build

<Map /> is used in different places (lazy-loaded in some).

// App.tsx
const AuthenticatedApp = lazyLoad(() => import('./Authenticated'));
const UnAuthenticatedApp = lazyLoad(() => import('./UnAuthenticated'));

export default function AppRoutes() {
const random = Math.random() * 10;

// if authed
if (random < 6) {
return <AuthenticatedApp />;
}
return <UnAuthenticatedApp />;
}

// Authenticated.tsx
const MapUsed1 = lazyLoad(() => import('app/MapUsed1'));
const MapUsed2 = lazyLoad(() => import('app/MapUsed2'));

export default function AuthenticatedRoutes() {
return (
<Routes>
<Route path="profile" element={<MapUsed1 />} />
<Route path="send" element={<MapUsed2 />} />
</Routes>
);
}

// UnAuthed.tsx
export default function UnauthenticatedRoutes() {
return (
<Routes>
<Route path="signup" element={<MapUsed3 />} />
</Routes>
);
}

Expected behavior

one chunk containing leaflet

webpack version: 5.0.0-rc.0

Node.js version: 14.7.0

Operating System: MacOS

Sorry if the repo is not very well-organized. I stripped out the codebase I'm working on to get a reproduceable repo.
Issue 1:
Preflight Checklist

I have read the Contributing Guidelines for this project.

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

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

Electron Version

Slack Version 4.15.0 5d7680b5e4c7d0ab1f4315edae52ef1f7e74f8bd@1620079581 (Production)

What operating system are you using?

macOS

Operating System Version

MacOS 10.13.6

What arch are you using?

x64

Last Known Working Electron version

No response

Expected Behavior

Electron stores caches in system caches folder as to avoid those files being backed up by TimeMachine

Actual Behavior

Electron stores caches in ApplicationSupport causing tens of gigabytes of wasted backup per application

Testcase Gist URL

No response

Additional Information

Electron should store caches in /Users//Library/Caches// instead of /Users//Library/ApplicationSupport//Cache

Issue 2:
Electron version: 1.3.9 (via Atom 1.12.6) and unknown (via Slack 2.3.2)

Operating system: Linux

Expected behavior

Files stored by Electron on behalf of electron apps, should follow the XDG Base Directory specification and place only config files in $XDG_CONFIG_HOME/ (default ~/.config/). cache and data files should be placed in XDG_CACHE_HOME (default: ~/.cache) and XDG_DATA_HOME (default: ~/.local/share) respectively.

https://specifications.freedesktop.org/basedir-spec/latest/ar01s03.html

Actual behavior

As seen in Atom and Slack on Linux, they leave non-config files in ~/.config/Atom and ~/.config/Slack/ in particular, they leave folders such as "databases", "GPUCache", "Cache", "logs", and "Local Storage". Atom mention this as an Electron issue in atom/atom#8281 ("where electron stores it's files").

Could still be it's not Electron's fault that the apps store non-config files in these locations, but hopefully you know more than me here.
Issue 1:
UnicodeDecodeError occurred when accessing an item assigned from another numpy array item. I dont know if this is made by design

Reproducing code example:

>>> import numpy as np
>>> strA = np.array([('aa', 2),('bb', 4)], dtype=[('c1', 'U2'), ('c2', 'i4')])
>>> strA['c1'][0]
'aa'
>>> strA['c1'] = strA['c1'][0]
>>> strA['c1'][0]
UnicodeDecodeError: 'utf-32-le' codec can't decode bytes in position 0-3: code point not in range(0x110000)

Error message:

UnicodeDecodeError: 'utf-32-le' codec can't decode bytes in position 0-3: code point not in range(0x110000)

Numpy/Python version information:

python 3.6.5

numpy 1.14.3 and 1.15.4

Issue 2:
Describe the issue:

When I call np.find_common_type with multiple identical datetime64 types, I would expect to get the same type back, since all the inputs are identical. Instead, I always get dtype('O').

Reproduce the code example:

import numpy as np
dt = np.dtype('datetime64[ns]')
dt1 = np.find_common_type([dt], [])
# this works; both dtype('<M8')
assert dt1 == dt
dt2 = np.find_common_type([dt, dt], [])
# this fails; dt2 is dtype('O')
assert dt2 == dt

Error message:

No response

NumPy/Python version information:

1.21.2 3.9.9 | packaged by conda-forge | (main, Dec 20 2021, 02:41:37)

[Clang 11.1.0 ]
Issue 1:
I've created and downloaded a custom bootstrap.min.css from here http://getbootstrap.com/customize/, excluding glyphicons,

It seems that the class fade in this custom css does not have the opacity set so when I call a modal using fade class the underlying page turns black.

If I use the default bootstrap.min.css fade works normally.

Issue 2:
Hi!

I just generated a customized version and the modal background is totally black (I also generated a version without any change to be sure it wasn't me that caused that):

The download link on the home page does have transparency:
Issue 1:
@andy-ms there are way too many of those logs

Issue 2:
I tried using the latest azuremobileservicesclient/index.d.ts file in this repo and had problems.

I tried using the latest stable version of tsc. https://www.npmjs.com/package/typescript

I have a question that is inappropriate for StackOverflow. (Please ask any appropriate questions there).

I want to talk about azuremobileservicesclient/index.d.ts.

The authors of that type definition are cc/ @dmorosinotto

I am struggling to use the Microsoft Azure Mobile Services SDK in a TypeScript project, so I was recommended to install the typings definition referenced above. However, doing so hasn't solved the issue, and when I investigate thedefinition index.d.ts file, it has a whole load of duplicate identifier warnings, see below:
Issue 1:
Original ticket http://projects.scipy.org/scipy/ticket/1521 on 2011-09-16 by trac user SteveDoyle, assigned to unknown.

Running the following program will always return an exit code of 0.

import sys

import scipy.interpolate as si

sys.exit(2)

This bug is probably similar ticket gh-1840.

I'm using scipy 0.7.1 with Python 2.6 on a Windows 7, 64-bit system.

Issue 2:
Original ticket http://projects.scipy.org/scipy/ticket/1314 on 2010-10-18 by trac user markMiscavage, assigned to @wnbell.

I have this bug in a larger program but I've narrowed it down to a script consisting of just :

import sys
import scipy.sparse.sparsetools
sys.exit("EXIT")

This will always exit with code 0. It seems it is the .pyd files in the sparsetools folder that are the source of this problem. I have the same problem in both 0.7.1 and 0.8.0 builds of scipy. I am using python 2.6 on a Windows 7 - 64 bit system.
Issue 1:
The _msearch API currently doesn't allow you to specify a timeout parameter in the header of each request.

This is problematic given that long running queries can easily swamp an ES node.

Recommend that we add timeout to the API which is specified per request in milliseconds for consistency with the timeout parameter for the search API:

{"timeout": 100}
{"query": ...}
{"timeout": 50}
{"query": ...}
...

Happy to contribute here but not sure where to start.

Thoughts?

Issue 2:
The _msearch API doesn't accept the same header parameters than _search's query parameters.

For instance version is both valid in the search body and query parameters for _search, but is ignored in the query parameters and header in _msearch.

MultiSearchRequest.add() should rely on RestSearchAction.parseSearchSource() or even RestSearchAction.parseSearchRequest() to parse the subrequests, for maximum compatibility.

IMHO, a clean bulk API should use the header parameters as query parameters on the target endpoint, which would imply that they keep in sync no matter the code changes in the target endpoints.