WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Generator inherits from Iterator, Iterator inherits from Iterable. And list([iterable]) takes an Iterable as argument.

So, why data in DataFrame(data) can't be an Iterable?

pandas/pandas/core/frame.py

Lines 381 to 383
in
620abc4

elif isinstance(data, (list, types.GeneratorType)):

if isinstance(data, types.GeneratorType):

data = list(data)

pandas/pandas/core/frame.py

Lines 407 to 408
in
620abc4

elif isinstance(data, collections.Iterator):

raise TypeError("data argument can't be an iterator")

Issue 2:
Hi there,

I have a codebase that (so far) consumes data series in the form of dict-yielding iterators, similar in form to how DataFrame's constructor accepts a list of such. Unfortunately it seems from current implementation of that constructor, there is no straightforward way to consume from an iterator straight into a DataFrame.

For example, I have a row factory for sqlite3 written in C that produces dicts. If pandas would accept an iterator, it should be possible to consume a series directly from speedy storage code into speedy data structure code. :)

Is there an inherent limitation preventing this? Otherwise with a few pointers I would be willing to try contribute the patch myself.

Thanks,

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

Expected Behavior

If a user happens to request an old bundle resource with an old hash, the response should 404, not 500.

Current Behavior

I'm currently running a Next.js app at https://www.tenable.com/plugins and I'm getting quite a few 500 errors in my logs after I deploy a new version that has a new hash from the build (I'm using sticky sessions to minimize the disruption, but still see some errors long after the deploy).

Steps to Reproduce (for bugs)

200 -> https://custom-server-koa-wxksegmzhf.now.sh/_next/7c048a193f99703d6180e88866b6e06b/app.js

500 Internal server error -> https://custom-server-koa-wxksegmzhf.now.sh/_next/OLD_HASH_VALUE/app.js

Source code area of interest: https://github.com/zeit/next.js/blob/1aade36f13e03db13d23f86dc52a459f9a29e03d/server/index.js#L467

Context

Just trying to minimize the number of unneeded 500 errors 😄

Appreciate all your work and effort!

Your Environment

Tech
Version

next
canary

node
8.9

OS
macOS, node docker

browser

etc

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

Expected Behavior

It would be great if you could access "previousProps" when rendering page client-side.

Current Behavior

Currently getInitialProps passes "req" to function when the page is rendered server-side. In the req I'm receiving some site-specific data. Then, when navigation occurs (via router), getInitialProps is runned on client-side without req object and application has to make special ajax request just to download those site data again.

Context

Obviously it feels very redundant to make this kind of request for some site data (I need to pass to graphql queries for instance) every-single-time when user navigates from one page to another. That's why it would be very useful to recall them when rendering page in browser. Or to store them someplace when rendering page first time on server (but I guess that's technologically not possible).

If there's already way to achieve that, I would appreciate link, but I wasn't been able to find a solution or related issues at all.

Thank you,

David
Issue 1:
Q
A

Bug report?
yes

Feature request?
no

BC Break report?
no

RFC?
yes

Symfony version
3.1

While testing disabling a user, I decided to try to impersonate the disabled user and found that you are able to impersonate the user as normal (as if they were never disabled). I expected the user should be disabled. Is this expected behavior?

When I log out, then try to log in as the disabled user, I am properly alerted that the account is disabled and am not logged in.

Issue 2:
Q
A

Bug report?
no

Feature request?
yes

BC Break report?
no

RFC?
yes

Symfony version
4.1

Currently, we have 2 separate annotation loaders for the routing: one in SensioFrameworkExtraBundle (SFEB) and one in FrameworkBundle (FB) which was added more recently. The component only has an abstract class (used by both).

The FB loader was added more recently (in 3.4), as we encouraged using annotation more and more and people wanting to have support in core. But it is missing a few features:

generated controller name is not as clean as the SFEB one when using __invoke (probably added in SFEB after the port to core, and not backported)

missing support for service id AFAIK (the core annotation does not have the service property)

SFEB supports extra @Method annotations (and its subclasses for @GET and @POST). I'm not sure how common they are. An option could be to deprecate them.

Having 2 diverging implementations makes maintenance harder (and enabling SFEB changes the loader being used, so adding a new feature in the FB loader is dangerous as installing SFEB would replace it, and the annotation Flex alias installs SFEB).

Here are my suggestions:

fix the support for __invoke in FB so that both loaders are in sync in 3.4 (I would consider it a bug that the implementation is different here)

evaluate the possibility for SFEB to extend the FB implementation so that it does not have to duplicate the logic (especially for future core features). Requires bumping min version to Symfony 3.4 in SFEB.

consider moving the AnnotatedRouteControllerLoader to the component rather than FB (there is nothing really specific to the bundle in it)

consider deprecating the SFEB routing layer (depends on the usage of @Route(service="...") and @Method()
Issue 1:
I worked around #8091 by adding to the top of lib.webworker.d.ts

interface IDBIndexParameters {
multiEntry?: boolean;
unique?: boolean;
}
type IDBKeyPath = string;
interface IDBObjectStoreParameters {
autoIncrement?: boolean;
keyPath?: IDBKeyPath;
}

now I get another error:

TypeScript Version:

nightly (1.9.0-dev.20160409)

Code

$ npm install rxjs
$ cat tsconfig.json
{
"compilerOptions": {
"module": "commonjs",
"target": "es5",
"lib": ["webworker", "es6"],
"noImplicitAny": false,
"sourceMap": false
},
"exclude": [
"node_modules"
],
"files": ["repro.ts"]
}
$ cat repro.ts
import * as o from 'rxjs/observable/FromEventObservable';

node_modules/rxjs/observable/FromEventObservable.d.ts(11,104): error TS2304: Cannot find name 'NodeList'.
node_modules/rxjs/observable/FromEventObservable.d.ts(11,115): error TS2304: Cannot find name 'HTMLCollection'.

Issue 2:
I want a type similar to 'any' but can be initialized only with Object compatible type.

Is it possible to do this ?

var a : {any};

a.x = 1; // OK
a["x"] = 1; // OK
a = {}; // OK
a = 1; // Error !

The workaround is to use indexer, but then syntax 'a.x' doesn't work.

var a: {[key: string]: any;};

a = 1; // Error
Issue 1:
Describe the issue:

When importing Numpy or Pandas in a Python 3.11.3 Conda environment, I see (two, duplicates of the warning message listed below in "Error message" inputbox:

I can't find MKL documentation explaining this warning.

The messages are not suppressible with warnings.filterwarnings('ignore')

Expected Behavior is that Deprecation warning messages can be suppressed and that messages explain possible remediation actions by user (e.g. install a different version of package xyz etc.)

Reproduce the code example:

import numpy as np

Error message:

Intel MKL WARNING: Support of Intel(R) Streaming SIMD Extensions 4.2 (Intel(R) SSE4.2) enabled only processors has been deprecated. Intel oneAPI Math Kernel Library 2025.0 will require Intel(R) Advanced Vector Extensions (Intel(R) AVX) instructions.

Runtime information:

Output of:

print(np.version)

print(sys.version)

print(np.show_runtime())

1.24.3

3.11.3 (main, Apr 19 2023, 18:51:09) [Clang 14.0.6 ]

WARNING: threadpoolctl not found in system! Install it by pip install threadpoolctl. Once installed, try np.show_runtime again for more detailed build information

[{'simd_extensions': {'baseline': ['SSE', 'SSE2', 'SSE3'],

'found': ['SSSE3', 'SSE41', 'POPCNT', 'SSE42'],

'not_found': ['AVX',

'F16C',

'FMA3',

'AVX2',

'AVX512F',

'AVX512CD',

'AVX512_KNL',

'AVX512_SKX',

'AVX512_CLX',

'AVX512_CNL',

'AVX512_ICL']}}]

None

Context for the issue:

This creates a poor UI when working with both Numpy and Pandas.

Issue 2:
dask.array.Array implements __array_ufunc__ to make calls of ufuncs with dask arguments lazy. However current implementation of numpy.vectorize triggers computation of dask inputs during broadcasting stage.

Example:

a = da.ones((10,), chunks=2)

def pyfunc(x):
return x

ufunc = np.vectorize(pyfunc)

b = ufunc(a)
# Out: array([ 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.])
# Expected: another dask array, which is not yet computed
Issue 1:
Running Glide 3.3.1 on a pre-11 device will throw

E/dalvikvm﹕ Could not find class 'android.app.FragmentManager', referenced from method
com.bumptech.glide.manager.RequestManagerRetriever.handleMessage

As README.md states: Glide requires a minimum sdk version of 10, I think Glide should handle this gracefully.

Thanks

Issue 2:
java.lang.NoSuchMethodError: android.app.Activity.getFragmentManager
at com.bumptech.glide.manager.RequestManagerRetriever.get(RequestManagerRetriever.java:132)
at com.bumptech.glide.Glide.with(Glide.java:550)
at net.twisterrob.glidecrash.MainActivity.glide(MainActivity.java:36)

A workaround is:

Glide.with(this.getApplicationContext())

but this should be hidden from me.

I think public RequestManager get(Activity activity) is missing a HONEYCOMB check.
Issue 1:
julia> f(x, _, y = nothing) = f(x,y)

WARNING: deprecated syntax "_ as an rvalue around REPL[1]:1".
f (generic function with 2 methods)

_ is a lvalue here or?

Issue 2:
The warnings appear only inside closures.

julia> for _ in 1:10
function f(x)
_ = 10
end
end

WARNING: deprecated syntax "_ as an rvalue".

WARNING: deprecated syntax "_ as an rvalue".
Issue 1:

Issue 2:
First check

I added a very descriptive title to this issue.

I used the GitHub search to find a similar issue and didn't find it.

I searched the FastAPI documentation, with the integrated search.

I already searched in Google "How to X in FastAPI" and didn't find any information.

I already read and followed all the tutorial in the docs and didn't find an answer.

I already checked if it is not related to FastAPI but to Pydantic.

I already checked if it is not related to FastAPI but to Swagger UI.

I already checked if it is not related to FastAPI but to ReDoc.

After submitting this, I commit to one of:

Read open issues with questions until I find 2 issues where I can help someone and add a comment to help there.

I already hit the "watch" button in this repository to receive notifications and I commit to help at least 2 people that ask questions in the future.

Implement a Pull Request for a confirmed bug.

Description

When including a List in response_model, pycharm show this alert:

Is this expected?

Environment

OS: Linux

FastAPI Version: 0.58.0

Python version: 3.8.5
Issue 1:
Q
A

Bug report?
no

Feature request?
yes

BC Break report?
no

RFC?
yes

Symfony version
3.4 (?)

I'm sorry if this was discussed before, but I couldn't find anything with search.

Today I have accidentally deployed a controller with dump() in it to an environment that finally had debug flag set to false only to see a 500 error page (it was used in an action called asynchronously so I couldn't see that there are some variables dumped in the toolbar before). While I agree it's my fault for not catching this before, I also think that penalty doesn't fit the crime. To make situation like mine a little bit better I'd like to propose registering all "development" utilities (dump() et al) to be available in prod-like environments, but instead of any heavy lifting, make them do nothing. I don't have any numbers to back this up, but I believe that registering a NOP functions/twig methods will not affect overall Symfony performance. Also any overlooked calls (or even ones left on purpose) should not compromise applications' loading time. Also for those who want to fine-tune Symfony, it could be possible to not register dev utils (so get back to current situation) with a config flag.

What do you think?

Issue 2:
Q
A

Bug report?
no

Feature request?
yes

BC Break report?
no

RFC?
no

Symfony version
3.2

I'm very addicted to dump() to debug my code and i find it a invaluable tool, so thank you very much!

Unfortunately some time i forget to rid off of a dump or two in the code and if the code bump into production i got an exception because dump() does not exists.

I understand this should not happen and i should get more controls in place, but it happens; so my proposal: why not create a fake dump() function for production environment that does absolutely nothing?

Regards,

Matteo
Issue 1:
Currently, if a program is already running when I ask Run for it, it'll do nothing. I wish it'd bring it to the front and focus it so I can find it.

That way, I can use Run as a way to "goto" any program, whether it's open or not.

Issue 2:
Summary of the new feature/enhancement

It would be more useful if already running programs are shown first in the results list in the quick launcher (like the old WindowWalker). Or maybe an option to change the priority.

Proposed technical implementation details (optional)

In the results list, the running programs should be first in the list.
Issue 1:
In a TS file type "for" and auto-complete. You will find a 100% match "for" on the top, but the other 100% match from snippets is not there but rather at the end. If we do not sort unified across the various providers, then maybe we should take out snippets from the list and provide another way of completing snippets.

Issue 2:
Going for the for loop snippet:

JavaScript (snippet is close by):

TypeScript (snippet is after many non relevant suggestions):
Issue 1:
Here's the model. Mixamo only provides binary FBX unfortunately.

stand_1.zip

It does load, however some of the textures fail and the whole data url gets logged to the console, which crashes the console in Chrome. Here's a truncated version of the error (it repeats for 3 seperate textures).

data:;base64,S2F5ZGFyYSBGQlggQmluYXJ5ICAAGgDoHAAAMAkAAAAAAAAAAAAAEkZCWEh... ../../../../home/app/mixamo-mini/tmp/skins_fccbf8f8-f65d-4324-915e-699da0390df8.fbm/WAFP_clothes_SP.jpg
Image (async)
load @ loader.js:30336
load @ loader.js:30449
parseTexture @ loader.js:46312
parseTextures @ loader.js:46251

If I log the filename in the parseTexture function like so

/**
* @type {THREE.Texture}
*/
const texture = loader.load( fileName );

console.log( fileName );

Then I can see which files are working and which fail:

blob:http://localhost:8008/6558a86f-4023-4b55-a122-7ab0007810f2
loader.js:46344 blob:http://localhost:8008/5dc334b8-10c4-424f-a500-b43fc051c8f0
2loader.js:46344 ../../../../home/app/mixamo-mini/tmp/skins_be3e30ed-c513-4790-a63c-4503ed6a5f49.fbm/WAFP_helmet_SP.jpg
loader.js:46344 blob:http://localhost:8008/7b0cc7f8-ce46-4a4f-aee1-254b936023a3
loader.js:46344 blob:http://localhost:8008/d586390c-5188-4fd8-bd06-b517bab17e44
2loader.js:46344 ../../../../home/app/mixamo-mini/tmp/skins_be3e30ed-c513-4790-a63c-4503ed6a5f49.fbm/WAFP_skin_SP.jpg
loader.js:46344 blob:http://localhost:8008/8822cd1e-d80f-421f-b3d9-399e463a3dab
loader.js:46344 blob:http://localhost:8008/6823d6e5-f804-4238-8628-89cdf25bcef8
loader.js:46344 blob:http://localhost:8008/a0e65b19-6bf0-452e-a77d-cf179473d7a6
2loader.js:46344 ../../../../home/app/mixamo-mini/tmp/skins_be3e30ed-c513-4790-a63c-4503ed6a5f49.fbm/WAFP_clothes_SP.jpg
loader.js:46344 blob:http://localhost:8008/d640f468-3800-4bf3-82ce-6226806f2903

So most of the texture are correctly loading as blobs, however some get the

'../../../../home/app/mixamo-mini/tmp/skins_be3e30ed-c513-4790-a63c-4503ed6a5f49.fbm/` url appended for some reason.

I get similar errors when attempting to load the Dentist's office model from issue #11973

(and I still get the same errors even after applying the fix from #12004 ).

Issue 2:
Sometimes? Most of the times? In fact, it could be done even in case with face normals - if the model has enough neighbour faces with the same normal, it could even make sense :) File it under suggestions.
Issue 1:
Environment

Windows build number: Microsoft Windows [Version 10.0.17763.437]
PowerToys version: Version v0.18.1
PowerToy module for which you are reporting the bug (if applicable): PowerLaunch (initial startup of PowerToys after Windows signon

Steps to reproduce

Launch PowerToys

Expected behavior

clean launch, no error messages

Actual behavior

error message shown in attached screenshot

Screenshots

Issue 2:
Environment

Windows build number: [run "ver" at a command prompt] Microsoft Windows [Version 10.0.17763.1039]
PowerToys version: 0.18.1
PowerToy module for which you are reporting the bug (if applicable):

Steps to reproduce

Launching the app triggers the following error:

The exception unknown software exception (0xe0434352) occurred in the application at location 0x00007FFEB81D9159

The error happens during application launches via the PowerLaunch shortcut in the Windows menu. The error occurs after an update to Version v0.18.1.

Expected behavior

Expect the app to startup normally.

Actual behavior

Application is triggering an error message. Clicking through the application still opens though cannot be sure if the app is performing normally on all fronts.

Screenshots
Issue 1:
I'm using babel to transpile ES6 code, my target browsers support generators, so I blacklist regenerator to improve performance, but webpack doesn't parse it at all it seems. Generators could just be parsed and treated as functions.

I'm switching from browserify, which happens to parse generators correctly.

Issue 2:
Currently webpack seems to fail parsing JavaScript code that contains ES6 syntax like generators.

Module parse failed: ..../main.js Line 20: Unexpected token *
You may need an appropriate loader to handle this file type.
| }
|
| function * ex_test() {
| throw new Error("work!");
| }

Could you please adjust the static code analysis so that it doesn't break with code that uses generators?

I'm trying to use generators natively in browsers that support them, so don't want to use a transpiler in this case..
Issue 1:
The Problem

Currently, a newly rendered dialog element can erroneously retain the "open state" a previously rendered dialog element if React thinks that the same element is being re-rendered. Interestingly enough, this problem doesn't seem to happen for the element's other attributes/properties.

React version: 18.2.0

Steps To Reproduce

The situation is best understood with a CodeSandbox. Notice that after the state change (which happens on submission of the dialog's form), the open attribute is stale, but the data-phase attribute is fresh.

This is potentially a problem with the reconciler ... because if you change the "phase two version" to have a wrapping div, this problem goes away. (This is not always a viable solution, however. And it's a bit hacky.)

The current behavior

When ModalComponent re-renders, the new dialog element that it mounts retains the open value of the previous dialog element.

The expected behavior

When ModalComponent re-renders, the new dialog element that it mounts should not have an open attribute since none was provided for it.

Extra Notes

The conversation would be unrelated to the bug, but in case it's brought up: Please note that the actual project that I'm working on does not simply have virtually-duplicated content between the 2 dialog elements. (The content between the two is distinct.) So combining the content under a single dialog element is not an option for me at the moment.

Issue 2:
I'm using static markup for unit testing newforms output and I'd also like to support using it to render forms as static HTML.

Adding a value or defaultValue to a <select> doesn't generate static HTML with the appropriate selected attributes. However, they do get generated if you manually add them to <option> components, but then you get warning messages in the console when using the development build of React.

Is it possible to support both use cases without manually setting selected attributes, or will I just have to live with the warnings? :)

JSFiddle showing <select> static HTML output: http://jsfiddle.net/insin/2tvb7/3/
Issue 1:
Warning: React attempted to reuse markup in a container but the checksum was invalid. This generally means that you are using server rendering and the markup generated on the server was not what the client was expecting. React injected new markup to compensate which works but you have lost many of the benefits of server rendering. Instead, figure out why the markup being generated is different on the client or server:

(client) tyle="did-flip:true;-webkit-tap-highligh

(server) tyle="did-flip:true;tap-highlight-color:

Issue 2:
I have a React app, that runs on the server and in the clients browser.

When I upgrade to v0.8.0, React gives me the "Expected html differs from the given markup" warning, because there are differences in the inline style definitions. For example:

Server renders:

style="...; user-select: none;.."

But the client (Chrome in this case) renders

style="...; -webkit-user-select: none;.."

While it is nice to not have to worry about vendor prefixes, the correct handling of them creates those differences. Does anyone have an idea on how to fix (or workaround) this? I dont want to send the client, perfectly good markup, and then let React rebuild half of it, because of that.

Maybe include all prefixes necessary? Might be tricky as well..

Or do I have to exclude all css that needs to be prefixed back into style sheets?
Issue 1:
when i set a object(which instanced Line2).scale.x < 0, Line2 disappeared? is it normal?

Live example

jsfiddle-latest-release

Issue 2:
As the title say: a Line2 disappears completely when the scale is set to negative on a single axis line2.scale.set(-1, 1, 1). The line is obviously still there but it's not rendered.

Weirdly, if the scale is set to negative on more than one axis line2.scale.set(-1, -1, 1), the line appears again.

Here's a jsfiddle that demonstrates the issue: https://jsfiddle.net/jacopocolo/5fsotdpw/16/

Toggling wireframeToggle on line 7 to true shows two Line2 in wireframe but if wireframeToggle is set to false, only one is visible.

Three.js version

Dev

r117

...

Browser

All of them

Chrome

Firefox

Internet Explorer

OS

All of them

Windows

macOS (only tested here)

Linux

Android

iOS
Issue 1:
TV device does not support touch operation, users have to use Remote Control. We need move focus by press left, top, right, bottom direction key, and when the target widget get focus, we will press OK button to response kinds of event. But I cannot find any flutter interface to solve this interaction, much appreciate it if can add key event support for TV apps developed by flutter.

Issue 2:
As we know, tv apps use remote control's direction key to move focus from one widget to another. User needs to know which widget has got the current focus, so we may provider a focus animation effect, just draw a light widget floating on the focus widget. This light focus indicator widget will move from the previous focus widget to the current focus widget, we need calculate the move offset by the focused widget's coordinate minus the previous focus widget's coordinate. But I can't find any interface to get the widget's coordinate.