WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
The places I'd expect to get warnings are indicated by the comments in this example:

fn main() {
let a: u8 = 1000;
let b = 1000u8;
let c = 1000 as u8; // NO WARNING !!!

let one: u8 = 1;
let d = (one * 1000) as u32;
let e = (one * -1) as u32; // NO WARNING !!!
let f = (one * -255) as u32; // NO WARNING !!!
let g = (one * -256) as u32;

println!("{}, {}, {}, {}, {}, {}, {}", a, b, c, d, e, f, g);
}

Here's the compiler output:

warning: literal out of range for its type, #[warn(type_overflow)] on by default
let a: u8 = 1000;
^~~~
warning: literal out of range for its type, #[warn(type_overflow)] on by default
let b = 1000u8;
^~~~~~
warning: literal out of range for its type, #[warn(type_overflow)] on by default
let d = (one * 1000) as u32;
^~~~
warning: literal out of range for its type, #[warn(type_overflow)] on by default
let g = (one * -256) as u32;
^~~

And here's the program output:

232, 232, 232, 232, 255, 1, 0

Issue 2:
The compiler should show a warning message when is used a negative number into a like-uint type

let n: u8 = -1;
println!("{}", n); // => 255
Issue 1:
on master: https://travis-ci.org/angular/angular/jobs/66142657#L650

are those expected ?

/cc @kegluneq

Issue 2:
Right now, we get the following errors during our build. I think this is because we have almost empty files inside of web/e2e_test that look like this:

E.g. compiler_perf.dart

library benchmarks.e2e_test.compiler_perf;
main() {}

The error in the build is as follows:

[21:01:16] Starting 'build/pubbuild.dart'...
Loading source assets...
Loading angular2, di/module_transformer, observe and smoke/src/default_transformer transformers... (1.5s)
Loading angular transformers... (1.4s)
Building benchmarks_external...
[Warning from InjectorGenerator on benchmarks_external|web/e2e_test/compiler_perf.dart]:
Unable to resolve injectable annotation angular.core.annotation_src.Decorator
[Warning from InjectorGenerator on benchmarks_external|web/e2e_test/compiler_perf.dart]:
Unable to resolve injectable annotation angular.core.annotation_src.Component
[Warning from InjectorGenerator on benchmarks_external|web/e2e_test/compiler_perf.dart]:
Unable to resolve injectable annotation angular.core.annotation_src.Formatter
[Warning from InjectorGenerator on benchmarks_external|web/e2e_test/compiler_perf.dart]:
Unable to resolve injected type name perf_api.Profiler
Build error:
Transform InjectorGenerator on benchmarks_external|web/e2e_test/compiler_perf.dart threw error: Bad state: No element
dart:collection/iterable.dart 329 IterableBase.last
package:di/transformer/injector_generator.dart 368:30 _Processor._editMain
package:di/transformer/injector_generator.dart 72:5 _Processor.process
package:di/transformer/injector_generator.dart 25:52 InjectorGenerator.applyResolver
package:code_transformers/src/resolvers.dart 111:31 Transformer&ResolverTransformer.applyToEntryPoints.<fn>.<fn>
dart:async/future.dart 118 Future.Future.<fn>
dart:async-patch/timer_patch.dart 16 Timer._createTimer.<fn>
dart:isolate-patch/timer_impl.dart 385 _Timer._runTimers
dart:isolate-patch/timer_impl.dart 411 _Timer._handleMessage
dart:isolate-patch/isolate_patch.dart 142 _RawReceivePortImpl._handleMessage
dart:collection IterableBase.last
package:di/transformer/injector_generator.dart 368:30 _Processor._editMain
package:di/transformer/injector_generator.dart 72:5 _Processor.process
package:di/transformer/injector_generator.dart 25:52 InjectorGenerator.applyResolver
package:code_transformers/src/resolvers.dart 111:31 Transformer&ResolverTransformer.applyToEntryPoints.<fn>.<fn>
dart:isolate _RawReceivePortImpl._handleMessage
Issue 1:
In [1]: import pandas as pd

In [2]: df = pd.DataFrame([[1, 0, 0],[0,0,0]])

# non sparse
In [19]: %time df.loc[0]
CPU times: user 367 µs, sys: 14 µs, total: 381 µs
Wall time: 374 µs
Out[19]:
0 1
1 0
2 0
Name: 0, dtype: int64

In [20]: %time df.loc[[0]]
CPU times: user 808 µs, sys: 57 µs, total: 865 µs
Wall time: 827 µs
Out[20]:
0 1 2
0 1 0 0

In [3]: df = df.to_sparse()

# sparse
In [5]: %time df.loc[0]
CPU times: user 429 µs, sys: 14 µs, total: 443 µs
Wall time: 436 µs
Out[5]:
0 1.0
1 0.0
2 0.0
Name: 0, dtype: float64
BlockIndex
Block locations: array([0], dtype=int32)
Block lengths: array([3], dtype=int32)

In [6]: %time df.loc[[0]]
CPU times: user 4.07 ms, sys: 406 µs, total: 4.48 ms
Wall time: 6.16 ms
Out[6]:
0 1 2
0 1.0 0.0 0.0

It seems in SparseDataFrame, selecting as dataframe, the time increased much more than it does in DataFrame, I would expect it runs faster(on my 1m x 500 SparseDataFrame it takes seconds for the loc operation)

## INSTALLED VERSIONS

commit: None

python: 3.5.1.final.0

python-bits: 64

OS: Darwin

OS-release: 15.6.0

machine: x86_64

processor: i386

byteorder: little

LC_ALL: en_GB.UTF-8

LANG: en_GB.UTF-8

pandas: 0.18.1

nose: None

pip: 8.1.2

setuptools: 24.0.2

Cython: None

numpy: 1.11.0

scipy: 0.17.1

statsmodels: None

xarray: None

IPython: 5.0.0

sphinx: None

patsy: None

dateutil: 2.5.3

pytz: 2016.4

blosc: None

bottleneck: None

tables: None

numexpr: 2.6.1

matplotlib: 1.5.1

openpyxl: None

xlrd: None

xlwt: None

xlsxwriter: None

lxml: None

bs4: None

html5lib: None

httplib2: None

apiclient: None

sqlalchemy: 1.0.13

pymysql: None

psycopg2: 2.6.1 (dt dec pq3 ext lo64)

jinja2: None

boto: None

pandas_datareader: None

Issue 2:
Code Sample

df = Dataframe(numpy.zeros(10000,10000))
random_fill_df(df, num_elements=20)
df = df.to_sparse(fill_value=0)
timeit.timeit('df.loc[[23, 45, 65, 67],:]', globals=globals(), number=10)

Problem description

The reason why row slicing takes so long is because a sparse dataframe a bunch of sparse series. Column slicing is several order of magnitude faster but row slicing is very poor. The sparse dataframe doesn't take advantage of the scipy sparse matrix library which is even faster (both column and row).

Expected Output

In case data is stored as a scipy sparse matrix (as well) inside dataframe object, the slicing operations can be improved, by several orders of magnitude.

I propose that data be stored as a sparse matrix as well in the dataframe object.

Output of pd.show_versions()

pandas: 0.20.3

pytest: None

pip: 9.0.1

setuptools: 36.2.0

Cython: None

numpy: 1.13.1

scipy: 0.19.1

xarray: None

IPython: None

sphinx: None

patsy: None

dateutil: 2.6.1

pytz: 2017.2

blosc: None

bottleneck: 1.2.1

tables: None

numexpr: 2.6.2

feather: None

matplotlib: 2.0.2

openpyxl: None

xlrd: None

xlwt: None

xlsxwriter: None

lxml: None

bs4: 4.6.0

html5lib: 0.999999999

sqlalchemy: None

pymysql: None

psycopg2: None

jinja2: None

s3fs: None

pandas_gbq: None

pandas_datareader: None
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: 2.7.1

Operating System version: windows7

Java version: 1.8

Dubbo Spring boot Starter: 2.7.0

Steps to reproduce this issue

dubbo:
protocol:
port: 20880
registry:
address: N/A
check: false
consumer:
check: false

AppController:

@Reference(check = false)
private UserService userService;

exception:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'appController': Injection of @org.apache.dubbo.config.annotation.Reference dependencies is failed; nested exception is java.lang.IllegalStateException: No such any registry to reference com.epipe.ucloud.crm.service.sys.UserService on the consumer 192.168.3.177 use dubbo version 2.7.1, please config <dubbo:registry address="..." /> to your spring config.

check=false doesn't take effect

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.4.1

Operating System version: macos, linux

Java version: 1.8

背景

这个issue不是正常的使用场景下产生的啊... 我在做一个 dubbo 的压测工具 , 要在 JVM 不退出的情况下 重载 dubbo 的接口class. 如: GreetingService

public interface GreetingService {
String sayHello(String name);
HelloResponse sayHello2(String name);
}

现象

第一次调用时 HelloResponse 返回正常，类加载器是: pea.app.compiler.ReloadableClassLoader

(这个是我自定义的类加载器, 每次调用都会是新的)。

之后的调用就会报异常:

[error] p.d.a.DubboAction - failure: ==========> java.lang.ClassCastException: pea.example.ext.dubbo.response.HelloResponse cannot be cast to pea.example.ext.dubbo.response.HelloResponse
at org.apache.dubbo.common.bytecode.proxy1.sayHello2(proxy1.java)
at pea.example.dubbo.GreetingSimulation.$anonfun$scn$1(GreetingSimulation.scala:23)
at pea.dubbo.action.DubboAction.$anonfun$execute$1(DubboAction.scala:43)
at scala.concurrent.Future$.$anonfun$apply$1(Future.scala:658)
at scala.util.Success.$anonfun$map$1(Try.scala:255)
at scala.util.Success.map(Try.scala:213)

问题

这个问题大概是怎么产生的啊？为啥第一调用没事, 代理类返回的 HelloResponse是不是有缓存啊之类的？如果有怎么清掉？
Issue 1:
VSCode Version: 0.10.11

OS Version: Ubuntu 14.04

Steps to Reproduce:

Export a variable in your default shell (~/.zlogin for zsh; ~/.bash_login for bash, for example. You can use .bashrc as well).

export FOOBAR="1"

Pass different value of the same variable to VSCode.

FOOBAR=2 code .

VSCode uses value defined for login shell, not current session:

Help > Toggle Developer Tools. And in Console, process.env.FOOBAR gives "1" when I expect "2".

It looks like VSCode executes default shell as login shell again before launching the program UI.

Being able to pass different values for existing environment variables greatly helps writing/testing extensions.

Related discussion: microsoft/vscode-go#220 (comment)

strace example:

$ strace -E GOPATH=1 -E FOOBAR=2 -s 1000000 -e verbose=execve -e abbrev=none ./.build/electron/electron .
execve("./.build/electron/electron", ["./.build/electron/electron", "."], [... "GOPATH=1", ...]) # What I expected
...
read(62, "...\nGOPATH=/home/saml/go\n....") # What is this?
...

Issue 2:
Per microsoft/vscode-go#141, there appears to still be an issue with how env vars are passed into Code, even after the fix for #560.

Steps to reproduce:

have export FOO=1 in your .bash_profile

ensure your function to start visual studio code looks like this code () { VSCODE_CWD="$PWD" open -n -b "com.microsoft.VSCode" --args $* ;}

open a terminal session

export FOO=2 in your terminal session

open code .

open developer tools, and eval process.env["FOO"]

Expected: Foo should be 2

Result: FOO will be 1

But the thing that's really odd is that if you skip step (1) (remove this from you .bash_profile), you will see Foo set to 2. So in that case, the local environment is getting passed in.

It seems like this must be either a problem with how vscode is setting up the env vars, or how open in OS X behaves.
Issue 1:
I've had a few conversations on IRC about using #![no_std] in Rust libraries. There are comments around (such as here in html5ever) that using #![no_std] should be used if one wants to write a Rust library that is going to be used from other languages. It's not really clear to me how accurate that recommendation still is currently / will be at 1.0 with the changes to std that have happened over the past months; however, assuming it's still true, I think there are a couple of problems that don't seem to have easy solutions:

It's really easy to accidentally pull in std by using another crate that links std (html5ever currently has this problem - servo/html5ever#47).

According to the unsafe docs, a crate using #![no_std] needs to define a few lang_items like stack_exhausted. If two independently-developed crates both define the lang items, you get duplicate name errors when trying to use both simultaneously.

Issue 2:
It would be great to be able to do some thing like this :

type A = { a: int }; type B = {b: int} herit A;

So in factB = {a: int, b: int};

It could maybe replace an object model when combined with interfaces.
Issue 1:
One of the pages (Bonfire: Seek and Destroy) is completely "frozen" for me. I mean I can move the mouse, but can't click on anything, can't reset or edit my code or do anything, and if I close the tab and return later I still see my old code and the page is frozen.

Issue 2:
Challenge http://freecodecamp.com/challenges/bonfire-reverse-a-string has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

Cannot reset code, page is frozen on me.
Issue 1:
I downloaded neo4j-master from github, today.

Within neo4j-master there is a directory : neo4j-master/community/io/src/main/java/org/neo4j/io

I also obtained the community edition 2.16, which should contain all the jars for neo4j projects.

However, there is no neo4j.io.jar corresponding to the neo4j-master code above.

I tried to compile neo4j-master/community/embedded-examples/src/main/java/org/neo4j/examples/NewMatrix.java

The last import :: "import org.neo4j.io.fs.FileUtils;" was missing.

I obtained neo4j-io-2.2.0-M02.jar from http://mvnrepository.com/artifact/org.neo4j/neo4j-io/2.2.0-M02

and added it to my project. The project then compiled and ran fine...

Further, the online javadoc for neo4j 2.16 does not cover package org.neo4j.io

(http://neo4j.com/docs/2.1.6/javadocs/)

It would be nice if there was a community version of neo4j which would compile the examples, out of the box.

Issue 2:
I have a total of 200,001 nodes out of which one node joins with 200,000 other nodes. so 200,000 relationships total.

All these nodes are coming from Kafka so my Kafka Consumer reads a set of nodes(a batch) from Kafka and applies the following operation.

MATCH (a:Dense1) where a.id <> "1"
WITH a
MATCH (b:Dense1) where b.id = "1"
WITH a,b
WHERE a.key = b.key
MERGE (a)-[:PARENT_OF]->(b)

And this takes forever to build 200,001 relationships both with index or without index on id and key. If I change Merge to CREATE then it is super quick(the fastest)! however, since I have to read a batch from kafka and apply the same operation incrementally the relationships are getting duplicated if I use CREATE for every batch.

Ideally, if a relationship exists I don't want Neo4j to do anything or even better throw an exception or something to the client driver that way application can do something useful with it. I also tried changing MERGE to CREATE UNIQUE in the above code it is 50% faster than MERGE but still slow compared to CREATE.

If MERGE is this slow due to double locking as explained here Then it almost becomes unusable.

Any approach to make it better would be great!
Issue 1:
It would be awesome if there is an option for an off-canvas navigation. There is nothing wrong with the current dropdown style navigation in mobile and I'm not against it, I just like the off-canvas style more.

Of course this would not be applicable for every website, but same as the dropdown style either. So it would be good if we can have an option depending on what kind of website we are working on. In my own opinion, the off-canvas style is more "mobile" than the dropdown because we can see it more often in mobile apps.

Here is a very good example:

http://designmodo.github.io/startup-demo/framework/samples/sample-04/index.html

As you can see the links automatically becomes the off-canvas navigation when in small screen.

Anyone with me?

Issue 2:
Please make lateral the navbar when it collapses on mobile devices such as foundation or purecss.

Tks
Issue 1:
Comment by Kenneth Reitz:

We need to support MultiDict. This is long overdue.

Issue 2:
Duplicate #6261

Nate: Sorry i posted duplicate. Probably posted in the wrong place. Newbie and my first post on the forum.

You closed #6314 as duplicate of #6261. I was not making a feature request but seeking help.

I was hoping to get help in solving the issue I am experiencing with RequestsDependencyWarning error messages.
Issue 1:
Summary of the new feature/enhancement

I think there are some applications that are used very frequently. So it's a good idea to show a list of applications that are pined and the most used. Therefore, we don't need to type in a keyword to find them again.

Proposed technical implementation details (optional)

The list can be above the input textbox or at the sides of it.

Items can be selected by keyboard "ALT + number", so one of my fingers does not have to leave the ALT key after a "ALT + Space".

Issue 2:
Hi everybody ? What about a new feature to FancyZones: dynamic resizing of the zone hosting the currently focused application ? I'm thinking about something like resizing windows in tiling window mangers such as i3 :)
Issue 1:
Context:

Playwright Version: 1.12

Operating System: Mac

Node.js version: 14.6

Browser: Firefox

Extra: NA

Code Snippet

Help us help you! Put down a short code snippet that illustrates your bug and

that we can run and debug locally. For example:

const {firefox} = require('playwright');

(async () => {
const browser = await firefox.launch();
const page = await browser.newPage("Page with SELF SIGNED certificate");
// ...
})();

Describe the bug

We are facing issues with Self Signed Certificates on firefox and while doing browser.newPage() we are getting SEC_ERROR_UNKNOWN_ISSUER.

Can we allow please fix this behaviour for Self Signed Certificates on firefox?

Issue 2:
We are facing issues with Self Signed Certificates on firefox and while doing browser.newPage() we are getting SEC_ERROR_UNKNOWN_ISSUER which gets resolved by setting ignoreHTTPSErrors: true.

Can we allow Self Signed Certificates by default or provide an option to pass these as options in launchServer options?

Working code:

const browser = await firefox.connect({
wsEndpoint: "ws://127.0.0.1:55614/a4de39415b37282b3f8ee16845753bf8",
});

const context = await browser.newContext({
ignoreHTTPSErrors: true
});

// Use the default browser context to create a new tab and navigate to URL

const page = await context.newPage();

Not Working:

const browser = await firefox.connect({
wsEndpoint: "ws://127.0.0.1:55614/a4de39415b37282b3f8ee16845753bf8",
});

// Use the default browser context to create a new tab and navigate to URL

const page = await browser.newPage();
Issue 1:
Preflight Checklist

I have read the Contributing Guidelines for this project.

I agree to follow the Code of Conduct that this project adheres to.

I have searched the issue tracker for an issue that matches the one I want to file, without success.

Issue Details

Electron Version:

6.0.10

Operating System:

Windows 7 / macOS 10.13.6

Last Known Working Electron version:

4.1.5

Expected Behavior

Electron Main Process should receive incoming messages from another process.

Actual Behavior

Electron Main Process can only send messages, but not receive

To Reproduce

TBD

Screenshots

Additional Information

Is there a reason anyone suspects this wouldn't work? I reviewed the changelog meticulously but I don't see anything that seems relevant in either 5.x or 6.x. I see the sandbox is enabled by default, but it seems to only apply to the renderer processes and not the main as far as I can tell. Currently I haven't a clue what the cause could be, but if any Electron Team dev or anyone else could point me in the right direction I'd appreciate it hugely.

Issue 2:
Preflight Checklist

I have read the Contributing Guidelines for this project.

I agree to follow the Code of Conduct that this project adheres to.

I have searched the issue tracker for an issue that matches the one I want to file, without success.

Issue Details

Electron Version: 6.0.10

Operating System: Windows 7

Last Known Working Electron version: 4.1.5

Expected Behavior

Debugger does not bug out and freeze/eat CPU indefinitely

Actual Behavior

Debugging innocuous and functional code that was debuggable in Electron 4 can lead to freezes that require destroying the BrowserWindow or restarting Electron entirely.

To Reproduce

No idea :(

Screenshots

Additional Information

I upgraded and setting breakpoints in working code that was previously debuggable in Electron 4 there are issues. There's been no changes to that code and the debugger worked fine in Electron 4. I've been working on new code and figured that the issue was caused by a bug in my newly written code until just now.

It will stop properly at the breakpoints (in a number of places in my code), and then CPU usage spikes and stays high, taking up 40-45% CPU on my dual core machine. It appears to respond, but if you resume or step ahead nothing happens. If you press Pause script execution, similarly nothing seems to happen except the UI updates. CPU usage remains the same throughout. This code also runs properly when not debugging and last time I ran it in React Native and debugged with React Native Debugger (based on Electron 1.8 I think?)

Hitting Ctrl+P, the quick nav feature comes up as expected, but there's no files there except the HTML file loaded. Any additional files no longer appear.

Electron 6 is based on Chromium 76, and on some machines Chrome 76 (and 77) shoots to using a full CPU core and doesn't stop until the process is ended. I wonder if perhaps I'm seeing the same thing here.
Issue 1:
My app doesn't need werkzeug directly except for type annotations of views that contain a redirect call, even when I explicitly provide Response=flask.Response.

flask/src/flask/helpers.py

Lines 233 to 235
in
5cdfeae

def redirect(

location: str, code: int = 302, Response: t.Optional[t.Type["BaseResponse"]] = None

) -> "BaseResponse":

I think this can be achieved in a similar way to classmethods:

_BaseResponse = t.TypeVar("_BaseResponse", bound="BaseResponse")

def redirect(
location: str, code: int = 302, Response: t.Optional[t.Type[_BaseResponse]] = None
) -> _BaseResponse:

Issue 2:
I have been having issues for 3-4 days now to get a hello world up and running on the remote server. I figured out that it would be nice if there was a documentation from A-Z how to get that done and working.

http://flask.pocoo.org/docs/deploying/mod_wsgi/

The current documentation does not provide an example what to put into an exact python file, and what url to open up in the web browser to get the desired python module running on the remote server. It is okay to have references to other places if that is more logical, but the idea is to have a self-contained page which I can start reading, and by I reach the end, I will have a working remote hello world.

This would be well appreciated.
Issue 1:
TensorFlow should have a Rust interface.

Original e-mail:

I'd like to write Rust bindings for TensorFlow, and I had a few questions. First of all, is anyone already working on this, and if so, can I lend a hand? If not, is this something the TensorFlow team would be interested in? I assume that the TensorFlow team would not be willing to commit right now to supporting Rust, so I thought a separate open source project (with the option to fold into the main project later) would be the way to go.

Issue 2:
System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow):

No

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

Ubuntu 14.04

TensorFlow installed from (source or binary):

pip install

TensorFlow version (use command below):

1.2.1

Python version:

3.6

Exact command to reproduce:

tensorboard --logdir=gs://mybucket

Describe the problem

When trying to run tensorboard from a google cloud storage bucket the following error occurs:

tensorflow.python.framework.errors_impl.UnimplementedError: File system scheme gs not implemented

Even after running gs authentication

gcloud auth application-default login

Source code / logs

I was following this guide on training a pet object detector