WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Vue.js version

2.0.2

Reproduction Link

http://jsfiddle.net/df4Lnuw6/100/

Steps to reproduce

Click on set user department, then click on set departments.

What is Expected?

data.form.department_id = 2

What is actually happening?

data.form.department_id = null

Issue 2:
Let's say we have a variable called someVar in our component - it is properly defined and its initial value is 1:

...
data: {
someVar: 1
}
...

In our template there is a select tag with 3 options bound to someVar with v-model:

<select v-model="someVar">
<option value="1">Option 1</option>
<option value="3">Option 3</option>
<option value="5">Option 5</option>
</select>

At this point everything works as expected. However, if we then change the value of someVar to a value that is not covered by any of the option tags (2 in this example), v-model will set someVar to undefined instead:

...
created: function() {
setTimeout(function(){
this.someVar = 2;
// this.someVar becomes undefined instead
}.bind(this), 2000);
}
...

Here is a jsfiddle showing the issue:

https://jsfiddle.net/0vpqny9y/4/

What I expected to happen was that the value is set properly and the select tag becomes empty.

While the setTimeout example may be silly, where it's becoming a pain to me is when I load both the options and the model that has a property bound to the select at the same time, which results in a race condition:

Options load first, model loads second, the option is present so everything works fine.

Model loads first, the bound value is set to whatever was loaded through AJAX, but since there are no options yet the value is instead set to undefined, then the options load by this time the original value is lost
Issue 1:
Make it possible to create a Trigger config template, and make it possible to enforce the configuration.

Use case / motivation

The use case would be to make ETL Batch jobs configurable, for the use case: Of getting data from a specific time, a DAG that depends on a givin input. like a list of ID's a email, So an extraction from a db can be taken out of Airflow and the result are getting send per mail.

Are you willing to submit a PR?

No

Related Issues

Didn't find anything that follows the idea.

Issue 2:
Description

A task run by the LocalTaskJob periodically updates a timestamp to indicate that the task is still alive and running. If the task is unable to update this timestamp for a long time (for example, due to DB connection errors), the scheduler may reschedule the task to run again. In such a case, it's possible that two instances of the task are running. The task can monitor the time since last heartbeat and kill itself to prevent such cases.

Use case / motivation

Related Issues

Moved here from https://issues.apache.org/jira/browse/AIRFLOW-374
Issue 1:
Check this. Line 71 is repeated several times. Note that there are a bunch of data-screen-row="70" in the inspector.

Scrolling cleans up these old lines and brings it back to normal.

I am not sure what causes it to get in this situation yet. @nathansobo if you have things I should try or dump, lemmie know.

This happens probably once or twice for every hour of work I do.

Issue 2:
Running Atom 0.194.0 on OpenSUSE 13.2, when I go to the "Install +" page of the settings panel, I get the following error:

/usr/share/atom/resources/app/apm/node_modules/asar-require/node_modules/asar/node_modules/chromium-pickle/node_modules/bindings/bindings.js:83

throw e
^

Error: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /usr/share/atom/resources/app/apm/node_modules/asar-require/node_modules/asar/node_modules/chromium-pickle/build/Release/pickle.node)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at bindings (/usr/share/atom/resources/app/apm/node_modules/asar-require/node_modules/asar/node_modules/chromium-pickle/node_modules/bindings/bindings.js:76:44)
at Object.<anonymous> (/usr/share/atom/resources/app/apm/node_modules/asar-require/node_modules/asar/node_modules/chromium-pickle/lib/main.js:1:99)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)

This occurs on every attempt to search for a package, as well as when Atom attempts to retrieve featured packages:

http://i.imgur.com/nzEpMcw.png
Issue 1:
I can't use code when i update it to 0.10.5 .To no avail I have uninstalled and reinstalled the application. OSX 10.11.2.

Issue 2:
VSCode Version:1.2.0

OS Version:Window 10 1511 Version: 10586.318

Steps to Reproduce:

Use your mouse scroll wheel to scroll up in the integrated terminal window

Content moves to the left and is clipped.

I am unable to move the cursor or use the mouse to bring the content back in view. Have to close the window and reopen it to see content normally.

See attached screenshot.
Issue 1:
System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): No

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Mac

TensorFlow installed from (source or binary):

TensorFlow version (use command below):

Python version:

Bazel version (if compiling from source):

GCC/Compiler version (if compiling from source):

CUDA/cuDNN version:

GPU model and memory:

Exact command to reproduce: python tensorflow/examples/image_retraining/retrain.py --image_dir /path/to/image/dir/ --architecture mobilenet_0.25_128_quantized

Describe the problem

while trying to create a mobilenet model, getting this error. The url being created in the retrain.py file, is not accessible via browser either.

Source code / logs

tensorflow.python.framework.errors_impl.NotFoundError: /tmp/imagenet/mobilenet_v1_0.25_128_quantized_frozen/quantized_frozen_graph.pb; No such file or directory

Issue 2:
I'm updating to Tensorflow 1.13 from 1.12.

tf.layers.conv2d is being deprecated.

The note states:

conv2d (from tensorflow.python.layers.convolutional) is deprecated and will be removed in a future version.
Instructions for updating:
Use keras.layers.conv2d instead.

First, there is no 'keras.layers.conv2d'. This is a 'keras.layers.Conv2D', but that is a different function and a direct replacement for 'tf.layers.Conv2D'.

Therefore, either make a 'keras.layers.conv2d' function or remove the deprecation warning for 'tf.layers.conv2d'.

Here's the link to the conv2d fuction.

https://github.com/tensorflow/tensorflow/blob/r1.12/tensorflow/python/layers/convolutional.py

Thanks,
Issue 1:
ℹ Computer information

PowerToys version: 0.21.1.

PowerToy Utility: Fancy Zones

Running PowerToys as Admin: Yes

Windows build number: [run "winver"] Version 2004 build 19041.508

📝 Provide detailed reproduction steps (if any)

Fancy Zones not active

Launch zone editor, create 2 columns (or any other selection), Choose Apply

Hold down Shift key and try to move window to a Fancy Zone

Fancy Zones NOT visible

✔️ Expected result

What is the expected result of the above steps?

❌ Fancy Zone Not visible -> So window not placed in Fancy Zone

What is the actual result of the above steps? Window locked in Fancy Zone

📷 Screenshots

Are there any useful screenshots? WinKey+Shift+S and then just paste them directly into the form

Issue 2:
ℹ Computer information

PowerToys version: v0.21.1

PowerToy Utility: FancyZones

Running PowerToys as Admin: No

Windows build number: Windows 10 Version 2004: 19041.450

📝 Provide detailed reproduction steps (if any)

Check the Allow zones to span across monitors checkbox

Configure a zone which uses multiple monitors via the Launch zones editor and Apply

Attempt to snap window to zones, or use Shift key to highlight zones while dragging

✔️ Expected result

A window should snap to a zone

Zone highlighting ought to be functional

The Allow zones to span across monitors setting should persist even when closing settings

If there are errors "Activating" the zones, these should be raised to the user

❌ Actual result

A window will not snap to a zone when the Allow zones to span across monitors is configured

Window zone highlighting is also not functional

When FancyZones settings is closed and re-opened, the Allow zones to span across monitors checkbox is unchecked

When Allow zones to span across monitors is toggled to checked, then unchecked, zone highlighting and snapping functions, though obviously not with the multi-monitor zones

📝 Other Notes

There is a difference in framerate/refresh rate between the two monitors--could that be an issue?

System is a SurfaceBook 2 in a Surface Dock which drives a 2560 x 1440 monitor at 60 fps and a 2560 x 1440 monitor at 30 fps

The fps cannot be made the same as far as I can tell. Likely a hardware limitation.

Display is an LG 49 ultra-wide ( 5120 x 1440)

📷 Screenshots

FancyZones Settings:

Zone Editor spanning monitors:

Monitor configuration:
Issue 1:
Migrated issue, originally created by Krzysztof Malinowski (@boromil)

Using the official docker form IBM for DB2 10.5.5:

https://hub.docker.com/r/ibmcom/db2express-c/

docker run -it -p 50000:50000 -e DB2INST1_PASSWORD=mypass -e LICENSE=accept ibmcom/db2express-c:latest bash

# create db
su - db2inst1
db2start
db2sampl

python requirements:

#!
sqlalchemy==1.0.17
ibm-db==2.0.5.1
ibm_db_sa==0.3.2

(btw. tried this with the newest versions also - same result)

OS:

#!
Ubuntu 14.04 64bit

Doing:

from sqlalchemy.ext.automap import automap_base
from sqlalchemy import create_engine

Base = automap_base()
engine = create_engine("db2://db2inst1:mypass@172.18.0.1:50000/SAMPLE")
Base.prepare(engine, reflect=True)

raises:

Traceback (most recent call last):
File "db2_automap.py", line 8, in <module>
Base.prepare(engine, reflect=True)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/ext/automap.py", line 777, in prepare
generate_relationship)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/ext/automap.py", line 899, in _relationships_for_fks
nullable = False not in set([fk.parent.nullable for fk in fks])
AttributeError: 'NoneType' object has no attribute 'nullable'

seems that some fk-s have incorrect parent and column attributes

Issue 2:
Migrated issue, originally created by Jorge Sierra

conn_str = string.Template('db2+ibm_db://$user:$password@localhost:50000/Sample').substitute(user = user , password = password)

for t in metadata.sorted_tables:

logger.info ("CreateTable %s %s" % (t.name, CreateTable(t).compile(db2)))

When trying to run CreateTable

compiler.py

around line 2588

under function

def visit_foreign_key_constraint(self, constraint):

this function is assuming f.parent is never 'None' and in my case it was, same as f.column

This is the fix below

list_text1 = []
for f in constraint.elements:
if f.parent is not None:
list_text1.append(preparer.quote(f.parent.name))

list_text2 = []
for f in constraint.elements:
if hasattr(f, 'column'):
if f.column is not None:
list_text2.append(preparer.quote(f.column.name))

text += "FOREIGN KEY(%s) REFERENCES %s (%s)" % (
', '.join(list_text1),
self.define_constraint_remote_table(
constraint, remote_table, preparer),
', '.join(list_text2))
text += self.define_constraint_match(constraint)
text += self.define_constraint_cascades(constraint)
text += self.define_constraint_deferrability(constraint)
return text
Issue 1:
Hi,

Currently snapshot, restore and snapshot delete are limited to one thread only.

This means I cannot restore while a snapshot /snapshot delete is in progress.

In large environments this may be a few hours a day.

My suggestions is to create a separate thread for restores that will not be blocked by running snapshot or deletes

10x

Issue 2:
Elasticsearch does not seem to consistently validate the syntaxt of the input json.

For instance the following (lacking a closing '}' ) returns 400:

curl -v -XPUT 'http://localhost:9200/a/data/1' -d '{"t" : {"a" : "b"}'

But the following (same thing but with a bunch of extra '}' ) goes through, and it is even able to fetch it back:

curl -v -XPUT 'http://localhost:9200/a/data/1' -d '{"t" : {"a" : "b"}}}}}}}}}}}}}}'

I tried this on 1.4.3 and 1.5.2. Both show the same behavior.
Issue 1:
In 3.0.0-rc1 having an element with the hidden-sm hidden-md classes will only hide it for medium devices and not for small ones as well.

Issue 2:
Navbar.less file has the following definition of the .navbar-fixed-... styles:

.navbar-fixed-top {
top: 0;
border-width: 0 0 1px;
}
.navbar-fixed-bottom {
bottom: 0;
margin-bottom: 0; // override .navbar defaults
border-width: 1px 0 0;
}

It would be better if the border width (1px) was defined via a variable. With the fixed 1px value. to override it, I need to create a duplicate entry for the styles in a CSS file. It would be easier to use a variable, which could be overwritten by a custom LESS file (the preferred approach for style customization).
Issue 1:
Context:

Playwright Version: 1.10.0

Describe the bug

Your API reference declares all your API entities as classes, but your types.d.ts declares the same entities as interfaces.

Issue 2:
With playwright-webkit with proxy on Windows 10, 11 URL is not opening causing Unable to connect the host. The same is working on macOS. Past reference issues - #23617 #21954

System info

Playwright Version: v1.30.0 v1.31.1

Operating System: Windows 10, Windows 11

Browser: Webkit

Other info: BrowserMob Proxy 2.1.4

Source code

I provided exact source code that allows reproducing the issue locally.

Scripts

server.js

'use strict';
const { webkit } = require('playwright');
(async () => {
const browserServer = await webkit.launchServer({
args: ['--ignore-certificate-errors'],
proxy: {
server: "http://127.0.0.1:8081"
},
headless: false,
ignoreHTTPSErrors: true,
logger: {
isEnabled: () => true,
log: (name, severity, message, args) => console.log(`${name} ${message}`),
},
});
const wsEndpoint = browserServer.wsEndpoint();
console.log(wsEndpoint);
})();

client.js

const { webkit } = require('playwright');

(async () => {
const browser = await webkit.connect({
wsEndpoint: `wss://<url>`,
});
const page = await browser.newPage();
await page.goto('https://www.google.com');
await browser.close();
})();

Steps

Download the BrowserMob Proxy

Run BrowserMob Proxy - browsermob-proxy.bat

Create a Proxy curl -X POST http://localhost:8080/proxy

Create a HAR Request curl -X PUT http://localhost:8080/proxy/8081/har

Run playwright server node server.js

Copy the URL from the console & paste into the client script in wsEndpoint.

Run the client script - node client.js

Expected

URL should open.

Actual

Unable to connect the host
Issue 1:
Hello,

I am working on project that requires :authority header. When I put that it throws errors!!!

Please HELP ME!!!!!!

Issue 2:
My app is making a POST request enforcing some specific header fields. Among them, I was able to explicitly enforce a ":method" header field. But since 2.28.0, this now raises the following error:

requests.exceptions.InvalidHeader: Invalid leading whitespace, reserved character(s), or returncharacter(s) in header name: ':method'

Enforcing this header field is possibly a widespread practice as this is part of the requirements for sending notifications through Apple's push notification servers.
Issue 1:
Environment

Windows build number: 10.0.18362.0
Windows Terminal version (if applicable): 0.4.2382.0

Any other software? Just running bash terminal as usual

Steps to reproduce

Run Windows Terminal on a recent Surface Pro device with the official Type Cover

Expected behavior

Relatively controllable scrolling, comparable to other terminals like cmd.exe or Powershell. (Both scroll completely fine on my setup)

Actual behavior

Windows Terminal scrolls at least 8+ lines at a time, zipping up the console history at lightspeed. The smallest scroll increment scrolls at least 8 lines at a time, making precise scrolling nigh impossible.

In my mouse/trackpad settings, I've verified that it is set to only scroll 1 line at a time with the trackpad. This is correctly reflected by other terminals (cmd.exe, powershell, etc) scrolling correctly.

Issue 2:
Environment

Windows build number:Microsoft Windows [Version 10.0.18363.418]
Windows Terminal version (if applicable): 0.6.2591.0

Any other software? no

Steps to reproduce

I have a number of environment profiles (9 in total)

profiles.txt

Expected behavior

To be able to have more then 5 profiles (like shown in the windows store screenshot)

Actual behavior

In the drop down and using the hotkeys what I get is

Which after many experiments appears to be:

first 2 profiles

last 3 profiles

for a total of 5 profiles
Issue 1:
Matthew Sgarlata opened SPR-889 and commented

I just tested with Spring 1.2 RC2 and this continues to be an issue as described on the Spring user's list. Here is the relevant discussion thread:

Here is my bean definition:

<bean
name="calendarIndependentDataModelUpgradeTask"
class="com.spider.scoreboard.framework.upgrade.upgrades.CalendarIndependentDataModelUpgradeTask">
<lookup-method
name="createMetricsToSeriesTransformer"
bean="metricsToSeriesConverter"/>
</bean>

This uses method injection, so the callsbacks property is coming from the CGLIB proxy that is generated for the bean. By AbstractAutowireCapableBeanFactory.createBean:320, the instanceWrapper has been set to a BeanWrapper that wraps the CGLIB proxy. Then the bean is populated and its dependencies are checked using the BeanWrapper. The BeanWrapper wraps the CGLIB proxy, so the missing callbacks property is detected and an error message is thrown.

Matt

PS, here is the stack trace right before the exception gets thrown

Thread [main] (Suspended)

DefaultListableBeanFactory(AbstractAutowireCapableBeanFactory).dependencyCheck(String, RootBeanDefinition, BeanWrapper, PropertyValues) line: 855

DefaultListableBeanFactory(AbstractAutowireCapableBeanFactory).populateBean(String, RootBeanDefinition, BeanWrapper) line: 713

DefaultListableBeanFactory(AbstractAutowireCapableBeanFactory).createBean(String, RootBeanDefinition, Object[], boolean) line: 331

DefaultListableBeanFactory(AbstractAutowireCapableBeanFactory).createBean(String, RootBeanDefinition, Object[]) line: 257

DefaultListableBeanFactory(AbstractBeanFactory).getBean(String, Class, Object[]) line: 223

DefaultListableBeanFactory(AbstractBeanFactory).getBean(String) line: 147

ScoreboardApplicationContext(AbstractApplicationContext).getBean(String) line: 531

Launcher.launch(Launchable) line: 56

CalendarIndependentDataModelUpgradeTask.main(String[]) line: 85

Affects: 1.2 RC2

Attachments:

stack.txt (5.33 kB)

Issue Links:

#5611 Unsatisfied dependency error in property 'callbacks' error when using lookup-method injection with dependency check with cglib 2.1 ("duplicates")

Issue 2:
John Glynn opened SPR-6299 and commented

A common requirement is that a @ModelAttribute annotated method be dependent upon another.

ie.

@ModelAttribute("foo")
public Object getFoo() {
...
}

@ModelAttribute("bar")
public Object getBar(@ModelAttribute("foo") Object foo) {
if( some condition of foo ){
do stuff
}
}

Affects: 2.5.6

Reference URL: http://forum.springsource.org/showthread.php?p=263603#post263603

Issue Links:

#14555 @ModelAttribute usage, can prevent @ModelAttribute initialization of dependent. ("is duplicated by")

#15939 @ModelAttribute parameter dependency issue. ("is duplicated by")

#15541 @ModelAttribute allowed on attribute in @ModelAttribute annoted method ("is duplicated by")

#10365 Allow an @ModelAttribute method to be invoked after the @RequestMapping method

#18269 Portlet MVC @ModelAttribute interdependency is still not supported

Referenced from: commits 56a82c1

27 votes, 32 watchers
Issue 1:
Following the SQL (Relational) Databases tutorial, it seems one has to define Pydantic and SQLAlchemy models separately:

# models.py
class User(Base):
__tablename__ = 'users'
id = Column(Integer, primary_key=True)
name = Column(String)

# schema.py
class User(BaseModel):
name: str

As the number of models grows, this leads to large amounts of duplicate code and attributes. Is there a way to merge these two classes into one, or are there any plans on adding such functionality?

Issue 2:
Describe the bug

"startup" and "shutdown" events not triggered for mounted APIs

To Reproduce

from fastapi import FastAPI
from fastapi.testclient import TestClient

app = FastAPI()
subapp = FastAPI()
app.mount("/prefix", subapp)

@app.on_event("startup")
async def startup_event_1() -> None:
print("startup for", app)

@app.on_event("shutdown")
async def shutdown_event_1() -> None:
print("shutdown for", app)

@subapp.on_event("startup")
async def startup_event_2() -> None:
print("startup for", subapp)

@subapp.on_event("shutdown")
async def shutdown_event_2() -> None:
print("shutdown for", subapp)

with TestClient(app):
pass

startup/shutdown is triggered for app but not subapp

Expected behavior

Events are emitted in both cases
Issue 1:
Description

For now, DotEnv component don't allow null as value and don't type values.

We can type value when reading, with %env(int:foo)%. But if an env var is used more than one time, we have to duplicate type hint at each read.

Can we take that problem (typing at reading) on the other side: typing at declaration, not at reading ?

For null value, it's impossible for now, and that's a problem. Maybe we can have a syntax to allow null at declaration ?

Example

/.env

VAR_INT=!int:12

VAR_FLOAT=!float:12.2

VAR_STRING=!string:foo

VAR_STRING_2=foo

VAR_ALLOW_NULL=!?string:null

VAR_ARRAY=!array:[!int:12, !string:foo]

Problems

As DotEnv is installed for dev env by default, how can we do to parse env var in prod env ?

Issue 2:
Right now, the only difference between the UsernamePasswordFormAuthenticationListener and the SimpleFormAuthenticationListener is the fact that the authentication provider can be injected. All other code inside is equal.

I think it would be fairly easy to remove the UsernamePasswordFormAuthenticationListener altogether, and let the form_login factory insert the SimpleFormAuthenticationListener with a custom authentication provided that creates the UsernamePasswordToken.

This way, we could get rid of the whole UsernamePasswordFormAuthenticationListener class, and the duplicated code.
Issue 1:
Original ticket http://projects.scipy.org/numpy/ticket/1174 on 2009-07-15 by @stsci-sienkiew, assigned to unknown.

======================================================================
FAIL: test_testUfuncRegression (test_old_ma.TestUfuncs)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/ra/pyssg/2.5.1/numpy/ma/tests/test_old_ma.py", line 689, in test_testUfuncRegression
self.failUnless(eqmask(ur.mask, mr.mask))
AssertionError

----------------------------------------------------------------------

numpy 1.4.0.dev7132

solaris 8

python 2.5.1

Issue 2:
After running pip install numpy, i see the following:

Collecting numpy
Using cached https://files.pythonhosted.org/packages/ac/36/325b27ef698684c38b1fe2e546e2e7ef9cecd7037bcdb35c87efec4356af/numpy-1.17.2.zip
Installing collected packages: numpy
Running setup.py install for numpy ... done
ERROR: Could not install packages due to an EnvironmentError: [WinError 123] The filename, directory name, or volume label syntax is
incorrect: '"c:'

Windows 7 x64, Python 3.8.0, MS Visual Studio 2017.