WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Steps to Reproduce

If I create a new app with "flutter create myapp" and then try to launch it either on Simulator or on my iPod Touch, then I have the following error:

error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.

This is only resolved by performing a 'pod install' in the ios folder.

Flutter Doctor

[✓] Flutter (on Mac OS, channel alpha)

• Flutter at /Users/Yoyo/flutter

• Framework revision 9a0a0d9 (11 days ago), engine revision f8d80c4

[✓] Android toolchain - develop for Android devices (Android SDK 24.0.0-preview)

• Android SDK at /Yoyo/AndroidSDK

• Platform android-N, build-tools 24.0.0-preview

• Java(TM) SE Runtime Environment (build 1.8.0_91-b14)

[✓] iOS toolchain - develop for iOS devices (Xcode 7.3.1)

• XCode at /Applications/Xcode.app/Contents/Developer

• Xcode 7.3.1, Build version 7D1014

[✓] Atom - a lightweight development environment for Flutter

• flutter plugin version 0.2.4

• dartlang plugin version 0.6.37

Issue 2:
Steps to Reproduce

On the iOS simulator...

flutter create new-project
cd new-project/
flutter run

Wait 1 minute and nothing has occurred. The app icon is not present on the simulator.

Flutter Doctor

[✓] Flutter (on Mac OS, channel master)
• Flutter at /Users/drewwarren/flutter
• Framework revision abeb5c7363 (10 minutes ago), engine revision fe509b0d96

[x] Android toolchain - develop for Android devices
x Android Studio / Android SDK not found. Download from https://developer.android.com/sdk/
(or visit https://flutter.io/setup/#android-setup for detailed instructions).

[✓] iOS toolchain - develop for iOS devices (Xcode 7.3.1)
• XCode at /Applications/Xcode.app/Contents/Developer
• Xcode 7.3.1, Build version 7D1014

[✓] Atom - a lightweight development environment for Flutter
• flutter plugin version 0.2.4
• dartlang plugin version 0.6.34

Logs and Crash Reports

new-project$ flutter run
Running lib/main.dart on iPhone 5s...

No additional output after a minute
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: master

I find some code in these place:

dubbo/dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/loadbalance/ConsistentHashLoadBalance.java

Line 91
in
683db2b

byte[] digest = md5(address + i);

dubbo/dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/loadbalance/ConsistentHashLoadBalance.java

Line 102
in
683db2b

byte[] digest = md5(key);

Thet use a self define md5 method.But I found a md5 method defined in:

dubbo/dubbo-common/src/main/java/org/apache/dubbo/common/io/Bytes.java

Lines 824 to 826
in
683db2b

public static byte[] getMD5(String str) {

return getMD5(str.getBytes());

}

If there is no other reason,I think they can be replaced with byte[] digest = Bytes.getMD5(key);.

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

I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: 2.7.5

Operating System version: macOS 10.15.3 (19D76)

Java version: 1.8.241

Steps to reproduce this issue

启用将metadata保存至remote的方式为dubbo.application.metadata-type=remote

配置dubbo.metadata-report.adress=nacos://127.0.0.1:8848

无法在Nacos查看服务元数据

为导出服务的URL生成的metadata相关的参数名为metadata.type，但常量METADATA_KEY的值为metadata。因此获得的WritableMetadataService为InMemoryWritableMetadataService，导致无法将元数据保存到remote

org.apache.dubbo.config.ServiceConfig#487

WritableMetadataService metadataService = WritableMetadataService.getExtension(url.getParameter(METADATA_KEY, DEFAULT_METADATA_STORAGE_TYPE));
if (metadataService != null) {
metadataService.publishServiceDefinition(url);
}
Issue 1:
In my App , It's write this：

repositories {
mavenCentral()
maven { url 'https://maven.google.com' }
}

dependencies {
compile 'com.github.bumptech.glide:glide:4.0.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.0.0'

compile 'com.jakewharton:butterknife:8.4.0'
apt 'com.jakewharton:butterknife-compiler:8.4.0'
}

And then new class ：

@GlideModule

public final class TastesGlideModule extends AppGlideModule {}

Then make project

But is not found GlideApp ， When I remove butterknife in dependencies and try again , The GlideApp is be create , It's because of Butterknife ?

Issue 2:
My project using com.neenbedankt.gradle.plugins:android-apt Plugins.

When I import Glide version 4.0.0, It was not generated GlideApp.

How can generate GlideApp with com.neenbedankt.gradle.plugins:android-apt Plugin?

Thanks
Issue 1:
Challenge Waypoint: Reverse Arrays with reverse has an issue.

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36.

Please describe how to reproduce this issue, and include links to screenshots if possible.

My code:

var array = [1,2,3,4,5,6,7];

// Only change code below this line.

var newArray = array;

// Only change code above this line.

Issue 2:
This issue probably exists somewhere, but adding a function below a bonfire's default code will crash the browser.

Adding a function above a Bonfire's default code doesn't cause any problems.
Issue 1:
Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

go version go1.6 linux/amd64

What operating system and processor architecture are you using (go env)?

GOARCH="amd64"
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GORACE=""
GO15VENDOREXPERIMENT="1"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0"
CXX="g++"
CGO_ENABLED="1"

What did you do?

When the go test command, with the -coverprofile flag, needs to compile a source file, it reports errors using an incorrect line number.

The problem can be reproduced running

$go test -coverprofile=/tmp/out

with this source file:

https://play.golang.org/p/WAB6gv-0HC

and test file:

https://play.golang.org/p/LCkNJTTOQ1

What did you expect to see?

# test/bug01
/tmp/go-build602734163/test/bug01/_test/_obj_test/bug.go:6: undefined: fmt.Printz
FAIL test/bug01 [build failed]

What did you see instead?

# test/bug01
/tmp/go-build602734163/test/bug01/_test/_obj_test/bug.go:7: undefined: fmt.Printz
FAIL test/bug01 [build failed]

Issue 2:
What steps will reproduce the problem?

1. Create a test containing a syntax error, such as http://play.golang.org/p/cIDNFBtU7Z
2. go test .
3. go test . -coverprofile=c.out

What is the expected output?

Both invocations of go test report the syntax error in the same place.

What do you see instead?

$ go test .
...
./simpletest.go:8: undefined: hi
...

$ go test . -coverprofile=c.out
...
/var/folders/jw/xrvq7wz95p5bwvjyx9yc2npm09k844/T/go-build500502516/.../simpletest.go:9:
undefined: hi
...

Note that with -coverprofile, the error is (incorrectly) reported as being on line 9.

Which version are you using? (run 'go version')

go version devel +6b0ef65315eb Wed Sep 04 13:26:49 2013 -0700 darwin/amd64

Please provide any additional information below.

Introduced since go 1.1.1.
Issue 1:
ISSUE TYPE

Bug Report

COMPONENT NAME

Ansible main program

ANSIBLE VERSION

root@docker-build-test:/mnt/src/ansible/ansible/bin# ./ansible --version
Traceback (most recent call last):
File "./ansible", line 46, in <module>
from ansible.module_utils._text import to_text
ImportError: No module named _text

CONFIGURATION

Building ansible from source. There is a system ansible installed, v2.0.0.2 installed from Ubuntu 16.04 for aarch64 .

OS / ENVIRONMENT

Ubuntu 16.04 on ARMv8 (aarch64) on 96-core server on Packet.net

SUMMARY

After I installed a bunch of test dependencies, all tests pass; but when I try to run ansible --version from the bin/ directory of the distribution, that fails.

A similar bug identified (though not exactly the same) is #18582.

STEPS TO REPRODUCE

Pull the current distribution from github, this is on origin/devel.

# git status
On branch devel
Your branch is up-to-date with 'origin/devel'.

EXPECTED RESULTS

I expected ansible --version to print the version number.

ACTUAL RESULTS

root@docker-build-test:/mnt/src/ansible/ansible/bin# ./ansible -vvvv --version
Traceback (most recent call last):
File "./ansible", line 46, in <module>
from ansible.module_utils._text import to_text
ImportError: No module named _text

Issue 2:
ISSUE TYPE

Bug Report

COMPONENT NAME

Ansible

ANSIBLE VERSION

Name : ansible
Arch : noarch
Version : 2.2.0.0
Release : 3.el6
Size : 22 M
Repo : installed
From repo : epel-testing
Summary : SSH-based configuration management, deployment, and task execution system
URL : http://ansible.com
License : GPLv3+

CONFIGURATION

inventory = /etc/ansible/hosts
remote_tmp = $HOME/.ansible/tmp
pattern = *
forks = 5
poll_interval = 15
sudo_user = drone
transport = smart
module_lang = C
gathering = implicit
host_key_checking = False
sudo_exe = sudo
timeout = 10
log_path = /var/log/ansible.log
jinja2_extensions = jinja2.ext.do,jinja2.ext.i18n
ansible_managed = Ansible managed: {file} modified on %Y-%m-%d %H:%M:%S by {uid} on {host}
display_skipped_hosts = True
action_plugins = /usr/share/ansible_plugins/action_plugins
callback_plugins = /usr/share/ansible_plugins/callback_plugins
connection_plugins = /usr/share/ansible_plugins/connection_plugins
lookup_plugins = /usr/share/ansible_plugins/lookup_plugins
vars_plugins = /usr/share/ansible_plugins/vars_plugins
filter_plugins = /usr/share/ansible_plugins/filter_plugins
fact_caching = memory
[privilege_escalation]
[paramiko_connection]
[ssh_connection]
pipelining = True
scp_if_ssh = True

OS / ENVIRONMENT

Red Hat Enterprise Linux Server release 6.8 (Santiago)

SUMMARY

STEPS TO REPRODUCE

Update from ansible 2.1.0.0 to 2.2 by YUM from the epel-testing repo.

EXPECTED RESULTS

Ansible ansible-2.2.0.0-3.el6.noarch working fine.

ACTUAL RESULTS

ansible --version
Traceback (most recent call last):
File "/usr/bin/ansible", line 46, in <module>
from ansible.module_utils._text import to_text
ImportError: No module named _text
Issue 1:
Currently when you use quick open to "git checkout branch", the branch will be created even if the branch already exists in the remote. The command line does a better job and connects to the existing branch in that case.

Issue 2:
When I press F1 and type Git Chechout [SPACE], I see that I can checkout each tag version of my project, but I don't have any branch appearing in the list!

When I git checkout manually by branch with a command tool, it's working well.

Then, when I go back to vscode, I can work well with by branch.

I would be nice to have the branchs in the list
Issue 1:
The build section of the user docs says:

Compilers

To build any extension modules for Python, you'll need a C compiler. Various NumPy modules use FORTRAN 77 libraries, so you'll also need a FORTRAN 77 compiler installed.

This is incorrect, and inconsistent with the instructions in the main install file, which state:

Fortran compiler isn't needed to build Numpy itself; the numpy.f2py tests will be skipped when running the test suite if no Fortran compiler is available. For building Scipy a Fortran compiler is needed though, so we include some details on Fortran compilers in the rest of this section.

The former is probably a remnant of the old scipy docs.

I'm happy to submit a fix, but it would be good to know how folks want to deal with the duplication of those files. As long as that information is carried in two duplicate locations, problems of divergence will keep reappearing. Ideally there should be only one location to describe the source build process.

Issue 2:
The newest version of numpy raises an exception when being imported. I am using Python 3.9 64-bit on Windows 10.

Reproducing code example:

import numpy as np # raises a RuntimeError

Error message:

$ python -c "import numpy"
** On entry to DGEBAL parameter number 3 had an illegal value
** On entry to DGEHRD parameter number 2 had an illegal value
** On entry to DORGHR DORGQR parameter number 2 had an illegal value
** On entry to DHSEQR parameter number 4 had an illegal value
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\Us\AppData\Roaming\Python\Python39\site-packages\numpy\__init__.py", line 305, in <module>
_win_os_check()
File "C:\Users\Us\AppData\Roaming\Python\Python39\site-packages\numpy\__init__.py", line 302, in _win_os_check
raise RuntimeError(msg.format(__file__)) from None
RuntimeError: The current Numpy installation ('C:\\Users\\Us\\AppData\\Roaming\\Python\\Python39\\site-packages\\numpy\\__init__.py') fails to pass a sanity check due to a bug in the windows runtime. See this issue for more information: https://lnkd.in/dg_VxHr

NumPy/Python version information:

NumPy 1.19.4

Python 3.9.1
Issue 1:
Original ticket http://projects.scipy.org/scipy/ticket/726 on 2008-08-24 by @ilanschnell, assigned to unknown.

I have implemented, documented and tested a new function

called 'fast_vectorize'. This function is intended to be used

as a decorator, and it's purpose is to easily create Ufunc

objects for a given python function. The function translates a

Python function, actually an RPython (resticted Python) function,

which is still valid Python, into C using the PyPy translator.

Therefore this functions has a dependency on pypy. However, pypy

is imported in a lazy manner, such that scipy itself will not depend

on pypy, which is a big project.

Included in the patch is the core implementation, tests, benchmarks,

as well as examples.

I have tested this patch against latest svn numpy trunk (which

is required for the current scipy trunk), Python2.4 on SuSE Linux

and Python2.5 on OSX10.4.

To apply the patch, you need to go change to the scipy root and run patch:

$ cd scipy
$ ls
FORMAT_GUIDELINES.txt MANIFEST.in setupegg.py THANKS.txt
INSTALL.txt new_manifest.sh setup.py TOCHANGE.txt
LATEST.txt README.txt setupscons.py
LICENSE.txt scipy site.cfg.example
$ md5sum path_to/fast_vec.diff
9ecfa0351b5742a18819cd241e3f54c9
$ patch -p1 < path_to/fast_vec.diff

Issue 2:
Numpy 1.17 has adopted the C version of pocketfft (https://gitlab.mpcdf.mpg.de/mtr/pocketfft) as their FFT implementation. Since then I have been working on the pocketfft code, converted it to C++ and added a Python wrapper.

The new library (https://gitlab.mpcdf.mpg.de/mtr/pypocketfft)

supports complex and half-complex transforms, also Hartley transforms

supports float, double and long double precision

supports multi-dimensional FFTs

uses CPU vector instructions for ndim>1 (i.e. it computes several 1D FFTs dimultaneously).

uses the Bluestein algorithm for FFTs with large prime factors

Performance is significantly better than FFTPACK's, accuracy as well. For benchmarks and dicussion see numpy/numpy#11888 and recent comments in numpy/numpy#11885.

I have also added an interface which is very similar to scipy.fftpack.

Potential problems for adaptation:

written in C++, requires a C++11 compiler and pybind11

cosine/sine transforms are missing, and I probaly won't have the time ti implement them. They would have to be added on top of the existing machinery.

Would this be of interest for Scipy?
Issue 1:
I'm trying to write an Error implementation which supports a set of "important" error, plus a catch-all for various minor errors caused by low-level subsystems. The code looks something like this:

use std::error::Error;

pub enum DecodingError {
EncodingUnknown,
//...several named errors here...
/// Other errors, the details of which are probably unimportant.
Unexpected(Box<Error+Send>)
}

impl Error for DecodingError {
fn description(&self) -> &str { "decoding error" }
fn detail(&self) -> Option<String> { None }
fn cause(&self) -> Option<&Error> {
match self {
&DecodingError::Unexpected(cause) => Some(&*cause),
_ => None
}
}
}

This yields the following error in cause:

:14:9: 17:10 error: mismatched types: expected core::option::Option<&std::error::Error+'static>, found core::option::Option<&std::error::Error+Send> (expected no bounds, found Send)

I should presumably be able to convert a Box<Error+Send> to an &Error safely, but I can't figure out a way to do it.

Issue 2:
There is currently no way to get a Box<Reader> (or anything else that impls Reader) out of a Box<Reader + Constraint>, for instance Box<Reader + Send>. This is a significant ergonomic problem.

Additionally, Box<Reader + Constraint> should impl Reader since Box<Reader> impls Reader.
Issue 1:
Challenge http://www.freecodecamp.com/challenges/waypoint-bring-your-javascript-slot-machine-to-life has an issue.

The second condition for this challenge:

You should have used the the selector given in the description to select each slot and assign it the value of slotOne, slotTwo and slotThree respectively

The selector in the description:

$($(".slot")[0]).html(slotOne);

The condition passes when you use double quotes in the selector per the description:

$($(".slot")[0]).html(slotOne);
$($(".slot")[1]).html(slotTwo);
$($(".slot")[2]).html(slotThree);

It fails with single quotes:

$($('.slot')[0]).html(slotOne);
$($('.slot')[1]).html(slotTwo);
$($('.slot')[2]).html(slotThree);

Maybe we are trying to conform to the jQuery JavaScript Style Guide? Still, both seem to be valid JavaScript. Indeed, the challenge immediately following this one uses single quotes for the selector in the description and passes with either single or double quotes.

Waypoint: Give your JavaScript Slot Machine some stylish images

$($('.slot')[0]).html('<img src = "' + images[slotOne-1] + '">');

Issue 2:
Welcome first-time open source contributors! 🏆

Challenge copy-an-array-with-slice has an issue.

The title says "Copy an Array with slice()", but the challenge could be better described as "Copy Array items using slice()" as Array.slice() not only can copy whole arrays, but can copy individual items as well.

If you want to help fixing this, the contribution guidelines can help you get started.

This is the line where you can make this change.

Feel free to come chat with us in the Contributors chat room if you have any questions - or just want to say hi!

Good luck & Happy coding! 😄 👍

Already resolved:

✅ 1. The test for this challenge does not run properly. The console gives me plenty of "Minified React Error #32", Similar to the message reported in #12656.

✅ 2. I originally thought the second test case just had a problem with formatting, but since there's nothing wrong with it, I suspect it has to do with the React error. However, I noticed that the second test could be improved with a cleaner assertion.

I suggest this line gets replaced with

"assert(/\\.slice\\(/.test(code), 'message: The <code>forecast</code> function should utilize the <code>slice()</code> method');"
Issue 1:
Original ticket http://projects.scipy.org/numpy/ticket/541 on 2007-06-28 by trac user chipschips, assigned to unknown.

integer division by zero returns 0 rather then inf (or some other specially defined integer infinity constant). This behavior is not consistent with floats and is mathematically wrong.

Example:

1/int_(0)

0

1/float_(0)

inf

Is this a bug or there is some good reason why ints behave this way?

I'm using numpy 1.0.1 and scipy 0.5.2

Issue 2:
Original ticket http://projects.scipy.org/numpy/ticket/541 on 2007-06-28 by trac user chipschips, assigned to unknown.

integer division by zero returns 0 rather then inf (or some other specially defined integer infinity constant). This behavior is not consistent with floats and is mathematically wrong.

Example:

1/int_(0)

0

1/float_(0)

inf

Is this a bug or there is some good reason why ints behave this way?

I'm using numpy 1.0.1 and scipy 0.5.2
Issue 1:
Hi!

I test some big images which exifRotation is 90.

When using okhttp, it showed very very slow, about 5 - 10 seconds.

But, showed fast if not using okhttp!

When using okhttp:

If set diskCacheStrategy(DiskCacheStrategy.SOURCE), it will show faster!

If set override() with a smaller size, it is also showed faster!

If exifRotation is 0, it is also showed faster!

My test images is: (put into sdcard, load from sdcard)

https://cloud.githubusercontent.com/assets/6055764/3547973/bc1e4710-08a3-11e4-99e9-4d26f2f1f67e.jpg

https://cloud.githubusercontent.com/assets/6055764/3547974/be3b85b2-08a3-11e4-8e0b-eb4a484c8654.jpg

https://cloud.githubusercontent.com/assets/6055764/3547975/c0b52726-08a3-11e4-9437-bdb5c777d0b5.jpg

Is it the same problem? #150

Issue 2:
First, load image from all, when the task is not completed, then load image only Retrieve From Cache,

will block on load image only Retrieve From Cache.

Engine load

.....
EngineJob<?> current = jobs.get(key);
if (current != null) {
current.addCallback(cb);
if (Log.isLoggable(TAG, Log.VERBOSE)) {
logWithTimeAndKey("Added to existing load", startTime, key);
}
return new LoadStatus(cb, current);
}
.....
Issue 1:
When viewing the components page of the documentation, the list of sections in the left navigation is so long that it extends beyond the end of my monitor. Because it is in a fixed position I can't scroll to see the bottom of the list. Longer lists of subsections hide more section links because they expand and push them down. There are two ways I can see what's at the bottom: scroll through the whole page, or click on one of the sections that has no subsections and allow the whole list to barely fit.

I'm on a 13" macbook pro w/ retina with default resolution and font / size settings. I'm using Chrome with the bookmark bar enabled, and I have the window full screened.

Issue 2:
When you display some item that has a lot of subitems, the nav grows so much that it doesn't fit on some resolutions, and some of the items aren't shown.

http://oi43.tinypic.com/2ivjtyv.jpg

On that screenshot, nav items are shown up to badges, missing the remaining. I've tested it on latest Firefox and Chrome at 1366x768.
Issue 1:
Setting verbose=0 in tf.keras.model.fit_generator() has no effect if validation_data is provided.

The progress is still displayed for each validation step.

This is annoying if you have a callback that is responsible for printing progress.

System information

running in docker container tensorflow/tensorflow:latest-py3-jupyter

tf.GIT_VERSION: v1.13.1-0-g6612da8951

tf.VERSION: 1.13.1

tf.keras.__version__: 2.2.4-tf

Describe the current behavior

Progress-bar is displayed regardless of verbose=0

Describe the expected behavior

Nothing should be printed

Code to reproduce the issue

model = tf.keras.models.Sequential([
tf.keras.layers.Dense(1, input_shape=(1,))
])
model.compile(loss="mae", optimizer="adam")

def generator():
i=0
while 1:
yield (np.array([i]),[i])
i+=1
valData = (np.arange(10), np.arange(10))

history = model.fit_generator(generator(), steps_per_epoch=5, verbose=0, validation_data=valData)

Output:

10/10 [==============================] - 0s 6ms/sample - loss: 11.3572

Omitting validation_data stops the output from appearing

Link to an example notebook:

https://colab.research.google.com/drive/1SrTdFXD_SCxu-gvo-h2YjFiAkO1CDaLG

Issue 2:
System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10 1809

TensorFlow installed from (source or binary): pip

TensorFlow version (use command below): 1.13 gpu

Python version: 3.6

Bug

When using fit_generator with validation the progress bar is printed regardless of the verbose setting.

Cause

Line 216 of tensorflow/python/keras/engine/training_generator.py calls model_iterator to do validation, but does not pass the verbose parameter, meaning that the default value of verbose=1 is used.

Solution

Add in the missing parameter, e.g.

# Run the test loop every epoch during training.
if do_validation and not callbacks.model.stop_training:
val_results = model_iteration(
model,
validation_data,
steps_per_epoch=validation_steps,
batch_size=batch_size,
class_weight=class_weight,
workers=workers,
use_multiprocessing=use_multiprocessing,
max_queue_size=max_queue_size,
verbose=verbose,
mode='test')