WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Hi,

I looked into the following sentence in will-navigate event (https://github.com/atom/electron/blob/master/docs/api/web-view-tag.md) documentation.

Calling event.preventDefault() does NOT have any effect.

So how can we prevent webview from navigating to other page? I intent to launch default browser when user clicks on a URL link on webview.

Here is my code on the renderer process.

webview.addEventListener('will-navigate', function(e) {
e.preventDefault();
require('electron').shell.openExternal(e.url);
});

With this code, when I click the URL link on webview, webview will navigate to the new page and default browser also opened showing the new page. I want webview to stop navigating to the new page.

Issue 2:
It would be very useful to get events related to navigation:

will-navigate: when the webview is about to navigate (url have been changed but no requests have been emited yet). It could eventually be cancelled with event.preventDefault())

page-url-set: like page-title-set but for url. It is different than before-navigate because it should also handle anchor changes and HTML5 url set without navigating (with history.pushState and history.replaceState)

did-navigate: after the navigation has occured (i.e. when a new entry have been pushed to history and canGoBack/canGoForward/canGo... may have changed)
Issue 1:
I use compile 'com.github.bumptech.glide:glide:3.7.0' in build.gradle.

I'm scrolling many time,the image is deformed.

What can I do?

@Override
public void onBindViewHolder(RecyclerViewHolders holder, int position) {

holder.Name.setText(itemList.get(position).getName());
holder.PostTime.setText(itemList.get(position).getPostTime());
holder.PostContent.setText(itemList.get(position).getPostContent());
Uri uri = Uri.parse(itemList.get(position).getPhoto());
Glide.with(context).load(uri).crossFade().error(R.mipmap.imge_error).into(holder.PostImg);
holder.PostImg.setTag(R.id.post_img, position);
holder.PostImg.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
int position = (int) v.getTag(R.id.post_img);
Toast.makeText(context,itemList.get(position).getName(),Toast.LENGTH_SHORT).show();
}
});
}

Issue 2:
Im trying to create a run of the mill regular staggeredgrid of images using a recyclerview. Im using Glide to load the images from urls. For some reason, im getting some strange behavior when scrolling, views move on their own, weird layouts and spaces between views etc. Its hard to explain so heres a screenrecording: http://gfycat.com/BaggyOffensiveAnglerfish

Code im using is pretty basic:

The grid item:

<ImageView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/gridImageView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxHeight="150dp"
/>

Glide code:

Glide.with(mContext).load(entry.getImageUrl()).into(holder.gridImageView);

Layout manager is just a basic StaggeredGridLayoutManager:

mLayoutManager = new StaggeredGridLayoutManager(2, StaggeredGridLayoutManager.VERTICAL);

Im sure that somebody has came across a similar issue to this given how popular Glide is. Whats going on here? Any ideas?

Im trying to make a regular staggeredgrid, eg: http://prntscr.com/9mo4bm where items all have the same width, but differing heights depending on original imagesize/aspect ratio.
Issue 1:
When I use input append and popover at the same time then popover not working, but when I remove the appended input (by removing the input-append class) then it works. Here is my code:

<button class="span2" id="filter" type="text" name="filter" placeholder="Type your filter">itest</button>
<button class="btn" id="filterSubmits">Go</button>

<script>
jQuery(function() {

$('#filter').attr('data-title', 'Search tips').
attr('data-content', 'Search format: -|+').
attr('data-placement', 'bottom').
attr('data-trigger', 'focus');

$('#filter').popover('show');
})
</script>

Issue 2:
On the Components page of the Bootstrap docs, the sidebar becomes too tall for the viewport when scrollspy causes the sidebar subheadings to show.

The sidebar cannot be scrolled or manipulated to show content below the viewport.

See here: http://getbootstrap.com/components/#glyphicons
Issue 1:
Bug Report

Current Behavior

IE11 throws error at _isNativeFunction

=> Function.prototype.toString: 'this' is not a Function object

Input Code

REPL or Repo link if applicable:

class MyElement extends HTMLElement {}

Expected behavior/code

The code should return true and never throw error.

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

preset-env

Environment

Babel version(s): 7

Node/npm version: node 11

OS: all

Monorepo: no

How you are using Babel: rollup-plugin-babel

Possible Solution

This is NOT the solution:

export default function _isNativeFunction(fn) {
+ return typeof fn === 'function' && Function.toString.call(fn).indexOf("[native code]") !== -1;
- return Function.toString.call(fn).indexOf("[native code]") !== -1;
}

Additional context/Screenshots

Issue 2:
Bug Report

Current Behavior

IE11 throws a runtime error when transpiling class extension for native objects like: Foo class extends DocumentFragment {}

The problem is in this helper:

function _isNativeFunction(fn) {
return Function.toString.call(fn).indexOf("[native code]") !== -1;
}

Here is the runtime error:

Function.prototype.toString: 'this' is not a Function object

The issue appears to be because superClass needs to be a function but typeof HTMLElement is object (in IE11) Note that typeof HTMLElement is function in other browsers.

Input Code

REPL or Repo link if applicable:

https://babeljs.io/repl/build/9254/#?babili=false&browsers=&build=&builtIns=false&spec=false&loose=false&code_lz=MYGwhgzhAEAa0FMAeAXBA7AJjAIge2AFcBbDFAMQCcwBzU9FaAbwCgBfFl4PdCPEBADoQeGgApYASgDcQA&debug=true&forceAllTransforms=false&shippedProposals=false&circleciRepo=&evaluate=false&fileSize=false&timeTravel=false&sourceType=module&lineWrap=false&presets=env&prettier=true&targets=&version=7.1.2%2Bpr.8878&envVersion=7.1.0%2Bpr.8878

class X extends DocumentFragment {}

Expected behavior/code

It should work? :)

Possible Solution

I haven't though too much about it, but maybe another check for isNative will be sufficient
Issue 1:
I'm trying to download TW Bootstrap and this link: https://codeload.github.com/twbs/bootstrap/zip/v3.0.0-rc1-dist

Gives me "NOT FOUND".

Issue 2:
I don't know if this is the correct place to post this (in issues as its not really a software issue), but the download on the main GitHub page is broken.

If you head to http://twitter.github.io/bootstrap and click the download button it takes you to the following page to get the zip:

https://codeload.github.com/twbs/bootstrap/zip/v3.0.0-rc1-dist

All the page says us "not found" instead of serving the download. This is also apparently the case for the other downloads.

I use Composer in PHP to download packages and the bootstrap package keeps failing on:

"Could not fetch https://api.github.com/repos/twitter/bootstrap/zipball/d991ef2ab1b4d156c7e5d33d052d66f8eaafc460, enter your GitHub credentials to access private repos"

It doesn't this for all branches, so the private repo message is irrelevant.
Issue 1:
Whenever I try to cmd + / to comment <script> tags, it does the following:

// <script ...

Instead of:

<!-- <script ... -->

Issue 2:
Attempting to comment out a line with a script reference in the head of a document behaves strangely. It first attempts to comment out the line with two forward slashes. Toggle comments again then adds the correct html comments, but the forward slashes are still there. Activating toggle comments a third time removes the html comment but still leaves the forward slashes, you have to remove them manually.
Issue 1:
Hello,

I have found that when I use the frame: false option and then create a custom titlebar with window control buttons I cannot resize the window on the top-side.

This might happen because you have to set the titlebar to be draggable with -webkit-app-region: no-drag;.

I am using electron-version v0.36.2 on Fedora 23 with Gnome-Shell.

Does anyone else experience this problem?

Issue 2:
Firstly, i create a frameless window. Then i put a html element, such as a div which is draggable, into body element and the element occupied the whole body(margin is 0px), the resizable event can not be triggered when the mouse moves over the window frame. I don't know whether it is the case. I feel it is not convenient because i have to leave some margins between body and the div.
Issue 1:
by momoir:

If possible, include a link to a program on play.golang.org.

1. http://play.golang.org/p/Twv8b6KCtw

What happened?
- The external API that my application is using, sometimes returns no values for one of
the float64 fields. When that happens, I cannot unmarshal the rest of the document.

What should have happened instead?
- Unmarshalling empty float fields should be handled gracefully.

Please provide any additional information below.
- Here's the stackoverflow link:
http://stackoverflow.com/questions/24602155/unmarshalling-optional-float64-field-returns-error-on-go/24602350

Issue 2:
Build failure from darwin-386-cheney
(http://build.golang.org/log/89ebaa1281be8297290f8e7eda771da803a93b6e):

# ../test
# go run run.go -- index2.go

tmp__.go:3062: missing error "index|overflow|truncated|must be integer"
Unmatched Errors:
tmp__.go:3062: invalid slice index cni64big (index must be non-negative)

FAIL index2.go 27.726s
exit status 1

It is unrelated to the commit that triggered it and has not recurred since.
Issue 1:
If you open a project in Atom only to look around at different files it keeps each buffer opened (with a tab). If you click on some 10+ files the editor quickly gets cluttered down and you have to eventually close the pane.

I propose an option to not keep buffers open unless you change something in the file, then it can stay open.

Issue 2:
One of the features I miss in Atom is the 'smart tabs' concept. In sublime when you click on an item in the file tree, unless you start modifying it, or double click on the file, it previews the file without opening the tab completely. Therefore if you click on another file without officially opening it it doesn't stay open.

You'll see I browse through a few files, make a change and the tab opens and shows changes have been made in the tab color. Later in the gif I double click on the file and it opens it officially in a tab.

Would love to see how we can add this into Atom
Issue 1:
by randynwalsh:

1. What is a short input program that triggers the error?

import "fmt"

const FE = "xFE"

func main() {
fmt.Println(uint8(string(254)[0]))
}

2. What is the full compiler output?

missed typecheck [2b5b15067950]
. LITERAL-I120 u(1) a(1) x(0+0) uint8
prog.go:8: internal compiler error: missed typecheck

3. What version of the compiler are you using? (Run it with the -V flag.)

http://golang.org/doc/play

Issue 2:
cgo on OpenBSD/amd64 is currently unable to generate correct z-files, due to what
appears to be a bug in our debug/dwarf package. Attached is a minimal types_openbsd.go
file and the corresponding .o file that gcc creates. The sample dwarf.go should produce
the following output for struct timeval:

Name: timeval
Name: tv_sec
Name: tv_usec

However, it currently produces:

Name: timeval
Name: it_interval
Name: tv_usec

Due to duplication tv_sec is encoded as a strp, however debug/dwarf ends up determining
that it has an offset of 0x0 instead of the correct 0xc, which obviously results in the
incorrect value.

It is possible that this is compiler related, however I doubt that this is the case
since readelf is able to correctly process the .o file on multiple platforms (in this
case linux/amd64):

$ readelf --debug-dump _cgo_.o | grep -A 10 :\ timeval
<b80> DW_AT_name : timeval
<b88> DW_AT_byte_size : 16
<b89> DW_AT_decl_file : 6
<b8a> DW_AT_decl_line : 90
<b8b> DW_AT_sibling : <0xbb0>
<2><b8f>: Abbrev Number: 14 (DW_TAG_member)
<b90> DW_AT_name : (indirect string, offset: 0xc): tv_sec
<b94> DW_AT_decl_file : 7
<b95> DW_AT_decl_line : 50
<b96> DW_AT_type : <0x361>
<b9a> DW_AT_data_member_location: 2 byte block: 23 0 (DW_OP_plus_uconst: 0)

Attachments:

types_openbsd.go (392 bytes)

dwarf.go (476 bytes)

cgo.o (6544 bytes)
Issue 1:
TypeScript Version:

I use typescript compiler 1.8.10 from npm.

Code

I use TypeScript in a project with ~500 ts files. When I type in console tsc -w and wait for the whole project is compiled, I add a small changes to one of my files. It re-compiles whole project instead of one changed file (it takes 10-25 seconds). I used node-inspector to track what the reason of such behavior. I found out that when it performs re-compilation (tsc.ts:564), it creates a new program without passing an old program as a forth parameter to the function.

I created a small project for experiments with some files and start watcher with flag --listFiles:

tsc -w --listFiles

My tsconfig.json:

{
"exclude": [],
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"isolatedModules": true,
"declaration": false,
"inlineSourceMap": false,
"noImplicitAny": false,
"removeComments": true,
"noLib": false,
"allowJs": false
}
}

Expected behavior:

It should compile only one changed file (I added a space to the calc.ts files).

Actual behavior:

It re-compiles whole files:

I understand that such behavior can't be added for project that should be bundled into one file.

Thanks

Issue 2:
The constructs:

let v = v;
const c = c;

should error because they are uses before definition. Indeed IE gives this error.

This also applies to:

for (let v = v; ; ) { }
for (let v in v) { }
for (let v of v) { }

For the latter two in particular, look at section 13.6.4.12 in the ES6 spec:

Let oldEnv be the running execution context’s LexicalEnvironment.

If TDZnames is not an empty List, then

a. Assert: TDZnames has no duplicate entries.

b. Let TDZ be NewDeclarativeEnvironment(oldEnv).

c. For each string name in TDZnames, do

i. Let status be TDZ.CreateMutableBinding(name, false).
ii. Assert: status is never an abrupt completion.

d. Set the running execution context’s LexicalEnvironment to TDZ.

Let exprRef be the result of evaluating the production that is expr.

Set the running execution context’s LexicalEnvironment to oldEnv.
Issue 1:
I try to include a common f77 block from legacy code.

some calculations in the conversion go wrong.

I have in my common block lines

implicit real*8 (a-h,o-z)
parameter ( nvar = 3 )
parameter ( jmz = 1983 )

common scmt(3*(jmz+1)), dbuf(nvar*(nvar+1) * (jmz+2))

resulting an a comlilation error

/tmp/tmpcpniavle/src.linux-x86_64-3.4/_keplermodule.c:1386:22: error: ânvarâ undeclared here (not in a function)
{"dbuf",1,{{5955 * nvar + 5955}},NPY_DOUBLE},

it seems a bad line is generated and f2py does not resolve multiple occurrences (nvar) of the same parameter/variable in an expression? at least inside sufficiently complex expressions?

If I define a parameter with nvar*(nvar+1) and use that new parameter, things work, but maybe if you get a chance to fix this fluke as well, that would be nice. (or let me me know in what function for crackfortran even to look...)

Issue 2:
when running the bellow code or any code having import pandas as pd I get the above error.

this is happening in the vs code ide run cod execution

I can run the code as run python file in terminal

for some reason to the output using run code I am getting the above error.

Reproducing code example:

import pandas as pd

x = list(range(0,100))
pd.DataFrame(x)

print(x)

Error message:

Traceback (most recent call last):

File "c:\Users\user\Documents\Visual Studio 2017\Projects\test1.py", line 7, in

import pandas as pd

File "C:\Users\user\Anaconda3\lib\site-packages\pandas_init_.py", line 17, in

"Unable to import required dependencies:\n" + "\n".join(missing_dependencies)

ImportError: Unable to import required dependencies:

numpy:

IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!

Importing the numpy c-extensions failed.

Try uninstalling and reinstalling numpy.

If you have already done that, then:

Check that you expected to use Python3.7 from "C:\Users\user\Anaconda3\python.exe",

and that you have no directories in your PATH or PYTHONPATH that can

interfere with the Python and numpy version "1.17.4" you're trying to use.

If (1) looks fine, you can open a new issue at

https://github.com/numpy/numpy/issues. Please include details on:

how you installed Python

how you installed numpy

your operating system

whether or not you have multiple versions of Python installed

if you built from source, your compiler versions and ideally a build log

If you're working with a numpy git repository, try git clean -xdf

(removes all files not under version control) and rebuild numpy.

Note: this error has many possible causes, so please don't comment on

an existing issue about this - open a new one instead.

Original error was: DLL load failed: The specified module could not be found.

Numpy/Python version information:

numpy=1.17.4

python 3.7.4

I am using anaconda

I tried to remove and reinstall numpy
Issue 1:
Version

2.5.16

Reproduction link

https://jsfiddle.net/9bzw21no/33/

Steps to reproduce

Use a string literal containing }} in the data binding

{{ 'hello}}' + '{{world' }}

What is expected?

hello}}{{world

What is actually happening?

hello)+""+_s(world

I expected the same result as svelte.

svelte example

Issue 2:
Version

2.6.0

Reproduction link

https://jsfiddle.net/jk8as0bz/

Steps to reproduce

NB: use a component with a transpiled render function (render._withStripped should be true). For the purpose of the minimal repro, we are setting the flag manually.

on the minimal repro open the console, click on the button and see the warning message showing up

What is expected?

no warning

What is actually happening?

it throws an improper warning

What is happening

create a component that $emit directly in an event handler like <button @click="$emit('click')">click me! </button>

The handler will be compiled as such in the createElement function

on: {
click: function($event) {
return _vm.$emit("closeModal")
}
}

returning the vm instance

3. In the isPromise call it will check for property like .then or .catch

4. the withStriped flag set to true the vm instance is proxied to throw non present properties but referenced during render on development

5. It will throw the following warning: [Vue warn]: Property or method "then" is not defined on the instance but referenced during render
Issue 1:
only after landing

//! moment-timezone.js

//! version : 0.5.0

//! author : Tim Wood

//! license : MIT

//! github.com/moment/moment-timezone

vendor-main-00eff8238f.js:formatted:17423Uncaught TypeError: Cannot read property 'join' of null

function i(a) {

var b = a.toTimeString()

, c = b.match(/(.+)/);

c = c && c[0] ? c[0].match(/[A-Z]/g).join("") : b.match(/[A-Z]{3,5}/g)[0], //error line

Issue 2:
I cann't press the button "Submit and go to my next challenge (ctrl + enter)". But if I clicked I only see the infinite loading. How to solve this problem?
Issue 1:
I'm submitting a ... (check one with "x")

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior

The following would fail:

export function getWindow() { return window; }

@NgModule({
declarations: [
AppComponent,
SimpleRouteComponent
],
imports: [
BrowserModule,
FormsModule,
HttpModule,
AppRoutingModule
],
providers: [
{provide: 'window', useFactory: getWindow}
],
bootstrap: [AppComponent]
})
export class AppModule {
constructor(@Inject('window') w: Window) {
console.log(w);
}

}

With error

ERROR in Error encountered resolving symbol values statically. Could not resolve type Window (position 29:36 in the original .ts file), resolving symbol AppModule in /Users/Meligy/Code/github/Meligy/routing-angular-cli/src/app/app.module.ts

Expected behavior

I'd expect the AoT compiler to be able to understand

Minimal reproduction of the problem with instructions

Create a new app using latest Angular CLI

Go to AppModule, modify providers and add constructor as shown above

Run npm start -- --aot

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

I want to be able to test the places where I happen to have to use window. I still want to have type safety for my calls to it.

Please tell us about your environment:

Mac OS latest

Running npm run ng -- version returns:

angular-cli: 1.0.0-beta.26
node: 6.9.1
os: darwin x64
@angular/common: 2.4.4
@angular/compiler: 2.4.4
@angular/core: 2.4.4
@angular/forms: 2.4.4
@angular/http: 2.4.4
@angular/platform-browser: 2.4.4
@angular/platform-browser-dynamic: 2.4.4
@angular/router: 3.4.4
@angular/compiler-cli: 2.4.4

Things to note:

The type Window is declared in default TypeScript lib dom.

The libs ["es6", "dom"] are already added by default in my project (default Angular CLI layout)

I also tried to reference the file node_modules/typescript/lib/lib.dom.d.ts directly in several ways, and that didn't seem to help

Please note that the code WORKS JUST FINE when I'm not using AoT.

That's npm start works, and npm start -- --aot fails (npm start here equals ng serve)

Angular version: 2.0.X

Angular 2.4.4 as shown above.

Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

Tested in Chrome, but the error comes in Terminal anyway.

Language: [all | TypeScript X.X | ES6/7 | ES5]

TypeScript 2.0.10

Node (for AoT issues): node --version =

node: 6.9.1

Issue 2:
After few days of research I have realized that di.js repo is no longer maintained and dependency injection from this repo is pretty away from previous code base.

I guess you have a plan to separate it again or update old repo with new code? Will it happen any time soon?

Thanks!
Issue 1:
When I closed the editor I had a file open in a tab. It was named "summarize".

With the editor closed I ended up having to do some restructuring of the project folder and this file was moved into a directory called "summarize" under a different name.

Later in the day I tried to start up Atom again, it failed to the debug screen. It was throwing an error saying that this file was now a directory. I ended up having to rename the directory temporarily to be able to open the editor, then close the tab in the editor, rename the directory again to it's original name and all was well.

Suggestion: the editor should fail more gracefully in this circumstance. When a directory replaces a file of the same name, the editor should just close the tab or gray it out with an explanation or alert.

Issue 2:
i want to change text color variable color to make the code more attractive but i cant find any such settings to do so i.e. where can i edit the color code of the syntax .

can anyone please guide me the process to do so .