WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Does anyone know whether AdaBoostClassifier and DecisionTreeClassifier have been improved to work with sparse matrix input X? If not, are there any suggestions on current free AdaBoost package that works with sparse matrix? If I need to implement my own version of AdaBoost that can takes sparse matrix, what kind of change should I make?

Thanks!

Issue 2:
AdaBoostClassifier does does not directly use the feature values of the input array, so it should not need to require the input to be dense. This limits its applicability to large scale high dimentional problems
Issue 1:
VSCode Version: 1.2

OS Version: osx 10.11.5

Steps to Reproduce:

just open up vs code

it will eventually show a crash message and ask you if you would like to send it to apple

vs code appears to still be usable, but the crash pop up keeps coming back every minute or so

Issue 2:
VSCode Version: 1.2.0 (1.2.0)

OS Version: OS X 10.11.4 (15E65)

Steps to Reproduce:

Three click the line number

Select a paragraph
Issue 1:
At first I thought this was a problem with the theme Solarized Dark, but it appears to be the same problem with most themes (not "Dark" or "Light").

The problem (albeit a small problem) is that when I for example paste several lines in a row, the background color at the line-numbers changes after some lines, as seen on line 1239 on the screenshot. The amount of lines needed to create show this fault differs.

OS X 10.11 (15A284)

VsCode: v0.10.3

Reproduce:

Open any file with code

Select all

Copy

Spam paste until it occurs (anywhere from 50-1500 lines in my experience)

Is it possible that the problem has to do with transparent colors?

Issue 2:
Although this is somewhat small, this really gets me; whenever I create a new file (that is the key here, this doesn't happen with ones previously created and opened using the "open with code" context menu) after passing line 25 there is a bar that is a different color overlayed on the line numbers, which as far as I can tell extends infinitely.
Issue 1:
System information (version)

OpenCV => 4.6.0

Operating System / Platform => Windows 64 Bit 21H2

Compiler => Visual Studio Code 1.69.2

opencv_videoio_ffmpeg460_64.dll

Python => 3.10

opencv-contrib-python 4.6.0.66

opencv-python 4.5.5.64

Detailed description

I download a '.mkv' video from YOUTUBE. When i used cv2.VideoCapture(path) with python in VSCode, it throwed a warning as follow and can't decode it. I post it in opencv forum and figure out that maybe an issue with 'opencv_videoio_ffmpegxxx_64.dll' which does not include AV1 support. Maybe update opencv_videoio_ffmpegxxx_64.dll will work.

Warning message:

[av1 @ 0000028a88053c40] Your platform doesn’t suppport hardware accelerated AV1 decoding.

[av1 @ 0000028a88053c40] Failed to get pixel format.

[av1 @ 0000028a88053c40] Missing Sequence Header.

[av1 @ 0000028a88053c40] video_get_buffer: image parameters invalid

[av1 @ 0000028a88053c40] get_buffer() failed

[av1 @ 0000028a88053c40] thread_get_buffer() failed

[av1 @ 0000028a88053c40] Failed to allocate space for current frame.

[av1 @ 0000028a88053c40] Get current frame error

Issue 2:
@alalek FFMPEG 4 now supports libaom enabling encoding of AV1 videos. I'm thinking of adding support for it in opencv_thirdparty. If the final binary opencv_ffmpeg.dll does not increase that much in size would this be something that could considered to be included in the official build?
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

I have checked the FAQ of this repository and believe that this is not a duplicate.

Now dubbo requires java 8 or above, I notice there are still some configuration or profile for java6 (and hudson?)

Those content is not nessary any more, we need clean up it.

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

I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: xxx

Operating System version: xxx

Java version: xxx

Steps to reproduce this issue

xxx

xxx

xxx

Pls. provide [GitHub address] to reproduce this issue.

Expected Result

What do you expected from the above steps？

Actual Result

What actually happens?

If there is an exception, please attach the exception trace:

Just put your stack trace here!
Issue 1:
Even when annot is set to True, setting x/yticklabels to [] causes annotations not to show. This behavior seems odd; if I don't want annotations, I won't set annot.

Code:

import seaborn as sns
sns.set()
flights_long = sns.load_dataset("flights")
flights = flights_long.pivot("month", "year", "passengers")
flights.index.name = flights.columns.name = ''
sns.heatmap(flights, annot=True, xticklabels=[], yticklabels=[], fmt="d", linewidths=.5)

What I get:

What I would like:

Does this seem like a reasonable use case?

Issue 2:
C:\Users\user\Anaconda3\lib\site-packages\matplotlib\axes_axes.py:6462: UserWarning: The 'normed' kwarg is deprecated, and has been replaced by the 'density' kwarg.

Please suggest!! how to remove such warning?
Issue 1:
by nautigar:

In the section on Variable Declarations, the spec says:

If the type is absent and the corresponding expression evaluates to an untyped constant,
the type of the declared variable is as described in §Assignments.

In the Assignments Section, the only relevant paragraph on types says:

If an untyped constant is assigned to a variable of interface type or the blank
identifier, the constant is first converted to type bool, rune, int, float64, complex128
or string respectively, depending on whether the value is a boolean, rune, integer,
floating-point, complex, or string constant.

Example 1

const a = 100
var i interface{} = a

According to the spec cited above, the dynamic type of i is int. No problem.

Example 2

const a = 100
var v = a

The spec does not cover this case. How is the type of v determined?

Example 3

const a = 5000000000
var v = a

More serious problem here: Is this allowed? (playground experiment says no).
If yes, what should be the type of v (int64, uint64?). The spec does not cover this case.

Issue 2:
by awpritchard:

Before filing a bug, please check whether it has been fixed since
the latest release: run "hg pull -u" and retry what you did to
reproduce the problem. Thanks.

What steps will reproduce the problem?
1. Apply the patch attached as "patch" to an empty directory (creates 1.go,
2.go, Makefile)
2. run 'make'

-OR-

1. Create two cgo source files and refer to one C struct in both files, and one C struct
whose name is alphabetically before the previous C struct, in only one of the files.
2. Create the standard Makefile for this situation, with Make.inc, Make.pkg, and
CGOFILES=
3. run 'make'

What is the expected output?
The package compiles correctly and without warnings.

What do you see instead?
cgo emits a warning about inconsistent definitions for the struct included in both cgo
files (in this case, 'XRectangle')

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

Which operating system are you using?
linux

Which revision are you using? (hg identify)
3e8c5af7bb1a tip

Please provide any additional information below.
One way I can see this being solved is by identifying the _Ctype_struct___* definitions
by a hash of their C declarations, such that structs originating from the same C source
will be given the same name, regardless of the presence of other structs in the file,
and the warning will not be generated. I have attached a patch ("cgo.patch")
with a naive implementation of this suggestion using the crypto/md5 package. This
resolves the issue in my minimal example as well as in the actual package I originally
encountered the problem in, but may have performance issues compared to the original
implementation, as it calculates a cryptographic hash of every struct name used.

Attachments:

patch (779 bytes)

cgo.patch (642 bytes)
Issue 1:
There are command line tools for changing the network settings, enable disable services, etc. There are no command line tools in Windows for the video monitor.

A command line tool that lets one set the screen resolution, rotation, duplication/extension via the command line. The tool would work or multi monitors by selection of the display number.

Diplaymgr.exe

Option:

Resolution: 1024x768

Color Depth:

Rotate: 0, 90, 180, 270 (clock wise rotation)

Multi monitor: duplicate / extend (If extension set display location to the primary display)

SetAsPrimary

Status – provides basic settings for all monitors

Issue 2:
📝 Allow changing focus to a different zone via shortcuts

What is the expected behavior of the proposed feature? What is the scenario this would be used?

In a focus layout, a user is working in the main area, then she receives a skype message. Her skype is open on another zone. Instead of reaching out to mouse, she will use win+shift+arrow keys to focus on skype. Somebody is telling her, there is something with a server. She responds to the message, and then instead of reaching out for the mouse again, she uses the same key combinations to focus on the already open windows terminal.

In addition to the arrow keys, It could also be helpful to shift focus to a certain zone by using a shortcut.

If you'd like to see this feature implemented, add a 👍 reaction to this post.
Issue 1:
Original ticket http://projects.scipy.org/numpy/ticket/1439 on 2010-03-27 by @zachrahan, assigned to unknown.

import numpy
a = numpy.array([[1,2],[3,4]], order='F')
print a
l = list(a.flat)
print a
f = numpy.fromiter(a.flat, a.dtype)
print a
a2 = numpy.array(a.flat)
print a

yields:

array([[1, 2],
[3, 4]])

array([[1, 2],
[3, 4]])

array([[1, 2],
[3, 4]])

array([[1, 3],
[2, 4]])

If 'a' is C-contiguous, this doesn't happen; likewise no problem (I think) if 'a' is a F-contiguous view on another array.

Issue 2:
Original ticket http://projects.scipy.org/numpy/ticket/819 on 2008-06-13 by trac user ahaldane, assigned to unknown.

Hi,

I get an unexpected effect from doing .flat on arrays created by c_. In the code below, the values in the variable 'b' seem to get re-ordered during the call to array. Using .flatten() instead works as expected.

from numpy import c_, array
from numpy.random import rand

b = c_[ rand(2,2), rand(2)]

print b
array(b.flat)
print b

This prints:

[[ 0.8606752 0.11848512 0.95805826]
[ 0.84665539 0.7989498 0.20762479]]
[[ 0.8606752 0.95805826 0.7989498 ]
[ 0.11848512 0.84665539 0.20762479]]
Issue 1:
It would be cool if electron would serve as the go to platform for web devs looking to roll out on all the popular platforms.

Native mobile is key because of the convenience of having an app sit on your phone rather than in a browser tab somewhere. Could be popular because a lot of the apps built on electron are already responsive.

Thoughts on implementation: Android -> Webviews, IOS -> ??

Issue 2:
It'd be awesome if atom-shell supported iOS/Android. What is required to achieve this support? Related to #366
Issue 1:
Summary of the new feature/enhancement

There are a lot of links/helpers in the start menu search to commonly used settings in the control panel/settings apps. It'd be great to be able to search and surface these as part of the Power Toys run search as well. E.g.

Currently Power Toys Run provides no suggestions:

Issue 2:
Add ability to use "Fancy zones" with Visual Studio "windowed-tabs"

As a visual studio user I'm having some tabs in a separate windows on my secondary screen (source control for example). I would like to be able to use "Fancy zones" feature on those windows as well. Now it's not possible as of v0.18.2, but it was possible before (not sure about the version though).

Thanks in advance and thank you for a great product!
Issue 1:
Ansible: 1.9.4

Task is always changed:

- name: install /etc/timezone
copy: content="{{ timezone }}" dest=/etc/timezone mode=0644 owner=root group=root
notify: update tzdata
tags: timezone

Works as intended:

- name: install /etc/timezone
copy: content="{{ timezone }}\n" dest=/etc/timezone mode=0644 owner=root group=root
notify: update tzdata
tags: timezone

Same problem occurs if I use template module with template {{ timezone }} (no new line symbol).

Problem seems to exist since 2013: https://gist.github.com/garethrees/5591027

Issue 2:
Issue Type:

Bug Report

Ansible Version:

ansible 1.7 (devel 8646cc7) last updated 2014/08/04 22:04:49 (GMT -200)

Environment:

MacOS 10.9.4

Summary:

The copy module is not correctly identifying if the file has been changed when the "content" option is used instead of "src".

Steps To Reproduce:

A task as described will always notify the handler even though when the file has not been changed and matches exactly the value of the "content" option.

tasks:
- name: set time zone
copy: content="America/Sao_Paulo" dest=/etc/timezone
owner=root group=root mode=0644
notify:
- update timezone

handlers:
- name: update timezone
command: dpkg-reconfigure --frontend noninteractive tzdata

Possibly an issue on how the MD5 hash is being calculated. I noticed that the output of the ansible-playbook states a hash that does not match either the file or the value of the "content" option.

Expected Results:

TASK: [set time zone] *********************************************************
ok: [10.52.20.106] => {"changed": false, "dest": "/etc/timezone", "gid": 0, "group": "root", "md5sum": "1c978baa6e3453cca63bcbed6d20d232", "mode": "0644", "msg": "could not write content temp file: global name 'self' is not defined", "owner": "root", "size": 18, "src": "", "state": "file", "uid": 0}

Actual Results:

TASK: [set time zone] *********************************************************
changed: [10.52.20.106] => {"changed": true, "dest": "/etc/timezone", "gid": 0, "group": "root", "md5sum": "1c978baa6e3453cca63bcbed6d20d232", "mode": "0644", "owner": "root", "size": 17, "src": "/root/.ansible/tmp/ansible-tmp-1407201133.17-273344189894207/source", "state": "file", "uid": 0}

NOTIFIED: [update timezone] ***************************************************
changed: [10.52.20.106] => {"changed": true, "cmd": ["dpkg-reconfigure", "--frontend", "noninteractive", "tzdata"], "delta": "0:00:00.974934", "end": "2014-08-04 22:12:27.138238", "rc": 0, "start": "2014-08-04 22:12:26.163304", "stderr": "\nCurrent default time zone: 'America/Sao_Paulo'\nLocal time is now: Mon Aug 4 22:12:26 BRT 2014.\nUniversal Time is now: Tue Aug 5 01:12:26 UTC 2014.", "stdout": ""}
Issue 1:
Environment:

Zorin OS 16 (Ubuntu GNU/Linux variant) 64-bit

Deno 1.18.2

VSCode 1.63.2

Steps to reproduce:

const blob_original = new Blob()
console.log('blob_original instanceof Blob', blob_original instanceof Blob)
const blob_copy = structuredClone(blob_original)
// Expcted 'blob_copy instanceof Blob true'
console.log('blob_copy instanceof Blob', blob_copy instanceof Blob)

const file_original = new File([new Uint8Array([1, 2, 3])], 'name.fake')
console.log('file_original instanceof File', file_original instanceof File)
const file_copy = structuredClone(file_original)
// Expcted 'file_copy instanceof File true'
console.log('file_copy instanceof File', file_copy instanceof File)

Appears to be problem with internals, as the structuredClone implementation is not catching before it hits the internals. Problem is also reproducible with a naive clone using the internals:

function clone (obj: any): any {
// @ts-ignore: using Deno internals
return Deno.core.deserialize(Deno.core.serialize(obj))
}

Issue 2:
Deno's implementation of structured serialize currently supports serializing the JS built-in SharedArrayBuffer, and transferring the JS built-in ArrayBuffer as well as the MessagePort web API. With #11823 it will also support serializing the wasm built-in WebAssembly.Module.

But Deno also implements some web APIs that per the spec should be serializable or transferable but aren't in Deno's implementation. In particular, DOMException, File, Blob and CryptoKey should be serializable; and ReadableStream, WritableStream and TransformStream should be transferable.

Implementing this would probably need adding some Deno.core API to define serialization and transfer steps, possibly in connection to the existing Deno.core.createHostObject(). This would also allow refactoring the implementation of MessagePort.
Issue 1:
Describe the issue:

The multiplication of the python int and the numpy uint64 should return a numpy int64 type, but it is numpy float64 type.

Reproduce the code example:

import numpy as np
assert type(1*np.uint8(1)) == np.int64
assert type(1*np.uint16(1)) == np.int64
assert type(1*np.uint32(1)) == np.int64
assert type(1*np.uint64(1)) == np.float64 # this makes for me no sense... is there a reason for this?

Error message:

No errors, but wrong return type only.

NumPy/Python version information:

sys.version == '3.10.4 (main, Mar 23 2022, 23:05:40) [GCC 11.2.0]'

np.__version__ == '1.21.3'

Issue 2:
I was doing some testing using unsigned and signed integers with NumPy 1.20.3, and found out that when you multiply them with each other, it results in a 64-bit float.

Same goes for addition/subtraction.

As far as I know, this was not the case for earlier NumPy versions (as currently many parts of my code no longer work that previously worked just fine with this).

To me, it sounds a bit strange that multiplying two integers with each other results in a float.

Reproducing code example:

import numpy as np
print(type(np.uint(1)*1))
>>> <class 'numpy.float64'>

NumPy/Python version information:

Python: 3.8.8

NumPy: 1.20.3
Issue 1:
Steps to Reproduce

Create a Flutter app on Webstorm

Make some modifications to main.dart.

Run the app.

Expected: new changes take effect

Actual: The app goes back to the sample template that was provided on creation

I've attached a video showcasing the bug

bug.mp4.zip

Issue 2:
Add infrastructure to check for program elements changed in the last reload and not executed. Use this facility in flutter tools to figure out situations where the user makes changes that will not be reflected after a hot reload and warn users about the need to do a hot restart for the changes to take effect.
Issue 1:
Is there an existing issue for this?

I have searched the existing issues

This issue exists in the latest npm version

I am using the latest npm

Current Behavior

package-lock.json does not contain an os-independent string for local dependencies, therefore package-lock.json is always changing when it was committed from windows and then building on linux.

I think the issue might be that the lock file contains an OS-normalized string, while it should actually contain some string that is independent of the OS and only gets translated when the package-lock.json is parsed.

Expected Behavior

Expected behaviour would be that the same package-lock.json is generated no matter the OS.

Steps To Reproduce

In Windows 10, node --version v16.13.2, npm --version = 8.5.4

Have a package json dependency like this:

"dependencies": {
"some-local-dependency": "file:../myproject/module"
}

On windows, this produces a package-lock.json on windows that has this relevant section generated:

"dependencies": {
"some-local-dependency": {
"version": "file:\\myproject\\module"
}
}

On linux, the same package json results in the following package-lock.json (and therefore makes the committed package-lock.json dirty in git):

"dependencies": {
"some-local-dependency": {
"version": "file:../myproject/module"
}
}

Both package-lock.json files shoud have the same path separator.

Environment

npm: 8.5.4

Node.js: 16.13.2

OS Name: Windows 10

System Model Name: Dell

npm config:

; "builtin" config from C:\Users\soura\AppData\Roaming\npm\node_modules\npm\npmrc

prefix = "C:\\Users\\soura\\AppData\\Roaming\\npm"

; "user" config from C:\Users\soura\.npmrc

msvs_version = "2019"

; node bin location = C:\Program Files\nodejs\node.exe
; cwd =
; HOME = C:\Users\soura
; Run `npm config ls -l` to show all defaults.

Issue 2:
Is there an existing issue for this?

I have searched the existing issues

Current Behavior

When installing a local dependency in Windows, the posix paths under "package-lock.dependencies" are converted to Windows style paths, with double backslashes. The paths in "package.json" and under "package-lock.packages" are kept unix style.

Expected Behavior

package-lock is kept as is when installing dependencies.

Steps To Reproduce

Clone and follow the instructions on sample repository.

Environment

OS: Windows 10 20h2

Node: 16.2.0

npm: 7.13.0
Issue 1:
I am not sure if its just me but when I run npm config get prefix it hangs around 1-2 seconds.

I am using this https://github.com/nvm-sh/nvm to manage my Node versions which uses that npm command internally when new bash shell opens.

Issue 2:
What / Why

This is an attempt to resurrect this unresolved bug: npm/npm#14458

For some reason, the command npm config get prefix is multi-seconds slow. This normally wouldn't bother me, but for users of nvm like me, this is really impacting since it uses this command internally, and nvm is used in shell startup scripts. See nvm-sh/nvm#782 for more details. Therefore, shell startup is super slow, especially for those using WSL.

When

Always

Where

NPM CLI

How

Current Behavior

Run time npm config get prefix, see multi-second response timing.

Steps to Reproduce

Run npm config get prefix

Expected Behavior

Result should come back quicker.

Who

?

References

Related to npm/npm#14458, nvm-sh/nvm#1242
Issue 1:
Michael Harhen opened SPR-321 and commented

I have written code to enable initialization of a bean using initialization parameters from a database table. I would be happy to submit the code to the Spring project.

In summary, a FactoryBean is specified in an ApplicationContext xml file creates the bean. The bean's properties values are read from a database table. Properties can be reinitialized at any time, using the current values in the database table.

The preliminary code can be downloaded from:

http://members.cox.net/jwebutil/InitParameters.zip

I have posted information on how to use it is available on the Spring forum at:

http://forum.springframework.org/viewtopic.php?t=87

Attachments:

InitParameters.zip (145.76 kB)

InitParameters.zip (129.53 kB)

0 votes, 5 watchers

Issue 2:
Joris Kuipers opened SPR-7820 and commented

During a consultancy gig this came up: customer wants to be able to throw a custom exception from @Controller methods where the exception will contain an object that needs to be marshalled back to the client as JSON, since these methods respond to AJAX requests and thus the response will not be rendered directly by the browser.

I tried to do this by adding a method to an abstract parent class of the relevant controllers that looked like this:

@ExceptionHandler(MyCustomValidationErrorsException.class)
@ResponseBody
public MyCustomValidationErrors handleValidationErrors(MyCustomValidationErrorsException e) {
return e.getValidationErrors();
}

This prevents regular methods from having to specify Object as the return type, since they would otherwise need to return either a regular domain object or a MyCustomValidationErrors instance in the case of validation errors.

However, at the moment @ResponseBody is not supported for @ExceptionHandler methods, so this will simply ignore the annotation and render a view using the default view name resolution algorithm. I think this would be a very useful addition for the sketched use case, so I was wondering if this support could be added to the framework.

I understand that there are other ways to achieve the desired functionality, but AFAICT it would require a relatively large amount of custom code that would duplicate much of the Spring MVC-provided functionality.

Affects: 3.0.5

Issue Links:

#11567 @ResponseBody does not work with @ExceptionHandler ("duplicates")