sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: stable-diffusion-webui
Issue: [Bug]: DEBUG messages not printed regardless --loglevel argument. 
Labels: bug-report

### Checklist

- [X] The issue exists after disabling all extensions
- [X] The issue exists on a clean installation of webui
- [ ] The issue is caused by an extension, but I believe it is caused by a bug in the webui
- [X] The issue exists in the current version of the webui
- [X] The issue has not been reported before recently
- [ ] The issue has been reported before but has not been fixed yet

### What happened?

DEBUG messages not printed when `--loglevel` set to DEBUG. Minimal severity is INFO.

### Steps to reproduce the problem

Start webUI with --loglevel DEBUG parameter. 

### What should have happened?

Debug messages should be displayed. 

### What browsers do you use to access the UI ?

Google Chrome

### Sysinfo

not relevant 

### Console logs

```Shell
not relevant
```


### Additional information

Actually I can fix it myself and create PR if you ok with it. It's as easy as pass log_level to `TqdmLoggingHandler` in 
```python
def setup_logging(loglevel):
    if loglevel is None:
        loglevel = os.environ.get("SD_WEBUI_LOG_LEVEL")

    if loglevel:
        log_level = getattr(logging, loglevel.upper(), None) or logging.INFO
        loghandlers = []

        if TQDM_IMPORTED:
            loghandlers.append(TqdmLoggingHandler(level = log_level))

        logging.basicConfig(
            level=log_level,
            format='%(asctime)s %(levelname)s [%(name)s] %(message)s',
            datefmt='%Y-%m-%d %H:%M:%S',
            handlers=loghandlers
        )
```
Repository: flutter
Issue: Web: include different files depending on the flavor
Labels: c: new feature,tool,platform-web,c: proposal,P2,team-web,triaged-web


### Use case (flavors for the web)

When building an application for the web that supports multiple environments like dev, staging, prod. It is sometimes useful to have different versions of files per environment:
 
 - different .well-known folder for each environment, particularly useful for [app links](https://docs.flutter.dev/cookbook/navigation/set-up-app-links) and the ios equivalent universal links.  (my personal use case)
 - different favicon for each environment
 - More generally, different public files for each environment,  index.html, manifest, favicons..
 - related: https://github.com/flutter/flutter/issues/78254
 

### Proposal


Allow `fluttor build/run --flavor=x` to move folders under `/flavors` into root. such that a structure like this:

```
/web
   index.html
   /flavors
      /dev
         manifest.json
         favicon.ico
         /.well-known
            assetlinks.json  
     /staging
         manifest.json
         favicon.ico
         /.well-known
            assetlinks.json  
```
Results in this structure after a build with either `--flavor dev` or staging:

```
/web
   index.html
   manifest.json
   favicon.ico
   /.well-known
      assetlinks.json  
```

Overrides would happen if the file is present at both the root and .flavor/x level.
Repository: tauri
Issue: [feat] Get system accent color on macOS
Labels: type: feature request,platform: macOS

### Describe the problem

Currently you can't use system accent colors on Mac because of wkwebview.

### Describe the solution you'd like

<img width="632" alt="Capture d’écran 2024-01-11 à 15 45 45" src="https://github.com/tauri-apps/tauri/assets/121387740/6a2a1cd9-c205-4dab-8ac6-0028b48db30c">


### Alternatives considered

_No response_

### Additional context

If needed : https://stackoverflow.com/questions/62797493/how-can-i-use-the-macos-system-accent-color-in-css
Repository: material-ui
Issue: [material-ui][Slider] Labels of the marks goes beyond the block
Labels: component: slider,package: material-ui

### Steps to reproduce

Link to live example: (required)

Steps:
1. Put Slider component to the page
2. Add marks min and max
3. Marks goes beyond the block


### Current behavior

_No response_

### Expected behavior

Marks fit the parent container

### Context

<img width="423" alt="image" src="https://github.com/mui/material-ui/assets/26111842/0822b0aa-eac1-4062-a605-5329a1d734f3">
As you can see they are not in the  container 

### Your environment

<details>
  <summary><code>npx @mui/envinfo</code></summary>

```
  System:
    OS: macOS 14.1.2
  Binaries:
    Node: 20.9.0 - /usr/local/bin/node
    npm: 10.1.0 - /usr/local/bin/npm
    pnpm: Not Found
  Browsers:
    Chrome: 120.0.6099.216
    Edge: Not Found
    Safari: 17.1.2
  npmPackages:
    @emotion/react: ^11.11.3 => 11.11.3 
    @emotion/styled: ^11.11.0 => 11.11.0 
    @mui/base:  5.0.0-beta.31 
    @mui/core-downloads-tracker:  5.15.4 
    @mui/icons-material: ^5.15.4 => 5.15.4 
    @mui/material: ^5.15.4 => 5.15.4 
    @mui/material-nextjs: ^5.15.3 => 5.15.4 
    @mui/private-theming:  5.15.4 
    @mui/styled-engine:  5.15.4 
    @mui/system:  5.15.4 
    @mui/types:  7.2.13 
    @mui/utils:  5.15.4 
    @mui/x-date-pickers: ^6.18.7 => 6.18.7 
    @types/react: ^18.2.47 => 18.2.47 
    react: ^18.2.0 => 18.2.0 
    react-dom: ^18.2.0 => 18.2.0 
    typescript: ^5.3.3 => 5.3.3 
</details>


**Search keywords**: slider
Repository: vscode
Issue: Compare active file with saved resulting editor missing some features
Labels: accessibility,diff-editor

screenshot from @rperez030 

When in this file, +/- diff signs are not alerted and the document has no outline provider, which allows for easier navigation. Note that I also tried with a wider window and had the same results. 

![Screenshot 2024-01-11 at 6 55 47 AM (1)](https://github.com/microsoft/vscode/assets/29464607/fd89530a-662e-412e-8efd-60885f8cbe7b)
Repository: TypeScript
Issue: Generic indexed access on type with optional properties doesn't include `undefined` in its constraint in `exactOptionalPropertyTypes`
Labels: Help Wanted,Possible Improvement

### 🔎 Search Terms

exactOptionalPropertyTypes optional generic indexed access undefined missing contextual constraint eopt

### 🕗 Version & Regression Information

- This changed in 5.3.0-dev.20230914

### ⏯ Playground Link

https://www.typescriptlang.org/play?exactOptionalPropertyTypes=true&ts=5.4.0-dev.20240111#code/PTAEAEFMA8EMGMAuB5ADoglgewHawDYAKATlqpMYgJ4AqV5AzgFyiLECukAUFxjohQBmCSKAAaAZUSwBAYVyCMAc3bEZ2HKADeXUKwAWkALaQA-CwBEsdoiwXQAH1AWAJrGIBre04v5l+xAsAbl1QADcMSAB3eXx2IxxzZwAjSAYMF0hvZwRMMKyQgF8eTPh8d1FBdhwkDVAlSEQANQZ4LEz5HEUVNUxcAB4aAD4ACgZIWtwWBjY+JQBKFhpHUGrMxRxIFxCuGFQsSlAqmr7NBsRO7tV1AYA5WBNQGAEcFwZQD0gqLEFxKRlIJdlNdTqNQngTCx7iYADRcRZ-aRyBTA3oaADa0MgAF1tKE2jgZvVIJtiBh4ABBBjpJR4ZIYPzUGhpRAsSRIwEono3HCYh440AAXlWr0gGy2QVAICexFIxB4emIjVUZ0aLTaHS5II0IwhkHmkulFDlXGKXAJRIJ8CVAipNLpDIwTJZbP+yK6qJ56M+31+7IBQO5p1xwrWYr4EqlYCwHi4QA

### 💻 Code

```ts
// @exactOptionalPropertyTypes: true

interface XStateConfiguration {
  theme?: "auto" | "dark" | "light";
  viewColumn?: "beside" | "active";
}

declare function getVscodeConfiguration<T>(section: string): T | undefined;

export function getConfiguration<Name extends keyof XStateConfiguration>(
  name: Name,
): XStateConfiguration[Name] {
  const genericAssignabilityTest: XStateConfiguration[Name] = undefined; // error

  return getVscodeConfiguration(name); // error
}

const concreteAssignabilityTest: XStateConfiguration[keyof XStateConfiguration] = undefined; // ok
```


### 🙁 Actual behavior

`undefined` is not assignable to an indexed access like this in expression space

### 🙂 Expected behavior

I'd expect this to typecheck OK - just like the concrete example

### Additional information about the issue

_No response_
Repository: pytorch
Issue: [dynamo][inline-inbuilt-nn-modules]torch.compile silently incorrect with full_backward_pre_hook
Labels: triaged,oncall: pt2,module: dynamo,internal ramp-up task,dynamo-must-fix

```python
import torch
import torch.nn as nn

layer = nn.Linear(3, 3, bias=False)
layer.weight = nn.Parameter(torch.eye(3, dtype=torch.float))

def hook(module, grad_output):
    return tuple(go * 2 for go in grad_output)

@torch.compile(backend="aot_eager", fullgraph=True)
def f(x):
    y = layer(x)
    return y

x = torch.randn(3, requires_grad=True)
f(x)
layer.register_full_backward_pre_hook(hook)

x = torch.randn(3, requires_grad=True)
y = f(x)
y.sum().backward()
print(x.grad)
```
Gives different results with or without torch.compile.

cc @ezyang @gchanan @kadeng @msaroufim @wconstab @bdhirsh @anijain2305 @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @aakhundov
Repository: ollama
Issue: Ollama is running in background in MacOS
Labels: bug

Even if I exit the ollama app I can see the ollama among run processes
Repository: pytorch
Issue: deepcopy of `nn.Parameter` does not transfer __dict__
Labels: module: nn,triaged

### 🐛 Describe the bug

The override of `__deepcopy__` in `nn.Parameter` does not transfer __dict__ to the new object.

Example:

```python
from copy import deepcopy
import torch
from torch.nn import Parameter

x = torch.randn(4, 4)
p = Parameter(x)

x.foo = "bar"
p.baz = "qux"

xc = deepcopy(x)
pc = deepcopy(p)


print(xc.foo)  # succeeds
print(pc.baz)  # fails
```

### Versions

nightly

cc @albanD @mruberry @jbschlosser @walterddr @mikaylagawarecki
Repository: tensorflow
Issue: ROCm platform installation guide
Labels: stat:awaiting tensorflower,type:feature,type:build/install,type:docs-feature

### Issue type

Documentation Feature Request

### Have you reproduced the bug with TensorFlow Nightly?

No

### Source

source

### TensorFlow version

master branch

### Custom code

No

### OS platform and distribution

_No response_

### Mobile device

_No response_

### Python version

_No response_

### Bazel version

_No response_

### GCC/compiler version

_No response_

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current behavior?

We tried to write an email: https://github.com/tensorflow/tensorflow/issues/62784

I am currently working on ROCm documentation project as technical writer with @saadrahim and @lisadelaney. The AMD would like to extend the documentation with ROCm platform related information. The main areas, which first we would like to cover:

- install page: https://www.tensorflow.org/install/
- build from source [Linux] page: https://www.tensorflow.org/install/source
- pip install page: https://www.tensorflow.org/install/pip
- Docker install page: https://www.tensorflow.org/install/docker

Our goal is to keep the docs as clear and easy to navigate as is. Adding AMD GPU support to the docs may warrant minor structural changes. We are confident that we can devise a solution that satisfies all parties, but to minimize review bounces and implementation effort:

- Are there generic principles, or principles specific to this document to keep in mind (beside keeping the formatting and grammatical style intact)?
- Are changing these files sufficient or are there others files we have to update to streamline the upstream process?

Some of the things we keep in mind during contribution:

- Platform coverage initially will be narrower with AMD support. (No 1:1 mapping between CUDA/ROCm coverage.)
    - Document structure would somehow have to reflect this and be clear.
- The current docs conflate "GPU" support with "CUDA" support.
    - The install instructions (and with time other doc parts) would need to be clearer on what is related to offload acceleration and what is specific to vendors.

We already find the following page: https://www.tensorflow.org/community/contribute/docs

### Standalone code to reproduce the issue

```shell
I can't give you standalone code for this.
```


### Relevant log output

_No response_
Repository: ollama
Issue: Support for CogVLM wanted. CogVLM is an alternative for LLaVA
Labels: model request

Currently ollama is supporting LLaVA, which is super great.
I wonder is there a chance to load other similar models like CogVLM?

https://github.com/THUDM/CogVLM
Repository: flutter
Issue: Some images are not disposed in FF tests.
Labels: a: leak tracking
Repository: angular
Issue: Make `Router.currentUrlTree` public.
Labels: feature,area: router,feature: votes required

### Which @angular/* package(s) are relevant/related to the feature request?

router

### Description

I am used to using url trees in my route guards and also when navigating inside my Angular application in general.
Frequently I need the current router state as a `UrlTree`. Current solution is to parse the current url string from state to a url tree as follows: `this.router.parseUrl(state.url)`.

I recently noticed that the Router class actually [has a private `currentUrlTree` getter method](https://github.com/angular/angular/blob/main/packages/router/src/router.ts#L71C3-L73C4):

```
  private get currentUrlTree() {
    return this.stateManager.getCurrentUrlTree();
  }
```

Would it be possible to change this getter to public? Since the method is already there it should not really be a problem to make it publicly available right? Or would there be something against exposing the current url tree to the end users!?

If this feature request is eligible for merging I can make a pull-request.

### Proposed solution

Make the getter `Router.currentUrlTree` public.

### Alternatives considered

Continue using other cumbersome solutions to get the current router state as a `UrlTree`.
Repository: kubernetes
Issue: Clean up sig-windows OWNER files
Labels: kind/cleanup,sig/windows,needs-triage

We should look at ll the sig-windows owners files in various repos (esp test-infra / k8s.io / others) and make sure they are are up to date

/kind cleanup
/sig windows
/assign @marosset @jsturtevant @aravindhp
Repository: go
Issue: runtime: epoll scalability problem with 192 core machine and 1k+ ready sockets
Labels: Performance,OS-Linux,NeedsInvestigation,compiler/runtime,Scalability

Split from https://github.com/golang/go/issues/31908#issuecomment-1887667141 and full write-up at https://jazco.dev/2024/01/10/golang-and-epoll/.

tl;dr is that a program on a 192 core machine with >2500 sockets and with >1k becoming ready at once results in huge costs in `netpoll -> epoll_wait` (~65% of total CPU).

Most interesting is that sharding these connections across 8 processes seems to solve the problem, implying some kind of super-linear scaling.

That the profile shows the time spent in `epoll_wait` itself, this may be a scalability problem in the kernel itself, but we may still be able to mitigate.

@ericvolp12, some questions if you don't mind answering:

* Which version of Go are you using? And which kernel version?
* Do you happen to have a reproducer for this problem that you could share? (Sounds like no?)
* On a similar note, do you have a `perf` profile of this problem that shows where the time in the kernel is spent?
* The 128 event buffer size is mentioned several times, but it is not obvious to me that increasing this size would actually solve the problem. Did you try increasing the size and see improved results?

cc @golang/runtime
Repository: vscode
Issue: Scrolling not working anymore when hovering on notebook sticky scroll
Labels: bug,notebook-sticky-scroll

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->
<!-- 🔎 Search existing issues to avoid creating duplicates. -->
<!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->
<!-- 🔧 Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes/No

<!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->
<!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->

Scrolling has not effect when the mouse is above the notebook sticky scroll. We might want to redirect the scroll event to notebook editor widget like how we do that for webview events.
Repository: transformers
Issue: `get_imports` failing to respect conditionals on imports
Labels: Good Second Issue

### System Info

- `transformers` version: 4.36.2
- Platform: macOS-13.5.2-arm64-arm-64bit
- Python version: 3.11.7
- Huggingface_hub version: 0.20.2
- Safetensors version: 0.4.1
- Accelerate version: not installed
- Accelerate config: not found
- PyTorch version (GPU?): 2.1.2 (False)
- Tensorflow version (GPU?): not installed (NA)
- Flax version (CPU?/GPU?/TPU?): not installed (NA)
- Jax version: not installed
- JaxLib version: not installed
- Using GPU in script?: no
- Using distributed or parallel set-up in script?: no

### Who can help?

From `git blame`: @Wauplin @sgugger 

From issue template (it's a LLM): @ArthurZucker @you

### Information

- [ ] The official example scripts
- [X] My own modified scripts

### Tasks

- [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...)
- [X] My own task or dataset (give details below)

### Reproduction

Running the below snippet on a MacBook without an Nvidia GPU and `transformers==4.36.2` will throw an `ImportError` to `pip install flash_attn`. However, `flash_attn` isn't actually a requirement for this model, so something's off here.

```python
from transformers import AutoModelForCausalLM

model = AutoModelForCausalLM.from_pretrained("microsoft/phi-1_5", trust_remote_code=True)
```

Leads to:

```
  File "/Users/user/code/project/venv/lib/python3.11/site-packages/transformers/dynamic_module_utils.py", line 315, in get_cached_module_file
    modules_needed = check_imports(resolved_module_file)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/user/code/project/venv/lib/python3.11/site-packages/transformers/dynamic_module_utils.py", line 180, in check_imports
    raise ImportError(
ImportError: This modeling file requires the following packages that were not found in your environment: flash_attn. Run `pip install flash_attn`
python-BaseException
```

Investigating this, it seems https://github.com/huggingface/transformers/blob/v4.36.2/src/transformers/dynamic_module_utils.py#L154 is picking up `flash_attn` from https://github.com/huggingface/transformers/blob/v4.36.2/src/transformers/models/phi/modeling_phi.py#L50-L52. However, if you look at the file, it's within an `if` statement.

Therein is the bug, that `transformers.dynamic_module_utils.get_imports` is not respecting conditionals before imports.

Please see https://huggingface.co/microsoft/phi-1_5/discussions/72 for more info.

### Expected behavior

My goal is some way to avoid monkey patching `get_imports` to remove the extra inferred `flash_attn` dependency.

The most generalized solution is probably moving `get_imports` from regex searching the source to either use `inspect` (see [here](https://stackoverflow.com/a/47093697)) or some other AST walking method. I am pretty sure there is a simple fix here, it just involves moving away from a regex.
Repository: material-ui
Issue: [joy-ui][Accordion] First/Last style problems
Labels: on hold,component: accordion,package: joy-ui

### Steps to reproduce

Link to live example: https://codesandbox.io/p/sandbox/joyui-accordion-first-last-6k8zvz

Steps:
1. Create an rounded AccordionGroup with Accordions inside
2. Replace Accordions components with Custom components wrapping Accordions
3. Or add conditions around the first or last accordion that return "false" or "null" if falsy


### Current behavior

The first and last Accordion items are not set properly (data-first-child and data-last-child are not set).

While hovered, first's/last's backgrounds overlap with the border. And the last child is displaying an extra border.

![image](https://github.com/mui/material-ui/assets/454396/fcc611a0-89b6-4e22-9783-e6911bb2dbed)

### Expected behavior

Same style as normal use.

### Context

Using the latest version of JoyUI (5.0.0-beta.22)

Found this maybe-related issue: https://github.com/mui/material-ui/issues/40272
Repository: TypeScript
Issue: Rename doesn't work on declaration whose name is a string literal
Labels: Suggestion,Help Wanted,Domain: Refactorings,Experience Enhancement

Follow up to https://github.com/microsoft/TypeScript/issues/56052, which was fixed by https://github.com/microsoft/TypeScript/pull/56061. That fix means that rename from string literal values that are contextually typed by the type of the string-literal-named property *do* work. But renames on the actual property declaration still don't.

```ts
interface I {
    "Prop 1 Foo": string
    // ^-- rename here doesn't work
}
declare const fn: <K extends keyof I>(p: K) => void
fn("Prop 1 Foo")
```

[Playground link](https://www.typescriptlang.org/play?ts=5.4.0-dev.20231213#code/JYOwLgpgTgZghgYwgAgJLIN4ChnIEQAKUA9gA7ICMyAYscXgFzIDOYUoA5lgL64D0fZAD1kpADbNkbAJ7IoEEHAC2KYGGRwJxZAAtoKALTI1xySGLqYwAB4QAJlkdY7EBGLjzkCYiFbIYIEwAPADSyBDWkCB2kgDWENLEMGgAfAAUpEwhAJTIALwpyABuxMAOWAFphCTkVLT02VgCuLgi0hCSRvKKKrr6yADucJKa8nB2sla2dkA)

As before, if you use constant with a literal type, renaming the literal type does work:

```ts
declare const indirect: "Prop 1 Foo"
interface I {
  [indirect]: string
}
// ... same as before ...
```
Repository: flutter
Issue: flutter_tools doesn't handle all cases of detecting if Android project is using Kotlin
Labels: t: gradle,P2,team-android,triaged-android

[Per this](https://stackoverflow.com/questions/69297003/are-kotlin-android-and-org-jetbrains-kotlin-android-the-same), the Kotlin Gradle Plugin can be applied using 2 ids: `kotlin-android` and `org.jetbrains.kotlin.android`.

but `flutter_tools`' code only detects `kotlin-android`:

https://github.com/flutter/flutter/blob/db7ef5bf9f59442b0e200a90587e8fa5e0c6336a/packages/flutter_tools/lib/src/project.dart#L448-L450

This might result in strange and hard to debug problems, especially that pure Android projects created with Android Studio use `org.jetbrains.kotlin.android` instead of `kotlin-android`.
Repository: PowerToys
Issue: Fancy Zones to allow apps to exceed their dimensions, effectively overlapping each other by an x amount of pixels
Labels: Idea-Enhancement,Product-FancyZones,Needs-Triage

### Description of the new feature / enhancement

To have an option where any fancy zone can exceed its dimensions on any side so I can make use of precious pixels on my monitor instead of having them wasted by an application's title bar.

### Scenario when this would be used?

I'm running Fancy Zones on a 24" monitor in portrait mode, split into 3 thirds from top to bottom, In the screenshot below (Before), you can see that "📞 Whatsapp" has this unnecessary title bar that I can utilize by making Discord's UI become a bit taller (Discord as well). I usually adjust discord's and Spotify's height manually as the snapping does not allow me to do this custom resizing.

### Supporting information

### Before:
![image](https://github.com/microsoft/PowerToys/assets/2001803/be23f253-2ccb-49a6-a71e-71e3bef69e1a)

### Desired Result:
![image](https://github.com/microsoft/PowerToys/assets/2001803/53f602d9-b81a-4467-8a36-ae6b61f38ca8)