WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
I build a local flutter engine project. I get a file named flutter.jar. I copy this file to Flutter sdk.

The path is flutter/bin/cache/artifacts/engine/android-arm64. I run a Flutter project and get a crash

[FATAL:flutter/runtime/dart_vm.cc(422)] Error while initializing the Dart VM: Wrong full snapshot version, expected '6891e4153091f27bfe9ab236374f51a1' found '77ed80617eb2b1627e6c51ae7252c677'

I cant use flutter run --local-engine android_debug because I use Flutter project on an existing Android project.

How can I use my own engine jar in my project?

[✓] Flutter (Channel master, v0.5.8-pre.290, on Mac OS X 10.13.6 17G65, locale zh-Hans-CN)
• Flutter version 0.5.8-pre.290 at /Users/joyuan/Documents/work/workspace/workspace_ali/workspace_flutter/flutter
• Framework revision 9cb0b21e9c (2 hours ago), 2018-08-10 09:56:13 +0200
• Engine revision e54bc4ea18
• Dart version 2.0.0-dev.69.5.flutter-eab492385c

[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at /Users/joyuan/Documents/work/tools/sdk
• Android NDK at /Users/joyuan/Documents/work/tools/sdk/ndk-bundle
• Platform android-27, build-tools 27.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)
• All Android licenses accepted.

[!] iOS toolchain - develop for iOS devices (Xcode 9.3)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 9.3, Build version 9E145
✗ libimobiledevice and ideviceinstaller are not installed. To install, run:
brew install --HEAD libimobiledevice
brew install ideviceinstaller
✗ ios-deploy not installed. To install:
brew install ios-deploy
✗ CocoaPods not installed.
CocoaPods is used to retrieve the iOS platform side's plugin code that responds to your plugin usage on the Dart side.
Without resolving iOS dependencies with CocoaPods, plugins will not work on iOS.
For more info, see https://flutter.io/platform-plugins
To install:
brew install cocoapods
pod setup

[✓] Android Studio
• Android Studio at /Applications/Android Studio 3.2 Preview.app/Contents
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b04)

[✓] Android Studio (version 2.3)
• Android Studio at /Applications/Android Studio.app/Contents
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)

[✓] IntelliJ IDEA Ultimate Edition (version 2017.2.7)
• IntelliJ at /Applications/IntelliJ IDEA.app
• Flutter plugin version 21.2.2
• Dart plugin version 172.4343.25

[✓] Connected devices (1 available)
• MI 5 • de7f556 • android-arm64 • Android 8.0.0 (API 26)

Issue 2:
I tried to use Charles to check the request ,but nothing is shown , any ideas?
Issue 1:
Current behavior: When using the "Override Windows Snap shortcut (Win + Arrow) to move windows between zones" the current application remains the active window.

Prefered behavior: When using the "Override Windows Snap shortcut (Win + Arrow) to move windows between zones" any application in the 'current' zone become the active window.

Here is a paint drawing, to make it more clear:

Consider the following:

Situation 1 is the situation before using the shortcut to move windows between zones. Let's say Application A (in zone 1) is currently active.

Situation 2

Windows have been moved between zones. In the current situation Application A would still be active, regardless of in which zone it resides.

I would prefer to make whatever now is in Zone 1 (Application C in this case) active. This would enhance my workflow a lot and it seems more intuitive to me.

Issue 2:
Disable window overlap in zones & cause force rotate.

This would turn the Win + Arrow to rotate all windows through the zones. Allowing for better use of Priority Grid type Layouts. . This option would have to only be optional when "Override windows snap hotkey" is enabled.

At this point the larger or top (if stacked) zone and window would stay active. This is beneficial if your switching between excel and doc type functions, even VS code when referencing other documents.

Thank You
Issue 1:
This is a duplicate of #3695, followed by more bad behavior. This is a relatively recent .julia directory that has only been used with Pkg2 (AFAIK) and only has one package installed (Options).

julia> Pkg2.add("Winston")
MESSAGE: Cloning BinDeps from git://github.com/loladiro/BinDeps.jl.git
MESSAGE: Cloning Winston from git://github.com/nolta/Winston.jl.git
MESSAGE: Cloning Cairo from git://github.com/JuliaLang/Cairo.jl.git
MESSAGE: Cloning Color from git://github.com/JuliaLang/Color.jl.git
MESSAGE: Cloning IniFile from git://github.com/JuliaLang/IniFile.jl.git
MESSAGE: Cloning Tk from git://github.com/JuliaLang/Tk.jl.git
MESSAGE: Installing BinDeps v0.2.0
MESSAGE: Upgrading Options: v0.2.1- => v0.2.1
fatal: reference is not a tree: f1417b80ec7f3338275b2b692f7dc33289e50935
MESSAGE: Rolling back install of BinDeps
MESSAGE: Rolling back install of BinDeps
mv: cannot stat `BinDeps': No such file or directory
ErrorException("failed process: Process(`mv BinDeps .trash/`, ProcessExited(1)) [1]")MESSAGE: Rolling back install of BinDeps
mv: cannot stat `BinDeps': No such file or directory
ErrorException("failed process: Process(`mv BinDeps .trash/`, ProcessExited(1)) [1]")MESSAGE: Rolling back install of BinDeps
mv: cannot stat `BinDeps': No such file or directory
ErrorException("failed process: Process(`mv BinDeps .trash/`, ProcessExited(1)) [1]")MESSAGE: Rolling back install of BinDeps
mv: cannot stat `BinDeps': No such file or directory
ErrorException("failed process: Process(`mv BinDeps .trash/`, ProcessExited(1)) [1]")MESSAGE: Rolling back install of BinDeps
mv: cannot stat `BinDeps': No such file or directory
ErrorException("failed process: Process(`mv BinDeps .trash/`, ProcessExited(1)) [1]")MESSAGE: Rolling back install of BinDeps
mv: cannot stat `BinDeps': No such file or directory
ErrorException("failed process: Process(`mv BinDeps .trash/`, ProcessExited(1)) [1]")MESSAGE: Rolling back install of BinDeps
mv: cannot stat `BinDeps': No such file or directory
ErrorException("failed process: Process(`mv BinDeps .trash/`, ProcessExited(1)) [1]")MESSAGE: Rolling back install of BinDeps
mv: cannot stat `BinDeps': No such file or directory
ErrorException("failed process: Process(`mv BinDeps .trash/`, ProcessExited(1)) [1]")MESSAGE: Rolling back install of BinDeps
mv: cannot stat `BinDeps': No such file or directory
...

Issue 2:
I am running 1.63 on intel mac and 1.7 beta on M1 mac. both have this. Julia is inconsistent in how it creates anonymous functions with an if statement. If I create one outside of a function it respects the if, but not inside.

here is output that should be the same

julia> f3()

f2

julia> fff()

f1

and the code

function f1()
println("f1")
end
function f2()
println("f2")
end
f3=function()
if 1==1
ff()=f1()
end
if 1==2
ff()=f2()
end
ff()
end
if 1==1
fff()=f1()
end
if 1==2
fff()=f2()
end
fff()
f3()
Issue 1:
List of Python 8 byte integers are not always correctly converted to np.uint64 arrays.

Lists of 64 bit integers are inconsistently converted into np.arrays. For example, If you convert the list "test" below, the values in the array are not the same as the values in the original list. If, however, you take the first 3 items they do get converted correctly. If you convert the items individually you also get the correct results.

Any views?

import numpy as np
test =[2573020360226874006, 3380361604350789900, 4859923904345895640, 13687853399390180967]

print("A list of 4 integers - Note: they are not identical")
print(test)
converted_numbers = np.array(test).astype(np.uint64)
print(converted_numbers)
print(" ")

print("The first 3 integers - Note they are identical")
test1 = test[:-1]
print(test1)
converted_numbers1 = np.array(test1).astype(np.uint64)
print(converted_numbers1)
print(" ")

print("The last integer")
test2 = test[-1]
print(test2)
converted_numbers2 = np.array([test2]).astype(np.uint64)
print(converted_numbers2)

print("\n","The integers converted individually")
for num in test:
z = np.uint64(num)
print(num,z)

Output from the above

A list of 4 integers - Note: they are not identical

[2573020360226874006, 3380361604350789900, 4859923904345895640, 13687853399390180967]

[ 2573020360226873856 3380361604350790144 4859923904345895936 13687853399390181376]

The first 3 integers - Note they are identical

[2573020360226874006, 3380361604350789900, 4859923904345895640]

[2573020360226874006 3380361604350789900 4859923904345895640]

The last integer

13687853399390180967

[13687853399390180967]

The integers converted individually

2573020360226874006 2573020360226874006

3380361604350789900 3380361604350789900

4859923904345895640 4859923904345895640

13687853399390180967 13687853399390180967

Numpy/Python version information:

Issue 2:
math.floor() and math.ceil() can produce incorrect result for float128 due to double rounding. math.trunc() doe not work with float128 (but int() works).

Reproducing code example:

>>> import numpy as np
>>> import math
>>> x = np.float128('0.99999999999999999995')
>>> x < 1
True
>>> np.floor(x)
0.0
>>> math.floor(x)
1
>>> np.trunc(x)
0.0
>>> y = np.float128('1.0000000000000000001')
>>> y > 1
True
>>> np.ceil(y)
2.0
>>> math.ceil(y)
1
>>> z = np.float128()
>>> np.trunc(z)
0.0
>>> math.trunc(z)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: type numpy.float128 doesn't define __trunc__ method
>>> int(z)
0

This can be solved by implementing __floor__, __ceil__ and __trunc__ in float128.

Numpy/Python version information:

1.13.3 3.6.8 (default, Oct 7 2019, 12:59:55)

[GCC 8.3.0]
Issue 1:
======================================================================
FAIL: sklearn.feature_extraction.tests.test_image.test_connect_regions
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/Library/Python/2.7/site-packages/sklearn/feature_extraction/tests/test_image.py", line 63, in test_connect_regions
assert_equal(ndimage.label(mask)[1], connected_components(graph)[0])
AssertionError: 777 != 767

======================================================================
FAIL: sklearn.feature_extraction.tests.test_image.test_connect_regions_with_grid
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/Library/Python/2.7/site-packages/sklearn/feature_extraction/tests/test_image.py", line 70, in test_connect_regions_with_grid
assert_equal(ndimage.label(mask)[1], connected_components(graph)[0])
AssertionError: 777 != 767

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

Issue 2:
======================================================================
FAIL: sklearn.feature_extraction.tests.test_image.test_connect_regions
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/Library/Python/2.7/site-packages/sklearn/feature_extraction/tests/test_image.py", line 63, in test_connect_regions
assert_equal(ndimage.label(mask)[1], connected_components(graph)[0])
AssertionError: 777 != 767

======================================================================
FAIL: sklearn.feature_extraction.tests.test_image.test_connect_regions_with_grid
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/Library/Python/2.7/site-packages/sklearn/feature_extraction/tests/test_image.py", line 70, in test_connect_regions_with_grid
assert_equal(ndimage.label(mask)[1], connected_components(graph)[0])
AssertionError: 777 != 767

----------------------------------------------------------------------
Ran 3342 tests in 148.698s

FAILED (SKIP=20, failures=2)
Issue 1:
Summary

Apologies if this is not the right place to log this, but I seem to have the exact same issue as described here:

#5894

but with VS2015 and the latest release of Typescript tools (1.8.6)

I've attached a sample project illustrating the issue. Essentially it's an empty web application with a single app.ts typescript file in a src folder, and a tsconfig.json file redirecting the output to a folder wwwroot.

TypeScript Version:

1.7.5 (according to tsc -v from commandline - not really sure if Visual studio uses the same?)

Typescript tools for Visual Studio: 1.8.6.0

Code

{
"compilerOptions": {
"noImplicitAny": false,
"noEmitOnError": true,
"removeComments": false,
"sourceMap": true,
"target": "es5",
"outDir": "./wwwroot/"
},
"exclude": [
"node_modules",
"wwwroot"
]
}

TSTest.zip

Expected behavior:

I can publish the project using File System publish method

Actual behavior:

The publish fails with the error message:

Copying file src\app.js to obj\Release\Package\PackageTmp\src\app.js failed. Could not find file 'src\app.js'.

Issue 2:
Hi, I have a problem publishing an asp.net 4 app using angular, ts 1.8 from visual studio.

Since with ts 1.8 is possible to add a tsconfig file in asp.net 4 projects too, I added it and configured it to create a single output file this way

{
"compilerOptions": {
"noImplicitAny": false,
"noEmitOnError": true,
"removeComments": false,
"target": "es5",
"inlineSourceMap": true,
"inlineSources": true,
"outFile": "Scripts/application.js"
},
"exclude": [
"node_modules",
"wwwroot"
]
}

All works fine until I try to deploy to an azure app service using web deploy: added it, configured, but when I try to deploy I have this error:

Copying file App\Maintenance.js to obj\Debug\Package\PackageTmp\App\Maintenance.js failed. Could not find file 'App\Maintenance.js'.

This is one the ts files that are compiled in the single file 'application.js'.

If my ts installation is not broken, looks like web deploy still continues to look inside the msbuild project settings for the deployment settings of ts files, but adding tsconfig.json file this changes, and when tsconfig file is present typescript project settings are disabled.

Proof of this is that if I rename the tsconfig file, reapply settings via project settings and try to deploy, everything works fine.

Is this normal?
Issue 1:
Apache Airflow version: 1.10.10 and 1.10.9 has been verified

Kubernetes version (if you are using kubernetes) (use kubectl version):

no Kube

Environment:

Others: docker environment with java 1.8

What happened:

The existing function to extract a job id from the monitoring page is no longer compatible with new beam 2.20:

airflow/airflow/contrib/hooks/gcp_dataflow_hook.py

Lines 142 to 148
in
9669718

def _extract_job(line):

# Job id info: https://goo.gl/SE29y9.

job_id_pattern = re.compile(

br'.*console.cloud.google.com/dataflow.*/jobs/([a-z|0-9|A-Z|\-|\_]+).*')

matched_job = job_id_pattern.search(line or '')

if matched_job:

return matched_job.group(1).decode()

The monitoring page includes the zone as part of the URL causing the regex to extract always the zone instead of the job_id

A new regex compatible with the new and old monitoring url needs to be added to the operator:

https://github.com/apache/beam/blob/v2.20.0/runners/google-cloud-dataflow-java/src/main/java/org/apache/beam/runners/dataflow/util/MonitoringUtil.java#L192-L195

As per the been new configuration region is extracted instead of the job id

Issue 2:
Apache Airflow 1.10.10:

Kubernetes version (if you are using kubernetes) (use kubectl version):

Environment:

Cloud provider or hardware configuration:

OS (e.g. from /etc/os-release):

NAME="CentOS Linux"

VERSION="7 (Core)"

ID="centos"

ID_LIKE="rhel fedora"

VERSION_ID="7"

PRETTY_NAME="CentOS Linux 7 (Core)"

ANSI_COLOR="0;31"

CPE_NAME="cpe:/o:centos:centos:7"

HOME_URL="https://www.centos.org/"

BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"

CENTOS_MANTISBT_PROJECT_VERSION="7"

REDHAT_SUPPORT_PRODUCT="centos"

REDHAT_SUPPORT_PRODUCT_VERSION="7"

Kernel (e.g. uname -a):

Linux mid1-t029nifi-1 3.10.0-327.28.3.el7.x86_64 #1 SMP Thu Aug 18 19:05:49 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

Install tools:

pip, yum

Others:

What happened:

When dag serialisation is active, If I manually start an operator, the 1st one works fine, the next will fail with this error:

Could not queue task instance for execution, dependencies not met: Trigger Rule: Task's trigger rule 'all_success' requires all upstream tasks to have succeeded, but found 1 non-success(es). upstream_tasks_state={'skipped': Decimal('0'), 'successes': Decimal('0'), 'failed': Decimal('0'), 'upstream_failed': Decimal('0'), 'done': 0L, 'total': 1}, upstream_task_ids=set([u'query']

Settings dag serialisation to false the problem does not arise.

please note : Scheduler works fine.

What you expected to happen:

I expected to start manually all the dag's tasks from the 1st one to the last.

Code is not able to correctly find the task's status that is before the one I'm restarting.

If I start the 1st operator, anything works fine.

You can reproduce it following these steps:

enable dag serialisation

put the DAG in pause ( so that the scheduler won't touch it )

start the 1st operator and wait it completes and it's successful

start the 2nd operator....

op1 >> op2

Anything else we need to know:

This happens every time.

Mysql 5.7.x, Python 2.7
Issue 1:
Consider situation

$form = $formFactory->createNamedBuilder('', 'form', [], ['csrf_protection' => false])
->add('a', 'integer')
->setMethod('GET')
->getForm()
;
$form->handleRequest($this->getRequest());
var_dump($form->isValid());

now on example.com/test.php?a=1 form is valid. but on example.com/test.php?a=1&utm_source=zzz&... form is invalid, because there are extra fields

So i request an option, to disable extra fields validation

Issue 2:
In the project I'm working on I'm trying to restrict a firewall to a specific IP address/range. The ACL can already do this, and the firewall seems to support only host and pattern options. It would be cool if ip and ips options (same as access_control) could be added. This can be done using a custom request matcher, but I should duplicate all the logic of the host and pattern matching too if I want to use a combination of both
Issue 1:
Place a macro like panic! or println! outside of a function body:

panic!("outside of a function");
fn main() { }

The error message does not provide the expansion site:

<std macros>:2:1: 2:2 error: macro expansion ignores token `{` and any following
<std macros>:2 {
^
error: aborting due to previous error

A similar effect is had in an impl body.

struct Foo;

impl Foo{
panic!("in impl body");
}

fn main() {}

----------------------
<std macros>:2:1: 2:2 error: expected `fn`, found `{`
<std macros>:2 {
^

Issue 2:
afaik, it's because the context where you're using the macro (expr, item, etc.) stopped parsing before that token. We should mention that context.
Issue 1:
Why can't/shouldn't the main editor body get the theme name appended to it as a class? That way I can add my own changes to a theme in my styles.less file and have it only apply to that theme. If I change my theme, those changes might not make sense or even break other things in the new theme.

#701 was what I found when I searched but it didn't really seem to have a good reason for closing it.

Issue 2:
I want to apply minor modifications to a theme in my styles.less. It would be conveniant to do something like:

.theme-name {
.my-modifications {
// ...
}
}
Issue 1:
If you know how to fix the issue, make a pull request instead.

I tried using the @types/react-native package and had problems.

I tried using the latest stable version of tsc. https://www.npmjs.com/package/typescript

I have a question that is inappropriate for StackOverflow. (Please ask any appropriate questions there).

Mention the authors (see Definitions by: in index.d.ts) so they can respond.

Authors: @alloy @huhuanming @iRoachie @timwangdev @kamal @nelyousfi

I'm getting duplicate identifier error on react-native. Commenting the one line out seems to fix the problem but that's only a temporary solution.

Issue 2:
I tried using the @types/node and @types/react-native package and had problems.

I tried using the latest stable version of tsc. https://www.npmjs.com/package/typescript

I have a question that is inappropriate for StackOverflow. (Please ask any appropriate questions there).

Mention the authors (see Definitions by: in index.d.ts) so they can respond.

Authors: @alloy @gyzerok

Both of the modules seem to define require and this results in some compliation trouble:

../node_modules/@types/node/index.d.ts(49,13): error TS2451: Cannot redeclare block-scoped variable 'global'.
../node_modules/@types/node/index.d.ts(73,13): error TS2300: Duplicate identifier 'require'.
../node_modules/@types/react-native/index.d.ts(8541,11): error TS2451: Cannot redeclare block-scoped variable 'global'.
../node_modules/@types/react-native/index.d.ts(8542,14): error TS2300: Duplicate identifier 'require'.

Any tips/workarounds?
Issue 1:
I'm using twitter relations as a test bed for neo4j and I ran into issues when making some complicated queries.

This query runs in just a little over a second

MATCH (x:User)
WHERE x.screen_name IN ['apple', 'banana', 'coconut','durian','eggplant']
WITH x
MATCH (y:User)
WHERE y.screen_name IN ['apple', 'banana', 'coconut','durian','eggplant']
WITH x,y
MATCH (x)-[:FOLLOWS]->(t:User),(y)-[:FOLLOWS]->(t:User)
RETURN count(*) as c, t.screen_name, t.id
ORDER BY c DESC
LIMIT 1000

See the profile here

But this query does not appear to ever return even though the individuals in groups x and y are identical. The only difference is that I'm referring to them by id:

MATCH (x:User)
WHERE x.screen_name IN ['apple', 'banana', 'coconut'] OR x.id IN [12345,98765]
WITH x
MATCH (y:User)
WHERE y.screen_name IN ['apple', 'banana', 'coconut'] OR y.id IN [12345,98765]
WITH x,y
MATCH (x)-[:FOLLOWS]->(t:User),(y)-[:FOLLOWS]->(t:User)
RETURN count(*) as c, t.screen_name, t.id
ORDER BY c DESC
LIMIT 1000

See the profile here

I would presume that both of these queries would quickly gather the indicated individuals in the first two clauses and then run the third clause with equal speed because x and y is just a group of ids at that point. I thought that WITH was a barrier beyond which the query planner could not look! So I don't understand what I'm seeing here.

Facts:

neo4j-community-2.1.3,

using a mac

286,039 nodes; every node in the graph is User (a twitter user)

381,255 relationships; all relationship is -[:FOLLOWS]->

Indices and constraints

Indexes
ON :User(screen_name) ONLINE (for uniqueness constraint)
ON :User(id) ONLINE (for uniqueness constraint)
Constraints
ON (user:User) ASSERT user.screen_name IS UNIQUE
ON (user:User) ASSERT user.id IS UNIQUE

My question on StackOverflow

Issue 2:
You guys might already be working on this, but this is a somewhat common use case that was easy with the old index syntax, and entirely too inefficient with the new indexes. Index hinting on this type of query returns an error, and the query without an index hint does a label scan for horrid performance.

Query:

match a:Crew using index a:Crew(name)

where a.name="Neo" or a.name="Cypher"

return a;

Error: org.neo4j.cypher.IndexHintException: Can't use an index hint without an equality comparison on the correct node property label combo.

Label: Crew

Property name: name