WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
System information

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

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10 and macOS High Sierra 10.13.4

TensorFlow installed from (source or binary): pip3 install --upgrade tensorflow

TensorFlow version (use command below): 1.8.0

Python version: 3.6.5

Bazel version: N/A

CUDA/cuDNN version: N/A

GPU model and memory: N/A

Exact command to reproduce: In source code

Describe the problem

gfile.Glob() works recursively in Windows, but not in Unix-based systems.

Ideally, they should work the same way.

Source code

Stand in a root folder, create subfolder and add a image.jpg in the subfolder.

Then start python and run:

from tensorflow.python.platform import gfile
print(gfile.Glob("./*.jpg"))

In Windows, you will get [".\\subfolder\\image.jpg"].

In Unix, you will get [].

Issue 2:
System information

Environment:

Python 3.6.2

Tensorflow 'v1.8.0-0-g93bc2e2072' 1.8.0

OS : Windows 7

Exact command to reproduce:

> ls -R
.:
example/

./example:
subdir/

./example/subdir:
file1 file2

> python
Python 3.6.2 (v3.6.2:5fd33b5, Jul 8 2017, 04:57:36) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
>>> tf.gfile.Glob("example/*")
['example\\subdir', 'example\\subdir\\file1', 'example\\subdir\\file2']

Describe the problem

Behaviour of tf.gfile.Glob is different on Windows and Linux-based (POSIX) systems.

On Windows, the result includes all files and sub-directories of the matching pattern (=> recursive)

On Linux, the result includes only files and directories matched by the pattern (=> not recursive)

As an example, given the directory structure above, I have the following result:

Windows

>>> tf.gfile.Glob("example/*")
['example\\subdir', 'example\\subdir\\file1', 'example\\subdir\\file2']

Linux-based systems

>>> tf.gfile.Glob("example/*")
['example/subdir']

The result returned on Windows platform is clearly wrong.

This has an impact on my application because I do something like [my_list]=tf.gfile.Glob(pattern) and it doesn't work on Windows whereas it works on Linux.

Error on Windows is ValueError: too many values to unpack

Source code

I tracked down the issue in TF code and it is related to how GetMatchingPaths works. See difference between Windows implementation and POSIX implementation.

Both of them refer to internal::GetMatchingPaths which seems to be the root cause of the issue.
Issue 1:
Allow to map a shortcut to nothing. So I could remove some of default Windows shortcuts as for example: win+space.

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:
How about throwing an exception if we're trying to declare a route with the name that already exists?

For now it just silently does nothing, which doesn't help in development process at all.

Issue 2:
Q
A

Bug report?
yes

Feature request?
no

BC Break report?
yes

RFC?
no

Symfony version
2.7.30, 2.8.23, 3.2.10, 3.3.3

#23195 changed the assets:install command such that it removes unregonized content in the target directory.

While I understand the intention, a feature that deletes files from disk (the webroot, even) without asking must not become the default behaviour in a patch level release.

This change in behaviour broke our build/deployment scripts. Our AppKernel can be booted with different sets of bundles (controlled by an environment variable). So the build script does something like

THEME_A bin/console assets:install
THEME_B bin/console assets:install
THEME_C bin/console assets:install
# ...

Before #23195 the resources for all themes were installed in the webroot, now only the resources required by the last configuration exist.

It is also conceivable that people want to run completely unrelated Symfony applications out of the same webroot. Or the target path is on a remote filesystem, such as S3. Then running the command could break every other app.

Please put this feature behind a --clean flag or so.
Issue 1:
I am trying to solve a simple example with the dopri5 integrator in scipy.integrate.ode. As the documentation states

This is an explicit runge-kutta method of order (4)5 due to Dormand & Prince (with stepsize control and dense output).

this should work. So here is my example:

import numpy as np
from scipy.integrate import ode
import matplotlib.pyplot as plt

def MassSpring_with_force(t, state, f):
""" Simple 1DOF dynamics model: m ddx(t) + k x(t) = f(t)"""
# unpack the state vector
x = state[0]
xd = state[1]

# these are our constants
k = 2.5 # Newtons per metre
m = 1.5 # Kilograms

# compute acceleration xdd
xdd = ( ( -k*x + f) / m )

# return the two state derivatives
return [xd, xdd]

def force(t):
""" Excitation force """
f0 = 1 # force amplitude [N]
freq = 20 # frequency[Hz]
omega = 2 * np.pi *freq # angular frequency [rad/s]
return f0 * np.sin(omega*t)

# Time range
t_start = 0
t_final = 1

# Main program
state_ode_f = ode(MassSpring_with_force)

state_ode_f.set_integrator('dopri5', rtol=1e-4, nsteps=500,
first_step=1e-6, max_step=1e-1, verbosity=True)

state2 = [0.0, 0.0] # initial conditions
state_ode_f.set_initial_value(state2, 0)
state_ode_f.set_f_params(force(0))

sol = np.array([[t_start, state2[0], state2[1]]], dtype=float)

print("Time\t\t Timestep\t dx\t\t ddx\t\t state_ode_f.successful()")

while state_ode_f.successful() and state_ode_f.t < (t_final):
state_ode_f.set_f_params(force(state_ode_f.t))
state_ode_f.integrate(t_final, step=True)
sol = np.append(sol, [[state_ode_f.t, state_ode_f.y[0], state_ode_f.y[1]]], axis=0)
print("{0:0.8f}\t {1:0.4e} \t{2:10.3e}\t {3:0.3e}\t {4}".format(
state_ode_f.t, sol[-1, 0]- sol[-2, 0], state_ode_f.y[0], state_ode_f.y[1], state_ode_f.successful()))

The result I get is:

Time Timestep dx ddx state_ode_f.successful()
1.00000000 1.0000e+00 0.000e+00 0.000e+00 True

Hence, only one time-step is computed which is obviously incorrect.

This works with vode and zvode integrators

Issue 2:
Original ticket http://projects.scipy.org/scipy/ticket/1820 on 2013-01-22 by trac user timdiller, assigned to trac user teoliphant.

The dopri5 and dop853 methods of scipy.integrate.ode do not support the step keyword argument. This is nicely illustrated in this [http://stackoverflow.com/questions/12926393/using-adaptive-step-sizes-with-scipy-integrate-ode StackOverflow article].

Implementing this would provide a better-working alternative to MATLAB's ode45(), etc.
Issue 1:
Hi All

i dont't know if there is something wrong with my confing or it is a bug but in WSL and linux boxes connected via ssh when pasting clear text from notepad, Windows Terminal after each line, leaves one empty line. I am pasting using right click.

It does not happen on cmd.exe or PowerShell

Anybody know how to resolve that?

Thanks

Issue 2:
Multiline text pasted from the clipboard includes CRLF pairs in all cases; this is inappropriate for "Unix-space" sessions, such as WSL.

Environment

Windows build number: Microsoft Windows [Version 10.0.18362.145]
Windows Terminal version (if applicable): 71e19cd82528d66a0a7867cbed85990cfc1685f1

Steps to reproduce

Select multiline text in Terminal.

Copy it (via right-click, ostensibly)

Paste it (again via right-click)

Expected behavior

When pasting into a Unix-space session -- such as WSL -- pasted text should have a reasonable set of line-ending characters.

Actual behavior

Line endings are "doubled" on text paste to Unix-space sessions.
Issue 1:
ℹ Computer information

PowerToys version: v0.23.2

PowerToy Utility: PowerToys Run

Running PowerToys as Admin: Yes

Windows build number: 19041.572

📝 Provide detailed reproduction steps (if any)

Install and run PowerToys

Open Window off-screen (sort of a bug in itself, but a common Windows issue)

Press Alt+Space to open the Window menu to allow it to be moved back on-screen

✔️ Expected result

The window menu appears (Restore, move, size, etc)

❌ Actual result

A popup appears, with no indication that it is related to PowerToys, that just says "Start typing...".

One of the following should happen

It needs to be made clear that the window that appears is related to PowerToys Run (or at least PowerToys). It was a bit of luck that led me to realise it was PowerToys that had taken the shortcut

Change the shortcut to one that is not used in Windows by default

Do not turn it on by default, or make it an option during install (again, not enabled by default)

Issue 2:
Hi,

This issue has been happening when I try to calculate arithmetic operations with decimals.
Issue 1:
Steps to reproduce:

import socket
import requests

socket.setdefaultimeout(0.0001)
# Expected this to raise exception, but it does not.
requests.get('http://google.com')

# These 2 raise an exception
requests.get('http://google.com', timeout=socket.gettimeout())
requests.get('http://google.com', timeout=socket._GLOBAL_DEFAULT_TIMEOUT)

Looks like the default "None" value is propagated to urllib3, which has socket._GLOBAL_DEFAULT_TIMEOUT set as the default timeout.

Is this by-design or a bug?

Issue 2:
Thanks for an excellent package. I believe the quick start examples should include a timeout value. This is the more common case, rather than the exception.

In the more advanced documentation it maybe wise to mention that sockets.getdefaulttimeout() is not used when a value is not specified.
Issue 1:
ℹ Computer information

PowerToys version: v0.20.1

PowerToy Utility: N/A

Running PowerToys as Admin: Yes

Windows build number: Microsoft Windows [Version 10.0.18363.1016]

📝 Provide detailed reproduction steps (if any)

Uninstall PowerToys from Control Panel -> Program and Features

Restart computer

Install PowerToys v0.20.1

✔️ Expected result

Clean installation of PowerToys

❌ Actual result

FancyZones settings (zone layout) still present and accessible via left clicking a window to drag, and then clicking right mouse button. I can see my pervious zone layout.

Issue 2:
Summary of the new feature/enhancement

Say a user wants to quickly search the internet about 'pineapples' and but also has a folder named 'Pineapples'. After the first result which would be the search result for the folder, an addition result can be 'Search the web for: pineapples'. This would open up the default browser (or a new tab) and paste the query in the search box.
Issue 1:
It would be great if you could cross compile binaries for different platforms when using deno compile.

Example: deno compile --target x86_64-apple-darwin https://deno.land/std@0.79.0/http/file_server.ts from Linux or Windows to create a macOS binary.

This should be relatively trivial to implement. Instead of using the current binary as the base binary for the compilation, we would download the binary for the specified target (using the same code as deno upgrade), and then use that as a compilation base binary.

Issue 2:
Now that a basic deno compile subcommand has been merged into deno it might be interesting to consider implementing support for a --target flag so that one could compile to all supported platforms from all supported platforms. Because of the approach taken for embedding the code into the binary it would probably be pretty easy to implement, the only slight problem being getting the binaries for the other platforms but those could just be fetched from releases.
Issue 1:
Hi,

I'm trying to load a module in my application router in 2 ways:

{ path: 'lazy', loadChildren:'src/lazy/lazy.module#LazyModule' }

{ path: 'lazy', loadChildren: ()=> LazyModule }

In both ways the constructor of LazyModule is being invoked twice.

Is there any way to avoid it?

Regards,

Lior

Issue 2:
E.g. method({a, b}:{a:String, b:boolean})
Issue 1:
Challenge Add Placeholder Text to a Text Field has an issue.

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

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

My code:

<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
.red-text {
color: red;
}

h2 {
font-family: Lobster, Monospace;
}

p {
font-size: 16px;
font-family: Monospace;
}

.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
border-radius: 50%;
}

.smaller-image {
width: 100px;
}
</style>

<h2 class="red-text">CatPhotoApp</h2>

<p>Click here for <a href="#">cat photos</a>.</p>

<a href="#"><img class="smaller-image thick-green-border" alt="A cute orange cat lying on its back. " src="https://bit.ly/fcc-relaxing-cat"></a>

<p>Things cats love:</p>
<ul>
<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>
<input type="text">

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:
Environment info

transformers version: 4.3.2

Platform: linux

Python version: 3.7

PyTorch version (GPU?): 1.7

Tensorflow version (GPU?): -

Using GPU in script?: -

Using distributed or parallel set-up in script?: -

Who can help

albert, bert, xlm: @LysandreJik

Information

In this line

transformers/src/transformers/data/data_collator.py

Line 381
in
e73a3e1

indices_random = torch.bernoulli(torch.full(labels.shape, 0.5)).bool() & masked_indices & ~indices_replaced

you need to change 0.5 to 0.1 to match the description written that only in 10% you would like to change tokens with randomly selected tokens.

To reproduce

Nothing to reproduce.

Expected behavior

probs should match BERT paper.

Issue 2:
I'm using an tweaked version of the uer/roberta-base-chinese-extractive-qa model. While I know how to train using multiple GPUs, it is not clear how to use multiple GPUs when coming to this stage. Essentially this is what I have:

from transformers import AutoModelForQuestionAnswering, AutoTokenizer, pipeline
os.environ["CUDA_VISIBLE_DEVICES"] = "0"

model = AutoModelForQuestionAnswering.from_pretrained('uer/roberta-base-chinese-extractive-qa')
tokenizer = AutoTokenizer.from_pretrained('uer/roberta-base-chinese-extractive-qa')
QA = pipeline('question-answering', model=model, tokenizer=tokenizer, device=0)

Except the model I'm using is a tweaked version of the base model shown above. I'm trying to process a large number of documents and at the rate it's going at it would take on the order of weeks. Is there anyway to set the pipeline to use multiple gpus? So I could use something like

os.environ["CUDA_VISIBLE_DEVICES"] = "0,1"
device = torch.device("cuda")

And then use both devices?

Also looks like someone else had the same question: https://stackoverflow.com/questions/64193049/how-to-use-transformers-pipeline-with-multi-gpu
Issue 1:
Description of the problem

All textures are loaded in mirror.

When I switch to the 103dev version, this doesn't happen:

Super weird, right?

Three.js version

THREE.JS version: 102

Browser

Chrome: Version 72.0.3626.121 - It doesn't happen in Firefox.

OS

macOS Mojave 10.14.3

Issue 2:
Description of the problem

Sprites are flipped. This happened after somewhere between 101 (which works) and 102. In the sandbox below you can exchange the three version, going back to the last major has them positioned correctly.

https://codesandbox.io/s/1z92z6xwz4

Three.js version

r102

Browser

Chrome

OS

macOS
Issue 1:
I get an error if i try to install symfony2.7 via composer

trigger_error('Symfony\Component\DependencyInjection\Definition::setFactoryMethod(getRepository) is deprecated since version 2.6 and will be removed in 3.0. Use Definition::setFactory() instead.', 16384) /Symfony/Component/DependencyInjection/Definition.php:137

It seems that the XMLFileLoader on 2.7 is not updated. In the master, the problem seem to be solved.

https://github.com/symfony/DependencyInjection/blob/2.7/Loader/XmlFileLoader.php#L150

Issue 2:
Starting on a PR regarding another issue and I hooked up on of my applications to 2.8 instead of 2.6. For me this was 2 seconds to figure out it was caused by the old way of defining a factory service + method, but the error message might cause a lot of confusion for others. The message is thrown in the Definition class rather than the place where you expect it (Yaml Loader in this case).

The fix for this is to change your service definition:

# old
app.layout.menu.beta:
class: Knp\Menu\MenuItem
factory_service: app.layout.menu_builder
factory_method: createBetaMenu
tags:
- { name: knp_menu.menu, alias: beta }

# new
app.layout.menu.beta:
class: Knp\Menu\MenuItem
factory: [@app.layout.menu_builder, createBetaMenu]
tags:
- { name: knp_menu.menu, alias: beta }

The thing is that the error message below does not clearly reflect that. I don't think it's desired to put this information in the message below, but maybe someone has a nice idea where to put it instead.

Deprecated: The Symfony\Component\DependencyInjection\Definition::setFactoryMethod method is deprecated since version 2.6 and will be removed in 3.0. Use Definition::setFactory() instead. in /home/ivanderberg/projects/symfony/src/Symfony/Component/DependencyInjection/Definition.php on line 137
Issue 1:
➜ datastructures.rs git:(master) ✗ RUST_LOG="rustc=1;::rt::backtrace" rustc stack.rs &&./stack
rust: task failed at 'assertion failed: rp.is_none()', /private/tmp/rust-5o4g/rust-0.7/src/librustc/middle/typeck/collect.rs:1040
error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug
note: try running with RUST_LOG=rustc=1,::rt::backtrace to get further details and report the results to github.com/mozilla/rust/issues
rust: task failed at 'explicit failure', /private/tmp/rust-5o4g/rust-0.7/src/librustc/rustc.rs:354
rust: domain main @0x7f9afc008410 root task failed

The code that caused it is:

trait ImmStack<T> {
fn push(self, item : T) -> Self;
fn pop(self) -> (Option<T>, Option<Self>);
fn new() -> Self;
}

#[deriving(Eq, ToStr)]
enum Chain<T> {
Link(T, ~Chain<T>),
Break
}

//impl<T> ImmStack<T> for Chain<T> {
// fn push(self, item : T) -> Chain<T> {
// Link(item, ~self)
// }
// fn pop(self) -> (Option<T>, Option<Chain<T>>) {
// match self {
// Link(item, ~new_self) => return (Some(item), Some(new_self)),
// Break => return (None, None)
// }
// }
// fn new() -> Chain<T> {
// Break
// }
//}

fn push<'self, T>(stack : &'self mut Chain<T>, item : T) -> &'self mut Chain<T> {
&mut Link(item, ~*stack)
}

fn pop<T>(stack : &mut Chain<T>) -> Option<T> {
match *stack {
Link(item, ~new_stack) => {
stack = &mut new_stack;
return Some(item);
},
Break => return None
}
}

fn new<T>() -> &mut Chain<T> {
&mut Break
}

fn main() {
let mut b : &Chain<int> = ~Break;
push(push(push(b, 1), 2), 3);
println(b.to_str());
}

Issue 2:
$ RUST_LOG=rustc=1,::rt::backtrace rustc link_header.rs
rust: task failed at 'assertion failed: rp.is_none()', /Users/shout/Projects/rust/src/librustc/middle/typeck/collect.rs:1044
error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug
note: try running with RUST_LOG=rustc=1,::rt::backtrace to get further details and report the results to github.com/mozilla/rust/issues
rust: task failed at 'explicit failure', /Users/shout/Projects/rust/src/librustc/rustc.rs:358
rust: domain main @0x7f86ba819810 root task failed

Complete contents of link_header.rs

#[ crate_type = "lib" ];

// Given a Link header, parse out the next url
// <https://api.github.com/repositories?since=364>; rel="next", <https://api.github.com/repositories{?since}>; rel="first"
fn parse(header: ~str) -> &'self str {
match header.find('<') {
Some(start) => {
match header.find('>') {
Some(end) => {
return header.slice(start + 1, end);
},
_ => { fail!("Missing >") }
}
},
_ => {fail!("Missing <") }
}
}
Issue 1:
Add an event to trace zonesets changes.

The data to trace is:

zoneset type (custom or template, in case of template which one)

number of zones per zoneset

number of apps in the app zone history

reference:

https://github.com/microsoft/PowerToys/blob/master/src/modules/fancyzones/lib/trace.cpp

https://github.com/microsoft/PowerToys/blob/master/src/modules/shortcut_guide/trace.cpp

Issue 2:
When i was trying to get into the settings page of powertoy tool, the settings page opens after a long time and it is a blank screen with nothing in it
Issue 1:
Dear Julia maintainers,

I am forwarding Debian bug #807701:

On Fri, Dec 11, 2015 at 06:36:09PM +0000, Edmund Grimley Evans wrote:

It failed to build on arm64:

https://buildd.debian.org/status/package.php?p=julia&suite=sid

The error was:

signal (6): Aborted

gsignal at /lib/aarch64-linux-gnu/libc.so.6 (unknown line)

Aborted

The problem seems to be that there is no system call epoll_wait on

arm64, only epoll_pwait, so you need a patch like this:

The issue had already been fixed in libuv/libuv@1d8332f, which calls either uv__epoll_wait

or uv__epoll_pwait, depending on availability [libuv/libuv#308].

What is the current status of migrating Julia to upstream libuv?

Switching sooner than later would help avoid duplicate work such as in this case.

Regards,

Peter

Issue 2:
There is a duplicated example here

https://github.com/JuliaLang/julia/blame/master/doc/src/manual/arrays.md#L139

https://github.com/JuliaLang/julia/blame/master/doc/src/manual/arrays.md#L146