WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
James Berry opened SPR-4229 and commented

in CommonsMultipartResolver.isMultipart, the following call is made:

return ServletFileUpload.isMultipartContent(new ServletRequestContext(request));

instead, this call should be made:

return ServletFileUpload.isMultipartContent(request);

Not only does this save an object allocation, but it actually works: the ServletRequestContext is wrapped around the request in the first call doesn't have enough information to do a good test of the request to determine whether it actually is multipart. In particular, the request type is not verified to be a post, which results in a hang during processing of what ends up being a bogus multipart request due to a redirect, for instance.

The second call (without the ServletRequestContext wrapper) does a more thorough check of the request to verify that it is actually valid.

The described problem manifests for me when when I do a 303 redirect from a POSTed form. For some browsers, the subsequent GET operation continues to include the content-type multipart header, which triggers a sequence of events leading to a read that HANGS on a kept-alive request as the servlet tries to parse the bogus multipart content.

Affects: 2.5 final

Issue 2:
James Berry opened SPR-4228 and commented

in CommonsMultipartResolver.isMultipart, the following call is made:

return ServletFileUpload.isMultipartContent(new ServletRequestContext(request));

instead, this call should be made:

return ServletFileUpload.isMultipartContent(request);

Not only does this save an object allocation, but its actually works: the ServletRequestContext is wrapped around the request in the first call doesn't have enough information to do a good test of the request to determine whether it actually is multipart. In particular, the request type is not verified to be a post, which results in a hang during processing of what ends up being a bogus multipart request due to a redirect, for instance.

The second call (without the ServletRequestContext wrapper) does a more thorough check of the request to verify that it is actually valid.

The described problem manifests for me when when I do a 303 redirect from a posted form. For some browsers, the subsequent GET operation continues to include the content-type multipart header, which triggers a sequence of events leading to a read that HANGS on a kept-alive request as the servlet tries to parse the bogus multipart content.

Affects: 2.0.7, 2.5 final

Issue Links:

#9525 Safari 3.x problem with redirect after file upload

Backported to: 2.0.8
Issue 1:
i use vue1.0.24 Version.

i want wirte a plugin .

may be use Vue.mixin way to implement

html5 have localStorage.getItem localStorage.setItem.

i want localStorage.xxx responsive view.

like

export default {
cache:['cacheKey1', 'cacheKey2', 'cacheKey2'],
methods:{
changeKey1(newVal){
this.$cache.set('cacheKey1', newVal);//responsive view can interaction this change {{cacheKey1}}
}
}
}

cache.js

Vue.mixin({
created: function () {
if (this.$options.hasOwnProperty("cache")) {
console.log(this.$options.computed);
this.$options.computed = this.$options.computed || {};
var len = this.$options.cache.length;
for(var i=0; i < len; i++){
var cacheName = this.$options.cache[i];
this.$options.computed[cacheName] = {
get:function(){
console.log('here1');
return this.localStore.get(cacheName);
},
set:function(val){
this.localStore.set(cacheName, val);
}
}
console.log(cacheName);
}
console.log(this.$options.computed);
}
}
});

computed have data.but not response

Issue 2:
Version

2.6.10

Reproduction link

https://codepen.io/anon/pen/dxGVOg?editors=1010#0

Steps to reproduce

In your render function, create two distinct elements (with two separate createElement calls), but with the same data object specifying an event listener.

What is expected?

When the event is triggered from the second child component, it should fire the appropiate handler.

What is actually happening?

Nothing

I am aware of the constraints section here: https://vuejs.org/v2/guide/render-function.html#Constraints but it doesn't seem to specifically mention re-use of just the data-object.

If this restriction is known and meant to be then this issue is about properly documenting this limitation.
Issue 1:
💻

Would you like to work on a fix?

How are you using Babel?

babel-loader (webpack)

Input code

run 'npm install @babel/plugin-proposal-class-properties --save-dev'

add "plugins": ["@babel/plugin-proposal-class-properties"] to babel.config.json file

run npm start

Configuration file name

babel.config.json

Configuration

{

"presets": ["@nrwl/web/babel"],

"babelrcRoots": ["*"],

"plugins": ["@babel/plugin-proposal-class-properties"]

}

Current and expected behavior

Current behaviour: babel seems to be throwing this error

vendor.js:280159 Uncaught TypeError: _interopRequireDefault is not a function

at ../../../node_modules/rc-util/lib/hooks/useMergedState.js (vendor.js:280159:23)

at webpack_require (bootstrap:79:1)

at ../../../node_modules/antd/lib/typography/Base/index.js (vendor.js:183406:47)

at webpack_require (bootstrap:79:1)

at ../../../node_modules/antd/lib/typography/Paragraph.js (vendor.js:184058:36)

at webpack_require (bootstrap:79:1)

at ./app/components/ShareLink/index.tsx (main.js:19639:87)

at webpack_require (bootstrap:79:1)

at ./app/components/games/GameCard.tsx (main.js:22083:68)

at webpack_require (bootstrap:79:1)

expected behavior:

to run the application

Environment

"@babel/core": "7.9.6",

Node v16.17.0

Npm 8.15.0

MonoRepo with Nx

Possible solution

No response

Additional context

No response

Issue 2:
In addition to #12851

If you set resolutions for @babel/core to ~7.12.0 you then get this error:

8 | exports.navigateTo = exports.replace = exports.push = exports.navigate = exports.default = void 0;
9 |
> 10 | var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
| ^
11 |
12 | var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
13 |

WebpackError: TypeError: _interopRequireDefault is not a function

- index.js:10
node_modules/gatsby-link/index.js:10:1

- utils.js:136
node_modules/@reach/router/lib/utils.js:136:1

gatsby-link requires babel/runtime/helpers/interopRequireDefault which seems to no longer exist in @babel/runtime@7.13
Issue 1:
Migrated issue, originally created by Michael Bayer (@zzzeek)

Issue 2:
My goal is to update many rows at once on a Postgres database using sqlalchemy. My setting is :

I have a table created with sqlalchemy.Table(...)

The primary key is, say, a, b

There are some other fields c and d

I have created all the rows with the primary key setup, and need to add each column (respectively c and d) separately. Thus, I'm looking to give sqlalchemy a dict like { 'a': ..., 'b': ..., 'c': f(a, b) } for many values of a and b. However, I cannot figure out a way to do this without doing it row by row (which is very expensive and time consuming).

I have tried the Session.bulk_update_mappings approach, but since my Table is not from the ORM system but rather from the Core, I don't have a mapper, and sqlalchemy complains, utlimately failing to update my rows (SO reference).

I also tried the Core approach, without success (documentation reference). Indeed, I fail to see how to do it with an Update statement. I have tried like so,

stmt = self._table.update()
self._engine.execute(stmt, [{'a': 0, 'b': 0, 'c': 10}, ...])

But this complains that there are duplicate keys that violate the unique constraint table_name_pkey, and I believe that it is due to the fact that it doesn't try to find rows matching the pkey and update remaining fields...

Anyways, I can't figure out a way to do this properly and with sufficiently good performances.

I thank you in advance for your kind replies and your help.
Issue 1:
No compatible version found: babel-template@^6.24.1

I'm trying to resolve by pinning versions with npm-shrinkwrap, but I'm very new to this.

It seems that these libraries are suddenly incompatible with node 7.x

{
"dependencies": {
"babel-plugin-transform-es2015-duplicate-keys": {
"version": "6.24.1",
"from": "babel-plugin-transform-es2015-duplicate-keys@6.24.1",
"dependencies": {
"babel-types": {
"version": "6.23.0",
"from": "babel-types@6.23.0"
}
}
},
"babel-plugin-transform-es2015-modules-amd": {
"version": "6.24.1",
"from": "babel-plugin-transform-es2015-modules-amd@6.24.1",
"dependencies": {
"babel-plugin-transform-es2015-modules-commonjs": {
"version": "6.23.0",
"from": "babel-plugin-transform-es2015-modules-commonjs@6.23.0"
}
}
}
}
}

Issue 2:
Bug Report

Current Behavior

Transpilation of the code fails with the following error.

TypeError: D:\Git\babel-duplicate-declaration-example\example.ts: Duplicate declaration "foo"
6 | }
7 | export namespace ns2 {
> 8 | export class foo {
| ^
9 | F1: string;
10 | }
11 | }
at File.buildCodeFrameError (D:\Git\babel-duplicate-declaration-example\node_modules\@babel\core\lib\transformation\file\file.js:261:12)
at Scope.checkBlockScopedCollisions (D:\Git\babel-duplicate-declaration-example\node_modules\@babel\traverse\lib\scope\index.js:344:22)
at Scope.registerBinding (D:\Git\babel-duplicate-declaration-example\node_modules\@babel\traverse\lib\scope\index.js:501:16)
at Scope.registerDeclaration (D:\Git\babel-duplicate-declaration-example\node_modules\@babel\traverse\lib\scope\index.js:444:12)
at Object.BlockScoped (D:\Git\babel-duplicate-declaration-example\node_modules\@babel\traverse\lib\scope\index.js:187:28)
at Object.newFn (D:\Git\babel-duplicate-declaration-example\node_modules\@babel\traverse\lib\visitors.js:230:17)
at NodePath._call (D:\Git\babel-duplicate-declaration-example\node_modules\@babel\traverse\lib\path\context.js:53:20)
at NodePath.call (D:\Git\babel-duplicate-declaration-example\node_modules\@babel\traverse\lib\path\context.js:36:14)
at NodePath.visit (D:\Git\babel-duplicate-declaration-example\node_modules\@babel\traverse\lib\path\context.js:88:12)
at TraversalContext.visitQueue (D:\Git\babel-duplicate-declaration-example\node_modules\@babel\traverse\lib\context.js:118:16)

Input Code

https://github.com/ikenik/babel-duplicate-declaration-example

// typescript
module src {
export namespace ns1 {
export class foo {
F1: string;
}
}
export namespace ns2 {
export class foo {
F1: string;
}
}
}

Expected behavior/code

A clear and concise description of what you expected to happen (or code).

Babel Configuration (.babelrc, package.json, cli command)

{
presets: ["@babel/preset-typescript"]
}

{
"dependencies": {
"@babel/core": "^7.4.5"
},
"devDependencies": {
"@babel/preset-typescript": "^7.3.3"
}
}

npm install
npm start

Environment

Babel version(s): v7.4.5

Node/npm version: Tested and confirmed in Node 8/9/10 with npm 5.6.0

OS: Windows 10

Monorepo: no

How you are using Babel: cli

Additional context/Screenshots

#8559, #8525 may be related.
Issue 1:
If the function is defined in another js file especially when in same directory, Visual Studio doesn't find it which is weird.

Issue 2:
I found this going through the /docs/runtimes/Node.js walkthrough after seeing a doc feedback verbatim saying that typings weren't being picked up.

After creating an express application, trying to get IntelliSense for node and express types fails.

If I roll-back to 0.10.8, the typings are picked up correctly.

The generated express app does not include a jsconfig.json file.
Issue 1:
on both the css and components pages in the documentation it refers to btn-lg btn-sm and btn-xs but in reality in the css files it is referred to as btn-large btn-small and btn-mini

Issue 2:
To increase/decrease the size of form controls, you can add the classes input-lg or input-sm (at least according to the website [http://getbootstrap.com/css/#forms] - which is the most consistent solution). In the css code, however, the classes are called input-large and input-small.
Issue 1:
Code Sample, a copy-pastable example if possible

import pandas as pd
df=pd.DataFrame({'variable': ['a','a','b','b','c','c'],
'value' : [1000,2000,10,20,100,200]},
index=[1,2]*3)
df.nlargest(3,'value')

Problem description

The result should only have 3 rows. If the index has unique values, it is correct. But when the index has duplicate values, the incorrect result is produced.

The example produces the following output:

value variable
2 2000 a
2 2000 a
1 1000 a
2 200 c
2 200 c
1 100 c
2 20 b
2 20 b
1 10 b

Expected Output

value variable
2 2000 a
1 1000 a
2 200 c

Output of pd.show_versions()

INSTALLED VERSIONS
------------------
commit: None
python: 3.5.2.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 60 Stepping 3, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None

pandas: 0.19.0

nose: None

pip: 8.1.2

setuptools: 27.2.0

Cython: None

numpy: 1.11.2

scipy: None

statsmodels: None

xarray: None

IPython: 5.1.0

sphinx: None

patsy: None

dateutil: 2.5.3

pytz: 2016.7

blosc: None

bottleneck: None

tables: None

numexpr: None

matplotlib: None

openpyxl: None

xlrd: 1.0.0

xlwt: None

xlsxwriter: None

lxml: None

bs4: 4.5.1

html5lib: 0.999

httplib2: None

apiclient: None

sqlalchemy: None

pymysql: None

psycopg2: None

jinja2: 2.8

boto: None

pandas_datareader: None

Issue 2:
The function below has been incorrectly implemented. If the frame has an index with duplicated values, you will get a result with more than n rows and not properly sorted. So nsmallest and nlargest for DataFrame doesn't return a correct frame in this particular case.

def _nsorted(self, columns, n, method, keep):
if not com.is_list_like(columns):
columns = [columns]
columns = list(columns)
ser = getattr(self[columns[0]], method)(n, keep=keep)
ascending = dict(nlargest=False, nsmallest=True)[method]
return self.loc[ser.index].sort_values(columns, ascending=ascending,
kind='mergesort')
Issue 1:
Challenge http://www.freecodecamp.com/challenges/bonfire-no-repeats-please has an issue.

var k = 0;
function permAlone(str) {
perm("",str);
return k;
}
function perm(pre, str){
if (str.length === 0){
var x=true;
for (var i = 0; i < pre.length-1; i++){
if (pre.split("")[i] == pre.split("")[i+1]) x = false;
}
if (x === true) k += 1;
}
else{
for (var i = 0; i < str.length; i++){
perm(pre + str.charAt(i) , str.substring(0,i)+str.substring(i+1));
}
}
}
permAlone('aab');```
If I run the code outside fcc, I get the required results but in the challenges it moves all my results up by +2

Issue 2:
Challenge http://www.freecodecamp.com/challenges/bonfire-no-repeats-please has an issue. Please describe how to reproduce it, and include links to screen shots if possible.

The tests for this bonfire are adding two to the expected results. This somehow causes the bonfire checker to hang a bit and the tests to fail.
Issue 1:
v0.122.0

Turn on "show invisibles". Then quit atom.

Then in terminal, under your working directory, type "atom" (open in dev mode).

It does not show invisibles.

Issue 2:
Atom 0.122.0

OS X 10.9.4

The 0.122.0 update seems to have an issue with invisible characters being hidden on launch even though they are enabled. Disabling and re-enabling fixes the issue until the next time Atom is launched.

I ran Atom in safe mode then with a clean ~/.atom directory, the issue persisted.
Issue 1:
It would be nice if you could write the address of the site and open it in the default browser.

(Было бы неплохо, если можно было писать адрес сайта и открывать его в браузере по умолчанию.)

Issue 2:
Summary of the new feature/enhancement

I want to be able to start a web search from the launcher.

Ideally, I'd type bing power toys and it would navigate to https://www.bing.com/search?q=power+toys in my default browser.

google power toys would go to the equivalent.

The ability to specify the keyword/search engine to use and the domain it goes to would also be necessary. Not only would this enable supporting other search engines, but it would also allow for people to adjust for different TLD versions of search engines.

This would be similar to functionality that used to be available in Enso launcher.

Proposed technical implementation details (optional)

This would presumably require some settings for determining which words are identified as initiating the search and the URL to submit the query to.

This could also be the base for similar functionality where a keyword could launch an app and pass other values as command-line arguments. Without additional arguments, this could also serve as a way to create aliases for apps so they could be launched with a small number of keystrokes.

crutkas: possible solution to this issue in #10619. It defers to default browser + user's search engine. Lets PT Run be generic
Issue 1:
My electron app cannot go in fullscreen mode.

I've tried multiple ways to enter fullscreen:

Clicking fullscreen button in native frame

Using setFullScreen method on window

Using fullscreen option in BrowserWindow options

Choosing View -> Enter Full Screen from OS X menu bar

Every time the following happens:

There's a brief flicker as the content inside the window appears to reflow according to the fullscreen dimensions

The operating system beeps

If started with fullscreen option on BrowserWindow, the flicker is white and fullscreen, and then window goes to default size

If started in windowed mode and try to enter fullscreen by any other means, flicker happens but window dimensions never change

I've tried everything I can think of, from removing drag regions, using native frame, removing width/height from initial BrowserWindow options, nothing seems to work.

I think it is OS related since I'm getting a beep when trying to go fullscreen.

Electron version: v1.4.1

Operating system: OS X 10.11.4 El Capitan

Issue 2:
When trying to activate fullscreen, an error message appears in the terminal and the app briefly "flashes", but doesn't change size at all. This happens any way I've tried to activate fullscreen (from renderer thread using remote, from main thread, from clicking on the fullscreen window button, from the OS X view menu, using a frameless window, using a non-frameless window). Minimizing and maximizing/unmaximizing the window works.

OS X 10.10.5, Electron 0.31.0

The terminal output looks like this:

2015-08-26 10:27:31.332 Electron[57665:4665300] Message error: Connection invalid
2015-08-26 10:27:31.401 Electron[57665:4665300] ___createFullScreenMessageConnection_block_invoke: Fullscreen message error: Connection invalid
Issue 1:
if i generate a page fixture in before all hook, and use the same page for all test blocks, i cant generate a video for failing tests, is there any workaround for this.

**before all**

const page = await browser.newPage()

const loginPage = new LoginPage(page)

**Tests**

const pageHeader = await loginPage.navigateToPage()
expect(pageHeader).toBe('React')

Issue 2:
Context:

Playwright Version: 1.14.1

Operating System: Linux

Node.js version: v14.16.0

Browser: chromium

Code Snippet

Clone this repo: https://github.com/xrash/pwt-config-issue-example

Run yarn

Run npx playwright test

The directory test-results will be created with partial output

Open playwright.config.ts and remove the use option altogether

Run npx playwright test again

The directory test-results won't even be created this time

Describe the bug

The fixture options under use at the config file are working only partially when creating a new context manually (browser.newContext()).

For instance, trace and screenshot work, but video doesn't record any video at all. Also, trace doesn't fully work, as trace is recorded per test even when the context is created in beforeAll or in a worker-scoped fixture (desired behavior is to have the trace for the entire context session in one file). Also, the trace file seems buggy or incomplete.

If the fixture options under use in the config file aren't supposed to work when using browser.newContext(), then I'd expect it not to work at all, instead of having them to work only partially; and if it's supposed to work, then I'd expect it to work fully.
Issue 1:
Babel is already an insanely powerful tool as is, but being able to input an AST would allow people using other AST utilities outside of Babel (e.g. UglifyJS2) or even languages that generate ESTree ASTs (like the experimental eslisp) to plug in the output into Babel.

As for prior art, UglifyJS2 accepts its own AST as well as the ESTree AST.

I doubt it would be hard to do this, considering this would simply skip a step for the general algorithm (parse, transform, generate).

Issue 2:
I want to build ES6 by learning https://github.com/estree/estree and https://github.com/jquery/esprima and then generate ES5 code. Can I do this with babel?
Issue 1:
Describe what you were doing when the bug occurred:

simple running profiler and popout this error

Please do not remove the text below this line

DevTools version: 4.6.0-6cceaeb67

Call stack: at j (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:162221)

at N (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:161772)

at N (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:161696)

at N (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:161696)

at N (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:161696)

at N (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:161696)

at N (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:161696)

at N (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:161696)

at N (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:161696)

at N (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:161696)

Component stack: in ec

in div

in div

in div

in So

in Unknown

in n

in Unknown

in div

in div

in rl

in Ze

in fn

in Ga

in _s

Issue 2:
Describe what you were doing when the bug occurred:

I did profiling on a list, that gets updated on each pagination api call.

Once the profiling was done, I moved around in the Profiler to view the Flamegraph

Moving to second capture, the Profiler crashed.

DevTools version: 4.6.0-6cceaeb67

Component stack: in ec
in div
in div
in div
in So
in Unknown
in n
in Unknown
in div
in div
in rl
in Ze
in fn
in Ga
in _s
Issue 1:
npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:

npm ERR! https://npm.community

npm ERR! A complete log of this run can be found in:

npm ERR! /root/.npm/_logs/2020-01-29T09_03_22_031Z-debug.log

root@martinho-HP-Notebook:/home/martinho#

Issue 2:
What / Why

While installing npm packages

When

npm install request@latest

npm WARN deprecated request@2.88.2: request has been deprecated, see request/request#3142

npm ERR! code E429

npm ERR! 429 Too Many Requests - GET https://registry.npmjs.org/aws4

Where

npm public registry

How

Current Behavior

unable to install packages

Steps to Reproduce

npm i request@latest

Expected Behavior

module should install

Who

References

npm install request@latest

npm WARN deprecated request@2.88.2: request has been deprecated, see request/request#3142

npm ERR! code E429

npm ERR! 429 Too Many Requests - GET https://registry.npmjs.org/aws4