WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Q
A

Bug report?
yes

Feature request?
no

BC Break report?
no

RFC?
no

Symfony version
3.4.2

Got an exception

When I run php my-script.php.

Seems like a bug to me because no matter how I order the arguments the problem still occurs.

Expected:

Not enough arguments (missing: "invoice-id, customer").

Actual:

Cannot add a required argument after an optional one.

Caused by Symfony\Component\Console\Input\InputDefinition::addArgument.

<?php

namespace Mite\Console;

use Mite\Mite;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;

class PdfCommand extends Command {
protected static $defaultName = 'mite:pdf';

protected function configure() {
// $this->addOption( 'month', 'm', InputOption::VALUE_OPTIONAL, 'Month which shall be invoiced', date( 'm' ) );

$this->addArgument( 'invoice-id', InputArgument::REQUIRED, 'ID of the invoice' );
$this->addArgument( 'customer', InputArgument::REQUIRED, 'Name of the customer as stored in mite' );

$this->addOption( 'month', 'm', InputOption::VALUE_OPTIONAL, 'Month which shall be invoiced', date( 'm' ) );
}

protected function execute( InputInterface $input, OutputInterface $output ) {

}
}

app.php

<?php

require_once __DIR__ . '/../vendor/autoload.php';

$app = new \Symfony\Component\Console\Application( 'mite-pdf' );

$app->addCommands( [
new \Mite\Console\PdfCommand(),
] );

$app->setDefaultCommand('mite:pdf');

$app->run();

Issue 2:
Symfony version(s) affected: 4.2.x (but probably all PHP<7.0 compatible versions too)

Description

Using the symfony/testpack, symfony/phpunit-bridge and setting the phpunit version on 8.0. When creating a test which extends Symfony\Bundle\FrameworkBundle\Test\KernelTestCase it will throw the following error:

PHP Fatal error: Declaration of Symfony\Bundle\FrameworkBundle\Test\KernelTestCase::tearDown() must be compatible with PHPUnit\Framework\TestCase::tearDown(): void in /projects/phpunit-8/vendor/symfony/framework-bundle/Test/KernelTestCase.php on line 24

How to reproduce

https://github.com/evertharmeling/symfony-phpunit-8

Using the 'reproducer' project:

Run composer install in project root.

Run vendor/bin/simple-phpunit in project root.

Possible Solution

Restricting the phpunit/phpunit version to <8.0

Additional context

Somewhat related #14736. Because this could solve for support on phpunit >=8.0
Issue 1:
PR #20983 contains a port of CUDA Blas functions gemm and gemv to ATen native.

There are several other Blas functions in THCBlas.{h,cu} that need to be ported.

Also, the duplication of adjustLdLevel2, adjustLdLevel3, convertTransToCublasOperation, THCublasCheck needs to be resolved by deleting these once all THCBlas.cu functions use Blas functions from at::cuda::blas.

Issue 2:
Hi All,

CTC as a loss function quite often used in sequence to sequence models isn't currently implemented and installing binding to warp-ctc is quite hacky (and warp-ctc isn't developed anymore). I'd like to add it natively to pytorch, probably based on the implementation of clstm.

My question is first of if that is even desired and second where to include the code? Is torch/lib/THNN/generic the right location?
Issue 1:
Here's the error:

C:\Users\Sebastian\Documents\rust>rustc helloworld.rs

error: linking with gcc failed with code 1

note: gcc arguments: -LC:/Program Files (x86)/Rust/bin/rustc/i686-pc-mingw32/bin

-m32 -o ./helloworld ./helloworld.o -LC:/Program Files (x86)/Rust/bin/rustc/i68

6-pc-mingw32/bin -lcore-14bd852465126fe7-0.1 -LC:/Program Files (x86)/Rust/bin/r

ustc/i686-pc-mingw32/bin -lstd-79ca5fac56b63fde-0.1 -lm -lrustrt -lmorestack

note: gcc: error: Files: No such file or directory

gcc: error: (x86)/Rust/bin/rustc/i686-pc-mingw32/bin: No such file or directory

gcc: error: Files: No such file or directory

gcc: error: (x86)/Rust/bin/rustc/i686-pc-mingw32/bin: No such file or directory

gcc: error: Files: No such file or directory

gcc: error: (x86)/Rust/bin/rustc/i686-pc-mingw32/bin: No such file or directory

error: aborting due to previous errors

Looks like it needs some quotes around those paths to deal with spaces.

Issue 2:
@metajack pointed out that if we want to move away from using submodules, to using directives like extern mod foo = http://whatever/a/b/c#xxxxxx, where xxxxxx is a revision ID, the particular known-good revision being used has to appear in multiple locations in the code. That's suboptimal.

For rustpkg, we should think about whether there's a way to store all of the "known-good versions" for a project's dependencies in one place.
Issue 1:
According to documentation https://reactjs.org/docs/test-utils.html#renderintodocument, should be:

const domContainer = document.createElement('div');
ReactDOM.createRoot(domContainer).render(element);

but is ReactDOM.render

react/packages/react-dom/src/test-utils/ReactTestUtils.js

Line 137
in
2cf4352

return ReactDOM.render(element, div);

Issue 2:
Which website or app were you using when the bug happened?

Please provide a link to the URL of the website (if it is public), a CodeSandbox (https://codesandbox.io/s/new) example that reproduces the bug, or a project on GitHub that we can checkout and run locally.

What were you doing on the website or app when the bug happened?

If possible, please describe how to reproduce this bug on the website or app mentioned above:

Generated information

DevTools version: 4.13.1-93782cfed2

Call stack:

(none)

Component stack:

(none)

GitHub URL search query:

https://api.github.com/search/issues?q=Cannot%20add%20node%20%20because%20a%20node%20with%20that%20id%20is%20already%20in%20the%20Store.%20in%3Atitle%20is%3Aissue%20is%3Aopen%20is%3Apublic%20label%3A%22Component%3A%20Developer%20Tools%22%20repo%3Afacebook%2Freact
Issue 1:
Just wanted to raise something that I’ve noticed using the beta.

During server-side rendering (using the custom routing and renderToHTML), there are some server-side dependencies I want to make available (for example, a means of injecting requests directly into my Hapi app so that the server-side data fetching doesn’t go through a network interface). In some cases I also have data to seed an initial Redux store based on the request.

Currently I’m getting this data in by attaching custom properties to the Node Request object that’s passed in to the context.

This is fine, though a little awkward. I was raising this up in case you want to make it easier to add server-specific properties to the getInitialProps context.

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

Expected Behavior

Should serve the pages and watch for changes

Current Behavior

Going through the tutorial and setup its fine, I'm able to run npm run dev and it compiles successfully, I'm able to see "Hello Next.js" page loading, but after a few seconds the app fails.

error message:

`/Users/myname/Documents/hello-next/node_modules/next/dist/server/on-demand-entry-handler.js:323

(0, _keys2.default)(entries).forEach(function (page) {

^

TypeError: lastAccessPages.includes is not a function

at /Users/myname/Documents/hello-next/node_modules/next/dist/server/on-demand-entry-handler.js:336:25

at Array.forEach (native)

at disposeInactiveEntries (/Users/myname/Documents/hello-next/node_modules/next/dist/server/on-demand-entry-handler.js:323:32)

at null._repeat (/Users/myname/Documents/hello-next/node_modules/next/dist/server/on-demand-entry-handler.js:171:5)

at null.wrapper [as _onTimeout] (timers.js:275:11)

at Timer.listOnTimeout (timers.js:92:15)

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! hello-next@1.0.0 dev: next

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the hello-next@1.0.0 dev script.

npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:

npm ERR! /Users/myname/.npm/_logs/2017-10-19T23_08_17_041Z-debug.log`

Steps to Reproduce (for bugs)

Finish setup in Learnnextjs

run npm run dev

Your Environment

Tech
Version

next
4.1.1

node
6.9.2

OS
macOs 10

browser
chrome

etc
Issue 1:
I'm having trouble with .AppleDouble directories, which are picked up when I run commands from the command line. Symfony expects the wrong classes in the files "inside" the .AppeDouble directories. Of course Symfony2 should just ignore the .AppleDouble directory as there is only metadata in there.

These issue already came up in #994 and apparently was fixed in 7ab3fde. This does not work for me however. I think the problem is that .AppleDouble is a directory, not a file. If I add .AppleDouble to the VCS patterns, it works and no files "inside" .AppleDouble are picked up.

Of course, this does not seem to be the "right" way of doing this. My thinking would be to rename $vcsPatterns to $directoryPatterns. If that sounds good, I'm happy to make a pull request.

Issue 2:
I found a weird behavior with ignoreDotFiles(true): the testsuite of the ExcludeDirectoryFilterIterator passes properly but folder starting with a dot are not ignored.

I found it when using the PHP-CS-Fixer (which calls this method in its DefaultFinder).

mkdir .test
echo "foo " > .test/foo.php
php-cs-fixer fix . --dry-run

Expected output: no change.

Actual output: .test/foo.php is modified

This is a bit annoying as it means that the fixer messes with the .idea folder holding the PHPStorm metadata.

FYI, I found this bug on Windows. I don't know if it is a platform-specific bug or if it affects Unix environments as well.
Issue 1:
Related to #5286

When an item is selected using ng-link, it only adds the class 'ng-link-active' if there is no parameter within the ng-link directive. <a ng-link="['About']">About</a>

The class 'ng-link-active' FAILS to be added for ng-link with a parameter.

<a ng-link="['About', **{id: 5}**]">About</a>

Issue 2:
If I navigate to a route without any optional parameters, the router link for that route is displayed as active. If I navigate to that same route with optional route parameters, the router link is no longer marked as active.

Example: http://plnkr.co/edit/LVYtuiQ8O2d52UrrxV2e?p=preview

As long as I'm on the Active route, its router link should be marked as active even if there are optional parameters included.
Issue 1:
Duplicate of #22152

Originally posted by @eps1lon in #22188 (comment)

Issue 2:
This is sort of a feature request, mostly because I haven't been able to make the current react tooling do what I need it to do.

I have a massively huge article up on https://pomax.github.io/bezierinfo that consists of a single page of React-managed content, of which the bulk is "passive" HTML content. Paragraphs, headings, that kind of stuff. However, there are also active components with JS interaction bindings, and so I was trying to figure out a way to turn this article into a "react-managed by the client" into a "thin ui managed by the client, react-built offline" solution.

I had a look at ReactDOMServer.renderToStaticMarkup, but while this generates all the HTML nicely, it also loses any and all JS bindings that are necessary to keep the UI working. As this is an ~800kb article not counting static assets (there's some 1.6MB of images on top of that), the notion of first loading the plain markup content and then loading the react bundle on top of that, to hook into the preloaded markup would be a terrible experience for people in the slightly-less-wealthy parts of the world.

Is there some way to, or would there be a sense in developing a way to render React content to HTML "as much as possible" while preserving React's management of interactive UI components? Essentially, a solution in between renderToString and renderToStaticMarkup, to prevent as much data duplication between the pregenerated HTML and the react application itself? It seems that the heavy payload (in bytes, but certainly in client-side processing as well) incurred by using a fully react-managed bundle could be relieved significantly if "content that is guaranteed passive, regular HTML" could be serialized out as HTML with React hooking back into that code only for elements that require active management.

(I have no idea how much work that would be, but I'm pretty sure it would help bring down the average page size down again, which on a global scale would save quite a lot of time and money, while allowing content to be loaded by people for whom parts of the internet are currently inaccessible due to load time and byte cost)
Issue 1:
Text editor for typescript 1.7.6.0 in visual studio 2015 can not response to keyboard inputs (numbers and words, but tab/enter still work).

It just happened. I even have not notice when it happened. I have reset vs settings and also restart the computer. It's still dead. Please help to check. Thanks in advance.

Issue 2:
Found by @malekpour on Gitter on January 7, 2016 11:57 PM

Create an empty file foo.ts

tsc --init --module es6 foo.ts

Open foo.ts in Visual Studio.

Try typing a key other than Enter, Tab, or Spacebar.

Expected: The corresponding character is entered into the buffer.

Actual: The buffer remains unchanged.

I'm not sure if this is related to the language service being blocked on module dependencies, but in this example, there are no dependencies.
Issue 1:
if you save a contourf in pdf format, you see the thin white line contours.

This is well described in this question and I think the fix makes sense too.

https://stackoverflow.com/a/32911283

is it possible to implement it with an extra argument in contourf?

thanks!

Issue 2:
This is the underlying problem raised in #1178.

It is illustrated by the test below; note that boundary anomalies are visible in all forms--agg on the screen, and pdf and svg displayed with a viewer--but in different places depending on the viewer and the size of the figure as rendered.

Note that the colorbar is rendered using pcolormesh, which has its own renderer with agg but otherwise is handled by draw_path_collection.

import numpy as np
import matplotlib.pyplot as plt

z = np.arange(150)
z.shape = (10,15)

fig, axs = plt.subplots(2,2)

ax = axs[0,0]
cs0 = ax.contourf(z, 20)
cbar0 = fig.colorbar(cs0, ax=ax)

ax = axs[0,1]
cs1 = ax.contourf(z, 20, alpha=0.3)
cbar1 = fig.colorbar(cs1, ax=ax)

ax = axs[1,0]
im2 = ax.imshow(z, interpolation='nearest')
cbar2 = fig.colorbar(im2, ax=ax)

ax = axs[1,1]
im3 = ax.imshow(z, interpolation='nearest', alpha=0.3)
cbar3 = fig.colorbar(im3, ax=ax)

plt.savefig("test1.pdf")
plt.savefig("test1.svg")
plt.show()
Issue 1:
Problem description

I simply have this code:

handleExpandChange = (expanded) => {
this.setState({expanded: expanded});
};

handleToggle = () => {
this.setState({expanded: !this.state.expanded});
};

render() {
return (
<div>
<Card expanded={this.state.expanded} onExpandChange={this.handleExpandChange}>
<CardHeader
title="URL Avatar"
subtitle="Subtitle"
avatar="images/ok-128.jpg"
/>

<CardText expandable={true}>
<h4>zxczxc</h4>
</CardText>

<CardActions>
<FlatButton label="Expand" onTouchTap={this.handleToggle} />
<FlatButton label="Reduce" onTouchTap={this.handleToggle} />
</CardActions>
</Card>

</div>
);
}

I can't get the controlled card working like example. Is this anything issue with React 15,6.1?

I read #7129 there is an issue with the touch event. Is this any impact with the card components?

I've tried change FlatButton to use regular button and use onClick still not working.

Versions

Material-UI: 0.18.1

React: 15,6,1

Browser: Chrome

Issue 2:
The onTouchTap from Buttons isn't working with React 15.6.0 https://facebook.github.io/react/warnings/unknown-prop.html

I think it's finally time to move to the standard onClick and remove tap event plugin
Issue 1:
Given the fact device motion and rotation are two of the main user inputs in games, we should consider adding related APIs.

http://developer.android.com/guide/topics/sensors/sensors_overview.html

https://developer.apple.com/library/prerelease/ios/documentation/CoreMotion/Reference/CoreMotion_Reference/index.html

Issue 2:
Mobile devices have a range of common sensors:

accelerometer

gyroscope

magnetometer

barometer

GPS / wifi location

We need a package golang.org/x/mobile/sensor to give us access to this data.

The challenging part here is, as always, designing an API that will work on both Android and iOS. This will require mapping the differences between sensor APIs on both platforms. There may be more than one Go package under the heading sensor.

As an added challenge, some of these sensors (in particular location) require app permissions to use. The permission models are different on android/iOS. I suspect we can design an API that does both: if a binary imports a particular sensor package, it will ask for the permission at installation time (that is, it will be baked into a generated AndroidManifest.xml file). When the package is used at run time, we ask iOS for permission.
Issue 1:
For most floating point types, nextfloat(x, n) and prevfloat(x, n) are defined to be the nth next or nth previous floating point value. BigFloats support neither.

Issue 2:
julia> p1 = Dates.Second(2) + (Dates.Millisecond(7) + Dates.Millisecond(1))
2 seconds, 8 milliseconds

julia> p2 = (Dates.Second(2) + Dates.Millisecond(7)) + Dates.Millisecond(1)
2 seconds, 7 milliseconds, 1 millisecond

julia> p2 == p1
false

Seems like the problem could be fixed by making the CompoundPeriod constructor canonicalize its contents by combining periods of the same type.
Issue 1:
I am using Electron 0.35.0 32 bit on Windows 10 and I am getting the following error when after and SSL request is made using the https node module.

Looks like it is related to #2866 and #2916 and solution would be similar: NativeModule.require('timers').setImmediate(destroySSL, this);

Issue 2:
Summary: When node-integration is set to false, setImmediate is undefined in the preload script.

I am using a using:

a preload script

node-integration: false

At some point in the preload script I am making HTPP requests (using the request module).

Each time I perform such a request, I got an error because setImmediate is undefined. setImmediate is used in the file _tls_wrap.js see line 340.

In the tests, it is explicitly tested that [typeof process, typeof setImmediate, typeof global].join(' ') is evaluated to 'object undefined object'.

Why is setImmediate undefined in the preload script?

What solution/workaround exists for this use case ?

Thanks in advance.
Issue 1:
My dataset is stored in binary format that is easily compressible (from 100 MB down to ~0.5 MB), but I currently cannot make use of this in TF, unless I write a TFRecords file, which is way more cumbersome and leads to a lot of duplication -- I need to work with those files in other programs as well, so the binary format is the easiest solution for me. It would be nice if tf.FixedLengthRecordReader would support on-the-fly decompression.

Issue 2:
mlds-ws2@mldsws2-ThinkStation-P500:~/tensorflow$ bazel build -c opt --config=cuda //tensorflow/cc:tutorials_example_trainer

.......

INFO: Loading package:

And stop. After 1~2 hours, doesn't work anything.

I have 3 computer.

1 is server. 2 CPU and TITAN X 3EA. -> This machine does work well.

But 2, 3 are desktop. 1 CPU and TITAN X or GTX 980 1EA -> Stuck while build tensorflow.

I did format and reinstall ubuntu and necessary program, 3 times. Results are same.

Please help me.
Issue 1:
Atom is open but then subsequent windows and instances cannot be opened from the terminal and receive this error.

Cannot locate Atom.app, it is usually located in /Applications. Set the ATOM_PATH environment variable to the directory containing Atom.app.

Found instance of it in the Atom Script

https://github.com/atom/atom/blob/master/atom.sh#L58

# Exit if Atom can't be found
if [ -z "$ATOM_PATH" ]; then
echo "Cannot locate Atom.app, it is usually located in /Applications. Set the ATOM_PATH environment variable to the directory containing Atom.app."
exit 1
fi

Edit: On, OSX 10.9, ZSH, Atom .96

Issue 2:
Atom won't launch from the terminal in OSX 10.9.3. Here is the output:
Issue 1:
Note the misaligned ^~~~~~~ below due to the 日本語 characters(their length is not computed properly?):

$ rustc -v main.rs
main.rs:3:38: 3:43 error: unresolved name `hello`
main.rs:3 println!("Hello in English: {}", hello());
^~~~~
note: in expansion of format_args!
<std macros>:2:42: 2:75 note: expansion site
<std macros>:1:1: 2:77 note: in expansion of println!
main.rs:3:5: 3:47 note: expansion site
main.rs:4:46: 4:53 error: unresolved name `goodbye`
main.rs:4 println!("Goodbye in Japanese(日本語): {}", goodbye());
^~~~~~~
note: in expansion of format_args!
<std macros>:2:42: 2:75 note: expansion site
<std macros>:1:1: 2:77 note: in expansion of println!
main.rs:4:5: 4:57 note: expansion site
error: aborting due to 2 previous errors

main.rs is this(compiled with rustc -v main.rs):

fn main() {
println!("Hello in English: {}", hello());
println!("Goodbye in Japanese(日本語): {}", goodbye());
}

$ rustc --version --verbose
rustc 1.0.0-dev (3bf41dafc 2015-01-20 06:45:02 +0000)
binary: rustc
commit-hash: 3bf41dafcfb6c979efb4e2438e047e1a54045eec
commit-date: 2015-01-20 06:45:02 +0000
host: x86_64-unknown-linux-gnu
release: 1.0.0-dev

tested in urxvt and xfce4-terminal (TERM is rxvt-unicode-256color respectively xterm)

Linux 3.19.0-rc5-gec6f34e

Thank you.

Issue 2:
use std::io;

fn main() {
let s = ~"ZͨA͑ͦ͒͋ͤ͑̚L̄͑͋Ĝͨͥ̿͒̽̈́Oͥ͛ͭ!̏"; while true { break; }
io::println(s);
}

main.rs:4:46: 4:67 warning: denote infinite loops with loop { ... }, #[warn(while_true)] on by default
main.rs:4 let s = ~"ZͨA͑ͦ͒͋ͤ̚L̄͑͋Ĝͨͥ̿͒̽̈́Oͥ͛ͭ!̏"; while true { break; }
^~~~~~~~~~~~~~~~~~~~~

The proper fix for this requires grapheme handling (#7043), e.g. some graphemes are double width.
Issue 1:
Electron version: 1.2.2

Operating system: OSX 10.11.5

It's quite normal in Chrome or without webview. So, I guess maybe something wrong with it. Below is the example gif. Here is the example code.

Issue 2:
I'm encountering a weird situation. When I was inputting characters in Chinese, the IME window would appear at top left of the app first, and then in a normal position for the consecutive letters. Please see the snapshot below.

Maybe @zcbenz you can view this issue.

Electron Version: v0.36.7

OS: Latest Mac OS X, 10.0.2 as far as I can recall

Issue reproduced every time on several machines.

There is a webview tag in my app. Could this be the cause?
Issue 1:
NOTE: This feature is addition to #1066

Summary of the new feature/enhancement

Scrolling with (precision) touchpad is very convenient but only if application responds to scroll event instantly. This can be observed in Microsoft Edge, vscode, JetBrains IDEs (Smooth Scrolling option).

I think that Windows Terminal should have option to enable scrolling not line by line but pixel by pixel.

Issue 2:
Summary of the new feature/enhancement

Some hardware terminals allowed smoothly scrolling in new lines. It should be possible to implement this kind of feature in a software terminal emulator as well.

YouTube demonstration (VT525 smooth scrolling):

https://www.youtube.com/watch?v=Iju_pOQM0a0