WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
rustc 1.0.0-dev (00b112c45 2015-01-08 18:40:04 +0000)

struct JSVal(u8);

fn main() {
let mut jsval = JSVal(0);
let p: *mut JSVal = &mut jsval;
unsafe {
let _v = *p;
}
}

godot2:servo jdm$ ./mach rustc /tmp/badmove.rs
/tmp/badmove.rs:7:18: 7:20 error: internal compiler error: this path should not cause illegal move
/tmp/badmove.rs:7 let _v = *p;
^~
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'Box<Any>', /Users/larsberg/rust/src/libsyntax/diagnostic.rs:123

Issue 2:
Input:

struct T(u8);

fn t() -> *mut T {
unsafe { 0u8 as *mut T }
}

fn main() {
let a = unsafe { *t() };
}

Output:

$ rustc ../test.rs
../test.rs:9:19: 9:23 error: internal compiler error: this path should not cause illegal move
../test.rs:9 let a = unsafe { *t() };
^~~~
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'Box<Any>', /Users/John/Documents/dev/rust/src/libsyntax/diagnostic.rs:123

stack backtrace:
1: 0x10f825b75 - sys::backtrace::write::h757d4037fec4513elCt
2: 0x10f84800f - failure::on_fail::he99e1d2cd81a67a80Hz
3: 0x10f7b3c8a - rt::unwind::begin_unwind_inner::hede15ebc165353e0Qpz
4: 0x10d508707 - rt::unwind::begin_unwind::h5150449308391082809
5: 0x10d50869c - diagnostic::SpanHandler::span_bug::h1cc7aa850b4525b9nQF
6: 0x10c93bc1d - session::Session::span_bug::h9dff6f0c981e0b95mRq
7: 0x10c547999 - borrowck::build_borrowck_dataflow_data::hbfab9f3785e58ec8QRe
8: 0x10c5432fb - borrowck::borrowck_fn::h9d4d5a57ec1e26a2cPe
9: 0x10c5440f2 - borrowck::borrowck_item::hd3de64f0b51b624a9Ne
10: 0x10c54461f - borrowck::check_crate::hab49ad1d67fb67e9ZIe
11: 0x10c09e8aa - driver::phase_3_run_analysis_passes::h3bf5eb3f470c8788gwa
12: 0x10c082d90 - driver::compile_input::h63293298907e332cxba
13: 0x10c14e7ba - monitor::unboxed_closure.22558
14: 0x10c14cf15 - thunk::F.Invoke<A, R>::invoke::h15985566512806182469
15: 0x10c14bcf0 - rt::unwind::try::try_fn::h5957420952141477940
16: 0x10f8b1189 - rust_try_inner
17: 0x10f8b1176 - rust_try
18: 0x10c14c3ec - thunk::F.Invoke<A, R>::invoke::h12578415658120090831
19: 0x10f835814 - sys::thread::thread_start::he6c5dcba45c95bf2drw
20: 0x7fff933e22fc - _pthread_body
21: 0x7fff933e2279 - _pthread_body
Issue 1:
John Hao opened SPR-9352 and commented

No further details from SPR-9352

Issue 2:
John Hao opened SPR-9353 and commented

When we configure struts action bean into Spring, we have to move action configuration sentences from Struts_configure.xml into Spring xml. I have an ideal to simplify this step as below described.

Add a new Name space xmlns:struts=http://www.springframework.org/schema/struts

Add a new command into Spring configuration

<structs:import resource="Struts Configuration Location" />

Resource: Location Struts configuration file and support Ant file Pattern.

Add a new schema resolver handle into spring.handlers under META-INF

http://www.springframework.org/schema/struts=org.springframework.web.struts.beans.factory.xml.StrutsNamespaceHandler

StrutsNamespaceHandler is implemented to parse struts configuration xml and put bean definition into bean factory IOC container.

Bean name: action path

Bean class: action type

No further details from SPR-9353
Issue 1:
I have had this insert-pointer-issue throughout the challenges, but I am stuck on challenge 80(Style Text Inputs as Form Controls). I can't insert the pointer to the part of the page I need to add code.

Challenge Name

Issue Description

Browser Information

Browser Name, Version:

Operating System:

Mobile, Desktop, or Tablet:

Your Code

Screenshot

Issue 2:
In all the exercises, we the users are forced to press the enter key before writing any code.

Update:

We have locked the conversation temporarily on this thread to collaborators only, this has been resolved in staging, and will be live soon.

The fix can be confirmed on the beta website.

The workaround currently on production website is:

Press the Enter key on the challenge editor and then proceed with the challenge.

Apologies for the inconvenience meanwhile.

Reach us in the chat room if you need any assistance.
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.

Environment

Dubbo version: 2.7.1

Operating System version: win7

Java version: 8

Reference has the property url, so we can connect to the provider directly, can you support it as a global config in consumer?

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: 2.5.10

Operating System version: windows7

Java version: jdk1.8

use dubbo-2.5.x and dubbo-2.6.x, it is need to exclude dubbo-common , otherwise, boot log output

Duplicate class com/alibaba/dubbo/common/Version.class in 2 jar

and then i do this

<dependency>
<groupId>com.alibaba</groupId>
<artifactId>dubbo</artifactId>
<scope>system</scope>
<version>${alibaba.dubbo.version}</version>
<systemPath>${basedir}/lib/dubbo-2.5.10.jar</systemPath>
<exclusions>
<exclusion>
<groupId>com.alibaba</groupId>
<artifactId>dubbo-common</artifactId>
</exclusion>
</exclusions>
</dependency>

but when i include kryo , i need to repeat that ,just like

<dependency>
<groupId>com.alibaba</groupId>
<artifactId>dubbo-serialization-kryo</artifactId>
<version>2.6.2</version>
<exclusions>
<exclusion>
<groupId>com.alibaba</groupId>
<artifactId>dubbo-common</artifactId>
</exclusion>
</exclusions>
</dependency>

but this Dependency transfer problem is not appear in https://github.com/dangdangdotcom/dubbox,

can fix it ?
Issue 1:
Do you have any clue for passing a native WebGLTexture to one Shader in a Three material?

We are sharing the Three gl context to do a series of calculations and stuff on the GPU, but the main purpose is to render the final data with three, so I need to put my output texture (WebGLTexture) as a Sampler2D uniform in a THREE.RawShaderMaterial. I don't know if this is possible using the available API of the engine.

Thanks in advance and keep up the great work!

Issue 2:
Moved the discussion from #5728 to a separate issue.

The idea is to add THREE.Image as an additional class which is used by THREE.Texture. An instance of THREE.Image is directly mapped to an instance of WebGLTexture (the raw WebGL texture object). That means multiple textures can refer to the same instance of THREE.Image and not causing redundant texture uploads anymore (related issues #5728, #5821, #7223)

Ideally, THREE.Image will make the handling of image objects transparent (e.g. the difference in HTMLImageElement, ImageBitmap or the image stub in DataTexture is encapsulated in this new class).
Issue 1:
In mui 0.x, I could limit the number of secondary text lines in a <ListItem>. With <ListItemText>, I can't do that anymore.

As a consequence, the following design, which was supported by mui 0.9, isn't possible with 1.0.

Besides, limiting lines in CSS is notably difficult.

Is adding back the max lines support in the plan, or is it definitely out of the API, and I have to find another solution?

Tech
Version

Material-UI
next

React
16

browser
Chrome

Issue 2:
After upgrading from 1.0.0-beta.16 to beta.17, I run the tests and even though they all pass, I get a very large number of warnings like the following:

console.error node_modules/warning/warning.js:51
Warning: [JSS] CSS.escape polyfill in DEV mode is required in this browser, check out https://github.com/mathiasbynens/CSS.escape

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

Expected Behavior

This warning should not appear while running tests.

Current Behavior

The warning message above appears a very large number of times in the console while running all the tests.

Your Environment

Tech
Version

Material-UI
1.0.0-beta.17

React
16.0.0

browser
jest
Issue 1:
Rust now supports [] in macro invocations, with a driving use case being able to write vec![0, 0, 0] as analogy to the fixed sized vector syntax [0, 0, 0].

However, there is no analogy to the [0, ..n] repeat syntax for it: vec![0, ..n] does not work.

For it to be added, vec! would either need to become a procedural macro, or something like rust-lang/rfcs#88 needs to be implemented.

Issue 2:
Currently, changing the cname will cause duplicate glue to be generated in trans. It should pay attention to struct only.
Issue 1:
Describe your issue.

I cannot extrapolate with neither scipy.interpolate.interp2d nor RectBivariateSpline. Both return values clamped to the domain if values for coordinates outside of the domain are requested, instead of extrapolating, even though the docs state for both that for coordinates outside of the domain the value is extrapolated (https://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.interp2d.html and https://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.RectBivariateSpline.html).

Reproducing Code Example

a = [-1, 1]
b = [-1, 1]
c = [[-5, 5], [-10, 0]]
i = scipy.interpolate.interp2d(a, b, c)
i(1, -2)
i(2, -2)
i(2, 2)
i(-2, 2)
i(-2, -2)

Error message

None

SciPy/NumPy/Python version information

1.9.1 1.21.2 sys.version_info(major=3, minor=8, micro=10, releaselevel='final', serial=0)

Issue 2:
The documentation for interp2d [0] says that when fill_value is left as default, values outside the domain are extrapolated. It seems to just copy the nearest neighbor.

[0] https://docs.scipy.org/doc/scipy-0.19.1/reference/generated/scipy.interpolate.interp2d.html

Reproducing code example:

https://gist.github.com/ddasilva/1a020ff09e6fef688dd1c9acf5659f50

Error message:

No error message occurs.

Scipy/Numpy/Python version information:

('0.19.1', '1.13.1', sys.version_info(major=2, minor=7, micro=13, releaselevel='final', serial=0))
In [60]:
Issue 1:
Challenge http://www.freecodecamp.com/challenges/zipline-use-the-twitch.tv-json-api has an issue. Please describe how to reproduce it, and include links to screen shots if possible.

Step #13: "Remember to use RSAP if you get stuck. Try using jQuery's $.getJSON() to consume APIs."

...links incorrectly to this url: http://api.jquery.com/jquery.each/

It should link to: http://api.jquery.com/jquery.getjson/

Unless that misdirection is meant to be tricky for the student ;)

Issue 2:
Challenge http://www.freecodecamp.com/challenges/zipline-build-a-random-quote-machine has an issue. Please describe how to reproduce it, and include links to screen shots if possible.

Item 8 in the list. There is a link titled "jQuery.getJSON()" but it links to the method "jQuery.each()". Not sure if that's intended or not, but it seems like a minor bug.
Issue 1:
Bug summary

When switching the axes scaling to 'log' the ticklabel font changes to a different font.

Code for reproduction

logscale = True

# create test data
nPoints = 200
xValues = np.logspace(-14, -4, nPoints)
yValues = [x / (1.0e-9 + x) for x in xValues]

# set up figure
f, ax1 = plt.subplots(1)

# plot data
ax1.plot(xValues, yValues)

# set range and scale
ax1.set_xlim(1.0e-14, 1.0e-4)
if (logscale):
ax1.set_xscale('log')
ax1.set_ylim(-0.03, 1.03)

# save to file using pdf backend
f.savefig('minimal.pdf')

Actual outcome

minimal.pdf

Matplotlib version

This used to work for me in matplotlib version 1.5.1

I am currently using mpl version 2.0.0 on OSX 10.11.6.

My python version is 2.7.13

I am using homebrew provided python and installed matplotlib with pip.

Issue 2:
Bug report

Bug summary

Setting the font family through rcParams doesn't impact tick labels if the axis is log-scaled. The size of the font can be changed, but not the family (e.g. using the serif font).

Code for reproduction

import matplotlib.pyplot as plt
from matplotlib import rcParams

rcParams['font.family'] = 'serif'
rcParams['font.size'] = 16

x = [0, 1, 2]
y = [1, 100, 10000]

plt.plot(x, y)
plt.yscale('log')
plt.savefig('logscaled.png')
plt.clf()

plt.plot(x, y)
plt.savefig('not-logscaled.png')

Actual outcome

As seen in this screenshot, the linear-scaled y-axis on the left has a serif font while the log-scaled y-axis on the right still has the default sans-serif font. In both cases the font size is set appropriately to 16. It's just the font family that doesn't change. (Pardon the 'shadow' between the two images, that's my Mac, not matplotlib).

Expected outcome

The code should produce tick labels on log-scaled axes with the specified font family.

Matplotlib version

Mac OS X 10.10.5

python 3.5, installed from a Mac installer pkg

matplotlib 2.0.0 - upgraded February 3 with python3 -m pip install --upgrade matplotlib
Issue 1:
In 0.9.x queryGranularity when represented as string was defaulting to use DurationGranularity. Now after the changes in #3850, it is now defaulted to use PeriodGranularity instead. This change is incompatible w.r.t timezone as both implementations behave differently based on the user timezone.

Sample code -

DateTimeZone.setDefault(DateTimeZone.forOffsetHours(5));
PeriodGranularity periodGranularity = new PeriodGranularity(new Period("P2D"), null, null);
DurationGranularity durationGranularity = new DurationGranularity(86400000, 0);
System.out.println(jsonMapper.writeValueAsString(periodGranularity));
System.out.println(jsonMapper.writeValueAsString(durationGranularity));

output -

{"type":"period","period":"P2D","timeZone":"UTC","origin":null}
{"type":"duration","duration":86400000,"origin":"1970-01-01T05:00:00.000+05:00"}

Notice the origin in both the versions, PeriodGranularity defaults to UTC timezone if no timezone is specified explicitly while DurationGranularity defaults to the user timezone.

Issue 2:
In doc Period Granularities are described as:

They support specifying a time zone which determines where period boundaries start

as well as the timezone of the returned timestamps

I run druid in UTC time. In my timeseries query,

This is intervals "intervals":["2017-05-14T00:00:00.000+08:00/2017-05-16T00:00:00.000+08:00"], this is granularity "granularity":{"period":"P1D","timeZone":"Asia/Shanghai","type":"period"},

And this is what I got

[

{

"timestamp": "2017-05-13T16:00:00.000Z",

"result": {

"error_count": 6154866,

"sum_count": 353336733

}

},

{

"timestamp": "2017-05-14T16:00:00.000Z",

"result": {

"error_count": 6115738,

"sum_count": 357000114

}

}

]

The result is correct according to the first description as it start the time bucket from UTC 16:00:00, but according to second description, the timestamp in result are supposed to 2017-05-14T00:00:00.000+08:00 and 2017-05-15T00:00:00.000+08:00 and they are in 0.9.2.

So, is it a bug to fix?
Issue 1:
What problem does this feature solve?

I often find myself writing code like this:

<component :data='data' :name='name' :email='email'></component>

This code is redundant and isn't fun to write.

What does the proposed API look like?

Using es6 Object Literal Shorthand as inspiration, the component could instead be written like this:

<component :data :name :email></component>

Issue 2:
如果在VUE组件中使用继承了Array的子类

只要改对象赋值进入VUE组件中 VUE会把该对象改为VUE能够监听的对象

list类 继承 Array

export class List extends Array {

constructor(){

super()

}

test()

}

}

2.某个VUE组件中

import { List } from './list'

export default {

data () {

return {

list: null

}

},

created () {

this.list = new List()

console.log(new List().test) // => function....

console.log(this.list.test) // => undefined

}

}
Issue 1:
Sometimes we want to use aggregations to understand the details of how certain entities are connected:

When did these IP addresses talk to each other?

How much money was sent per day between a selection of bank accounts?

Right now we can structure this with an agg tree as follows:

query terms [A,B,C] with min_should_match:2

terms agg 1 with include: [A,B,C]

terms agg 2 with include [A,B,C]

detail aggs eg date_histogram or sum...

This will generate leaf aggregations for all of the possible connections but will generate too many of them. If the number of terms is N the number of leaf buckets created in a worst-case scenario is N² when it need only be (N²-N)/2. We don't want duplicate results for both A->B and B->A buckets. Similarly, we don't want A->A buckets. This trimming can be achieved if terms agg 2 only collects terms that are less than the parent bucket's term in terms agg 1. (We could use "greater than" as the filter but the choice is immaterial).

We could implement this by either:

Adding extra parameters to existing terms aggs or

Creating a new dedicated adjacency aggregation

Option 1 feels clumsy and introduces a need for changes in the agg framework to allow a child to see the keys used by the parent bucket.

The advantage of option 2 is that clients would only need to specify the list of terms once as a parameter and it could provide a more compact results format.

Would appreciate your thoughts @colings86 and @jpountz

Issue 2:
Elasticsearch version: 2.4.1

After upgrading to the said version from 2.3 we were greeted with a nasty surprise. Templates are now validated upfront, as if they were complete objects, which they are certainly not. This design error implemented in #8802 is also cooked for 5.0.

When a new index is created, all templates are scanned for a match between their pattern and the index name. All applicable templates are then merged in the order indicated by the order property and it's the resulting settings and mappings that are applied to the new index.

Then why validate templates for completeness?! It's plain silly, and not even documented.

Example:

All analyzers are defined in a common template that has pattern * and order 0. These analyzers can used throughout all indices and it's up to the higher order templates to make actual use of them.

This arrangement is now impossible, as you're using the same validator for templates as for an index mapping (which rightfully checks that all referred anlyzers are present).

The mapping validation code should be more insightful and refrain from such checks when working on templates.
Issue 1:
Challenge http://www.freecodecamp.com/challenges/waypoint-remove-an-element-using-jquery has an issue. The instructions on screen

for this challenge are not clear. They read:

"Now let's remove an HTML element from your page using jQuery. jQuery has a function called .remove() that will remove an HTML element entirely."

However, the instructions don't tell you which element to remove. Only by running the sample code and inspecting the errors can you get details

Issue 2:
http://www.freecodecamp.com/challenges/bonfire-convert-html-entities

the test never passes because it's not calling the Convert() function
Issue 1:
Please:

Check for duplicate requests.

Describe your goal, and if possible provide a code snippet with a motivating example.

Using 16-bit (half-precision) floating point numbers reduces memory usage and can make the program run faster, compared to f.ex. 32-bit. My program is working with complex numbers and I'd like to take advantage of the 16-bit speed-up, but JAX only support complex64.

Can we add support for half-precision complex numbers (complex32)?

import jax.numpy as jnp

f32 = jnp.array([1, 2, 3], dtype="float32")
print(f32.size * f32.itemsize) # 12 (bytes)

f16 = jnp.array([1, 2, 3], dtype="bfloat16")
print(f16.size * f16.itemsize) # 6 (bytes)

c64 = jnp.array([1, 2, 3], dtype="complex64")
print(c64.size * c64.itemsize) # 24 (bytes)

c32 = jnp.array([1, 2, 3], dtype="complex32")
print(c32.size * c32.itemsize) # 12 (bytes) <- I want this, but complex32 is not supported

If not, is there anything that stops me from making JAX work with half-precision complex numbers today (f.ex. by creating a class that has two fields: real <bfloat16> and imag <bfloat16>)?

from typing import NamedTuple
import jax.numpy as jnp

class Complex32(NamedTuple):
real: jnp.ndarray
imag: jnp.ndarray

c32 = Complex32(
jnp.array([1, 2, 3], dtype="bfloat16"),
jnp.array([4, 5, 6], dtype="bfloat16"),
)
jnp.abs(c32) # TypeError: absolute requires ndarray or scalar arguments, got <class '__main__.Complex32'> at position 0.

Related issue: #216

Thanks!

Issue 2:
@hawkinsp when generating HLO with many reductions, JAX duplicates reduction computations. Despite that not affecting codegen much, the resulting HLO dumps get overly huge and hard to work with due to such computations. Similarly to tf2xla it would be very difficult if JAX could deduplicate such computations.
Issue 1:
Summary of the new feature/enhancement

Add the ability to resize a photo to multiple target resolutions in Image Resizer

UI for this could be replacing the radio buttons with checkboxes

Issue 2:
Summary of the new feature/enhancement

I currently have a subscription to Techsmith Snagit. The reason I have it is because I find 'Snip & Sketch' is missing a couple of key features. It would be great if PowerToys could make a screenshot and screen recording tool for Power Users.

Proposed technical implementation details (optional)

Ability to copy selected area to clipboard and save as an image in a single button press.

Image files can be named with RegEx

Can create separate profiles for screenshots, screen recording and assign keyboard shortcuts to each.