WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Gurpreet Singh opened SPR-3410 and commented

The xml shown in section 3.2.1.1 of documentation is missing the following text "http://www.springframework.org/schema/beans" in xsi:schemaLocation attribute of beans tag. If we try this xml, we get org.xml.sax.SAXParseException with message '

'SchemaLocation: schemaLocation value = ' http://www.springframework.org/schema/beans/spring-beans-2.0.xsd' must have even number of URI's.'

The old xml is :

<?xml version="1.0" encoding="UTF-8"?>

<beans xmlns="http://www.springframework.org/schema/beans"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">

<bean id="..." class="...">

<!-- collaborators and configuration for this bean go here -->

</bean>

<bean id="..." class="...">

<!-- collaborators and configuration for this bean go here -->

</bean>

<!---- more bean definitions go here... -->

</beans>

The new xml should be :

<?xml version="1.0" encoding="UTF-8"?>

<beans xmlns="http://www.springframework.org/schema/beans"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">

<bean id="..." class="...">

<!-- collaborators and configuration for this bean go here -->

</bean>

<bean id="..." class="...">

<!-- collaborators and configuration for this bean go here -->

</bean>

<!---- more bean definitions go here... -->

</beans>

Issue Links:

#8056 Wrong bean configuration xml file header in Spring 2.0.4 PDF Reference Manual : missing data in xsi:schemaLocation ("duplicates")

Issue 2:
Stephen R. Saucier opened SPR-4718 and commented

the formatFieldValue method in AbstractPropertyBindingResult does not locate any PropertyEditors using PropertyEditorManager.find(...). This means that any PropertyEditors located using the JavaBeans convention of having the name the same as the class it is editing with the suffix "Editor" are not used during the binding process.

I had been registering my PropertyEditors with a PropertyEditorRegistrar (and then with a org.springframework.web.bind.support.ConfigurableWebBindingInitializer) but when I switched to allowing the PropertyEditorManager to discover my PropertyEditor, binding no longer works.

Note that TypeConverterDelegate does use PropertyEditorManager to find PropertyEditors, so my PropertyEditors are used in other places (the setAsText use case, e.g. coercing Strings in my spring configuration files to the appropriate type), but not during web binding (the getAsText use case).

Attachments:

AbstractPropertyBindingResult.patch (1.49 kB)

BeanUtils.patch (688 bytes)
Issue 1:
Challenge http://www.freecodecamp.com/challenges/waypoint-manage-packages-with-npm has an issue.

This waypoint should be updated to match cloud9's updates, however, there is a legitimate issue that could confuse a beginner on item 12. The command listed in item 12 should be changed to 'how-to-npm' in order to run the tutorial program.

Issue 2:
The directives of the challenge http://www.freecodecamp.com/challenges/waypoint-build-web-apps-with-express.js need to be updated to the new C9 user interface.
Issue 1:
TL;DR : I think this can be done in the density tests, we just need to vary them so that there are collisions (dupe pods) being submitted.

... In a real kube system, there is a likliehood that 10 or 20 RC's might be created simultaneously.

We should ensure that the if we submit, say 100 concurrent pod creation requests,

(consistency) The systems state is consistent such that duplicate pods aren't created, and at least some requests are rejected.

(availability) every unique submission is eventually created.

Issue 2:
Problem

There is alot of jargon in the scheduler code, some examples:

hardPodAffinityWeight == RequiredDuringSchedulingScheduling

softPod... == "PreferredDuringScheduling pod affinity."

Symmetry, a major part of the affinity algorithm implementation, is also undocumented in docs/devel/scheduler.

Reading podaffinity along side the scheduler docs + the code gives a good picture.

Solution

Since the affinity, symmetry, hard/soft pod stuff is now in the production code, lets migrate out of the proposal (or maybe duplicate if proposals are meant to live forever), and Lets converge podaffinity proposal into the first class docs/devel/scheduler* area.

cc @kubernetes/sig-scheduling
Issue 1:
Currently we can create a layout by setting the width (col--) of the elements.

We can also create spaces between them by leaving cols blanks.

It would be great if we can create vertical spaces between elements with the same logic.

In a tiny project I made, you can see an exemple of a possible implementation :

https://github.com/GuillaumeAmat/bootstrap-more/blob/master/bootstrap-more.css#L35

Issue 2:
Bootstrap CSS adds margin-bottom to some components and margin-top to others. Then if, for example, you start a new row with a h1 (which has margin-top) it will be "natively" pushed away from the previous component creating a good sense of component separation right out-of-the-box. In contrast if you start the row with something like a div.carousel (which has NO margin-top) it'll stick to the previous component without any spacing in between, breaking the rhythm reached so far.

Also double margins create collapsing margins very often. Thus we have to create unnecessary "spacer" divs and custom CSS classes either to add margins or to keep collapsing margins under control.

Harry Roberts has made a great work explaining why this is important: http://csswizardry.com/2012/06/single-direction-margin-declarations/.

Now can vertical rhythm be re-considered to eliminate margin-top in favor of margin-bottom only?
Issue 1:
I believe this framework is very well put together and I know its based on LESS but are you thinking about adding an option for the people that use SASS.

Issue 2:
As of 3.0.0 you had the ability (albeit undocumented) to use nested containers, as such;

<div class="container">
<div class="row">
<div class="col-md-12 col-lg-10 col-lg-offset-1">
<div class="container">
<!-- centered elements here -->
</div>
</div>
</div>
</div>

However as of 3.0.3 this functionality no longer works and the documention states that nested containers are not supported due to hard coded width's on container media query.

I was able to get this working by creating CSS for .container-nested, which duplicates everything from .container, apart from the media queries;

.container-nested {
padding-right: 15px;
padding-left: 15px;
margin-right: auto;
margin-left: auto;
}

.container-nested:before,
.container-nested:after {
display: table;
content: " ";
}

.container-nested:after {
clear: both;
}

.container-nested:before,
.container-nested:after {
display: table;
content: " ";
}

.container-nested:after {
clear: both;
}

I've tested this in IE11/Chrome, and it seems to work fine.

Could a core dev please confirm if such functionality would be considered for merge? If so then I'd be happy to submit a PR to add this functionality.
Issue 1:
See below for Minimum Working Example or whatever that's called (edit: add versioninfo()):

julia> x = [1 2; 3 4]
2×2 Array{Int64,2}:
1 2
3 4

julia> using LinearAlgebra

julia> x .-= LinearAlgebra.I
┌ Warning: broadcast will default to iterating over its arguments in the future. Wrap arguments of
│ type `x::UniformScaling{Bool}` with `Ref(x)` to ensure they broadcast as "scalar" elements.
│ caller = ip:0x0
└ @ Core :-1
2×2 Array{Int64,2}:
0 1
2 3

julia> x .-= Ref(LinearAlgebra.I)
2×2 Array{Int64,2}:
-1 0
1 2

julia> versioninfo()
Julia Version 0.7.0-beta2.90
Commit 789ad046b1 (2018-07-24 03:59 UTC)
Platform Info:
OS: macOS (x86_64-apple-darwin18.0.0)
CPU: Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-6.0.0 (ORCJIT, skylake)

Issue 2:
Broadcasting is not only super convenient, but it also gives new features. For example, broadcasted operations can generate GPU kernels with GPUArrays.jl. So it's really nice to be able to broadcast operations... but this one seems missing. I can't seem to do:

for j in 1:length(u), i in 1:length(u)
W[i,j] = I[i,j]-J[i,j]
end

If you try to do something similar with broadcast, it's incorrect:

I .- ones(4,4) # == zeros(4,4)

It would be nice if broadcast worked on the UniformScaling operator.
Issue 1:
TypeScript Version:

1.7.5 / 1.8.0-beta / nightly (1.9.0-dev.20160217)

Code

// A self-contained demonstration of the problem follows...

Expected behavior:

Actual behavior:

Issue 2:
I'm trying to follow the instructions here, specifically this part:

If file name is omitted then compiler will check if jsx options is specified - if it is set and is not JsxEmit.None then source text will be interpreted as '.tsx'.

However, I'm not getting the expected result.

TypeScript Version:

1.8.10

Code

index.js

const ts = require('typescript');
const fs = require('fs');

const str = fs.readFileSync(__dirname + '/test.tsx', 'utf8');
const result = ts.transpileModule(str, { fileName: 'test.tsx', compilerOptions: { 'jsx': 'React' });

console.log(result.outputText);

test.tsx

/// <reference path="./typings/react/react-global.d.ts" />
interface HelloProps {
name: string;
};

const Hello = (props: HelloProps) => (
<div>Hello, {props.name}</div>
);

Expected behavior:

The output I'm looking for is the same as what I get if I use tsc:

> tsc --jsx react test.tsx
> cat test.js
/// <reference path="./typings/react/react-global.d.ts" />
;
var Hello = function (props) { return (React.createElement("div", null, "Hello, ", props.name)); };

Actual behavior:

However, the output I get is instead:

> node index.js
"use strict";
/// <reference path="./typings/react/react-global.d.ts" />
;
var Hello = function (props) { return (<div>Hello, {props.name}</div>); };
Issue 1:
A clear and concise description of what the bug is.

How to reproduce the bug

Go to https://superset.apache.org/docs/api

Scroll down the page.

You will see that the page will not scroll to the end. This applies to multiple pages in the documentation.

Pressing PgDown on keyboard or using documentation sidebar navigation also fails.

Expected results

The user should be able to scroll through the full page of documentation to the end.

Actual results

The screen won't scroll vertically below the text that was visible when the page loaded. The visible screen bounces back up to the beginning of the document.

Screenshots

This is as far as the page scrolls.

Environment

This has been tested in Chrome and Firefox on Windows 10.

Issue 2:
Screenshot

Description

Element on screenshot are preventing page to scroll down.

Design input

It can be solve by setting position: fixed to this element.
Issue 1:
Original ticket http://projects.scipy.org/scipy/ticket/715 on 2008-08-07 by trac user mgogoulos@..., assigned to unknown.

scipy.object0 and scipy.object result in segmentation fault, see the following:

$ gdb python

...

(gdb) run -c "import scipy; obj = scipy.object0()"

Starting program: /usr/bin/python -c "import scipy; obj = scipy.object0()"

Program received signal SIGSEGV, Segmentation fault.

[Switching to Thread 0xb7d408c0 (LWP 17657)]

object_arrtype_new (type=0xb7c2e1c0, args=0xb7d0002c, kwds=0x0) at numpy/core/src/scalartypes.inc.src:1977

1977 Py_INCREF(((PyObject *)dest));

kernel: [ 1713.721411] python[17644]: segfault at 00000003 eip b7c28de7 esp bfe1d6d0 error 6

Tested with scipy 0.6.0, on Ubuntu hardy (python 2.5.2)

Best regards,

Markos Gogoulos

Issue 2:
Is your feature request related to a problem? Please describe.

Motivation

Sometimes you have pairs of values x, y and you want to know whether y is independent of x or not. People sometimes compute a test statistic of x, y pairs directly, examples are Pearson/Spearman coefficient, Kendall tau or similar.

Other tests use contingency tables (histograms), like the popular USP test. This can be more computationally efficient when the sample is very large (think of applications with Big Data, like in my field, high-energy physics). For these tests, one needs to generate random 2D tables that have the same row and column totals as the original data. The probability distribution for such a table has been worked out in the 80'ies, and Patefield found an elegant non-trivial algorithm to randomly sample from this distribution.

Describe the solution you'd like.

I searched the net for implementations in C/C++ of Patefield's algorithm, but only found implementations under GPL license and none of them is available to Python. I want to have the code under a less restrictive license and so I translated the published FORTRAN code to C from scratch and based my implementation on that. My code is licensed under BSD 3-clause and I would like to contribute it to SciPy.

My implementation already evolved from the original and has cool features that the original implementation lacks. The changes are documented in the code. Sorry for all the gotos, it is how the original code was written. In time, I am interested in removing the gotos step by step, but for now it is more important to have a baseline code that works.

In addition to Patefield's algorithm, I also want to add a simple shuffling algorithm. The shuffling algorithm requires additional memory, but is faster than Patefield in certain scenarios. Patefield is more time efficient when the table contains few cells and depends only logarithmically on the number of total entries, while the time for the shuffling algorithm does not depend on the number of cells and only depends on the number of entries.

I would like to start a PR; some pointers where this algorithm fits in best, would be helpful.

Describe alternatives you've considered.

As mentioned above, before I started writing mine, there were only GPL licensed implementations and none available to Python.

Additional context (e.g. screenshots, GIFs)

No response
Issue 1:
Using a couple Facebook-like links in my navbar

<ul class="navbar-right nav navbar-nav">
<li>
<a href="#">
<span class="glyphicon glyphicon-shopping-cart">&nbsp;</span>
<span class="visible-xs visible-sm">Shopping Cart</span>
<span class="badge">3</span>
</a>
</li>
<li>
<a href="messages.html">
<span class="glyphicon glyphicon-envelope">&nbsp;</span>
<span class="visible-xs visible-sm">Messages</span>
<span class="badge">10</span>
</a>
</li>
</ul>

In the responsive menu they appear as such:

Issue 2:
related to issues #8500 , #7808 , #4929 ; using .hidden-sm to hide span within .nav > li > a . Because class is display: block above -sm then text wraps to new line. Would you consider .hidden-* classes to be display: inline-block instead ?

Here's a jsfiddle of the two cases - but the repercussions could be greater outside of this situation so probably needs more consideration... http://jsfiddle.net/jholl/P86yf/
Issue 1:
Bug report

What is the current behavior?

Using webpack in the electron js app I can't import native module libraries like ffi-napi, ref-napi, etc in my application. Libraries like those generally expects node's __dirname to set as global. Thus, setting node: {__dirname: true} would work in my app but in the production built it throws a runtime error:

Error: No native build was found for platform=darwin arch=x64 runtime=electron abi=87 uv=1 libc=glibc node=14.16.0 electron=12.0.6 webpack=true

The same above error would throws if I change/remove node:{__dirname: false} or node property itself from the webpack config.

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

I'm not sure on this whether its a bug or not. But to reproduce the scenario here's my example repo which can show the issue in more details. Basically,

to reproduce an error

start the app by npm start

then an error would shown up

to get working

change the __dirname to true in the webpack.config.js and again

start the app by npm start

now it runs OK. To confirm if native module ffi-napi, ref-napi are working properly - goto View > Toggle Developer Tools and in the console tab = Add: 8

What is the expected behavior?

If I need to set node:{__dirname: true} in this case (which works in the development mode) then the same behavior is expected to be working in the production mode (in the installer). Otherwise, if there is/are other work around to fix then still the expectation is same as to the development mode at the moment.

Other relevant information:

webpack version: ^5.37.0

Node.js version: 14.16.0

Operating System: macOS 10.14.6

Additional tools: ffi-napi ver. ^4.0.3, ref-napi ver. ^3.0.2, webpack-cli ver. ^4.7.0, electron ver. ^12.0.7

Issue 2:
Simple, the nodejs webpack api doesn't run the same way as the webpack command line.

I'm trying to write custom loaders and plugins, I'm stuck at the loaders and after banging my head, i see that it doesn't even work the same way as the command line one does. Why is this? How can i make the webpack node API behavior is the same way as the webpack command line?

I want to get the file content from the loader and it doesn't pass that when call via node API, it pass a object

{resouce:'/path/to/file.js',...//other stuff}

instead of a file i get the above. How do i get the file while running webpack with the nodejs API?
Issue 1:
This is a very outdated way to do search. Modern editors will show the first hit starting from the current caret position as you type the search. It feels very odd to type something in the search box, wait for it to do something and have nothing happen. I keep thinking this means it can't find any matches in the document, but just to be safe I hit Cmd-G and lo and behold it finds a bunch of matches.

The explicit "go" command is unnecessary when searching a document. Please implement a modern incremental search.

Issue 2:
Here's another Sublime Text feature Atom doesn't have that Sublime users may miss.

{Cmd,Ctrl} + i starts an incremental find, which works like {Cmd,Ctrl} + f but jumps to the first match as you type and closes when you hit enter.

It's great for quickly getting to a different part of the file.

I'm moving this from atom/atom#6058.

@izuzak mentioned that someone attempted to do this before in #178.
Issue 1:
I want to integrate my Flutter module into my existing app. I follow this link for a tutorial but it requires me to copy dart codes and assets into my existing project. That's not good. Is there any way to encapsulate my Flutter module as a Framework? and I can use that Framework without setting Flutter environment in my existing project.

Issue 2:
I am trying to integrating Flutter into our current iOS project.

However, we have a lot of members in our team, it is really hard to push all of them install flutter environment.

So I tried to embed only App.framework, Flutter.framework and flutter_assets in the project, and it seems work fine in other people's machine without any flutter tools installed.

However there is no document illustrate this workflow. I do wonder if there is any side effect to follow the process described above. And if it is fine to ignore Generated.xcconfig after framework is generated.

Thanks for any help!
Issue 1:
Describe the bug

在发送 delete 请求时，传入 data

在 0.19.2 版本的时候，该 data 是能正确发送，并被后端 @RequestBody 正确解析的，在 0.20.0 版本后该 data 没有被正确发送，进而会导致数据接收不到或者发生 400 错误

To Reproduce

import Axios from 'axios'

Axios.delete('/api', {
headers: {
'Content-Type': 'application/json'
},
data: jsonData
})

Expected behavior

options.data 的数据能被正确发送至后端

Environment

Axios Version [0.20.0]

Browser [Chrome]

Additional context/Screenshots

Issue 2:
Describe the bug

Axios last version (0.20.0) does not use data from config when making DELETE request. In 0.19.2 it's working fine

To Reproduce

axios.delete("...", {
data: { ids: [...] },
}).then(response => {
...
}).catch(error => {
...
});

Expected behavior

Axios send request data from config when making DELETE request

Environment

Axios Version 0.20.0

Browser Chrome

Browser Version 84.0.4147.125

Node.js Version 12.18.3

OS: Linux Mint

Additional Library Versions React 16.13.1

Additional context/Screenshots

None
Issue 1:
I'm trying to add attributes to my rendered radios

$builder
->add('myRadios', 'choice', array(
'choices' => array(
'one' => 'uno',
'two' => 'due'),
'multiple' => false,
'attr' => array('class' => 'testClass'),
'expanded' => true

the output is:

<div class="control-group">
<label class="control-label required">Myradios</label>
<div class="controls">
<label for="form_one_0" class="required radio">
<input type="radio" id="form_one_0" name="form[one]" required="required" value="uno" />
<span>Uno</span>
</label>
<label for="form_two_1" class="required radio">
<input type="radio" id="form_two_1" name="form[two]" required="required" value="due" />
<span>Due</span>
</label>
</div>
</div>

no references to class='testClass'

I can't find any issue online

Issue 2:
It would be nice to be able to define extra HTML attributes for choices in a choice list that are added to the option or input tags.

Origin of this ticket: #3456
Issue 1:
Environment

Windows build number: [run "ver" at a command prompt]
Windows Terminal version (if applicable):

Any other software?

Steps to reproduce

Expected behavior

Actual behavior

Issue 2:
Environment

Windows build number: [run "ver" at a command prompt]
Microsoft Windows [Version 10.0.18950.1000]

Windows Terminal version (if applicable):
Version: 0.3.2142.0

Any other software?
vim/nvim
Ubuntu 18.04.2 LTS

Steps to reproduce

forwarding a long document in vim/nvim via ctrl-f and then going backward via ctrl-b renders background incorrectly.

link to my dotfiles

Expected behavior

The background should use the theme's background

Actual behavior

The background is using highlight color for vim/nvim?

I also posted to the theme author:

haishanh/night-owl.vim#23

Also related to #832

Note:

Doing :redraw or Cltr-L in vim fixes the background issue.
Issue 1:
deno 1.32.2 (release, x86_64-unknown-linux-gnu)
v8 11.2.214.9
typescript 5.0.3

Issue 2:
OS: Windows 10 Version 10.0.19045.2728

From deno 1.32.1+7722014 and up, running deno repl or just deno from certain directories causes the deno process to hang with no repl prompt and with excessive memory usage.

The bug is reproducible if running deno from C:\, C:\Windows, C:\Users, C:\Users\<current_user>, C:\Windows\System32, C:\Windows\SysWow64. At the same time runinng deno repl from C:\Users\<current_user>\Desktop or C:\Windows\System32\wbem proceeds as normal. These are the directories that I've tested which reproduced the bug 100% of the times. Other directories and drives seems unaffected.

The last unaffected canary version with available binaries to download is deno 1.32.1+e888c3f

Edit:

Just checked with the 1.32.2 release. It's still affected.

Edit2:

Checked 1.32.2 Linux under Windows WSL, it hangs when executing with the root dir (/) as the current directory.