WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
The code example for using NgClass with an Object as expression is not working on the Beta version. I'm referring to this section: https://angular.io/docs/ts/latest/guide/template-syntax.html#!#ngClass.

It seems that creating a component method which returns an object:

setClasses() {
let classes = {
saveable: this.canSave, // true
modified: !this.isUnchanged, // false
special: this.isSpecial, // true
}
return classes;
}

and then using it this way:

<div [ngClass]="setClasses()">This div is saveable and special</div>

Generates this error:

Error: Expression 'setClasses() in Component@line:col' has changed after it was checked. Previous value: '[object Object]'. Current value: '[object Object]'

I'm using chrome 47.0.2526.111 m

I don't know whether this should work or the documentation should be changed, but it works with either constant objects, writing the object directly in the html template, etc.

One more suggestion is to add quotes to class names in ngClass examples since they are needed for keys with special characters (e.g. 'visible-md'):

let classes = {
'saveable-thing': this.canSave, // true
'modified-input': !this.isUnchanged, // false
'special': this.isSpecial, // true
}

This is easy to notice when returned from the component but a little more troublesome to debug when the object is used in the html template, as shown here (classes don't have quotes in this section) https://angular.io/docs/ts/latest/api/common/NgClass-directive.html

Issue 2:
Not sure if this is something auto-generated or not, but Typescript 1.8 doesn't allow things like:

export { Promise }

and I get this error on using tsc against an Angular 2 application using TypeScript 1.8.0

node_modules/angular2/src/facade/promise.d.ts(1,10): error TS2661:
Cannot re-export name that is not defined in the module.

Per https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#typescript-18

I would love to get TypeScript 1.8 support as it seems to have the ability to package up ES5 files alongside of TypeScript files, and could eliminate the need for WebPack in certain situations.
Issue 1:
I am relatively new to flutter, but as far as I can tell, the google sign in flutter plugin does not allow you to authenticate with a custom back end using sign in options such as:

.requestIdToken(getString(R.string.server_client_id))

I can login to my google account no issues, but my idToken is always null, which is something we would need to have for our back-end system.

Am I completely misunderstanding how to use this?

Issue 2:
Steps to Reproduce

I started using Firebase Auth after I already had a custom OAuth impl in place, so in my previous app, I would authenticate the user on Firebase, but also request an ID Token from Google Signin https://developers.google.com/identity/sign-in/android/offline-access.

Is there currently a way to do this on google_signin? On Android, I would do something like SignIn.requestServerAuthCode(serverClientId).

Logs

n/a

Flutter Doctor

[√] Flutter (Channel master, v0.2.12-pre.33, on Microsoft Windows [Version 10.0.14393], locale en-ZA)
• Flutter version 0.2.12-pre.33 at C:\Users\<me>\flutter
• Framework revision ea30c95dc9 (2 days ago), 2018-04-13 17:02:14 -0700
• Engine revision 76cb311d9c
• Dart version 2.0.0-dev.47.0.flutter-f76dad0adc

[√] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at C:\Users\<me>\AppData\Local\Android\sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-27, build-tools 27.0.3
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)
• All Android licenses accepted.

[√] Android Studio (version 3.1)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 23.0.2
• Dart plugin version 173.4700
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)

[√] IntelliJ IDEA Community Edition (version 2017.3)
• IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2017.3.4
• Flutter plugin version 23.0.2
• Dart plugin version 173.4700

[√] IntelliJ IDEA Ultimate Edition (version 2018.1)
• IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA 2018.1
• Flutter plugin version 23.1.3
• Dart plugin version 181.4203.498

[√] VS Code, 64-bit edition (version 1.22.1)
• VS Code at C:\Program Files\Microsoft VS Code
• Dart Code extension version 2.11.2

[√] Connected devices (1 available)
• SM G610F • 5203f84b5378a381 • android-arm • Android 7.0 (API 24)

• No issues found!
Issue 1:
Description of the problem

When I set .lights to false on a MeshStandardMaterial the renderer crashes setting up the uniforms for the material.

Here is an example taken from the MeshStandardMaterial demo in the three documentation.

https://jsfiddle.net/cleveard/xyu5tav2/

I am not sure what is happening, but the shader is being created with the lighting chunks, but the uniform values aren't being initialized because material.lights is false.

Three.js version

Dev

r91

r90

Browser

All of them

Chrome

Firefox

Internet Explorer

OS

All of them

Windows

macOS

Linux

Android

iOS

Hardware Requirements (graphics card, VR Device, ...)

Issue 2:
As reported in #12763 (comment), we're currently updating the video texture at 60 (or 90 in VR) fps.

Ideally we'll only update the texture on the GPU in sync with the video framerate (usually 25-30). Unfortunately the web platform does not provide any API for figuring out the framerate of a video so something like videoTexture.frameRate = 25 is needed.

It seemed easy enough so I tried to implement this (#13304) but I hit some browser bugs and I had to revert (#13305).

It'll be good to investigate this a bit more and report bugs to browsers if needed.
Issue 1:
Here is a link that you can experiment with the problem.

https://dl.dropboxusercontent.com/u/15234/bs3/index.html

Steps to reproduce:

Reduce the size until navbar collapses

Click on toggle button

Click on dropdown

While expanded, increase the width until the navbar collapses

Bug!

Issue 2:
Scrollbars show for the y-overflow when moving from collapse to full width and a dropdown is open in the navbar.

To reproduce, shrink the browser window down to where the nav collapses and then open a dropdown causing the nav to overflow and show the scroll bar. Then, resize back to full width without first closing the nav. Because the collapse class is no longer on the navbar-collapse div, the navbar shows the scrollbars because its overflow-y is set to auto;

I was seeing this while using latest version of Chrome on Windows. Haven't looked in other browsers.

The following LESS Fixes the issue:

@media screen and (min-width: @grid-float-breakpoint) {
.navbar-collapse {
overflow: visible !important;
}
}
Issue 1:
Example: It's useful to have a single place where we define what it means for a Pod to be in a terminated state (and conversely a non-terminated state). Once we have controllers responsible for GCing their Pods, this is something we want all controllers to have the same definition of, and if for some reason we change/add/delete Phases, we want to only have to change the definition in one place.

There surely will be other use cases, if there aren't already.

This would not be part of the API or user-visible, it's just for convenience of writing things like controllers (and maybe schedulers) and the like.

Issue 2:
As far as I can tell right now it's only possible to create an ingress to address services inside the namespace in which the Ingress resides. It would be good to be able to address services in any namespace.

It's possible that I'm missing something and this is already possible - if so it'd be great if this was documented.
Issue 1:
7812b25 broke the export of multiple actions for me. Instead, only the currently active animation of an armature will be exported.

Isn't looping over data.actions and then checking for each action if it is identical to armature.animation_data.action the same as just exporting armature.animation_data.action in the first place?

Issue 2:
When working on the Multiview PR #16316 I've noticed that updating array of matrices uniforms impact the performance quite a lot.

This is mainly because of the cache, checking both elements are the same and then copying the array if not, seems to be a hot spot.

I'll try to get some numbers to compare using cache vs not using for arrays. I believe it could be interesting to consider avoid caching arrays or maybe provide a way to define that you don't want to cache some uniforms if you already know they'll be changing per frame.

Looking at the Babylon's sourcecode it seems they just cache simple data https://github.com/BabylonJS/Babylon.js/blob/master/src/Materials/effect.ts#L1113-L1122 but not arrays https://github.com/BabylonJS/Babylon.js/blob/master/src/Materials/effect.ts#L1131-L1174.

So some ideas:

Avoid using cache for Array uniforms

Allow the user to define which uniforms must not use cache

Add a new boolean param to setValue to force non-cache update, eg: uniform.setValue(gl, 'name', [a,b], true)
Issue 1:
I've created a minimal repo to demonstrate the issue: https://github.com/shareup/deno-watch-stops-watching-bug

Deno version: 1.30.0

OS: macOS 13.2, aarch64

The first time a file outside the module graph is updated, the server restarts. The second and further times, files outside the module graph do not trigger a server restart anymore. Files in the module graph always trigger a restart.

This worked correctly, I believe, in version 1.27.x – the server would restart if any watched file changed, even if it was outside the module graph, across server restarts.

Issue 2:
This is a regression between v1.29.2 and v1.29.3; likely caused by #15466.

To reproduce:

echo 'a' > file.txt
echo 'console.log(await Deno.readTextFile("file.txt"))' > cat.ts
deno run -A --watch=file.txt cat.ts &
echo 'b' >> file.txt
echo 'c' >> file.txt
echo 'd' >> file.txt

On v1.29.2, each echo causes the watcher to trigger; on v1.29.3 and v1.30.0, only the first echo does.
Issue 1:
FancyZones: Set a default / favourite layout to use when opening a new virtual desktop

When opening a new virtual desktop, no window layout will be used and will require the user to open powertoys and manually select a window layout.

It would save time by instead having a default window layout automatically apply when opening a new virtual desktop

Issue 2:
没有在搜索关键字前加盘符，使用powertoy的搜索功能时，发现只能搜索到C盘的文件，是否能够将搜索功能做成同everything一样的全局搜索，我的资料基本上都不存在C盘。
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

Add with-bunyan example.

I understand the main challenge is bunyan not work friendly with webpack.

I have try one day full. Open this issus for some help.

Current Behavior

Steps to Reproduce (for bugs)

Context

Your Environment

Tech
Version

next
3

node
8

OS
OSX

browser
Chrome

etc

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

I've read:

#2152

#3778

7b2cd84#diff-bec864430eb5752a683c8798d0c6bd6c

c210a2e

Expected Behavior

No error on terminal.

Current Behavior

Getting error on terminal for next 5.0.0, 5.0.1-canary.8 but not 4.3.0-canary.1:

{ Error: Can't set headers after they are sent.
at SendStream.headersAlreadySent (/home/tima/apps/builderbook/book/4-end/node_modules/send/index.js:390:13)
at SendStream.send (/home/tima/apps/builderbook/book/4-end/node_modules/send/index.js:618:10)
at onstat (/home/tima/apps/builderbook/book/4-end/node_modules/send/index.js:730:10)
at FSReqWrap.oncomplete (fs.js:153:5) expose: false, statusCode: 500, status: 500 }

I've read this issue #2152

However I don't redirect inside getInitialProps.

My app has express/next server. Link

Steps to Reproduce (for bugs)

Start app with different versions of next 5.0.0, 5.0.1-canary.8, 4.3.0-canary.1

When app uses 5.0.0, 5.0.1-canary.8 versions of next (but not 4.3.0-canary.1) then you see above error object in terminal
Issue 1:
Glide Version:4.2.0 , No problem on Glide 4.1.1

Integration libraries:okhttp 4.2.0

Device/Android Version:Smartisam SM901 android 6.0.1

Issue details / Repro steps / Use case background:

Image display error on this devices.

Glide load line / GlideModule (if any) / list Adapter code (if any):

GlideApp.with(this)
.load(imageUrl)
.placeholder(LoadingColorManager.getHotItemDrawable())
.centerCrop()
.transform(new RoundedCorners(20))
.into(imageView);

Layout XML:

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="210dp"
android:foreground="?android:attr/selectableItemBackground">

<ImageView
android:id="@+id/iv_cover"
android:layout_width="match_parent"
android:layout_height="match_parent"
/>

<LinearLayout
android:layout_gravity="bottom"
android:layout_margin="8dp"
android:gravity="center_vertical"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">

<ImageView
android:id="@+id/iv_user_head"
android:layout_width="28dp"
android:layout_height="28dp" />

<TextView
android:id="@+id/tv_user_name"
android:textSize="12dp"
android:singleLine="true"
android:maxLines="1"
android:ellipsize="end"
android:textColor="@android:color/white"
android:layout_marginLeft="4dp"
android:layout_marginRight="4dp"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1" />

<TextView
android:id="@+id/tv_like_count"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/white"
android:textSize="12dp" />

</LinearLayout>

<ImageView
android:id="@+id/iv_video_flag"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right|top"
android:layout_marginRight="5dp"
android:src="@drawable/community_icon_video"
android:visibility="gone"/>
</FrameLayout>

Issue 2:
Glide 4.9.0 and annotation processors 4.9.0. It's impossible to compile because the code generated for glide modules contains the old android annotations instead of using annotations included in android-x packages.
Issue 1:
I am trying to get index templates working properly but I want to include them in my configuration. I have added lots of logging to the code and I see the following:

When I index something that should match a template I see ES go looking for matching templates. However none ever match.

All template objects return null when calling the template method.

The cause of the problem seems to be the parsing in the "fromXContent()" method in "IndexTemplateMetadata.Builder". The field it starts with is the template name but it proceeds to the next token without storing it in the template object that is being built.

Duplicating the "template" field makes it work:

{
"template" : "my_template",
"order" : 2,
"template" : "my_template",
"settings" : {
...

Issue 2:
As a stopgap to index-based allocation, could offer an API to move a shard to a specific node.

This can be used to move large shards to specific nodes, then let smaller shards reallocate around them.

A plugin like elasticsearch-head could let you drag & drop a shard to a node to manually rebalance.
Issue 1:
I noticed that if you use customizer, this block of css is compiled to the end of bootstrap.css instead of normally around line 2800:

.fade {

opacity: 0;

-webkit-transition: opacity 0.15s linear;

transition: opacity 0.15s linear;

}

.fade.in {

opacity: 1;

}

.collapse {

display: none;

}

.collapse.in {

display: block;

}

.collapsing {

position: relative;

height: 0;

overflow: hidden;

-webkit-transition: height 0.35s ease;

transition: height 0.35s ease;

}

This causes issues such as modals with fade to have a completely black background (as ,fade.in is after .modal-backdrop.in)

I am not sure if this is an issue with other css blocks as well but so far I haven't noticed any other effects except for this one.

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:
Problem description

The ListItem properties are not readable.

Link to minimal working code that reproduces the issue

http://www.material-ui.com/#/components/list

Images & references

Versions

Material-UI:

React:

Browser:

Issue 2:
Problem description

PropTypes.oneOf properties seem to break the template in the documentation for version v.0.17.4

Image

Link that reproduces the issue

http://www.material-ui.com/v0.17.4/#/components/menu

http://www.material-ui.com/v0.17.4/#/components/chip

http://www.material-ui.com/v0.17.4/#/components/drawer

...etc

Versions

Material-UI: v0.17.4
Issue 1:
The vanilla command to activate the development server is documented as:

$ flask --app hello run --debug

on

https://flask.palletsprojects.com/en/2.2.x/server/ copyright 2010 (Really, no changes since 2010?)

no longer works. Specifically the '--debug' option seems to be obsolete.

$ flask run --help says use

--debugger / --no-debugger and strongly implies that the debugger is on by default (although there is room for a different interpretation).

The web page and help are not aligned.

Replication:

$ flask --app flasker run --debug produces an error

$ flask --app flaskr run --debugger starts the development server.

I did not check if the debugger is on by default

Describe the expected behavior that should have happened but didn't:

Per https://flask.palletsprojects.com/en/2.2.x/server/

$ flask --app hello run --debug

should start the development server.

Environment:

Python version: 3.11.0

Flask version: 2.2.2

Werkzeug: 2.2.2

Windows: Microsoft Windows 11 Pro, 10.0.22623 Build 22623

Issue 2:
Python 3.9.13

Flask 2.2.2

Werkzeug 2.2.2

The docs, in more than one place:

https://flask.palletsprojects.com/en/2.2.x/quickstart/#debug-mode

https://flask.palletsprojects.com/en/2.2.x/server/#command-line

say to run flask run --debug but that doesn't actually work:

Usage: flask run [OPTIONS]
Try 'flask run --help' for help.

Error: No such option: --debug (Possible options: --debugger, --no-debugger)

You need to run flask --debug run
Issue 1:
nicolas de loof opened SPR-1936 and commented

On Java 1.3/1.4, commons-attributes can be use to pre-java5 meta-data development.

commons-attributes uses a pre-compiler that creates new classes to collect annotations.

Backport175 (http://backport175.codehaus.org/Overview) uses bytecode enhancement to add annotations to java1.3/1.4 .class files. Those meta-data can the be read at runtime as java5-compliant annotation (on a java5+ JRE) or using a simple backport175 API on java1.3/1.4.

Using Spring Attributes abstraction, it sounds easy to support backport175. The only difficulty I can notice is that backport175 uses interfaces to define annotations, so it may require to duplicate any existing Spring attributes (commons-attributes attributes may implements backport interfaces for consitency).

No further details from SPR-1936

Issue 2:
Chris Beams opened SPR-5504 and commented

Currently, configuring tiles is somewhat cumbersome / low-level, in that users must define a UrlBasedViewResolver bean and provide a viewClass property of type TilesView.

Better would be to provide a concrete TilesViewResolver implementation for convenience.

Issue Links:

#10079 Make Tiles 2 easier to configure in Spring MVC ("duplicates")
Issue 1:
jason bayk opened SPR-5584 and commented

<bean id="A" class="...">

<property name="a" value="4"/>

</bean>

<bean id="B" class="...">

<property name="b" value=" #{T(Math).sqrt(4)}"/>

</bean>

The above bean definition works as expected resolving value of the property "b" to 2.

However, the following definition fails on expression parsing:

<bean id="B" class="...">

<property name="b" value=" #{T(Math).sqrt(A.a)}"/>

</bean>

The error is:

Field or property 'A' cannot be found on object of type 'java.lang.Math'

Affects: 3.0 M2

Reference URL: http://forum.springsource.org/showthread.php?p=231886#post231886

Attachments:

SPR-5584.zip (5.07 kB)

Issue Links:

#11191 SpEL context is wrong in method parameter resolution ("duplicates")

1 votes, 1 watchers

Issue 2:
Ronald Dauster opened SPR-9273 and commented

Being a Throwable, org.springframework.web.client.HttpStatusCodeException should be serializable.

However, it references a java.nio.charset.Charset, which is not java.io.Serializable, causing an NotSerializableException.

Affects: 3.1.1

Issue Links:

#13976 HttpStatusCodeException not serializable ("is duplicated by")

#12247 HttpStatusCodeException should contain response body

Referenced from: commits 2ff4372
Issue 1:
Bug report

Describe the bug

Router.push ('/') doesn't work when I import a .styl file into index.js.

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

Go to https://next-router-push-cztzjhofde.now.sh/

Click on About Button > It works

Click on Home Button > It works

Click on About Button again > It works

Refresh the page

Click on Home Button > Doesn't work

Expected behavior

When I refresh the page and click on Home Button it should be redirected to Home Page.

Screenshots

Not applicable.

System information

OS: Windows 10

Browser: chrome, firefox, edge

Version of Next.js: 7.0.1

Additional context

This problem only occurs when I import the styl file. If I remove it, the problem disappears. If I import the .styl file into the Header, the problem doesn't happen.

Source code available here: https://github.com/robertoachar/next-router-push.

Bug: https://github.com/robertoachar/next-router-push/commit/647443fca6de7abba39134e60b48bc1c82456b27.

Issue 2:
Bug report

Describe the bug

When using @zeit/next-sass and CSS Modules, a Router.push (or click on <Link>) has no effect when linking from a page that doesn't have a CSS import to another page that has.

To Reproduce

Clone https://github.com/claus/next-test-css-modules

npm run dev

Click on the "Test" link.

Nothing happens.

Expected behavior

App should navigate from the index page to /test.

System information

OS: macOS

Version of Next.js: 9.0.2

Additional context

What appears to happen is that the test.js script loads, but the loaded component

is never registered. In PageLoader loadPage(), the page register event is never fired,

and as a result the Promise never fulfills/rejects.

To "fix" the app:

Either uncomment import styles from './index.scss' in index.js

Or comment out import styles from './test.scss' in test.js
Issue 1:
When will the following method be implemented as it restricts the splitting up of code in Dart.

Object visitPartOfDirective(PartOfDirective node) {
// TODO(kegluneq): Consider importing [node.libraryName].
logger.warning('[${assetId}]: '
'Found `part of` directive while generating ${DEPS_EXTENSION} file, '
'Transform may fail due to missing imports in generated file.');
return null;
}

Issue 2:
There are a few things that need to happen to support using parts, lets collect them here.

Add support for discovering angular annotations in parts.

Skip any dart files with a part of directive if they are primary inputs (do not output a .ng.deps file).

Whenever we find a part directive in a primary input load the file and treat any annotations found as if they were in the current file.