WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
I don’t know exactly what it’s connected with. But when I type in the "Search" panel something related to Flask to everything that the documentation finds, it attaches broken links.

Tested in the latest version and 2.1

Issue 2:
Search on the newly rendered docs is causing a 404/infinite redirect error. This happens on both RTD and locally, it doesn't appear to be an issue with RTD. It seems that {{ url_root }} is empty for some reason, at this line:

pallets-sphinx-themes/src/pallets_sphinx_themes/themes/pocoo/layout.html

Line 12
in
50414a1

<script>DOCUMENTATION_OPTIONS.URL_ROOT = '{{ url_root }}';</script>
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

The drawer component should apply the right border depending on which side is anchored when it is docked i.e. permanent or persistent.

Current Behavior

The border is always applied to the right side of the drawer even when it is not anchored left.

See picture, and the CSS rules applied:

Steps to Reproduce (for bugs)

Use the following drawer:

<Drawer type="permanent" anchored="right"><div>Hello, World!</div></Drawer

Check CSS rules applied

Your Environment

Tech
Version

Material-UI
1.0.0-beta11

React
15.6.2

browser
Chrome

etc
Mac OS

Issue 2:
Server side rendering won't work in production because of these lines ( src/utils/styles.js )

if (process.env.NODE_ENV !== 'production') {
warning(!style.didFlip, `You're calling ensureDirection() on the same style
object twice.`);

style = ImmutabilityHelper.merge({
didFlip: 'true',
}, style);
}

Is there a reason why didFlip should be different depending on NODE_ENV ?
Issue 1:
Hey, was wondering how to get gif thumbnails working? Basically I have a recyclerview of card items containing a gif, and would like a preview image/thumbnail image of the gif to load with the view.

Issue 2:
Hi

i am getting the error below using this library.

java.lang.NoSuchMethodError: No static method getFont

it crashes as soon as i open up a UI.

If i remove // implementation 'com.github.bumptech.glide:glide:4.5.0'

// annotationProcessor 'com.github.bumptech.glide:compiler:4.5.0' it works fine

Its something to do with the library using vversion 27 of the support library while i am using version 26
Issue 1:
https://github.com/FormidableLabs/radium adds "interactive" styles (hover etc) to inline styles, and also allows hierachical styles and automatic vendor prefixing. It's fast and pretty light-weight (32KB minimized).

Issue 2:
Failed to compile since theme seems to be missing in the styles folder.

Steps to reproduce

Install latest version of Material-ui v.1 and try to compile

Versions

Material-UI: 1.0.0-beta.7

React: 15.6.1

Browser: chrome 60.0.3112.90 and Firefox 55.0.2
Issue 1:
Input Code

function assert(holds, message) {
if (!holds) {
throw new Error(message || `Assertion does not hold`);
}
}

class A {}
class FromA extends A {
constructor(...args) {
super(...args)
assert(this.constructor.name === `FromA`, `the constructor of FromA should be "FromA" and is ${this.constructor.name}`);
}
}

class FromError extends Error {
constructor(...args) {
super(...args)
assert(this.constructor.name === `FromError`, `the constructor of FromError should be "FromError" and is ${this.constructor.name}`);
}
}

const a = new FromA();
const e = new FromError();

REPL Link

Babel Configuration (.babelrc, package.json, cli command)

{
"presets": [
"es2015"
]
}

Expected Behavior

When extending from Error, the new class's this.constructor.name should be the new class's name.

Current Behavior

When extending from Error, the new class's this.constructor.name is Error

Context

I'm currently using https://github.com/ianwremmel/extend-error (which has its own set of issues) to create subclassed Errors. Stringifying with the error name is very helpful for a debug process (in particular, subclassing for each http response code). In order to make that work, something like

class Exception extends Error {
constructor(...args) {
super(...args)
this.name = `Exception`
}
}
console.log(new Exception(`blarg`));

will produce [Exception: blarg]. Ideally, I would be able to use this.name = this.constructor.name instead of this.name = \Exception``.

Your Environment

I've mostly been debugging this in the repl, but my local environment is:

software
version

Babel
6.22.1

node
7.2.0

npm
3.10.9

Operating System
macOs Sierra

Issue 2:
index.js

class Exception extends Object { //Array, Number, String, Function, Error, RegExp, Boolean all of base type has this program
constructor() {
super('Exception');
}
}
module.exports = Exception;

gulpfile.js

const gulp = require('gulp');
const browserify = require('browserify');
const babelify = require('babelify');
const source = require('vinyl-source-stream');
const buffer = require('vinyl-buffer');

gulp.task('default', () => {
browserify({
entries: "./index.js",
standalone: 'Exception',
debug: true
})
.transform(babelify.configure({
presets: ["es2015", "stage-3"],
sourceMaps: true
}))
.bundle()
.pipe(source('index.js'))
.pipe(buffer())
.pipe(gulp.dest('./dest'));
});

test.js

const Exception = require('./dest/index');

console.log(new Exception() instanceof Exception);

the result is false

new Exception() is not instanceof Exception, but only instanceof Error
Issue 1:
Migrated issue, originally created by Anonymous

When tuple is passed to query() method I get the error:

File "sqlalchemy/orm/query.py", line 3062, in __init__
"expected - got '%r'" % column
TypeError: not all arguments converted during string formatting

The fix is simple, just use single item tuple as right operand:

"expected - got '%r'" % (column,)

Issue 2:
Migrated issue, originally created by Michael Bayer (@zzzeek)

no clue what's going on here. I've moved in a "good" searchtools.js onto the site for now. Local sphinx builds seem to be doing it also all the sudden.
Issue 1:
Q
A

Bug report?
yes

Feature request?
no

BC Break report?
no

RFC?
no

Symfony version
2.8.12

I created a FormType that extends the AbstractType. I have only a buildForm method in it which adds some fields. There are some fields which are other custom form types of mine, but those also only have the buildForm method, and if they have the configureOptions method, it's only to set a data_class.

However, when opening the page which uses this form, I'm getting the warnings

The form option "read_only" is deprecated since version 2.8 and will be removed in 3.0. Use "attr['readonly']" instead.

The "cascade_validation" option is deprecated since version 2.8 and will be removed in 3.0. Use "constraints" with a Valid constraint instead.

The form option "csrf_provider" is deprecated since version 2.8 and will be removed in 3.0. Use "csrf_token_manager" instead.

But I'm not using any of these options. I'm even using the correct one for cascade_validations. These are the options of one form field I'm adding

[
'data' => new Address(),
'validation_groups' => ['productPreliminaryDeliveryAddress'],
'mapped' => false,
'constraints' => [new Valid()],
'label' => false,
]

As you can see I'm using the correct option for constraint. Where does that error come from and how can I supress it?

Issue 2:
When i use the forward request in my "action" the route name "app.request.attributes.get('_route')" is empty is that normal?
Issue 1:
Current situation

How it should be

I hope you can see what the issue is.

Normally I swith a lot between programs with groupy and without so it is annoying that I still have to resize the top of the window everytime I move it.

Issue 2:
Hi Guys

when PT starts, for a fraction of a second "Start typing..." text is showing up then it dissapears. It shows up without the frame, just text. I guess it is a bug...

Thank you.
Issue 1:
I think its pretty standard for material design. Can we add the ability to put icons on the left or right hand side of a text field?

Issue 2:
As referenced in #2416, we currently don't have a way to add a left icon to the Text Field component. I'd like to work on a PR for this.

TextField would be called like<TextField icon={icon} /> and would render the icon on the left side in the textField before the input.
Issue 1:
Index.html

<webview id="MainPage" src="https://www.google.com/"></webview>
<script src="main.js"></script>

Main.js

$Document.ready(function(){
$Document.on("keydown", function(e){
if (e.ctrlKey && e.altKey && e.which === 82) {
window.location.reload();
}
});
});

The web view renders perfectly on first start.

But when the window is reloaded via CTRL + ALT + R

The webview remains blank.

Issue 2:
I have a repeatable problem when an existing webview tag is hidden and then shown, but only in a specific situation (see instructions to repeat the problem below). The webview does a reload even though nothing in my code told it to. And then it shows an empty white area. If I resize the containing DIV it is repaired and the page appears again.

I'm not sure exactly what triggers this. It happens when Atom splits a pane and then I go back to a tab with a webview. I've walked through the split code and it just creates a new pane and then attaches a new text editor to it.

To recreate the problem ...

Install the package web-browser, branch blank-webview.

open any text file in one pane

add a webpage to that pane (ctrl-alt-b)

select the text file and split right

select the original text file again

select web page tab

Then the webpage shows a reload indicator and comes up all white. Resizing the page fixes it..

Edit: branch is at https://github.com/mark-hahn/web-browser/tree/blank-webview.
Issue 1:
Hi everyone,

I thought this was addressed in #2797, but it didn't. It might be a duplicate of #174.

The problem

In short, copying + pasting is very weird with newlines. In some cases, it seems to copy only some of them:

But using clear in the WSL seems to reliably and effectively completely break copying.

It doesn't copy any whitespaces, instead, it copies the buffer as-is.

The same effect seems to occur with PowerShell. Here without a clear beforehand:

And here with a clear beforehand:

System info

The selected console is a standard WSL Ubuntu, as detected by the terminal:

{
"guid": "{2c4de342-38b7-51cf-b940-2309a097f518}",
"hidden": false,
"name": "Ubuntu",
"source": "Windows.Terminal.Wsl"
}

If it's a powershell, it's similar:

{
// Make changes here to the powershell.exe profile
"guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"name": "Windows PowerShell",
"commandline": "powershell.exe",
"hidden": false
},

Nothing in the config has been changed, besides adding two (unrelated) profiles. In the screenshot, the Windows Terminal was freshly opened.

Version information of Windows Terminal:

Windows Terminal (Preview)
Version: 0.5.2681.0

System + Build Info:

If I can help with providing anything else, please do ask.

Issue 2:
Environment

Windows build number: 10.0.18363.476
Windows Terminal version (if applicable): 0.6.2951.0

Any other software?

Steps to reproduce

Open cmd

Type any chars until line breaks

Type Backspace until the cursor gets back to the previous row

Expected behavior

Every Backspace should delete one char

Actual behavior

When cursor changes line there is one additional space to delete and the typing position is off by one afterward.

PS seems to work correctly

Deleting chars with Del seems to work correctly
Issue 1:
This would enable people to specify how long the local cache version of a repo is valid for (default would be 0 meaning things are always pulled from the remote).

This would mean that if the version: was set to a branch or tag name (or maybe even a hash) we would only look at checking out the most recent version in the local repo, unless the cache time was invalid.

This would drastically speed up / give the options to speed up ansible playbooks that have a lot of git module / repo usage.

Issue 2:
When the git module is given a hash as the version of the repo to checkout the git module should first do a quick check to see if we are already on the given hash!

Currently even if the repo is already on the version / hash we want it seems to pull from the remote and update.

Instead we should make sure the repo exists (pull if it doesn't) and then check the current hash of HEAD and if it matches the hash version we want, do nothing, if it doesn't, pull said hash version.

This would drastically increase the speed of playbooks that depend on, say 100 git repos and specify a given version hash
Issue 1:
There is a problem with the doc generation when generating it for external crates and coupled with versioning. As an example, the term-related items will 404 on this search http://doc.rust-lang.org/std/index.html?search=term because it lacks the /nightly/ part.

Issue 2:
Entering the above search term or just going here and clicking the first (and only) search result leads you to a Github Pages 404 page.

Note that this link works just fine.
Issue 1:
Greetings to all! I have a suggestion to create the possibility of rendering js scripts in requests. Yes, I know that there is a requests-html project, but it is abandoned, and somehow you need to cope with js

Issue 2:
When implementing time based throttle mechanism, the start of request time is quite useful, please consider expose it as instance property, so we don't need to wrap requests in a multiple time.utctime() calls. It's a waste of syscall and duplicated code.

https://github.com/kennethreitz/requests/blob/master/requests/sessions.py#L570
Issue 1:
Remove all my api’s and reset all my accounts and balance to zero. Since, I was bugged and hacked.

Thank you I really appreciate all the hard work and effort.

Originally posted by @F0o0De in Coinigy/api#45

Issue 2:
Remove all my api’s and reset all my accounts and balance to zero. Since, I was bugged and hacked.

Thank you I really appreciate all the hard work and effort.
Issue 1:
Do you want to request a feature or report a bug?

What is the current behavior?

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

What is the expected behavior?

If this is a feature request, what is motivation or use case for changing the behavior?

Please mention other relevant information such as the browser version, Node.js version, webpack version, and Operating System.

Hi guys,

I'm using Webpack 4 and wanted to split two entry points and avoid duplication. So, I have react and react-dom in both chunks.

entry: {
index: ['babel-polyfill', './app/app.jsx'],
vendor: [
'react',
'react-dom'
]
}

splitChunks: {
cacheGroups: {
index: {
minChunks: 2,
priority: -20,
reuseExistingChunk: true
},
vendor: {
test: /[\\/]node_modules[\\/]/,
priority: -10
}
}
}

Issue 2:
This is basically the same problem as this requireJS issue: "require() loads same module multiple times if case is different". I might even have the same origin.

Here's my two cents: I have to js files, both requiring jQuery but using different casing. This results in an increased webpack size. Chrome DevTools show jQuery.js twice in the Source tab:

When I fix the casing, the size is about 90KB smaller and the second entry in DevTools disappear.

Is this a "works as designed" thing due to javascript being case sensitive or is it a bug?
Issue 1:
I am raising this issue following this stackoverflow discussion. I found that there is not that much support for float64 ops, that is needed for some numerical applications. A number of other issues #1061 #761 #547 and PR #1089 have been raised around this.

On the basis of how my graph is initialised, things like MatMul (also raised in this other stackoverflow question), Mean, L2Loss, Mean_grad/Prod, Mul_grad/Sum, AddN, SoftmaxCrossEntropyWithLogits are not implemented for float64.

Would it be a good idea to extend PR #1089 to more ops?

Issue 2:
I recently ran into a problem, while using bazel to build a project. This project is compiled as a dynamic linking library, using PyImport_Import to import python module. when there is "import tensorflow as tf" in the python file , application who calls the dynamic linking library crashed everytime, but when it‘s not there ,everything works just fine. where is the problem?

my tensorflow version is 1.0.0,python 2.7.0,bazel 0.4.3

here is the console information when the application crashes:

F tensorflow/core/framework/function.cc:1015] Check failed: GetOpGradFactory()->insert({op, func}).second Duplicated gradient for Softmax

here is the test python file looks like:

`from future import print_function

import tensorflow as tf

import os

import time

from itertools import izip

import numpy as np

import wrapt

import cv2

def get_int( ):

a = 10

b = 20

return a + b

def get_str( s1, s2 ):

#return s1 + s2

#return 'Hello , TY'

return ('Hello, World', 10, 20)`

here is the source code of .so file:

Py_Initialize(); if ( !Py_IsInitialized() ) { return -1; } PyEval_InitThreads(); PyThreadState *mainThreadState = NULL; // save a pointer to the main PyThreadState object mainThreadState = PyThreadState_Get(); // release the lock PyEval_ReleaseLock(); char* mockargv[1]={(char*)""}; PySys_SetArgv(1,mockargv); PyRun_SimpleString("import sys"); PyRun_SimpleString("sys.path.append('./')"); pName_ = PyString_FromString("test_py"); displayPyObject(pName_); if(pName_ == NULL){ return -1; } pModule_ = PyImport_Import(pName_); displayPyObject(pModule_);

and here is the dynamic linking library part of my BUILD file

cc_binary( name = "test.so", linkshared = 1, deps = [ ":test_lib", ], ) cc_library( name = "test_lib", visibility = ["//visibility:__subpackages__"], srcs = glob(["test.cpp" ], ), includes=["test.h"], linkopts = [ "-lm -lpthread -L/usr/lib/python2.7 -lpython2.7 -lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_ml -lfreeimage" ], deps = [ "//tensorflow/cc:cc_ops", "//tensorflow/core:framework", "//tensorflow/core:framework_internal", "//tensorflow/core:tensorflow", ], )
Issue 1:
Right now the base style sheet (everything in /static) is loaded before everything else (https://github.com/atom/atom/blob/master/src/window.coffee#L38). It is done before the config is loaded and before the theme directories are added to the LESS import path.

Loading like this keeps the base css separated from the themes, but it doesn't allow for usage of variables from ui-variables in the base css. If variables were used, they would come from /static/ui-variables.less rather than the theme. So if the base ui-variables specified a @component-padding to be 10px, and my theme wants it to be 20px, I would need to override everywhere the padding is used in my theme with css rules. If the base css could import from the theme dir, my theme could just set the @component-padding variable to 20px.

I propose we place the theme directories on the LESS import path when the base css is loaded. Here are the 2 secnarios

Loading base css with access to themes

Here’s what would need to happen

config.load() needs to happen in window.setUpEnvironment (Will this slow things down?)

ThemeManager needs to get the generate the theme directories based on the core.themes config option, rather than the loaded themes.

Need to rebuild all the css when themes are changed

Pros

Many things can be pulled into the base css. Most of the button styles, list styles (tree views, etc), text styles, some mixins. The themes do a lot less. There will be less repetition between themes.

We can override bootstrap variables in the themes, requiring less css overall.

Cons

When a theme is changed, we would need to recompile all the css, not just the theme and package css. The bootstrap and the base css as well. Probably not fast.

Others I’m missing?

Leaving it the way it is

Pros

Changing themes is only medium slow.

Cons

Much more repetition between the themes. The new light and dark themes will have a lot of code duplicated between the two.

A little awkward because there is this /static/ui-variables file and nothing in static uses any of the variables from it.

How do you guys feel about this?

Issue 2:
If this is a duplicate please disregard:

If I open several large files atom becomes unresponsive.

After i am prompted with the force close dialog then i can close it.

When i open it again in the same path the previously open files are opened again, which causes atom to become unresponsive again.

The files are some browserified js bundles.

I think they are prerendered even if the tab does not have focus which makes the editor freeze - that would be my best guess.

The workaround i found is to delete the files from disk and opening the files again(atom .) .

I mainly use atom from the command line call using atom . to open the current folder and the files in it.
Issue 1:
jn_zeros() is not able to compute the first 100 zeros of the following Bessel orders below 1000(I only tested it till 1000):

231,244,281,288,347,348,357,405,406,419,437,

505,506,507,570,582,591,643,644,655,658,679,

706,713,722,752,756,757,764,775,793,796,811,

820,840,855,875,886,916,942,948,966

Reproducing code example:

from scipy import special
special.jn_zeros(231,5)

Error message:

No error message! The command just hangs while using 100% CPU on one core.

Scipy/Numpy/Python version information:

1.4.1 1.18.2 sys.version_info(major=3, minor=8, micro=2, releaselevel='final', serial=0)

Issue 2:
As reported at http://stackoverflow.com/questions/29415795/scipy-hangs-on-finding-zeros-of-bessel-functions, the call to special.jn_zeros(281, 6) hangs. I can reproduce this with scipy versions 0.15.1 and 0.16.0.dev0+4585b0f. jn_zeros(280, 6) returns 6 values, but jn_zeros(281, 6) never returns, and I have to kill the python process.

I'm using python 2.7.9 and numpy 1.9.2 on a Mac.
Issue 1:
The CI errors seem to be typing issues exposed by this PR:

ByteLengthQueuingStrategy,
~~~~~~~~~~~~~~~~~~~~~~~~~
at file:///Users/runner/work/deno_std/deno_std/node/stream/web.ts:2:3

TS2339 [ERROR]: Property 'CountQueuingStrategy' does not exist on type 'typeof globalThis'.
CountQueuingStrategy,
~~~~~~~~~~~~~~~~~~~~
at file:///Users/runner/work/deno_std/deno_std/node/stream/web.ts:3:3

TS2339 [ERROR]: Property 'TextDecoderStream' does not exist on type 'typeof globalThis'.
TextDecoderStream,
~~~~~~~~~~~~~~~~~
at file:///Users/runner/work/deno_std/deno_std/node/stream/web.ts:8:3

TS2339 [ERROR]: Property 'TextEncoderStream' does not exist on type 'typeof globalThis'.
TextEncoderStream,
~~~~~~~~~~~~~~~~~
at file:///Users/runner/work/deno_std/deno_std/node/stream/web.ts:9:3

TS2339 [ERROR]: Property 'TransformStreamDefaultController' does not exist on type 'typeof globalThis'.
TransformStreamDefaultController,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
at file:///Users/runner/work/deno_std/deno_std/node/stream/web.ts:11:3

TS2339 [ERROR]: Property 'WritableStreamDefaultController' does not exist on type 'typeof globalThis'.
WritableStreamDefaultController,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
at file:///Users/runner/work/deno_std/deno_std/node/stream/web.ts:13:3

these are definitely defined on the global so just seem to be omitted from the types for some reason.

Originally posted by @guybedford in denoland/deno_std#1430 (comment)

Issue 2:
This issue isn't fixed for other symbols declared with declare class, which I think we decided to favour in the past. Seems like only declare var is accessible on globalThis, I think we need an upstream solution: microsoft/TypeScript#39504. cc @caspervonb @kitsonk

Originally posted by @nayeemrmn in #5666 (comment)