WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
For example, as of this writing, the StrAllocating::to_owned method is annotated with #[deprecated = "obsolete, use to_string"], but http://doc.rust-lang.org/std/str/trait.StrAllocating.html#method.to_owned gives no indication of that.

Issue 2:
Platform: Windows, rust nightly.

The optimizations made to fix #13472 appear to have been undone by #15471 and 3316b1e

In 32-bit mode, rustc -O --test test.rs && ./test --bench gives:

running 7 tests
test clone_str ... bench: 1540862 ns/iter (+/- 25433)
test clone_vec_from_fn ... bench: 745343 ns/iter (+/- 7535)
test clone_vec_from_incremental ... bench: 1088468 ns/iter (+/- 5358)
test fast_clone_vec ... bench: 310484 ns/iter (+/- 3212)
test memory_copy ... bench: 102162 ns/iter (+/- 1220)
test naive_clone_vec ... bench: 745599 ns/iter (+/- 8111)

With -C target-cpu=x86-64 SSE enabled (-C target-feature=+sse2), things look better but String::clone still stands out:

running 7 tests
test clone_str ... bench: 1661609 ns/iter (+/- 60586)
test clone_vec_from_fn ... bench: 359253 ns/iter (+/- 202820)
test clone_vec_from_incremental ... bench: 357418 ns/iter (+/- 3406)
test fast_clone_vec ... bench: 309973 ns/iter (+/- 9762)
test memory_copy ... bench: 102129 ns/iter (+/- 1317)
test naive_clone_vec ... bench: 753919 ns/iter (+/- 8473)

Performance seems very dependent on minor details: clone_vec_from_incremental is much slower than clone_vec_from_fn in 32 bit non-SSE mode.

Benchmark program:

extern crate test;
extern crate core;

use test::{Bencher, black_box};
use core::ptr;

static SIZE: uint = 1024*1024;

#[bench]
fn clone_str(bh: &mut Bencher) {
let mut x = String::with_capacity(SIZE);
for _ in range(0, SIZE) {
x.push('x');
}
bh.iter(|| black_box(x.clone()));
}

#[bench]
fn clone_vec_from_incremental(bh: &mut Bencher) {
let mut x: Vec<u8> = Vec::with_capacity(SIZE);
for _ in range(0, SIZE) {
x.push(0x78);
}
bh.iter(|| black_box(x.clone()));
}

#[bench]
fn clone_vec_from_fn(bh: &mut Bencher) {
let x: Vec<u8> = Vec::from_fn(SIZE, |_| 0x78);
bh.iter(|| black_box(x.clone()));
}

#[bench]
fn naive_clone_vec(bh: &mut Bencher) {
let x: Vec<u8> = Vec::from_fn(SIZE, |_| 0x78);
bh.iter(|| {
black_box(Vec::from_fn(SIZE, |i| x[i]));
});
}

#[bench]
fn fast_clone_vec(bh: &mut Bencher) {
let x: Vec<u8> = Vec::from_fn(SIZE, |_| 0x78);
bh.iter(|| {
let mut copy = Vec::<u8>::with_capacity(SIZE);
unsafe {
ptr::copy_memory(copy.as_mut_ptr(), x.as_ptr(), x.len());
copy.set_len(SIZE);
}
black_box(copy)
});
}

#[bench]
fn memory_copy(bh: &mut Bencher) {
let x: Vec<u8> = Vec::from_fn(SIZE, |_| 0x78);
let mut y: Vec<u8> = Vec::from_fn(SIZE, |_| 0);
bh.iter(|| {
unsafe {
ptr::copy_memory(y.as_mut_ptr(), x.as_ptr(), x.len());
}
})
}
Issue 1:
Modals that have been opened and closed and reopened are not being closed using the x or the close button. The live example modal from the docs shows this http://getbootstrap.com/javascript/#modals.

Open the modal.

Close it however you'd like.

Reopen the modal.

Clicking close or the X does not close the modal only clicking outside will close it.

Issue 2:
Hi,

The code used on last Thursday worked fine. But after updated to latest code on Monday (GMT+8), the modal dialog when clicks to dismiss for seconds onward cannot be close.

I am checking on source code line 932, if I commented out this line then it is working again.

this.$element

.removeClass('in')

.attr('aria-hidden', true)

//.off('click.dismiss.modal')

Am I missing anything...?

Sorry for the grammar. Thanks.
Issue 1:
I'm looking for implementing proper highlighting for C# code using a server that inspects the code, and tokenizes it. The server part is already done, however, it seems that Atom doesn't support asynchronous Grammars (or I'm just not finding any documentation on it).

Please add an API like highlightFile or highlightLines that accept a Promise (or has a callback), so that the tokenization can be asynchronous.

Issue 2:
I am looking to enhance the language definition for typescript, which is currently extremely lacking. Typescript itself provides a highly efficient tokenizer service that could be used to provide a grammar.

I have two questions.

Is the public interface defined here https://atom.io/docs/api/v0.176.0/Grammar what I would need to implement in order to register a custom grammar that the editor could use?

It would be more convenient if the grammar was able to be called async rather than sync, in the public grammar api there is an onDidUpdate method, can I assume that this will be subscribed to by the editor so that I can request the tokenized lines from the typescript services and then notify an update such that the editor would apply the new tokenization?
Issue 1:
In pearsonr function of scipy.stats, there is the following code:

r_num = n_(np.add.reduce(xm_ym))

r_den = n_np.sqrt(ss(xm)_ss(ym))

r = (r_num / r_den)

Since r_num is numerator and r_den is denominator. The common factor n is unnecessary.

Issue 2:
Gina Helfrich from NumFocus pointed out that our code of conduct is not linked to the Community page . It's current location is here.

Should we relocate the current file to /docs and rename as described here or duplicate it in the repo root under /docs? Or maybe include a link to the existing location inside generic dummy file redirecting it to the actual CoC?
Issue 1:
All of the "Help" and "Pair" links in all Waypoints and Bonfires (as far as I've seen) are dead links. If you click either, you get a pop up window and then if you click on the "Take me to the help room" or "Take me to the pair programming room" the link is dead.

Issue 2:
When on the Bonfire, clicking the Help button produces a pop-up that reads:

Need some help?

Remember to use  Read-Search-Ask.

If you've already read the errors and searched Google, you should ask for help.

This will take you to our help room.

The Take Me to the Room button has no affect.

Challenge http://freecodecamp.com/challenges/bonfire-seek-and-destroy has an issue. Please describe how to reproduce it, and include links to screenshots if possible.
Issue 1:
Challenge http://freecodecamp.com/challenges/waypoint-create-a-form-element has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

Upon the load of this lesson, it was obvious there are two complete renderings of the simulated image in the simulated phone. This is in several lessons.

Issue 2:
Challenge http://www.freecodecamp.com/challenges/waypoint-line-up-form-elements-responsively-with-bootstrap has an issue.

I think the problem is happening on all Waypoint pages; the device right side of the screen where the CatPhotoApp page displays the information is being displayed duplicated;

Another point is that the HTML / CSS code is not completely displayed when the page is loaded, it is necessary to click or edit the code so that the code from the previous lesson is displayed correctly;
Issue 1:
Electron version: 1.0

Operating system: OS X EL Capitan

Anyone can tell me how to implement it?

Issue 2:
Actually achieving vibrancy is fairly easy. You simply make the NSVisualEffectView the content view of the mac window. The issue with this is that it blurs the whole window, which is obviously not ideal. The way I see it there are couple different ways of going about this. There could be an API that allows you to create these VisualEffect views and then update their position and size. This may have issues with timing though, as things like element resizes would have to go through chromium to JS and then back to C++. Now this may prove to be negligible. The other solution would be to create a css property that can achieve this. This would prove to be harder. I am not completely sure where CSS is parsed, but a starting place may be the code behind -webkit-app-region. This seems like the most ideal way to implement this as it allows people to easily style their elements with it.
Issue 1:
env: macOS

tf version: master brunch

I built tensorflow on macOS using build_all_ios.sh. Then I tried to load frozen.pb data created by python program. Here is a code to load graph in iOS:

Status status;
Session *session;

status = NewSession(SessionOptions(), &session);
if (!status.ok()) {
return NO;
}

GraphDef graph;
NSString *modelPath = [[NSBundle bundleForClass:[self class]] pathForResource:@"frozen" ofType:@"pb"];
status = ReadBinaryProto(Env::Default(), modelPath.fileSystemRepresentation, &graph);
if (!status.ok()) {
return NO;
}

status = session->Create(graph);
if (!status.ok()) {
std::cout << status.ToString() << "\n";
return NO;
}

First thing is with default build settings libtensorflow-core.a is extremely large - more then 400 MB that is not applicable for using in mobile devices. In any case while loading graph I got and error:

Invalid argument: No OpKernel was registered to support Op 'Less' with these attrs. Registered devices: [CPU], Registered kernels:
device='CPU'; T in [DT_FLOAT]

[[Node: GRU-RNN/rnn/while/Less = Less[T=DT_INT32](GRU-RNN/rnn/while/Merge, GRU-RNN/rnn/while/Less/Enter)]]

I could not find how to solve it except manually change next files:

added next code to cwise_op_less.cc

#if defined(__ANDROID_TYPES_SLIM__)
// We only register the first type when we have multi-argument calls in the
// case where we're trying to reduce executable size, but it turns out that the
// int32 version of this op is needed, so explicitly include it.
REGISTER(BinaryOp, CPU, "Less", functor::less, int32);
#endif // __ANDROID_TYPES_SLIM__

added next code to cwise_op_add_2.cc

#if defined(__ANDROID_TYPES_SLIM__)
// We only register the first type when we have multi-argument calls in the
// case where we're trying to reduce executable size, but it turns out that the
// int32 version of this op is needed, so explicitly include it.
REGISTER(BinaryOp, CPU, "Add", functor::add, int32);
#endif // __ANDROID_TYPES_SLIM__

The second change was added because of the same error but for Add operation.

Then, I have got another error:

Invalid argument: No OpKernel was registered to support Op 'GatherNd' with these attrs. Registered devices: [CPU], Registered kernels:
<no registered kernels>

[[Node: GatherNd = GatherNd[Tindices=DT_INT32, Tparams=DT_FLOAT](GRU-RNN/rnn/transpose, stack)]]

I think this is because python script contains tf.gather_nd function. I found that tf_op_files.txt does not contain any gather* functions, so I tried to add them manually but I don't know that exactly should I add and where. Can you please provide some information about that and probably add some issues about Less and Add operations for Int32 type?

Issue 2:
I am trying to load the simple trained model, but I am facing the following issue:

No OpKernel was registered to support Op 'RandomShuffleQueue' with these attrs

[[Node: shuffle_batch_1/random_shuffle_queue = RandomShuffleQueue[capacity=1003,
component_types=[DT_FLOAT, DT_FLOAT, DT_FLOAT], container="", min_after_dequeue=1000,
seed=0, seed2=0, shapes=[[227,227,3], [10], [18]], shared_name=""]()]]

Thanks,
Issue 1:
It used to, the code is still here, so it's probably something that changed in either OrbitControls or TransformControls

https://threejs.org/examples/#misc_controls_transform

Issue 2:
The Transform Controls example isn't responding to any mouse input when you try to move the box around.

This is working however on mobile Safari and mobile Chrome.

Three.js version / on the live site

[ X] r120

Browser

All of them

Chrome

Firefox

Internet Explorer

OS

[X ] macOS
Issue 1:
Services should have a proxy subresource just like the one for pods (pods/proxy). The endpoint should be the equivalent of the current /proxy/services/[name] endpoint.

Issue 2:
We created and added "pods/proxy" subresource to remove the need for the generic top level prefix proxy. We should add the equivalent for service and convert all code to use it (code that does not have to be backwards compatible with a Kube 1.0 or 1.1 server, such as e2e). We should mark the "proxy/service" construct deprecated for 1.2.
Issue 1:
I wrote a program to watch an incoming files in inbox folder and it's working fine, except some garbage shows on the screen, however, this works fine one Windows 10. I used the following code:

import { green, magenta, red, bold, underline } from "https://deno.land/std/fmt/colors.ts";

const success = (text: string) => {

console.log(green(bold(text)));

}

success(Watching the folder: C:/OpenAS2/data/inbox);

Shows the attached image.

Issue 2:
On Windows, escape sequences don't color Deno's output and display as ordinary text.

For example, an error stack trace looks like:

Uncaught SyntaxError: Unexpected string
at ←[1m←[3m←[90mevaluate←[39m←[23m←[22m←[90m(←[39m←[90m$deno$/repl.ts←[39m←[90m:←[39m←[90m45←[39m←[90m:←[39m←[90m34←[39m←[90m)←[39m
at ←[1m←[3m←[90mObject.replLoop←[39m←[23m←[22m←[90m(←[39m←[90m$deno$/repl.ts←[39m←[90m:←[39m←[90m136←[39m←[90m:←[39m←[90m13←[39m←[90m)←[39m

I hope that this can be fixed.
Issue 1:
Feature request

What is the expected behavior?

If you do "webpack --watch" it's currently only detecting and recompiling when existing files are changed.

What is motivation or use case for adding/changing the behavior?

I want to be able to drop new jsx files into the source directory tree, and have them automatically be compiled into the output tree.

How should this be implemented in your opinion?

Every directory and subdirectory would have to be watched for new files (in addition to current behavior). The new feature doesn't necessarily need to support files in new directories that are created after webpack is launched, if that's harder (it probably is).

Are you willing to work on this yourself?

yes

Issue 2:
Feature request

What is the expected behavior?

Currently, there is no way to tell Webpack to watch additional paths for changes when using watch. It would be nice if this was possible.

What is motivation or use case for adding/changing the behavior?

In one of my projects I use BannerPlugin to add some text to the top of my Webpack bundle. This text is stored in a separate file; in my webpack.config.js I use

plugins: [
new webpack.BannerPlugin({
banner: fs.readFileSync('./my_text_file').toString(),
...

to pass the banner text into BannerPlugin. But Webpack doesn't watch that file, so changes to it don't trigger a rebuild.

How should this be implemented in your opinion?

With a new watchOptions.additional option, with usage equivalent to watchOptions.ignored.

Are you willing to work on this yourself?

yes, but not sure where to look
Issue 1:
Hi ,

The programming image that appears.

Challenge http://www.freecodecamp.com/challenges/waypoint-add-a-negative-margin-to-an-element has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

Issue 2:
Challenge Target a Specific Child of an Element Using jQuery has an issue.

User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36.

Please describe how to reproduce this issue, and include links to screenshots if possible.

My code:

<script>
$(document).ready(function() {
$("#target1").css("color", "red");
$("#target1").prop("disabled", true);
$("#target4").remove();
$("#target2").appendTo("#right-well");
$("#target5").clone().appendTo("#left-well");
$("#target1").parent().css("background-color", "red");
$("#right-well").children().css("color", "orange");

});
</script>

<!-- Only change code above this line. -->

<div class="container-fluid">
<h3 class="text-primary text-center">jQuery Playground</h3>
<div class="row">
<div class="col-xs-6">
<h4>#left-well</h4>
<div class="well" id="left-well">
<button class="btn btn-default target" id="target1">#target1</button>
<button class="btn btn-default target" id="target2">#target2</button>
<button class="btn btn-default target" id="target3">#target3</button>
</div>
</div>
<div class="col-xs-6">
<h4>#right-well</h4>
<div class="well" id="right-well">
<button class="btn btn-default target" id="target4">#target4</button>
<button class="btn btn-default target" id="target5">#target5</button>
<button class="btn btn-default target" id="target6">#target6</button>
</div>
</div>
</div>
</div>
Issue 1:
Original ticket http://projects.scipy.org/numpy/ticket/1897 on 2011-07-07 by @jpaalasm, assigned to @pierregm.

Python 2.7.1+ (r271:86832, Apr 11 2011, 18:13:53)
[GCC 4.5.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pickle; import numpy; numpy.__version__
'1.5.1'
>>> ma = numpy.ma.MaskedArray([0, 0, 0], mask=True)
>>> m = ma[0]
>>> m
masked
>>> pickle.dumps(m)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/pickle.py", line 1374, in dumps
Pickler(file, protocol).dump(obj)
File "/usr/lib/python2.7/pickle.py", line 224, in dump
self.save(obj)
File "/usr/lib/python2.7/pickle.py", line 306, in save
rv = reduce(self.proto)
File "/usr/lib/pymodules/python2.7/numpy/ma/core.py", line 5494, in __reduce__
self.__getstate__())
File "/usr/lib/pymodules/python2.7/numpy/ma/core.py", line 5467, in __getstate__
self._fill_value,
AttributeError: 'MaskedConstant' object has no attribute '_fill_value'
>>>

Issue 2:
There is a decent amount of overlap in documentation subsection of the dev/index page and the more detailed documentation build instructions.

There may be an opportunity to reduce duplication here, e.g. by removing most of the details about building docs from dev/index and linking to the howto_build_docs article instead.

Pinging @Mukulikaa since you've recently rewritten the latter document.
Issue 1:
Simply trying to add OrbitControls to three.min.js by following the instructions in the Wiki. Working from a fresh clone of the master branch of r120 on a Windows 10 machine with current Node and npm. Added the line

export { OrbitControls } from '../examples/jsm/controls/OrbitControls.js';

to src/Three.js and ran npm install followed by npm run build-closure. The resulting file is twice as big as expected, and further runs of the build keep increasing file sizes. Either something critical is missing from the Wiki instructions or there is an error somewhere.

Issue 2:
Ricardo, why did you delete the reported issue?

I'm a 3DS Max user since the DOS era, so I know very well what I'm saying.

Again:

import an object (OBJ, DAE, whatever) with many childrens.

perform some scale/rotation/position changes on the imported object (all the childrens will be afected).

detach one children (the mesh)

create a new GROUP

attach that mesh to the group.

Result: everything is messed up !

That previous child object will get position and rotation (0,0,0) and scale(1,1,1).

And that's wrong!

Perform the same operations with 3DS Max.

The new group (parent) will not mess up the new children parameters.

cheers
Issue 1:
System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): No

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): CentOS

TensorFlow installed from (source or binary): source

TensorFlow version (use command below): master

Python version: 2.7

Bazel version (if compiling from source):

GCC/Compiler version (if compiling from source):

CUDA/cuDNN version:

GPU model and memory:

Exact command to reproduce:

Describe the problem

I found MultiWorkerMirroredStrategy has been supported in Estimator. However, it seems that only works with in-graph mode. And the comments here shows it will support between-graph mode in the future.

# TODO(yuefengz): support between-graph replication.

I want to know the progress of the between-graph development. Whether it is in progress or even has not started yet？ If it has been in progress, when does it release in master branch？

Thank you.

Issue 2:
The tf.image.resize_images() seems to use a strange padding option, which one is not clear to me at the moment. I tried to replicate the bilinear interpolation with various padding options in for example skimage, but cant replicate the behaviour.

It would be nice to be able to set the padding option used in tf.images.resize_images(), or document what is used at least.

Example code for comparing the results of tf.images.resize_images() and skimage transform:

Looks like tf.images.resize_images() does some weird unsymmetrical padding!?

Using tensorflow 0.12.1:

import tensorflow as tf
import tensorlayer as tl
import numpy as np
import skimage
from scipy.misc import imread, imresize, imsave

sess = tf.InteractiveSession()

#create simple test image
imsize = 3
xa, ya = np.ogrid[:imsize, :imsize]
img = np.repeat((xa + ya)[..., np.newaxis], 3, 2) / float(imsize + imsize)

x = tf.placeholder(tf.float32, [1, imsize, imsize, 3])
y = tf.image.resize_images(x,(imsize*3, imsize*3))

sess.run(tf.global_variables_initializer())

upsampled_tf_result = sess.run(y, feed_dict={x: [img]})
upsampled_skimage_result = skimage.transform.rescale(img,
3,
mode='symmetric',
cval=0,
order=1,
preserve_range=False)

print(np.allclose(upsampled_tf_result, upsampled_skimage_result))

imsave('upsampled_tf_result.png', np.squeeze(upsampled_tf_result))
imsave('upsampled_skimage_result.png', upsampled_skimage_result)
Issue 1:
I'm used to this from KeyPirinha (well, a plugin), so bear with me:

I'd like to be able to sleep, restart, shut down, log off and hibernate from PTR. I could make programs to do this and have them in my start menu to work around this for now, but this feels like something that would (a) not bloat the runner and (b) be quite universally useful

Issue 2:
As per this twitter conversation, it would be nice to have the ability to execute system commands such as sleep, shutdown ,and switch user account from within the launcher via the use of friendly keywords.

Some keyword examples:

"sleep" - send the PC to sleep

"hibernate" - send the PC to sleep

"shutdown" - shut the PC down

"switch user" - switch user account

As current if we search for Sleep from within Windows Search we are only given the option to view Sleep and power settings. It is possible to run such commands from Win + R, although our command will instead look like this rundll32.exe powrprof.dll,SetSuspendState 0,1,0, not quite user friendly to be honest! :)

Screenshot taken from the twitter conversation showing how we could prioritize the UI for common Windows system commands above the search result.
Issue 1:
One of the great features of IPython is that you are able to embed it in a currently executing program IPython.embed() so you can muck around with the current state at that point. This would be a great feature to support with the new REPL.

Issue 2:
Debugging code is currently print() based. This isn't a particularly great solution.

Spun this issue off of #502 so maybe we can put that one back on topic. (My fault for bringing it up)