WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
I'm submitting a ... (check one with "x")

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

Using reactive forms. When swedish letters (åäö) is used in a input placeholder, the form and input is initialized as dirty.

This only affects IE11, or perhaps also earlier versions of IE.

Expected behavior

The form and input should not be dirty because of swedish letters in placeholder.

Minimal reproduction of the problem with instructions

http://plnkr.co/edit/u3iEtQ?p=preview

http://plnkr.co/edit/LpZNI9m7j8m8tgXRFdVG?p=preview (old plunk with typo and not working)

What is the motivation / use case for changing the behavior?

bug

Please tell us about your environment:

Windows 10

Angular version: 4.0.2, also affects 2.x

Browser: Internet Explorer 11

Language: all

Issue 2:
I'm submitting a ... (check one with "x")

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

Textarea element in form when binding model has initial state as dirty in IE

Expected behavior

Textarea element in form when binding model has initial state as pristine in IE

Minimal reproduction of the problem with instructions

Using ng-form with textarea element and bind model on that textarea

Plunker example: http://plnkr.co/edit/JEgKqSEXGpUDSRDuMXcD?p=preview

Inspect textarea in browser development tool. textarea and form element have ng-pristine CSS class in Chrome/Firefox/Edge while they have ng-dirty CSS class in IE.

Please tell us about your environment:

Angular version: 2.4.7

Browser: IE 11
Issue 1:
Neither RFECV.fit nor GridSearchCV.fit take the parameter sample_weight. Please add this as an optional parameter to both methods. This parameter is useful for unbalanced classification.

Issue 2:
Currently many of our metrics allow for sample weights, but when using the cross_val_score or GridSearchCV these are not taken into account. As I said on the mailing list, I'm not sure if this is a bug or a feature. It might depend on the domain whether we want to do this or not.

#4497 will allow to do this in a more consistent manner.
Issue 1:
Migrated issue, originally created by Anonymous

A user has run the unit tests and is confused that many of them fail when running with the default SQLite database. in theory it would be nice for every single unit test to check against the current database engine and to not run if it is known that the engine does not support a given operation.

(omitting unit test output, descriptions follow)

Issue 2:
Migrated issue, originally created by Michael Bayer (@zzzeek)

because an inheritance relationship copies the properties from the base mapper to the child mapper at construction time, an add_property on the base mapper fails to propigate to the child mapper. this is most apparent when creating a backref against the base mapper:

content_type = Table('content_type', engine,
Column('id', Integer, primary_key=True)
)
content = Table('content', engine,
Column('id', Integer, primary_key=True),
Column('content_type_id', Integer, ForeignKey('content_type.id'))
)
product = Table('product', engine,
Column('id', Integer, ForeignKey('content.id'), primary_key=True)
)
class ContentType(object): pass
class Content(object): pass
class Product(Content): pass

# this test fails currently
contents = mapper(Content, content)
products = mapper(Product, product, inherits=contents)
content_types = mapper(ContentType, content_type, properties={
'content':relation(contents, backref='contenttype')
})
p = Product()
p.contenttype = ContentType()
Issue 1:
Summary of the new feature/enhancement

I like to use multiple desktops, I have one for Work and another for Home time. I would love if I could specify certain apps to always open on a designated desktop. For example, all my work needs to be done in Chrome, but I use Firefox as my personal browser. I'd love if I could tell Chrome to always open on the Work desktop and Firefox to always open on the Home desktop.

Proposed technical implementation details (optional)

I'm open to methods on how to assign this kind of thing to a window. Maybe add a right click option to windows that appear when I WinKey+Tab that lets me "pin" it to a specific desktop?

Issue 2:
Please can you add feature in Keyboard Manager to map shortcuts keys to type symbols like, Alt(Left) + a would type "π".

👍
Issue 1:
by fgergo:

What steps will reproduce the problem?
1. compiling, linking and running ./5.out

package main

import "fmt"

func main() {
fmt.Println("Hello")
}

What is the expected output?
"Hello" is printed.

What do you see instead?
SIGILL: illegal instruction
PC=0x637c4

math.initÂˇ1+0x30 /n/sd/1/go/src/pkg/math/pow10.go:24
math.initÂˇ1()
math.InitÂˇ+0x76c /n/sd/1/go/src/pkg/math/unsafe.go:21
math.InitÂˇ()
reflect.InitÂˇ+0x68 /n/sd/1/go/src/pkg/reflect/value.go:1234
reflect.InitÂˇ()
fmt.InitÂˇ+0x78 /n/sd/1/go/src/pkg/fmt/scan.go:992
fmt.InitÂˇ()
main.init+0x68 /n/sd/1/go/src/cmd/fgergo/a.go:7
main.init()
runtime.mainstart+0x8 /n/sd/1/go/src/pkg/runtime/arm/asm.s:65
runtime.mainstart()
runtime.initdone+0x64 /n/sd/1/go/src/pkg/runtime/proc.c:-1181
runtime.initdone()

trap 0x6
error 0x0
oldmask 0x0
r0 0xe76a0
r1 0x0
r2 0xc013d686
r3 0xcad20
r4 0x0
r5 0x0
r6 0x0
r7 0x0
r8 0x0
r9 0xe7378
r10 0x40022000
fp 0xe5728
ip 0xcafebabe
sp 0x40023fb8
lr 0x640a8
pc 0x637c4
cpsr 0x20000010
fault 0x0

Which compiler are you using (5g, 6g, 8g, gccgo)?
5g

Which operating system are you using?
$ uname -a
Linux dugo 2.6.22.18 #1 Thu Mar 19 14:46:22 IST 2009 armv5tejl GNU/Linux

Which revision are you using? (hg identify)
b91808966dbd+ tip

Please provide any additional information below.
Sheevaplug

$ set|grep GO
GOARCH=arm
GOARM=5
GOOS=linux
GOROOT=/n/sd/1/go

$ gdb --quiet 5.out
(no debugging symbols found)
(gdb) r
Starting program: /n/sd/1/go/src/cmd/fgergo/5.out

Program received signal SIGILL, Illegal instruction.
0x000637c4 in ?? ()
(gdb) disassemble 0x637c0 0x637f0
Dump of assembler code from 0x637c0 to 0x637f0:
0x000637c0: nop (mov r0,r0)
0x000637c4: fconstd d0, #112
0x000637c8: vstr d0, [r0]
0x000637cc: ldr r0, [pc, #268] ; 0x638e0
0x000637d0: nop (mov r0,r0)
0x000637d4: mov r1, #8 ; 0x8
0x000637d8: add r0, r0, r1
0x000637dc: nop (mov r0,r0)
0x000637e0: fconstd d0, #36
0x000637e4: vstr d0, [r0]
0x000637e8: mov r0, #2 ; 0x2
0x000637ec: str r0, [sp, #20]
End of assembler dump.
(gdb)

Issue 2:
go/types accepts the following program:

package a
func f() {
switch 0 {
case 0:
case 0:
}
}

While both gc and gccgo reject it with duplicate case 0 in switch.

Compilers should agree on validity of this program.

on commit 997b354
Issue 1:
System info

Playwright Version: [v1.33.0]

Operating System: macOS 13.2

Browser: [All, Chromium, Firefox, WebKit]

Other info:

Source code

Link to the GitHub repository with the repro

Test file (self-contained)

await test.step("demo1", async () => {
await page.setExtraHTTPHeaders({ token: "", secret: "" });
await page.route(/(https:\/\/(.*))/, (route) => {
const headers = route.request().headers();
headers["token"] = process.env.token ?? "";
headers["secret"] = process.env.secret ?? "";
route.continue({ headers });
});
await page.goto("https://www.google.com");
});

Steps

[Run the test]

[...]

Expected

It should not display the route.continue outside of test step

Actual

Issue 2:
System info

Playwright Version: v1.35.1

Operating System: macOS 13.4

Browser: Chromium

Other info:

Source code

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

Config file

// playwright.config.ts
import { defineConfig, devices } from '@playwright/test';

export default defineConfig({
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'], },
},
});

Test file (self-contained)

import { mkdtemp, rm } from "fs/promises";
import { tmpdir } from "os";
import path from "path";
import { test as base, chromium, BrowserContext } from "@playwright/test";

const test = base.extend<{
downloadsPath: string;
context: BrowserContext;
}>({
downloadsPath: async ({}, use) => {
const downloadsPath = await mkdtemp(path.join(tmpdir(), "playwright-downloads-path-"));
await use(downloadsPath);
await rm(downloadsPath, { recursive: true });
},
context: async ({ channel, downloadsPath }, use) => {
const context = await chromium.launchPersistentContext("", {
headless: false,
args: [
"--headless=new",
],
downloadsPath,
channel,
});
await use(context);
await context.close();
}
});

test("click to download", async ({ context, downloadsPath }) => {
const page = await context.newPage();
await page.goto("https://www.example.com/");
await page.setContent(`
<a href="https://github.com/microsoft/playwright/archive/refs/tags/v1.35.1.tar.gz">open</a>
`);
const cdpSession = await context.newCDPSession(page);
await cdpSession.send("Browser.setDownloadBehavior", {
behavior: "default",
downloadPath: downloadsPath,
eventsEnabled: true,
});
await cdpSession.detach();

const [download] = await Promise.all([
page.waitForEvent("download"),
page.click("a"),
]);
test.expect(await download.path()).toContain(downloadsPath);
await download.saveAs("tarball.tar.gz");
});

Steps

Run the test

Expected

The test to pass

Actual

saveAs fails because the file is actually downloaded to the real user's Download folder.

Notes

I use Browser.setDownloadBehavior with default behavior to work around #19885
Issue 1:
With introduction of next-plugins we've got more functionality and dependencies exposed in next.config.js, using plugins like next-sass and others adds extra development dependencies to the runtime, even in production mode, since next.config.js is execute at server start time.

Requiring us to carry along node modules that we'd never use with production baked artifacts.

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

Expected Behavior

As we discussed last week, possible solution would be to allow next.js to read lifecycle specific configs, like next.config.dev.js and next.config.build.js with fallback to next.config.js.

Current Behavior

Loads next.config.js irrespectively of the lifecycle stage.

Thank you.

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

Expected Behavior

When using a custom server, routing to a page should automatically bundle the styles of all included components.

Current Behavior

That is not the case. You will need to hard refresh the page to get the styles to be built.

Steps to Reproduce (for bugs)

Clone https://github.com/Kyle-Mendes/next-sass-modules/tree/custom-server (make sure you're on the custom-server branch

Run yarn dev

visit localhost:3000

Click "Test Page"

Observe: The Headline component is not styled.

Refresh the page

Observe: The Headline component is styled.

NOTE:

Sometimes, even doing a hard reload results in Headline not being styled.

Your Environment

Tech
Version

next
6.0

node
9.11.1

OS
Mac OS

browser
Chrome
Issue 1:
Apache Airflow version

2.4.0

What happened

Upgraded airflow from 2.1.4 to 2.4.0, did airflow db upgrade, all seems to work ok

In the new grid view UI though, we don't seem to be able to see running DAGs in the default grid view (All run states)

Filtering for "Running" does show the DAG is actually running, with the latest DAGRun, I'm just wondering why it doesn't show for All run states, the DAG runs shown there are 1 run behind.

What you think should happen instead

Shows all DAG runs from latest backwards, as with old UI

How to reproduce

Upgrade from 2.1.4 to 2.4 and look at grid view for DAGs that have been upgraded and have many runs over the past few years.

Not sure if one actually needs to upgrade airflow and db or if the bug is purely from 2.4 Grid view, probably the latter.

Operating System

Ubuntu 18.04.6 LTS (Bionic Beaver)

Versions of Apache Airflow Providers

2.4 apache-airflow

Deployment

Virtualenv installation

Deployment details

AWS Ec2 running airflow using the pinned requirements files you have

Anything else

No response

Are you willing to submit PR?

Yes I am willing to submit a PR!

Code of Conduct

I agree to follow this project's Code of Conduct

Issue 2:
Apache Airflow version

2.4.0

What happened

Airflow 2.4.0's grid view has an issue:

Grid view stop showing the latest DAG runs in 2.4.0 (regardless of schedule, it shows old dag runs)

case 1 (all 25 are old dag runs)

case 2 (old and new dag runs are mixed)

What you think should happen instead

No response

How to reproduce

Go to a DAG with >365 dag runs

The place where it's supposed to show the latest dag run in the "grid view" now shows an old dag run ~1 year ago

Operating System

Linux Mint 20.3 Una

Versions of Apache Airflow Providers

No response

Deployment

Other Docker-based deployment

Deployment details

No response

Anything else

No response

Are you willing to submit PR?

Yes I am willing to submit a PR!

Code of Conduct

I agree to follow this project's Code of Conduct
Issue 1:
I uncovered this general issue while testing loading JavaScript files from node_modules, but realized (and confirmed) this applies to TypeScript files also.

Basically, when we search the node_modules folder, we look for all supported extensions and add them to the compilation. Currently this means that if we find a TypeScript file in a Node module (e.g. someone published their package including the source), then we compile this also.

For example, if module sausages was published as follows (with the original source besides the compiler files):

- node_modules
|- sausages
|- package.json
|- core.ts
|- core.js

Then we get the benefit of loading the .ts and getting the types from this. However on compiling an app which uses the sausages/core module, with outDir: "out", I get the resulting output (notice how core.js from the sausages package has been compiled into a node_modules folder in my outDir).

I already added a flag to denote if a file was found by searching Node modules in this pull request. I can refactor this to eliminate this issue if that seems reasonable.

Issue 2:
TypeScript Version:

1.8.10

Code

interface TNode {
Kids?: (TNode | string)[];
}

function foo(node: TNode) { }

foo({
Kids: [ { Kids: [ { c: 1 } ]} ]
});

Expected behavior:

The error message should contains something like "Object literal may only specify known properties, and 'c' does not exist in type 'TNode | string' "

Actual behavior:

The error message is

error TS2345: Argument of type '{ Kids: { Kids: { c: number; }[]; }[]; }' is not assignable to parameter of type 'TNode'.
Types of property 'Kids' are incompatible.
Type '{ Kids: { c: number; }[]; }[]' is not assignable to type '(TNode | string)[]'.
Type '{ Kids: { c: number; }[]; }' is not assignable to type 'TNode | string'.
Type '{ Kids: { c: number; }[]; }' is not assignable to type 'string'.

The misleading part is "Type '{ Kids: { c: number; }[]; }' is not assignable to type 'string' ".

If I change TNode | string to TNode | Element, the error message becomes

error TS2345: Argument of type '{ Kids: { Kids: { c: number; }[]; }[]; }' is not assignable to parameter of type 'TNode'.
Types of property 'Kids' are incompatible.
Type '{ Kids: { c: number; }[]; }[]' is not assignable to type '(TNode | Element)[]'.
Type '{ Kids: { c: number; }[]; }' is not assignable to type 'TNode | Element'.
Type '{ Kids: { c: number; }[]; }' is not assignable to type 'Element'.
Property 'classList' is missing in type '{ Kids: { c: number; }[]; }'.

Which is also misleading.

Strangely, If I reverse the order of the union types (i,e. string | TNode and Element | TNode), the error messages become expected.
Issue 1:
VSCode Version: 1.0.0

OS Version: OSX 10.11.3

Unity 5.3.4f1

Steps to Reproduce:

Configure Visual Studio Code with Unity as described at: https://code.visualstudio.com/Docs/runtimes/unity

Start debugger and set breakpoint

See screenshot: Hovering on the method parameter works and I can see its values.

Hovering over the private object variables (see _startPiece, _id, etc.. in the screenshot) does not work. No hover popup is displayed.

Issue 2:
TypeScript Version:

1.8.10

VSCode Version:

1.0.0

OS

Linux 4.4.8-300.fc23.x86_64

Fedora 23

Gnome 3.18.2

Project structure

├── dist

│ ├── app.js

│ ├── app.js.map

│ ├── other code

├── node_modules

├── npm-shrinkwrap.json

├── package.json

├── readme.md

├── src

│ ├── app.ts

│ ├── other code

├── tsconfig.json

├── tsd.json

├── tslint.json

└── typings

├── main.d.ts

tsconfig.json

{
"compilerOptions": {
"noImplicitAny": false,
"removeComments": true,
"preserveConstEnums": true,
"sourceMap": true,
"sourceRoot": "./src",
"module": "commonjs",
"target": "es5",
"outDir": "dist"
},
"filesGlob": [
"src/**/*.ts",
"src/app.ts"
],
"exclude": [
"node_modules",
"dist",
"doc",
"Gruntfile.js"
]
}

Expected behavior:

vscode should look for the app.ts in the sourceRoot

And "activate" intelisense

Actual behavior:

vscode doesn't find the app.ts and because of this intelisense doesn't work

Edit

added the intelisense part to the behavior describtion
Issue 1:
Ramkumar Krishnan opened SPR-4691 and commented

It would be great if we have something like SimpleJdbcUpdate similar to SimpleJdbcInsert. It should take map<column names ,values> and another map<updateColumnNames, values> as parameters and it should update table based on that.

The column names in the second map should appear in the WHERE clause. There should be an overloaded method also which takes only one String(column name) which should appear in the WHERE clause.

Affects: 2.5.3

20 votes, 22 watchers

Issue 2:
Keith Donald opened SPR-7745 and commented

Would be nice extension of the resource handler work in Spring 3 in the cases where the resource handling is performed off-site with the help of a CDN such as Amazon Cloudfront. The best practice in this environment is to upload two versions of each static resource: a uncompressed version, and a compressed version. In development you would want to work with a local, uncompressed version, but in production you'd expect the gzipped version to be used and be served from the CDN.

See: http://internetmarketingbyme.com/74/gzip-compression-using-amazon-s3-cloudfront-cdn/

See: http://lanyrd.com/blog/2010/ical

Affects: 3.0.5

Issue Links:

#16488 Create ResourceResolver for changing URL domain ("duplicates")

#11800 Add support for versioning resources

#16488 Create ResourceResolver for changing URL domain

1 votes, 2 watchers
Issue 1:
Original ticket http://projects.scipy.org/scipy/ticket/1009 on 2009-09-30 by trac user jap, assigned to unknown.

If there are large values in the observation matrix, the vq.kmeans method fails with the following error:

(Pdb) centroids, distortion = vq.kmeans(erow, centroids, iter=1)

*** UnboundLocalError: local variable 'best_book' referenced before assignment

This can be fixed by applying the attached patch.

Issue 2:
Original ticket http://projects.scipy.org/scipy/ticket/1077 on 2009-12-28 by @kwgoodman, assigned to unknown.

Just for fun I tried kmeans on a problem that has a LOT of features. I got an error:

UnboundLocalError: local variable 'best_book' referenced before assignment

The exception is raised because all sets of randomly selected starting centroids gave a distance greater than the initialized value of best_dist (100k) and therefore best_book is never assigned. Increasing the hard coded best_dist solved the problem.

In the patch below I initialize best_dist to np.inf:

Index: scipy/cluster/vq.py
===================================================================
--- scipy/cluster/vq.py (revision 6151)
+++ scipy/cluster/vq.py (working copy)
@@ -485,7 +485,7 @@
result = _kmeans(obs, guess, thresh = thresh)
else:
#initialize best distance value to a large value
- best_dist = 100000
+ best_dist = np.inf
No = obs.shape[0]
k = k_or_guess
if k < 1:
Issue 1:
VSCode Version: 1.0.0-alpha

OS Version: Windows10

Steps to Reproduce:

Launch VS code and open any folder which contains .ts file.

Configure tasks.json and tsconfig.json files.

Set "showOutput": "always" setting into tasks.json.

Perform build operation and verify error or success message in the output window.

Actual: Getting proper message when there is any build error but not getting any message when build is successful.

Expected: When build is successful user should get the "Build success" message something similar to Visual Studio.

Issue 2:
Currently there is no way to tell if a script is running other than a spinning bar in the bottom which is hard to see. If the task doesn't spit any output than there is no way to know if it's still running or finished other than by looking at that bar. Would be nice to get something more visible and explicit.
Issue 1:
Your Windows build number:

10.0.18362.86

What you're doing and what's happening:

Trying to enter the @ sign on a Swedish keyboard in a PowerShell console using Alt Gr + 2.

See animated gif:

What's wrong / what should be happening instead:

Windows terminal shows digit-argument instead of outputting the @ sign as expected.

It's possible this is a PEBKAC error somehow but the problem doesn't show up in the normal PowerShell console... 😓

Issue 2:
Your Windows build number: (Type ver at a Windows Command Prompt)

Microsoft Windows [Version 10.0.18362.86]

What's wrong / what should be happening instead:

When the tab is running a wsl (Debian or Ubuntu) task any character requiring Alt Gr on the German Keyboard layout (~, @, |, etc.) don't get printed at all, besides \ which gets printed as <ffffffff>

When the tab is running cmd.exe or powershell.exe the regular value of the key is returned as if Alt Gr wasn't pressed at all.
Issue 1:
As mentioned here:

There is a problem what tests belong to which file/module. std solves that currently with prefixing every test name. Though that works, I think there would be a better solution. deno test should log file paths to differentiate the tests like so for a better overview:

std/datetime/test.ts
test parse ... ok
test format ... ok
…
std/bytes/test.ts
test findIndex1 ... ok
test findIndex2 ... ok
…

Issue 2:
Currently, all tests from different test file are printed as if they are all from one file. This could be a problem on a large test suite where developer needs to find failed test case/file.

In Jest, tests are grouped per file. By default, only file names and names of failed tests are shown.

Alternative Proposals

Show file names alongside test case.

Display a tree of file names and test case. File names are branches, and test cases are leafs.

Create a Deno.testGroup function that acts like describe in Jest, use it in .deno.test.ts to wrap import line of a test file.

Log test file names before execution (similar to cargo test).