WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Following the instructions in the contribution guidelines, I received the following error when I ran gulp watch:

$ gulp watch

fs.js:549
return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
^

Error: ENOENT: no such file or directory, open '/Users/dem/proj/vscode/node_modules/gulp-tsb/lib/typescript/lib.d.ts'
at Error (native)
at Object.fs.openSync (fs.js:549:18)
at Object.fs.readFileSync (fs.js:397:15)
at new DefaultLibScriptSnapshot (/Users/dem/proj/vscode/node_modules/gulp-tsb/lib/builder.js:354:32)
at Object.createTypeScriptBuilder (/Users/dem/proj/vscode/node_modules/gulp-tsb/lib/builder.js:29:44)
at Object.create (/Users/dem/proj/vscode/node_modules/gulp-tsb/lib/index.js:28:28)
at createCompile (/Users/dem/proj/vscode/gulpfile.js:43:15)
at compileTask (/Users/dem/proj/vscode/gulpfile.js:74:16)
at Object.<anonymous> (/Users/dem/proj/vscode/gulpfile.js:100:47)
at Module._compile (module.js:435:26)

I resolved the error by:

Creating the ~/proj/vscode/node_modules/gulp-tsb/lib/typescript/folder, which was missing:

cd ~/proj/vscode/node_modules/gulp-tsb/lib/
mkdir typescript

Copying ~/proj/vscode/out/vs/languages/typescript/common/lib/lib.d.ts into that new typescript folder:

cp ~/proj/vscode/out/vs/languages/typescript/common/lib/lib.d.ts ~/proj/vscode/node_modules/gulp-tsb/lib/typescript

Additional information:

I didn't have mocha or gulp installed before trying to build Visual Studio Code

This is on the master branch

I'm able to duplicate this error every time I clone a new copy of the repository

If there is any other information you need, I'm happy to help!

Issue 2:
I really miss proper tabs for open files (like VS proper), and the ability to rip a tab out into its own window.
Issue 1:
We have the following code:

require('web-frame').setSpellCheckProvider("en-US", false, {
spellCheck: function (word) {
// the spell checking mechanism
}
});

isn't gets wrong highlighting when:

spellCheck have been called with isn and we return false

spellCheck have been called with isn't and we return true

The only way to get correct highlighting for isn't is to return true in both cases. However, isn is not a correct word so this is somewhat hacky. The same applies for doesn't, 'aren't, 'didn't, 'wasn't`, etc...

With the current implementation it is also not possible to make an URL or email address valid because the spellCheck callback is called individually for http, the-website and com.

Solutions for these problems would be to call spellCheck callback only when a Space have been entered.

Issue 2:
We're using the spellchecker module within the preload script of a renderer process, and have followed the basic steps for setting it up as the provider via web-frame.

However, it seems to break words at the apostrophe mark rather than process the complete contraction. I'm not sure if this is an issue with the dictionary or the affix file, but the result is undesirable:

Any ideas on what's happening?
Issue 1:
The behavior of attributes with a value of null or undefined is inconsistent. On first render they are not present on the element at all. On subsequent renders, the attribute sticks around with an empty value.

For example, <a href={null} /> renders what you expect (<a />), but if the value of href changes to null after the first render, you get <a href />. In the case of href (and likely others) an empty attribute has unintended side effects.

See this fiddle: http://jsfiddle.net/pGG2A/1/

Issue 2:
The bug occurred when:

While checking component state in the extension of components react getting error.

Please do not remove the text below this line

DevTools version: 4.11.0-39713716aa

Call stack: at store_Store.getElementAtIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:22171:35)

at store_Store.getElementIDAtIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:22187:26)

at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:29770:63

at List.render (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:23893:18)

at Ii (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:14002:76)

at Hi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:13993:10)

at uk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:16728:86)

at tk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:16245:11)

at qk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:16237:23)

at jk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:16221:5)

Component stack: at List (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:23588:30)

at div

at AutoSizer (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:3111:5)

at div

at div

at Tree_Tree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:29531:47)

at div

at div

at OwnersListContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:28680:3)

at SettingsModalContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:29121:3)

at Components_Components (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:34645:52)

at ErrorBoundary_ErrorBoundary (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:30035:5)

at PortaledContent (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:30157:5)

at div

at div

at ProfilerContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:34264:3)

at TreeContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:25356:3)

at SettingsContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:25963:3)

at ModalDialogContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:30300:3)

at DevTools_DevTools (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:37639:3)
Issue 1:
Version

2.5.16

Reproduction link

https://codepen.io/dengdan99/pen/qwEGmg?editors=1111

Steps to reproduce

子组件（child）被销毁并重新创建了，

What is expected?

子组件不被销毁

What is actually happening?

子组件被销毁并重新挂载

Issue 2:
Version

2.6.10

Reproduction link

https://github.com/MKRazz/vue-boolean-prop-issue

Steps to reproduce

Create a component with a boolean property, pass the value of empty string to that property.

Render the value, shows as empty string, rather than false

What is expected?

Since the property is set to type boolean the result to should be treated as such.

What is actually happening?

Components which have a boolean property aren't able to assert that it is actually a boolean.

I know there is already #4710, which was answered. And I can partially agree with that, however this case is slightly different:

Consider dynamic bindings :prop="''" instead of prop=""

Every implementer of vue would need to explicitly coerce the input to a boolean to prevent propagating this problem.

I want to make sure that the data in vue isn't blindly being passed to the html element, and we need to fix this somewhere.
Issue 1:
Original ticket http://projects.scipy.org/scipy/ticket/1864 on 2013-03-11 by @josef-pkt, assigned to @rgommers.

I guess a bug, because _argcheck is not properly defined

>>> stats.nct.cdf(-0.5, 10, -0.5)
nan
>>> stats.nct._cdf(-0.5, 10, -0.5)
0.50490799249967822

same value as in R

(needed for power of t-test)

Issue 2:
Original ticket http://projects.scipy.org/scipy/ticket/1883 on 2013-03-29 by trac user Sytse, assigned to @rgommers.

The non-central t-distribution in scipy.stats.distributions accepts a non-centrality parameter with positive values only.

From Wikipedia (http://en.wikipedia.org/wiki/Noncentral_t-distribution):

"If Z is a normally distributed random variable with unit variance and zero mean, and V is a Chi-squared distributed random variable with ν degrees of freedom that is statistically independent of Z, then T=(Z+μ)/sqrt(V/ν) is a noncentral t-distributed random variable with ν degrees of freedom and noncentrality parameter μ. Note that the noncentrality parameter may be negative."

Adding a function:[[BR]]

def _argcheck(self, df, nc):[[BR]]

return (df > 0)[[BR]]

to the class class nct_gen would completely solve the problem.
Issue 1:
🐛 Bug

The sample C++ program for libtorch results in an incorrect Makefile because the path to libculibos.a is hardcoded somewhere as /usr/local/cuda/lib64/libculibos.a.

On Arch Linux, the default install directory for CUDA is /opt/cuda.

This is handled correctly for other linked libraries.

Workaround

After running CMake, modify CMakeFiles/(project).dir/build.make and modify the line:

(project): /usr/local/cuda/lib64/libculibos.a

to:

(project): /opt/cuda/lib64/libculibos.a

This fixes the problem for me with CUDA 10.

To Reproduce

Steps to reproduce the behavior:

Be on Arch Linux with libtorch downloaded from the official download link.

Try to follow the [minimal C++ example]: https://pytorch.org/cppdocs/installing.html

You will get an error when running make, which can be fixed with the temporary workaround shown above.

Issue 2:
hi all

Follow the tutorial(Loading a PyTorch Model in C++)

1.cmake

-- Caffe2: CUDA detected: 10.0

-- Caffe2: CUDA nvcc is: /usr/local/cuda-10.0/bin/nvcc

-- Caffe2: CUDA toolkit directory: /usr/local/cuda-10.0

-- Caffe2: Header version is: 10.0

-- Found cuDNN: v7.4.2 (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libcudnn.so)

-- Automatic GPU detection failed. Building for common architectures.

-- Autodetected CUDA architecture(s): 3.0;3.5;5.0;5.2;6.0;6.1;7.0;7.0+PTX

-- Added CUDA NVCC flags for: -gencode;arch=compute_30,code=sm_30;-gencode;arch=compute_35,code=sm_35;-gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_52,code=sm_52;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_61,code=sm_61;-gencode;arch=compute_70,code=sm_70;-gencode;arch=compute_70,code=compute_70

-- Configuring done

-- Generating done

2. make

make[2]: *** No rule to make target '/usr/local/cuda/lib64/libculibos.a', needed by 'example-app'. Stop.

CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/example-app.dir/all' failed

make[1]: *** [CMakeFiles/example-app.dir/all] Error 2

Makefile:83: recipe for target 'all' failed

make: *** [all] Error 2

please ....
Issue 1:
Original ticket http://projects.scipy.org/numpy/ticket/1091 on 2009-04-22 by trac user mesmith, assigned to unknown.

I want to re-open ticket #1035. Here is the information that I submitted.

I am re-opening this issue because the crackfortran patch does not appear to be redundant to me. The patch allows for setting the python callback argument as optional. I use it by adding the follow f2py declarations to the FORTRAN file where the python callback is called. [[BR]]

c These lines are here to get the correct settings into flip.pyf
cf2py intent(callback, hide) py_errmsg
cf2py optional py_errmsg
cf2py external py_errmsg
cf2py use gp_errmsg__user__routines

[[BR]]

where py_errmsg is a python callback function.

Without the patch I get an error message from python when I attempt to execute the FORTRAN subroutine containing the python callback. [[BR]]

TypeError: flip.gp_setdef() takes at least 1 argument (0 given)

[[BR]]

where gp_setdef is the FORTRAN subroutine called from python and containing the cf2py lines above.

I have tried numpy version 1.3 and the patch is still required. If there is another way to accomplish what I am trying to do without the patch--and without requiring the python callback function as an argument--I would like to know how to do it. The user base for our software is growing and the necessity of applying the patch for each installation is becoming unmanagable.

I have updated the attached crackfortran.patch file for numpy 1.3.

Thanks

Issue 2:
Original ticket http://projects.scipy.org/numpy/ticket/437 on 2007-01-29 by trac user mesmith, assigned to @pearu.

I have a couple of changes I have made to f2py related to call backs that I would like to have included. I have been using these changes for over a year with no adverse side affects. Two attached patch files have the changes.
Issue 1:
Feature

In Angular 1 it was possible to store the intermediate result of a filtered ngFor. Since v1.3 beta17 it's even easier by using an alias expression. See the docs here: https://code.angularjs.org/1.3.0-beta.17/docs/api/ng/directive/ngRepeat. But in Angular 2 this feature seems to be missing.

Use case as an example

My (example) use case: I'm using a pipe to filter a list of items depending on a search text. When the result list is empty, I want to be able to notify the user about this empty state, e.g. with a text "No search results." or similar. In addition, it would be nice to show the number of found search results at any time. In Angular 1, I was able to save the intermediate filter result in a variable and work with its length property to achieve this.

Will this feature be coming in Angualr 2 or should we better not use a Pipe in this case? Although I think a Pipe is the nicest solution here.

Issue 2:
Particularly for use cases where piped output is bound to in many places within a template, it's beneficial to have a single piped expression. For example, this observable that's piped into a template:

<div>
<ul>
<div *ng-if="!(people | async)">
Loading people
</div>
<div *ng-if="people | async">
<li *ng-for="person of people | async">
{{person.name}}
</li>
</div>
</ul>
</div>

This would cause three subscriptions to be created for the people observable, which may re-do the work of getting the observable value if the observable is not a multicast observable. This is also problematic if inside of the ng-if that evaluates to true when the observable has emitted a value, there are expressions that assume people | async is not null, such as: {{people | async.length }}. This would raise an exception since the first value returned from the async pipe would be null.

@vsavkin and I put together a prototype directive, which I'm currently using in the http example that supports assigning the result of a piped expression to a local variable within the template:

<div *assign-local="#unwrappedPeople to people | async">
<ul *ng-if="unwrappedPeople" class="people">
<li *ng-for="#person of unwrappedPeople">
hello, {{person.name}}
</li>
</ul>
<span *ng-if="!unwrappedPeople">
Fetching people...
</span>
</div>

This creates a single subscription and simplifies the rest of the template. Here is the implementation: https://github.com/angular/angular/blob/master/modules/examples/src/http/assign_local_directive.ts

I'd like to add this directive as a first-class directive in the angular2 module.

@vsavkin, @mhevery, @tbosch do you have any feedback on the implementation?
Issue 1:
have a single JavaScript file with contents do

trigger IntelliSense once, dismiss with escape

take a heap snapshot

repeat the IntelliSense/dismiss cycle ~10 times

take another heap snapshot, mem usage grew by 1,5MB

Issue 2:
Hi team,

In the early days of VSCode, there was a feature that I adored that allowed me to open the compiled output of my TypeScript files. By simply right clicking the source .ts file and clicking Open derived output I could view my .js output.

This feature was pulled due to not being able to find the compiled output if it was in a different directory.

There are many workarounds for this, but none as effective as this feature. I would love to see this re-added.

Thanks
Issue 1:
I know this issues has been raised, but none of the purposed solutions have worked for me so far. I'm working in Anaconda on Windows 10, and after finally getting pytorch installed successfully, I'm getting this when importing:

(base) C:\Users\conner>python
Python 3.6.0 |Anaconda custom (64-bit)| (default, Dec 23 2016, 11:57:41) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\conner\Anaconda3\lib\site-packages\torch\__init__.py", line 76, in <module>
from torch._C import *
ImportError: DLL load failed: The specified module could not be found.

I've tried cd .. to another directory and reopening python there, without luck. I also tried abridging the _C file name as recommended in another thread, again to no avail. Here's what's in the package directory:

(base) C:\Users\conner\Anaconda3\Lib\site-packages\torch>dir
Volume in drive C has no label.
Volume Serial Number is F8D6-539E

Directory of C:\Users\conner\Anaconda3\Lib\site-packages\torch

05/05/2018 07:52 PM <DIR> .
05/05/2018 07:52 PM <DIR> ..
05/05/2018 07:29 PM <DIR> autograd
05/05/2018 07:29 PM <DIR> backends
05/05/2018 07:29 PM <DIR> contrib
05/05/2018 07:29 PM <DIR> cuda
05/05/2018 07:29 PM <DIR> distributed
02/24/2018 05:49 AM 6,208 distributions.py
05/05/2018 07:29 PM <DIR> for_onnx
02/24/2018 05:49 AM 9,714 functional.py
05/05/2018 07:29 PM <DIR> jit
05/05/2018 07:29 PM <DIR> legacy
05/05/2018 07:29 PM <DIR> lib
05/05/2018 07:29 PM <DIR> multiprocessing
05/05/2018 07:29 PM <DIR> nn
05/05/2018 07:29 PM <DIR> onnx
05/05/2018 07:29 PM <DIR> optim
11/09/2017 07:38 PM 4,130 random.py
02/24/2018 05:49 AM 16,759 serialization.py
05/05/2018 07:29 PM <DIR> sparse
02/24/2018 05:49 AM 4,016 storage.py
02/24/2018 05:49 AM 14,497 tensor.py
05/05/2018 07:29 PM <DIR> utils
02/24/2018 01:46 PM 58 version.py
02/24/2018 01:52 PM 22,208,512 _C.pyd
02/24/2018 01:52 PM 10,240 _nvrtc.cp36-win_amd64.pyd
10/27/2017 09:31 PM 3,044 _six.py
09/17/2017 08:09 AM 1,164 _storage_docs.py
02/24/2018 05:49 AM 39,842 _tensor_docs.py
02/24/2018 05:49 AM 11,024 _tensor_str.py
05/05/2018 07:29 PM <DIR> _thnn
02/24/2018 05:49 AM 127,125 _torch_docs.py
02/24/2018 05:49 AM 9,201 _utils.py
02/24/2018 05:49 AM 9,313 __init__.py
05/05/2018 07:29 PM <DIR> __pycache__
16 File(s) 22,474,847 bytes
19 Dir(s) 318,426,836,992 bytes free

Issue 2:
File "", line 4, in

import torch

File "C:\Users\hp i3\Anaconda3\lib\site-packages\torch_init_.py", line 76, in

from torch._C import *

ImportError: DLL load failed: The specified module could not be found.
Issue 1:
In clases like .hidden-phone, etc...

We should not use display:inherit in those clases. Inherit will cause the element to be displayed the same way than its parent.

Example of this problem:

<div class="I have display box">
<a class="hidden-phone" href="#"> Don't like phones </a>
<a href="#"> Show me anywhere </a>
</div>

The first link, instead of being displayed inline, like a "normal link" will get display box from its parent. This will cause the second link to go below, instead of being on the same line.

I can send a pull request but I'd like some confirmation about this problem before doing anything.

Issue 2:
With no changes to the default selections, the customizer fails to build the package.

The error.txt included in the css directory states:

A less error occured trying to build your bundle. You've likely entered an invalid input into the less variable field. Check your syntax and try again!

thanks!

{"type":"Parse","message":"Syntax Error on line 792","index":25106,"filename":"bootstrap.css","line":792,"column":11,"extract":[" *margin: -5px 0 5px;"," ove rflow: hidden;"," background-color: @top;"]}
Issue 1:
Feature Request

The ability to modify *dependencies blocks in the pubspec.yaml from the CLI.

Examples

Let's assume this is the user's current dependencies section in their manifest.

dependencies:
flutter:
sdk: flutter
cupertino_icons: ^0.1.0

Running this command...

$ flutter packages add url_launcher

Would modify said section to be the following.

dependencies:
flutter:
sdk: flutter
cupertino_icons: ^0.1.0
url_launcher: 2.0.1

This would be done by querying pub.dartlang.org's API and getting the latest version of the given package (which at the time of writing is 2.0.1).

Perhaps a --version x.y.z option could be provided (which would not be validated against the registry so no network requests would be made) (bikeshed the syntax).

Bonus points: Support flutter packages add a b c d (which would add all packages if they all exist in the registry).

As the inverse of flutter packages add a flutter packages remove command could be implemented.

This would remove the node with the given name (or error if no such node exists).

Question

Is this something that the flutter team is interested in?

If so, would someone be open to mentoring the implementation if necessary?

cargo-edit is the inspiration for this feature request.

Issue 2:
flutter start --debug with the ios simulator. The --debug is just ignore.

https://github.com/flutter/engine/wiki/Flutter-Apps-on-iOS is the official instructions instead.

At a minimum we should throw an error in this case and point people to the wiki.

This affects Dart VM engineers attempting to work on the Dart VM in flutter on Macs. FYI @johnmccutchan
Issue 1:
Description

It would be nice to add a comment when pausing a DAG, so that others looking at a DAG and expecting it to be unpaused, can understand why it may have been paused and who it has been paused by.

Use case/motivation

I want to have the ability to share with others, the reason I am pausing a DAG. This could be done via a modal pop-up prompting the user for a comment (while maintaining the option to leave it empty), which will be displayed as a banner near the top of a DAG page.

Related issues

I found these related issues which has since gone stale #16349 & #15675

Are you willing to submit a PR?

Yes I am willing to submit a PR!

Code of Conduct

I agree to follow this project's Code of Conduct

Issue 2:
Description

add a global /suspend and /resume endpoint to the REST API (and corresponding CLI command) that would do the following for the entire airflow deployment:

/suspend

pause all currently unpaused DAGs (keeping track of what was previously unpaused in the metadata db)

Set AIRFLOW__SCHEDULER__USE_JOB_SCHEDULE=False (if not already false) to prevent scheduler from scheduling more tasks

(should handle duplicate suspend calls by 409: Airflow is already suspended)

/resume

unpause all DAGs from a previous /suspend call

set AIRFLOW__SCHEDULER__USE_JOB_SCHEDULE to whatever it was before the last /suspend call

(should handle resuming an airflow that is not in the suspended state with 409: Cannot resume an airflow that is not in suspended state)

Use case/motivation

This could be really helpful for people wanting to pause everything:

before running and upgrade to a newer airflow version

because this is a dev enviornment and we don't need anything to run outside of working hours to reduce resource consumption

"archiving an airflow" call suspend then tear down all the airflow components, could be restored by bringing up the components and then calling resume.

Related issues

No response

Are you willing to submit a PR?

Yes I am willing to submit a PR!

Code of Conduct

I agree to follow this project's Code of Conduct
Issue 1:
I have the following:

// third-party.d.ts
declare module foo.bar {
export interface IBar<T> {
a: T;
}
}

// bar.ts
module bar {
export interface IBar {
a: number;
}
}

// main.ts
module foo.main {
import IBar = foo.bar.IBar;
import IBar2 = bar.IBar;
export var a: IBar<number>;
export var b: IBar2;
}

compiling with:

tsc -d bar.ts main.ts third-party.d.ts

fails with:

main.ts(5,17): error TS2314: Generic type 'IBar<T>' requires 1 type argument(s).

The issue appears to be because the foo.main shares the foo namespace with the third party foo.bar and cannot distinguish the thirty party namespace from the top-level bar namespace.

Updating the main file to drop the imports:

module foo.main {
export var a: foo.bar.IBar<number>;
export var b: bar.IBar2;
}

yields this error:

main.ts(5,17): error TS2305: Module 'foo.bar' has no exported member 'IBar2'

Is there any way to resolve the name clash? This simple example aside, you can imaging a large project which contains a module like somecompany.utility, which would prevent the use of any top-level utility module in the future.

Issue 2:
Hi,

Version: VS 2015 / TS 1.5

When hovering over the property foo, it would be helpful if the JSDoc "The foo option" was also displayed. At present the only way to figure out what the property represents seems to be to delete and type it again: