WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Recently, Javier posted a blog post about supporting « notes » in XLIFF files. As notes are written directly in the XLIFF files by translators for instance, this means the technical guys in charge of the application will have to be warned for notes and open the files.

I was wondering if we could enhance the translation:debug command to be able to print the details of one single translation at a time like we already do for routes and services. We could then display the following information for a unique translation : source language, target language, source string, target string, notes (if any) and the list of all catalogues file paths where the translation is set or overriden.

In projects, it happens many time that we have to search for the location of a single translation using a grep or ack command. This is quite painful and time consuming. I can't tell how painful it should be for Windows users too. The other problem is when we have to search for translations located in YAML files. Indeed, YAML translation files contain translations defined like this :

# app/Resources/translations/messages.fr.yml
homepage:
jumbotron:
title: Bienvenue chez nous!

This means the translation can then be used with the key homepage.jumbotron.title. If you want to search for this translation key using grep/ack or whatever tool, you won't be able to find any results as the search key doesn't match any translation keys in the YAML catalogue.

That's why I think enhancing the translation:debug command may add value for developers / technical project managers.

How can we achieve that?

In my opinion, we could generate an aggregated XML or JSON file in the cache directory that contains all translations' metadata. In dev environment we don't want to regenerate it at each single request so we could do that only when we use the translation:debug command.

Would you think this enhancement would add value to your projects?

Issue 2:
I'm implementing a solution which allows the user to log in with passwords generated in Symfony 1.4. Since the mergePasswordAndSalt behaviour must be different to accommodate this (i.e. it should behave differently depending on the algorithm used), I have to duplicate the entire class since I can't access the "algorithm" member variable since it's private.

It would make far more sense if this was a protected member instead.
Issue 1:
ℹ Computer information

PowerToys version: v0.21.1

PowerToy Utility: Shortcut Guide

Running PowerToys as Admin: Yes

Windows build number: [run "winver"] 18363.1082

📝 Provide detailed reproduction steps (if any)

Install PowerToys

Open Settings, relaunch as administrator with button

Open Settings, navigate to Shortcut Guide

Radio selection UI has background set to "light", but the actual overlay used is dark background until I change the selection to dark and back to light. (note: PC Setting/app mode remained on dark mode the entire time).

❌ Actual result

What is the actual result of the above steps?

Changing setting to dark and opening the guide again: no change (as expected, the background remained dark)

Changing setting to light and opening the guide again: now it is light.

Issue 2:
Environment

Windows build number: 10.0.18363.836
PowerToys version: 0.18.1
PowerToy module for which you are reporting the bug (if applicable): Settings (Shortcut Guide)

Steps to reproduce

Got the Dark Theme set in Windows.

Open Settings > Shortcut Guide for the first time.

Expected behavior

To see the "System default" radio button selected.

Actual behavior

Even though the correct theme (in this case Dark) is applied to the Guide, the radio button "Light" has been selected. After selecting/applying one of the other settings, either in PowerToys or Windows settings, all works fine though. It's just the first run.

Can confirm that in 0.20.1 the SC guide settings.json contains "theme":{"value":"light"}.
Issue 1:
Preflight Checklist

I have read the Contributing Guidelines for this project.

I agree to follow the Code of Conduct that this project adheres to.

I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Problem Description

The product I'm developing now implements a custom error for gRPC to make the error handling. Then, by passing the additional information for the errors made by gRPC to the renderer, I am trying to do a flexible display of error messages with the renderer.

For example, I am trying to use custom errors in the following situations

display the ID of data that failed to be received

Handle custom error codes contracted to the gRPC server

However, ipcRenderer.invoke does not allow to receive custom error generated on main process because this function make simple Error() instance with error message.

ipcRenderer.invoke = async function (channel, ...args) {
const { error, result } = await ipc.invoke(internal, channel, args);
if (error) {
throw new Error(`Error invoking remote method '${channel}': ${error}`);
}
return result;
};

Proposed Solution

I don't fully understand the ipc.invoke process described in cpp. If ipc.invoke can return a error thrown by the main process directly, I think the following changes will satisfy my wishes.

ipcRenderer.invoke = async function (channel, ...args) {
const { error, result } = await ipc.invoke(internal, channel, args);
if (error) {
throw error;
}
return result;
};

However, the information on the channel drops off. I'd like to come up with a solution here when how to handle custom error policy is decieded.

Alternatives Considered

Additional Information

If it's the current implementation in relation to the cpp part of the implementation, please let me know. I'm glad to see it. I'm also glad that this custom error policy is being used as an anti If it's a pattern, I'd be happy to point that out as well.

Issue 2:
Preflight Checklist

I have read the Contributing Guidelines for this project.

I agree to follow the Code of Conduct that this project adheres to.

I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Problem Description

The Electron net module (and other associated APIs, types, etc.) is supposed to be similar to Node's http and https modules. At this point in time however, Electron's IncomingMessage does not expose rawHeaders.

Proposed Solution

Expose a rawHeaders on IncomingMessage. The return value should be similar to that as in the http module:

The raw request/response headers list exactly as they were received.

The keys and values are in the same list. It is not a list of tuples. So, the even-numbered offsets are key values, and the odd-numbered offsets are the associated values.

Header names are not lowercased, and duplicates are not merged.

https://nodejs.org/api/http.html#messagerawheaders

Alternatives Considered

Don't use Electron net module. I don't want to do this because of the greater functionalities of net vs the Node http and https modules.

Additional Information

I am more than happy to implement this myself!
Issue 1:
Challenge http://freecodecamp.com/challenges/waypoint-declare-string-variables has an issue.

The asserts propably shouldn't be shown.

It's the same for the other Basic JavaScript Waypoint's.

Chrome: Version 44.0.2403.157

Windows 8.1

Issue 2:
Hey guys , I do not mean to bore you or come here with lack of information but we are getting complaints about the streak on FCC not being correct. Could you guys check it out ? Also, here is the source of the complaints http://forum.freecodecamp.com/t/camper-streak-dates-off/6781
Issue 1:
I tried running the test suite for 1.5.1 on numpy 1.11 beta 2 and I am seeing a single failure that we should investigate.

Python 3.5 OSX

======================================================================
FAIL: matplotlib.tests.test_ticker.test_AutoMinorLocator
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/jhn/Envs/numpy111betamatplotlib151/lib/python3.5/site-packages/nose/case.py", line 198, in runTest
self.test(*self.arg)
File "/Users/jhn/Envs/numpy111betamatplotlib151/lib/python3.5/site-packages/matplotlib/testing/decorators.py", line 118, in wrapped_function
func(*args, **kwargs)
File "/Users/jhn/Envs/numpy111betamatplotlib151/lib/python3.5/site-packages/matplotlib/tests/test_ticker.py", line 50, in test_AutoMinorLocator
assert_almost_equal(ax.xaxis.get_ticklocs(minor=True), test_value)
File "/Users/jhn/Envs/numpy111betamatplotlib151/lib/python3.5/site-packages/numpy/testing/utils.py", line 517, in assert_almost_equal
return assert_array_almost_equal(actual, desired, decimal, err_msg)
File "/Users/jhn/Envs/numpy111betamatplotlib151/lib/python3.5/site-packages/numpy/testing/utils.py", line 912, in assert_array_almost_equal
precision=decimal)
File "/Users/jhn/Envs/numpy111betamatplotlib151/lib/python3.5/site-packages/numpy/testing/utils.py", line 688, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Arrays are not almost equal to 7 decimals

(shapes (21,), (22,) mismatch)
x: array([ 0.05, 0.1 , 0.15, 0.25, 0.3 , 0.35, 0.45, 0.5 , 0.55,
0.65, 0.7 , 0.75, 0.85, 0.9 , 0.95, 1.05, 1.1 , 1.15,
1.25, 1.3 , 1.35])
y: array([ 0.05, 0.1 , 0.15, 0.25, 0.3 , 0.35, 0.45, 0.5 , 0.55,
0.65, 0.7 , 0.75, 0.85, 0.9 , 0.95, 1. , 1.05, 1.1 ,
1.15, 1.25, 1.3 , 1.35])

----------------------------------------------------------------------

Issue 2:
draw_artist() raises an AttributeError error complaining a draw() call was not previously performed even though a draw() call was already done.

This happens using the GTK3Agg backend.

A minimum (not working) code example (inspired by scipy-cookbook)

#!/usr/bin/python3
import matplotlib
matplotlib.use('GTK3Agg')
import pylab as p
import numpy as np

ax = p.subplot(111)
canvas = ax.figure.canvas
x = np.linspace(0, 2*np.pi, 500)
line, = p.plot(x, np.sin(x), animated=True)
canvas.draw()
background = canvas.copy_from_bbox(ax.bbox)

# Update
canvas.restore_region(background)
line.set_ydata(np.sin(x+1))
ax.draw_artist(line)
canvas.blit(ax.bbox)

p.show()

(Tested on python 3.5.2 - matplotlib 1.5.3 installed through pip on Ubuntu 16.04)
Issue 1:
On the 1.5.2 branch (or 1.5.1), the file src/atomics.h is missing a template keyword for jl_atomic_store_release , around line 269, making the file uncompilable (in VS2017). See

julia/src/atomics.h

Line 269
in
539f3ce

static inline void jl_atomic_store_relaxed(volatile T *obj, T2 val)

.

This is compiling the code at https://docs.julialang.org/en/v1/manual/embedding/#High-Level-Embedding-on-Windows-with-Visual-Studio .

This change is made in commit 2b510b4 on master, which appears to be working on a different feature, but that commit is not in 1.5.2 .

Issue 2:
First, It seems like the template parameters for this function aren't defined.

Trying to embed julia in c++, using the bare minimum example given in the documentation gives the error: 1>C:\Julia_1.5_x32\include\julia\atomics.h(269,55): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int. That should be pretty trivial to "fix".

The issue is this 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(173,1): fatal error C1189: #error: "No Target Architecture", in the same bare minimum example code. Perhaps the cpu architecture( _X86_ in my case) isn't defined correctly somewhere in the julia headers before including winnt.h or my configuration is bugged somehow.

In my case, defining _X86_ before including julia.h and modifying atomics.h results in running code.

IDE is visual studio 2019 preview, platform toolset is v142 and win 10 sdk version is 10.0.18362.0. Compiler is MSVC.

Related Issue: #34201

Version Info:

Julia Version 1.5.0-rc1.0
Commit 24f033c951 (2020-06-26 20:13 UTC)
Platform Info:
OS: Windows (i686-w64-mingw32)
CPU: Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz
WORD_SIZE: 32
LIBM: libopenlibm
LLVM: libLLVM-9.0.1 (ORCJIT, skylake)
Environment:
JULIA_DIR = C:\Julia_1.5_x32
Issue 1:
I just upgraded our project from symfony2.4 to symfony2.6, everything went fine except web profiler is not working correctly, when I page source code, I found web profiler's javascript code are being included twice.

And after web page is loaded, profiler alert "404 message".

I temporary fixed this problem by adding this code: Symfony/Component/HttpKernel/EventListener/ProfilerListener.php

/**
* Handles the onKernelResponse event.
*
* @param FilterResponseEvent $event A FilterResponseEvent instance
*/
public function onKernelResponse(FilterResponseEvent $event)
{
// Start temporary fix
static $ran = false;

if (!$ran) {
$ran = true;
return;
}
// End temporary fix

$master = $event->isMasterRequest();
if ($this->onlyMasterRequests && !$master) {
return;
}

Can someone upgraded to 2.6, help me a way to solve this problem?

Picture of code duplicated http://i.stack.imgur.com/sW2DY.jpg

Issue 2:
Whenever starting with an incognito or clean cache browser in any app in any browser

I am getting Warning: session_start(): The session id is too long or contains illegal characters, valid characters are a-z, A-Z, 0-9

Whenever reloading it works and also whenever I try to debug with phpstorm it gives no problems, however this is a problem because whenever i use sahi and try to test it blocks because of this issue

http://www.craftitonline.com/2011/07/symfony2-keep-your-project-guided-with-behat-and-mink/ see below at the bottom for comments

several users are experiencing this besides me so it is not confined to me alone

Thanks
Issue 1:
Some times ripple effect not working for focus

Steps to Reproduce (for bugs)

Open https://material-ui.com/demos/buttons/

Play with keyboard focus

or

Watch video https://youtu.be/rV0zxotpekk

Your Environment

Tech
Version

Material-UI
1.0.0-beta.18

React
15.5.4

browser
Chromium 62 and Chrome 62

Issue 2:
On the Getting Started - Installation page, Cloudflare appears to be reading npm install --save material-ui@next as an email address and replacing it with npm install --save material-[email protected]

The [email protected] links to https://material-ui.com/cdn-cgi/l/email-protection.

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

Expected Behavior

The first line should appear as npm install --save material-ui@next

Current Behavior

The first line appears as npm install --save material-[email protected]

Steps to Reproduce (for bugs)

Go to https://material-ui.com/getting-started/installation/#npm and view the code snippet.

Context

I've been using this great library for several months now, and needed a quick reference on the syntax to grab the beta version for a new project.
Issue 1:
Form fields rendered individually with form_widget(...) or form_row(...) are re-rendered via form_rest(...)

This issue is related to beta2 and was not present in beta1.

Example:

{{ form_row(borrower_form.contact_info.first_name) }}
{{ form_row(borrower_form.contact_info.last_name) }}
Phone Number

{{ form_widget(phone_number_form.phone_type) }}
{{ form_widget(phone_number_form.phone_number, { 'attr': { 'style': 'width:120px;' } }) }}
ext. {{ form_widget(phone_number_form.extension, { 'attr': { 'style': 'width:40px;' } }) }}

When I call form_rest(...) at the end of the form, all of the above fields are rendered again.

Issue 2:
Hello,

Would be great to have a "TelType" for instance, with an template.

Options could be to choose between "national" format or "international" format etc..

And Constraint to validate this of course...

What do you think about it ?
Issue 1:
Proposal

I propose these implementations:

Deno.cacheDir()

Implementation of rust's cache_dir

Deno.cache(path: string, options: CacheOptions)

access to deno cache as a method

resolveCacheModulePath(path: string)

Native way to resolve an url to the local cache file. Either returns the filepath if the file is cached or null if not.

Example:

resolveCachedModulePath("https://deno.land/std/fmt/colors.ts") // output on macOS: /User/Name/Library/Caches/deno/deps/https/deno.land/0e481eaf33c7b5f679cc7af0c476a798458854f912fe489bb77131d47e0929db

Maybe Deno needs a dedicated std/cache module for functions like resolveCachedModulePath and other cache related stuff?

Use case

The Deno cache system is great. For dev tools written for Deno it is important to have access to the local files for a certain path when bundling or compiling, else it needs to be either re-downloaded or cached with a custom cache system.

What are your thoughts on this?

References:

#4069

https://denolib.gitbook.io/guide/advanced/deno_dir-code-fetch-and-cache

https://doc.deno.land/https/github.com/denoland/deno/releases/latest/download/lib.deno.d.ts

https://deno.land/manual/runtime/compiler_apis

https://deno.land/x/cache

Issue 2:
We recently changed deno fetch to deno cache. When we introduced the runtime compiler APIs, one of the challenges is that it didn't align well with the subcommands. Given that we have a better name now for the subcommands, it feels right to re-align the runtime compiler APIs, also based on some experience with them as well. I am recommending the following:

namespace Deno {
export interface CacheOptions { /* would be close to existing compiler options */ }
export interface BundleOptions ( /* would vary a little bit from cache options */ }
export interface TranspileOptions extends CacheOptions { /* a few options differ */ }

export function cache(root: string, options?: RuntimeCompilerOptions): Promise<Record<string, string>>;
export function bundle(root: string, options?: RuntimeCompilerOptions): Promise<string>;
export function transpile(sources: Record<string, string>, options?: TranspileOptions): Promise<Record<string, string>>;
}

Deno.cache would work like deno cache and the RuntimeCompilerOptions would also support the flags that deno cache supports plus the support of an expanded tsconfig.json set of compiler options aligned to what exists today in CompilerOptions.

Deno.bundle would produce a single file emit, like deno bundle does and people would use Deno.transpile() when they have sources that they want the compiler to transpile for them.

We could introduce the equivalent --no-check in these APIs as well, as well as adding it to the appropriate subcommands, but that might be an enhancement on top of this refactor.

Refs: #4600
Issue 1:
Challenge http://www.freecodecamp.com/challenges/waypoint-add-your-javascript-slot-machine-slots has an issue.

I am allowed to continue to the next challenge with the single condition still in a state of failure. I can skip along without adding a return statement or modifying the existing return statement.

Additionally, the state of the condition appears to randomly alternate between pass/fail without actually having changed the code in any way (see attached screenshots). I couldn't reproduce the behaviour with a specific set of steps, but moving the caret around would eventually cause it (doesn't take long) as would highlighting different text selections (seems to be only when a line feed is included in the selection).

Finally, it seems like we are short-circuiting our function here by adding the return statement in the specified area in the code. All of the code below // Only change code above this line. never executes and includes a redundant return statement that would have returned a completely different data type. This may be irrelevant to the intent of the exercise, but it feels like it could be confusing.

After moving to the next challenge, I see that I had missed the point entirely and I should have copied the conditional verbatim from the description into our code. I guess I was freestyling. I was confused by the statement If all three numbers match, we should change the value of win to the number that we have three of or leave it as null. in the description and thought I was to add a variable called win and set it to either null or the winning number. Sorry for wasting anyones time reading through that. The first two paragraphs may still be relevant, though.

I'm fairly new at this so please tell me if protocol decrees that I should have broken this report up into separate reports.

Issue 2:
Challenge http://freecodecamp.com/challenges/waypoint-add-your-javascript-slot-machine-slots has an issue. It marks the challenge as completed as soon as I create an "If statement". It does not check whether the if statement is correct.
Issue 1:
My issue concerns scipy.sparse.csgraph.shortest_path, more specifically the Floyd-Warshall solver, which does not deal with explicit zeros as the other algorithms (they are removed here).

The following (slightly convoluted) example highlights the different handling of explicit zeros.

Reproducing code example:

import numpy as np
import scipy.sparse.csgraph
import sklearn.neighbors

examples = [
# no infinity
# (the undirected graph has one connected component)
np.array([0, 1, 2, 3, 3])[:, None],
# infinity only for 'FW' solver
# (the undirected graph has one connected component)
np.array([0, 1, 2, 3, 3, 3])[:, None],
# infinity for all solvers
# (the undirected graph has two connected components)
np.array([0, 1, 2, 4, 4, 4])[:, None],
]

for X in examples:
graph = sklearn.neighbors.kneighbors_graph(X, n_neighbors=2,
mode='distance')
print(scipy.sparse.csgraph.connected_components(graph)[0], end='\t')

for method in ['FW', 'D', 'BF', 'J']:
paths = scipy.sparse.csgraph.shortest_path(graph, method=method,
directed=False)
print(np.any(np.isinf(paths)), end='\t')

print('')

Print message:

1	False	False	False	False
1	True	False	False	False
2	True	True	True	True

Explanations:

Explicit zeros arise when you have duplicate points in your graph, thus having a connection with a distance of zero, which is different from the implicit zero (meaning no graph connection). When building a k-nearest neighbors graph, if some points are duplicated more than the number of neighbors k, then these points have only zeros in the set of explicit values, and using explicit zeros as if they were implicit zeros effectively remove the points from the connected graph. In particular, these points may still be connected to the rest if they are chosen as neighbors of another point (with directed=False).

Scipy/Numpy/Python version information:

1.2.1 1.16.4 sys.version_info(major=3, minor=7, micro=3, releaselevel='final', serial=0)

Issue 2:
In [5]: from scipy.stats import multivariate_normal

In [7]: multivariate_normal().rvs(size=(1,)).shape
Out[7]: ()

All size parameters should support None, () and (1,) and produce shapes (), (), and (1,) respectively.

As mentioned below, this problem also occurs with the wishart and invwishart distribution .
Issue 1:
It would be great to enable the Fancy Zones to span across desktops. I have a 49 In Dell ultrawide monitor that that uses two video inputs to drive a single display. The single display acts like two distinct monitors with the advantage of not having a bezel in between since it is really one monitor. Enabling monitor spanning of fancy zones would be super useful for people using wide monitors that are driven by two video inputs.

This would enable you to make better use of your monitor enabling a zone right in the middle of your screen. Currently, since a zone can't span two monitors, I am unable to have a zone right in the center of my monitor.

I hope you choose to add this feature. I love PowerToys. I currently have to use a janky Dell Monitor Utility to achieve this right now. PowerToys works a lot better and I'd prefer to use it.

Issue 2:
It would be great if between the borders of two zones there could be a dropzone square that would span the dropped window across both zones.

And in the crosspoint of 4 zones for example could be a square that would span the dropped window across all 4 zones for example.

I suppose this would only work with column, row or grid layouts and not with focus layouts.

Another way to do this would be to resize a border of a window holding the Shift key and have the border snap to edges of the set up zones.

That way you can setup a grid with 6, 9 or even 12 zones and layout your windows masonry style.

I hope I'm clear about what I mean. If needed I can draw some mockups of the idea.