WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Migrated issue, originally created by René Steetskamp (@otech-nl)

I have a hybrid property "password" which used to work but after a package update gave "AttributeError: can't set attribute".

Downgrading to "sqlalchemy<1.2" fixed the issue.

Using sqlite 3.22.0, pipenv, flask and flask-sqlachemy.

Pipfile, execution+stack traces and test script attached.

Attachments: Pipfile | trace.txt | test.py

Issue 2:
Migrated issue, originally created by Marcin Lulek (@ergo)

Hello,

I'm not sure if I was always using SA in wrong way or there is a bug in 1.2 version.

Setters need to be named same way as hybrid property - this test case works in 1.x and breaks in 1.2. I did notice that in the examples in docs the property name is same in both places, though.

Error I'm getting is:

File "/home/ergo/workspace/ziggurat_cms/.venv/lib/python3.6/site-packages/sqlalchemy/ext/hybrid.py", line 873, in set

raise AttributeError("can't set attribute")

AttributeError: can't set attribute

Attachments: test_hybrid.py
Issue 1:
Issue originally made by @Ltrlg

Bug information

Babel version: 6.4.0

Node version: 5.3.0

npm version: 3.3.12

Options

--plugins transform-async-to-generator

Input code

class C { async a() {
let t = this;
let f = () => this;
} }

Description

Babel transforms the given minimal example by replacing the first this by a _this copy, but not the second one.

Issue 2:
Bug Report

Current Behavior

If relying on external browserslist config, "defaults" in that file resolves to empty set, which enables all transforms.

Expected behavior/code

"defaults" should resolve normally. In the example below, many transforms should be disabled.

Babel Configuration (babel.config.js, .babelrc, package.json#babel, cli command, .eslintrc)

Filename: babel.config.js

module.exports = {
presets: [
['@vue/cli-plugin-babel/preset', {debug: true}],
]
}

Filename: .browserslistrc

defaults and last 4 years

Environment

System:
OS: Linux 5.3 Debian GNU/Linux bullseye/sid
Binaries:
Node: 10.17.0 - /usr/bin/node
npm: 6.13.0 - /usr/local/bin/npm
npmPackages:
babel-eslint: ^10.0.1 => 10.0.3
eslint: ^6.7.0 => 6.7.0

Additional context/Screenshots

This is broken because of legacy support:

babel/packages/babel-preset-env/src/targets-parser.js

Lines 205 to 214
in
bffa415

// If no targets are passed, we need to overwrite browserslist's defaults

// so that we enable all transforms (acting like the now deprecated

// preset-latest).

//

// Note, if browserslist resolves the config (ex. package.json), then usage

// of `defaults` in queries will be different since we don't want to break

// the behavior of "no targets is the same as preset-latest".

if (!hasTargets) {

browserslist.defaults = objectToBrowserslist(targets);

}

This causes defaults to be empty (since !hasTargets) and thus the result is empty. 😢
Issue 1:
Test plan item for #3062

@bpasero Please complete...

Issue 2:
1.0.0 introduced the ability to use VS Code as a git difftool. The relevant global .gitconfig lines are as follows:

[diff]
tool = default-difftool
[difftool "default-difftool"]
cmd = code --wait --diff $LOCAL $REMOTE

How can I use VS Code as a git mergetool?

The relevant arguments it needs to accept, I believe, are $LOCAL, $REMOTE, $BASE, and $MERGED.
Issue 1:
用android studio3.0打不开 flutter_gallery这个例子

提示如下：

Issue 2:
Flutter Gallery's assets are not stored in https://storage.googleapis.com/flutter_infra/. As a result, users cannot use alternate storage locations by specifying the FLUTTER_STORAGE_BASE_URL environment variable.

flutter/examples/flutter_gallery/pubspec.yaml

Lines 15 to 18
in
dd79685

flutter_gallery_assets:

git:

url: https://flutter.googlesource.com/gallery-assets

ref: d318485f208376e06d7e330d9f191141d14722b8

The current URL is not accessible from China, as the user reported on Gitter:

Cc: @jakobr-google @mit-mit

Related issue: #11681
Issue 1:
[x ] I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior

I just upgraded from verstion 1.0.0-beta.3 to 1.0.0-beta.8 and now I'm getting "Module not found: can't resolve jss" error when running npm start. I can confirm that I have jss and react-jss installed.

./~/react-jss/lib/jss.js
Module not found: Can't resolve 'jss' in '/...project_path.../node_modules/react-jss/lib'

Your Environment

Tech
Version

Material-UI
1.0.0-beta.8

React
15.6.1

jss
8.1.0

react-jss
7.1.0

Issue 2:
even though passing the anchor= 'bottom' prop the drawer is still on left side

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

Expected Behavior

Drawer should be placed on the side of the screen provided by anchor prop

Current Behavior

Drawer does not listen to Anchor prop

Your Environment

Tech
Version

Material-UI
v1.0.0-beta.21

React
15.4.2

browser
Chrome

etc
Issue 1:
I have a dropdown inside a nav-collapse, and this is happening:

Load the page in width < 900px

Click on btn-navbar to un-collapse

Click on dropdown to show the dropdown-menu. Nothing happens.

Click twice on btn-navbar to collapse and un-collapse again.

Click on dropdown to show the dropdown-menu. Now it works.

Inspecting it with firebug I found that the height is fixed the first time, the second time is auto:

https://s3.amazonaws.com/i.imm.io/N59y.jpeg

https://s3.amazonaws.com/i.imm.io/N5c7.jpeg

https://s3.amazonaws.com/i.imm.io/N5bG.jpeg

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" media="screen" href="css/bootstrap.css" />
<link rel="stylesheet" type="text/css" media="screen" href="css/bootstrap-responsive.css" />
<script src="js/jquery.js"></script>
<script src="js/bootstrap.js"></script>
</head>
<body>
<div class="navbar">
<div class="navbar-inner">
<div class="container">

<!-- .btn-navbar is used as the toggle for collapsed navbar content -->
<button class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>

<!-- Be sure to leave the brand out there if you want it shown -->
<a class="brand" href="#">Project name</a>

<!-- Everything you want hidden at 940px or less, place within here -->
<div class="nav-collapse">
<ul class="nav pull-right">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
Anonymous <b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li>
<a href=''><i class='icon-chevron-right'></i> Login</a>
</li>
<li>
<a href=''><i class='icon-plus'></i> Register</a>
</li>
</ul>
</li>
</ul>
</div>

</div>
</div>
</div>
</body>
</html>

Issue 2:
In order to customize the prev/next buttons (with, say, an icon), it is also required to recreate about half the styles associated with .icon-next and .icon-prev. This is because these styles also include

.icon-prev {
&:before {
content: '\2039';// SINGLE LEFT-POINTING ANGLE QUOTATION MARK (U+2039)
}
}
.icon-next {
&:before {
content: '\203a';// SINGLE RIGHT-POINTING ANGLE QUOTATION MARK (U+203A)
}
}

I suggest additional classes created .icon-prev-indicator and .icon-next-indicator that just has the content associated with it. these names would avoid any existing icon conflict both in glyphicons and font awesome.

this is how it currently works (ripped from the sample site)

http://jsfiddle.net/Y9HnH/

how i think it should work

http://jsfiddle.net/fwqvK/

A similar complaint could be made about background styles applied via .carousel-control.left and .carousel-control.right
Issue 1:
Exactly like you support the _error.js file.

This would solve a common question people are asking (#71, https://twitter.com/luisrudge/status/790946965123112960).

The idea is look for a _layout.js file. If it exists, render it passing the current route's content as children.

Issue 2:
Having animated route transitions would be nice, as this is one of the many benefits through client-side routing. Doing so should be left up to the user in my opinion (some people prefer CSS transitions over more fine-grained control with react-motion etc). As I understand it, one would need to modify the top-level App component.

The client entry file seems to look for a globally assigned __NEXT_DATA__.app variable but I can't find any documentation on that.
Issue 1:
Steps to reproduce error:

Setup symfony 2.8

Use the configuration setting security: firewals: main: form_login: intention:

Observe that none of the error messages intended to help correct the deprecated setting show up, only the generic error is reported, negating the utility of the 20 lines committed to fix this setting.

if (isset($options['intention'])) {
if (isset($options['csrf_token_id'])) {
throw new \InvalidArgumentException(sprintf('You should only define an option for one of "intention" or "csrf_token_id" for the "%s". Use the "csrf_token_id" as it replaces "intention".', __CLASS__));
}
@trigger_error('The "intention" option for the '.__CLASS__.' is deprecated since version 2.8 and will be removed in 3.0. Use the "csrf_token_id" option instead.', E_USER_DEPRECATED);
$options['csrf_token_id'] = $options['intention'];
}

Lines 51 through 60 in UsernamePasswordFormAuthenticationListener.php are intended to notify the change of config property names but the code never reaches this point of execution because the property fails during the configuration build process:

symfony/src/Symfony/Component/Security/Http/Firewall/UsernamePasswordFormAuthenticationListener.php

Line 51
in
0450865

if (isset($options['intention'])) {

Additionally, MainConfiguration is intended to report configuration errors related to the csrf_token_id property, but it does not:

743e670

When clearing the cache, only the generic error message is reported, probably because the configuration checks are in the wrong place in the hierarchy under the function addFirewallsSection():

[Symfony\Component\Config\Definition\Exception\InvalidConfigurationException]

Unrecognized option "identity" under "security.firewalls.main.form_login"

To make matters worse, contributors believe that changes are "transparent" when they are not. And the utility of MainConfiguration error checking is diminished by not reporting the intended correction on the command line. This is a systemic issue because there are 20 extra committed lines of unnecessary code that do not support their own purpose, either the lines in UsernamePasswordFormAuthenticationListener should be reached because MainConfiguration does not care about the superfluous setting, or MainConfiguration should work as designed and report errors with config, including using the console interface.

Issue 2:
Description

You currently cannot use the profiler if you do not have the twig bundle installed. If you do not install the twig-bundle, you'll have an error The service "web_profiler.controller.profiler" has a dependency on a non-existent service "twig"., even if you don't need twig in your app (api style application).

The profiler should declare its own twig service, looking into its templates, rather than forcing the dev to have a templates directory and an explicit dependency to twig-bundle.

edit: it seems that it's okay if you don't have the templates directory. My bad.
Issue 1:
Do you want to request a feature or report a bug?

feature

What is the current behavior?

There is no way to define a custom mode.

If the current behavior is a bug, please provide the steps to reproduce.

What is the expected behavior?

I'm making this up -

--mode npm://package-name

Why?

I still want source maps so I can debug in production. I thought this is what people are doing?

I want to share this config with friends

I want a hash in the filename right?

As webpack maintainers, you want to know the most popular configs... you can track these back now

If this is a feature request, what is motivation or use case for changing the behavior?

Please mention other relevant information such as the browser version, Node.js version, webpack version, and Operating System.

Issue 2:
Bug report

When having several named entry points and sharing a lib with eager:true, the lib code is duplicated to all resulting bundles.

Example for entry points:

entry: {
main: "./shell/main",
styles: "./shell/styles.css",
polyfills: "./shell/polyfills"
},

Example for shared:

shared: {
"rxjs": {
eager: true,
singleton: true,
},
}

What is the current behavior?

The shared lib is duplicated to all bundles (main and polyfills in the example shown).

What is the expected behavior?

The shared lib should not be duplicated but only put into one bundle

Other relevant information:

webpack version: Every version since webpack 5

Node.js version: 16.13.2 LTS

Operating System: windows

Additional tools: no
Issue 1:
I have ran into this error on the parameter broadcast step of torch.nn.parallel.replicate.

It sounds like this, to be precise: NCCL Error 1: unhandled cuda error.

#2332 is possibly related.

Issue 2:
🐛 Bug

A module might declare a buffer of unknown size in its init function by using:

self.register_buffer('name', None)

The buffer might later contain a valid tensor. Saving this (now non-None) buffer with state_dict() works but loading this state dict to a newly instantiated module (where the buffer is currently None) with load_state_dict() fails as the buffer is unexpected.

To Reproduce

Steps to reproduce the behavior:

Define a module with an empty buffer in the init function.

Set the buffer to something valid (e.g., in forward).

Call state_dict()

Instantiated a second instance of the module

call load_state_dict() on the second module

Expected behavior

load_state_dict() replaces the currently None buffer with the non-None saved buffer from the state_dict.

Environment

Collecting environment information...

PyTorch version: 1.2.0

Is debug build: No

CUDA used to build PyTorch: 10.0.130

OS: CentOS Linux 7 (Core)

GCC version: (GCC) 4.8.5 20150623 (Red Hat 4.8.5-16)

CMake version: version 2.8.12.2

Python version: 3.7

Is CUDA available: No

CUDA runtime version: No CUDA

GPU models and configuration: No CUDA

Nvidia driver version: No CUDA

cuDNN version: No CUDA

Versions of relevant libraries:

[pip] msgpack-numpy==0.4.4.3

[pip] numpy==1.17.2

[pip] pytorch-pretrained-bert==0.6.2

[pip] torch==1.2.0

[pip] torchvision==0.4.0a0

[conda] _pytorch_select 0.2 gpu_0

[conda] blas 1.0 mkl

[conda] mkl 2019.4 243

[conda] mkl-service 2.3.0 py37he904b0f_0

[conda] mkl_fft 1.0.14 py37ha843d7b_0

[conda] mkl_random 1.1.0 py37hd6b4f25_0

[conda] pytorch 1.2.0 py3.7_cuda10.0.130_cudnn7.6.2_0 pytorch

[conda] pytorch-pretrained-bert 0.6.2 pypi_0 pypi

[conda] torch 1.0.1.post2 pypi_0 pypi

[conda] torchvision 0.2.2.post3 pypi_0 pypi
Issue 1:
The following typescript (using the new module system syntax)

import "foo";

generates the following invalid javascript:

define(["require", "exports", "foo"], function (require, exports, )

Issue 2:
Given this code:

// foo.ts
import './bar';
import baz from './baz';
baz;

// bar.ts
export default function bar() {}

// baz.ts
export default function baz() {}

Repro: tsc -m amd foo.ts

Expected output:

define(["require", "exports", './baz', './bar'], function (require, exports, baz_1) {
baz_1.default;
});

Actual output:

define(["require", "exports", './bar', './baz'], function (require, exports, , baz_1) {
baz_1.default;
});

Version: fb44a23
Issue 1:
Environment

Windows build number: [Version 10.0.18363.836]
PowerToys version: v0.18.1
PowerToy module for which you are reporting the bug (if applicable): PowerLauncher

Steps to reproduce

search anything related to powerlauncher like Launcher

Expected behavior

Exclude itself in result, because it doesn't make sense.

Actual behavior

PowerLauncher will likely appear in the top of the search result.

Screenshots

Issue 2:
Environment

Windows build number: 10.0.18363
PowerToys version: 0.18.0
PowerToy module for which you are reporting the bug (if applicable): PowerToys Run

Steps to reproduce

Open PowerToys Run

Type "Launcher"

Expected behavior

PowerToys Run doesn't shows itself

Actual behavior

PowerToys Run shows itself

Screenshots
Issue 1:
Here are 2 ways to drop rows from a pandas data-frame based on a condition:

df = df[condition]

df.drop(df[condition].index, axis=0, inplace=True)

The first one does not do it inplace, right?

The second one does not work as expected when the index is not unique, so the user would need to reset_index() then set_index() back.

Question

Would it be possible to have column dropping based directly on the condition?

e.g.

df.drop(condition, axis=0, inplace=True)

Issue 2:
sum() is giving 0.0 as the total, rather than NaN, when the entire row/column is NaN.

Note that this bug does not arise in pandas 17.1 with numpy 1.11.0, running on Ubuntu.

Code Sample, a copy-pastable example if possible

import numpy as np
df = pd.DataFrame([[np.nan,np.nan,np.nan,np.nan],
[1,np.nan,np.nan,np.nan],[2,2,2,np.nan]],columns=['a','b','c','d'])
df.sum(skipna=True) # should be true by default. Same result if argument is omitted

Actual Output

a 3.0

b 2.0

c 2.0

d 0.0

Expected Output

a 3.0

b 2.0

c 2.0

d NaN

output of pd.show_versions()

INSTALLED VERSIONS

commit: None

python: 2.7.6.final.0

python-bits: 64

OS: Darwin

OS-release: 15.6.0

machine: x86_64

processor: i386

byteorder: little

LC_ALL: None

LANG: en_US.UTF-8

pandas: 0.18.1

nose: 1.3.7

pip: 8.1.2

setuptools: 23.1.0

Cython: 0.24

numpy: 1.11.1

scipy: 0.17.1

statsmodels: 0.6.1

xarray: None

IPython: 4.1.2

sphinx: None

patsy: 0.4.1

dateutil: 2.2

pytz: 2014.7

blosc: None

bottleneck: 1.1.0

tables: 3.2.2

numexpr: 2.6.0

matplotlib: 1.5.1

openpyxl: 2.3.4

xlrd: 0.9.4

xlwt: None

xlsxwriter: None

lxml: 3.6.0

bs4: 4.4.1

html5lib: 0.999

httplib2: 0.8

apiclient: 1.2

sqlalchemy: 1.0.12

pymysql: None

psycopg2: 2.5.4 (dt dec pq3 ext)

jinja2: 2.7.2

boto: 2.40.0

pandas_datareader: None
Issue 1:
The full page is considered extra small in actual pixel size, so it uses the xs styles for layout (col-xs-...).

This is a problem, in our case, we have a mobile view and a print view. The print view cannot be the same as the mobile view and the layout gets blown apart as a result.

My interim solution is

@media print {
[class*="col-sm-"] {
float: left;
}
}

Please consider adding col-print-... classes or addressing this conflict in some other way that allows extra small and print layouts.

Issue 2:
When printing in Safari 7 and Firefox 25 the grid carries over to the print style, but in Chrome 34 and IE 11 everything stacks when printed. Any insights here?
Issue 1:
What steps will reproduce the problem?
1. http://play.golang.org/p/lV4Ag-Fw_7
2.
3.

What is the expected output?
program should terminate normally

What do you see instead?
deadlock

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

Which operating system are you using?
linux

Which version are you using? (run 'go version')
1.0.3

Please provide any additional information below.

Issue 2:
In CL 20489, @crawshaw observed that he was able to change the cmd/internal/obj's objfile writing code and cmd/link/internal/ld's objfile reading code, but no tests failed to indicate that cmd/internal/goobj should be updated too.

cmd/internal/goobj used to be used by cmd/newlink, but that was deleted in CL 20380 (fb880b8).

It's also still used in cmd/internal/objfile/goobj.go, but that file isn't otherwise used either.

I imagine that because of #14386, we might as well just remove the dead code.

/cc @rsc
Issue 1:
Using 0.209.0 on Windows 7 Pro 64-bit, Atom (even in safe mode) will no longer open a new first-and-only window with the session state (open folder and open files) from the previous last-to-be-closed Atom window.

#6917 seems similar, but that was fixed. I guess this might be a regression, unless it was a deliberate choice. I found no issue or changelog or release notes that mentioned it.

I believe 0.208.0 restored the previous session, and the last version in which the previous session wasn't restored was some time ago, maybe around 0.197.0 or so but not sure. Even then, File / Exit seemed to allow session restoring, while the window's close button did not. Now, neither seem to allow the previous session to be restored. (File / Close Window doesn't currently work either, but I hadn't checked it closely in previous versions.)

Issue 2:
Atom 0.209.0 doesn't save open files and folders on exit (0.208.0 made this). After restart, there is only empty "untitled" file.

Here's my config:

"*":
"exception-reporting":
userId: "480b20de-e736-263e-a240-4205e8c90e87"
welcome:
showOnStartup: false
core:
themes: [
"one-dark-ui"
"solarized-dark-syntax"
]
editor:
fontFamily: "'M+ 1mn regular'"
invisibles: {}
minimap:
plugins:
"git-diff": true
bookmarks: true
selection: true
"color-highlight": true
"find-and-replace": true
"atom-beautify":
_analyticsUserId: "13adc827-7ceb-4c02-bdb7-7a6d1b173567"
c_configPath: "/usr/share/uncrustify/defaults.cfg"
cpp_configPath: "/usr/share/uncrustify/defaults.cfg"
cs_configPath: "/usr/share/uncrustify/defaults.cfg"
objectivec_configPath: "/usr/share/uncrustify/defaults.cfg"
java_configPath: "/usr/share/uncrustify/defaults.cfg"
tabs:
usePreviewTabs: true
linter: {}
"git-plus":
wordDiff: false
"merge-conflicts": {}
"linter-clang":
clangDefaultCFlags: "-Wall -Wextra -std=c99"
clangDefaultCppFlags: "-Wall -Wextra -std=c++11"
"atom-color-highlight": {}
"autocomplete-clang": {}
"open-recent": {}

0.209.0 built from sources.
Issue 1:
When the name of a variable begins with "var",VSC will make "var" as a kind of color and make the end of its name as a different kind of color.

However,if the name of a variable is "var",it will make its name as a kind color.

VERSION:0.10.10

THEME:Light+

NODEJS(My Project):v4.2.3(I used ES6)

PLATFORM:Windows 10

Issue 2:
return new vscode.Variable(property.name, displayValue, variablesReference);

angular.module('app')

This is since the VS Code February release.
Issue 1:
When downloading the latest nuget package lodash is getting two files: version 4.0 and version 3.10.

this causes compilation error due to duplicate declarations.

Issue 2:
I have found a change in the rx.js libraries that caused the typescript compiler to enter in an endless loop (and also put the VS in a freeze mode - bug in VS, I know, Intellij or even Eclipse is doing a better job with TS).

The problem happened because was renamed the IObservable interface to Observable and along others changes causing some duplicated declarations of interfaces, classes and variables with the same name, which is confused anyway.

I agree that the I prefix for interfaces is a C# convention, but in this case, I didn't see an alternative. After playing a little with this code, I don't agree with these last changes and I am reverting it by hand on my project, and if possible I would like to revert again these naming changes o the repository.