WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Electron version: 1.3

Operating system: Windows

My app load images every 1 minute and RAM memory is full in electronjs.

Issue 2:
This might be more an issue with Chrome than Electron but in VS Code we notice that opening a large image (e.g. BMP) in the editor adds a lot of memory to the process. Now, when we close the editor we release the DOM elements from the document but the memory does not go down instead it just stays. So you can get into an out of memory situation by continuing to open the image and closing it.

Is this known already by other users? Is there a programmatic way to release the image and free it?

Btw I am seeing this in the same way in Atom and can make it crash by closing and opening a tab with a large image:
Issue 1:
xref #15738 (comment)

Currently bool data is passed to the generic python object hashtable for the following methods, making them all very slow.

value_counts

rank

unique

Linked PR casts to int for factorize, duplicated, drop_duplicates

We could skip the hashing altogether and take advantage of the fixed set of values, e.g. below is a fastpath for unique.

%%cython
from numpy cimport uint8_t
cimport cython

import numpy as np

@cython.boundscheck(False)
@cython.wraparound(False)
def unique(uint8_t[:] data):
cdef:
bint seen_true = False
bint seen_false = False
Py_ssize_t i, N = len(data)
uint8_t val
with nogil:
for i in range(N):
val = data[i]
if val == 0:
seen_false = True
elif val == 1:
seen_true = True
if seen_true and seen_false:
break
if seen_true and seen_false:
return np.array([True, False])
elif seen_true:
return np.array([True])
elif seen_false:
return np.array([False])
else:
return np.array([], dtype=bool)

In [35]: bools = np.array([False, True] * 100000)

In [36]: %timeit pd.unique(bools.view('uint8')).astype(bool)
1000 loops, best of 3: 1.74 ms per loop

In [37]: %timeit unique(bools.view('uint8'))
100000 loops, best of 3: 3.47 µs per loop

Issue 2:
Code Sample, a copy-pastable example if possible

import pandas as pd
import numpy as np

s = pd.Series(np.random.randint(0, 1000000, size=100000).astype('datetime64[ns]')).sort_values()
s[s.duplicated()].head()

Problem description

Random output on my system:

70570 1970-01-01 00:00:00.000000159

90556 1970-01-01 00:00:00.000000248

28781 1970-01-01 00:00:00.000000274

73616 1970-01-01 00:00:00.000000276

31370 1970-01-01 00:00:00.000000409

I am not sure why I see duplicates for sub-second values. Adding small random nanosecond deltas seems like a perfect way to de-dupe an index. it does not seem to work though.

Expected Output

Empty.

Output of pd.show_versions()

INSTALLED VERSIONS

commit: None

python: 2.7.11.final.0

python-bits: 64

OS: Darwin

OS-release: 16.7.0

machine: x86_64

processor: i386

byteorder: little

LC_ALL: None

LANG: en_US.UTF-8

LOCALE: None.None

pandas: 0.20.3

pytest: None

pip: 9.0.1

setuptools: 18.7.1

Cython: None

numpy: 1.13.1

scipy: 0.15.1

xarray: None

IPython: 3.0.0

sphinx: None

patsy: None

dateutil: 2.6.1

pytz: 2017.2

blosc: None

bottleneck: None

tables: None

numexpr: None

feather: None

matplotlib: 1.4.3

openpyxl: None

xlrd: None

xlwt: None

xlsxwriter: None

lxml: None

bs4: None

html5lib: None

sqlalchemy: None

pymysql: None

psycopg2: None

jinja2: 2.7.3

s3fs: None

pandas_gbq: None

pandas_datareader: None
Issue 1:
I've stumbled over many sites that are using "weak" ciphers, and deno doesn't provide a mechanism to make fetch calls to those sites, it instead errors out with:

TLS alert received: Message {
typ: Alert,
version: TLSv1_2,
payload: Alert(
AlertMessagePayload {
level: Fatal,
description: HandshakeFailure,
},
),
}

I've checked #10447 and while it's related, this is more of a broad issue rather than a single site, because contacting every affected website operator and get them to upgrade their suite is not feasible. Instead, having an option to disable cipher alerts and proceed with the connection would be ideal, especially for those that are coming from node (where this limitation doesn't exists) and want to migrate/create an API based on deno.

Issue 2:
Namely exports from https://deno.land/std@0.179.0/path/glob.ts, https://deno.land/std@0.179.0/path/separator.ts and some others. Also missing circular references like path.posix.posix === path.posix.

import path from "node:path";
console.assert(path.SEP === undefined);
console.assert(path.SEP_PATTERN === undefined);
console.assert(path.fromFileUrl === undefined);
console.assert(path.globToRegExp === undefined);
console.assert(path.isGlob === undefined);
console.assert(path.joinGlobs === undefined);
console.assert(path.normalizeGlob === undefined);
console.assert(path.toFileUrl === undefined);
console.assert(path.posix.fromFileUrl === undefined);
console.assert(path.posix.toFileUrl === undefined);
console.assert(path.win32.fromFileUrl === undefined);
console.assert(path.win32.toFileUrl === undefined);
console.assert(path.posix.posix === path.posix);
console.assert(path.posix.win32 === path.win32);
console.assert(path.win32.posix === path.posix);
console.assert(path.win32.win32 === path.win32);
if (Deno.build.os == "windows") {
console.assert(path === path.win32);
} else {
console.assert(path === path.posix);
}
Issue 1:
Eval_const_expr is used in the front end in several places. This code quasi-duplicates stuff that trans should probably be doing (in Graydon's words).

Any evaluation of compile-time values should likely be moved to a pass somewhere in the middle end. I assume there is a way to get a compile-time value out of LLVM, but I'm not sure.

Issue 2:
For TLS and named service keys, making the keys types would be a very convenient way to make the interfaces type safe, e.g. let my_value: MyType = get_tls_value(). Unfortunately we don't have a way of comparing type descriptors right now, and type descriptors may be duplicated in each crate (I think). If type descriptors stored a unique hash, then we could compare types.
Issue 1:
Challenge generate-random-whole-numbers-within-a-range has an issue.

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 8350.68.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36.

I and several others in the JavaScript chat page are running into an issue with this challenge; the code you can see below won't make the tests pass even though it's logically sound and seems like the obvious answer. The tests that aren't passing for me are the top two:

The lowest random number that can be generated by randomRange should be equal to your minimum number, myMin.

The highest random number that can be generated by randomRange should be equal to your maximum number, myMax.

\ file:
// Example
function ourRandomRange(ourMin, ourMax) {

return Math.floor(Math.random() * (ourMax - ourMin + 1)) + ourMin;
}

ourRandomRange(1, 9);

// Only change code below this line.

function randomRange(myMin, myMax) {

return Math.floor(Math.random() * (myMax - myMin + 1)) + myMin; // Change this line
}

// Change these values to test your function
var myRandom = randomRange(5, 15);

Issue 2:
Challenge Name

Generate Random Whole Numbers within a Range

Issue Description

I think my code is correct. It meets the conditions if I log out the results to console but it will not pass the tests.

Your Code

// Example
function ourRandomRange(ourMin, ourMax) {

return Math.floor(Math.random() * (ourMax - ourMin + 1)) + ourMin;
}

ourRandomRange(1, 9);

// Only change code below this line.

function randomRange(myMin, myMax) {

return Math.floor( Math.random() * (myMax - myMin + 1)) + myMin; // Change this line

}

// Change these values to test your function
var myRandom = randomRange(5, 15);

Screenshot
Issue 1:
Challenge Name

Noticing this in the Applied Visual Design track, probably elsewhere too

Issue Description

When you complete a challenge, the next one loads but the right-hand display remains the same. It's not possible to see the initial display of the new challenge unless you manually hit "run code." This isn't an issue when subsequent challenges build off of each other, but it's noticeable in the Applied Visual Design track since most of the challenges are quite different from each other.

Browser Information

Browser Name, Version: Version 55.0.2883.87 m (64-bit)

Operating System: Windows 10

Mobile, Desktop, or Tablet: Desktop

Issue 2:
Challenge http://www.freecodecamp.com/challenges/waypoint-import-a-google-font has an issue. Please describe how to reproduce it, and include links to screen shots if possible.

I started the next tutorial.

Clicked outside of the text editor (anywhere outside will do).

Hit backspace.

Returned to the previous lesson.

Only way to advance is to complete the lesson.

Complete the lesson.

Skipped over incomplete lesson to next lesson, automagically.

I duplicated this a few times.

Each time it skipped yet another lesson forward.

Replication:

Went back to Basic HTML and CSS #14

Completed lesson

Skipped much further forward to #18 (add images to your website)

Work around:

Go back to the map and select lessons without a check mark (bullet). No credit is given for incomplete tasks.
Issue 1:
After an object was removed from scene, it is still referenced by renderItems. I clear renderItems as below. But the object may be referenced by opaque or transparent. Once I clear opaque and transparent, nothing is rendered(only background color)! I don't how to get it fixed. Could you please double check if the original code is correct and if not how to fix it?

`function WebGLRenderList() {

var renderItems = [];
var renderItemsIndex = 0;

var opaque = [];
var transparent = [];

function init() {

renderItemsIndex = 0;
opaque.length = 0;
transparent.length = 0;

# renderItems = [];
}`

Three.js version

r88

Issue 2:
Description of the problem

The created objects (mesh/material/geometry) are not released, after disposed in Three.js R87, while all released in Three.js R86, with the same code.

var container;

var camera, scene, renderer;

init();
animate();

function init() {
container = document.createElement( 'div' );
document.body.appendChild( container );

camera = new THREE.PerspectiveCamera( 60, window.innerWidth / window.innerHeight, 1, 10000 );
camera.position.z = 100;

scene = new THREE.Scene();

renderer = new THREE.WebGLRenderer();
renderer.setPixelRatio( window.devicePixelRatio );
renderer.setSize( window.innerWidth, window.innerHeight );
container.appendChild( renderer.domElement );
}

function animate() {
requestAnimationFrame( animate );
renderer.render( scene, camera );
}

var planes = [];
function testplanes(){
for(var i=0; i<100; i++){
var m = new THREE.Mesh(	new THREE.PlaneBufferGeometry( 1, 1 ),
new THREE.MeshBasicMaterial( {color: 0x010101*i } ));
m.position.x = -50+i;
scene.add( m );
planes.push(m);
}
}

function delplanes(){
for(var i=0; i<100; i++){
scene.remove(planes[i]);
planes[i].geometry.dispose();
planes[i].material.dispose();
planes[i] = null;
}
}

Typing testplanes() in console, then typing delplanes();

100 Meshes, 100 MeshBasicMaterial, and 100 PlaneBufferGeometry, remain in memory, with memory profiling of heap snapshot, in Three.js R87. While all released in Three.js R86.

Three.js version

Dev

r87

...

Browser

All of them

Chrome

Firefox

Internet Explorer

OS

All of them

Windows

macOS

Linux

Android

iOS

Hardware Requirements (graphics card, VR Device, ...)
Issue 1:
As an alternative, the “switch window” option may be useful if the selected application is already running. If option is enabled - window should be switched instead of opening a new one.

Issue 2:
PowerToys version: v0.24.0

PowerToy Utility: Fancy Zones

Running PowerToys as Admin: No

Windows build number: 19042.572

📝 Provide detailed reproduction steps (if any)

Enable Fancy Zones (new machine or delete config files from previous)

Clear "hold shift key to active zones while dragging" option

Place mouse on desired screen

4 Press Win + '

5 Create custom zone for screen

Drag window to OTHER screen and see the default 3 column zone

✔️ Expected result

No custom zones on screens ive not created or chosen them for _

❌ Actual result

Custom zones shown on all screens
Issue 1:
Please make sure that this is a build/installation issue. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template

System information

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

Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:

TensorFlow installed from (source or binary):

TensorFlow version:

Python version:

Installed using virtualenv? pip? conda?:

Bazel version (if compiling from source):

GCC/Compiler version (if compiling from source):

CUDA/cuDNN version:

GPU model and memory:

Describe the problem

Provide the exact sequence of commands / steps that you executed before running into the problem

Any other info / logs

Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.

Issue 2:
I am trying to solve the problem of running a retrained model on iOS described in issue 2883. However when I call this command I run into linker error:

bazel build tensorflow/python/tools:strip_unused

The linker error says:

bazel-out/local-fastbuild/bin/tensorflow/core/libversion_lib.a(version_info.pic.o): In function tf_git_version()': version_info.cc:(.text+0x0): multiple definition oftf_git_version()'

bazel-out/local-fastbuild/bin/tensorflow/core/libframework_internal.lo(version_info.pic.o):version_info.cc:(.text+0x0): first defined here

bazel-out/local-fastbuild/bin/tensorflow/core/libversion_lib.a(version_info.pic.o): In function tf_compiler_version()': version_info.cc:(.text+0xd): multiple definition oftf_compiler_version()'

bazel-out/local-fastbuild/bin/tensorflow/core/libframework_internal.lo(version_info.pic.o):version_info.cc:(.text+0xd): first defined here

collect2: error: ld returned 1 exit status

Target //tensorflow/python/tools:strip_unused failed to build

I tried it on both Mac and Ubuntu Linux with the same error. I am operating on git commit a6c5f8e. Can someone help me how to build this tool?
Issue 1:
Atom attempts to comment HTML script tags with JavaScript comments:

Example Code:

<script src="script.js"></script>

First toggle comment (Edit > Toggle Comments/ ctrl+/)

// <script src="script.js"></script>

Second toggle comment (Edit > Toggle Comments/ ctrl+/)

<!-- // <script src="script.js"></script> -->

Issue 2:
Attempting to comment out a line with a script reference in the head of a document behaves strangely. It first attempts to comment out the line with two forward slashes. Toggle comments again then adds the correct html comments, but the forward slashes are still there. Activating toggle comments a third time removes the html comment but still leaves the forward slashes, you have to remove them manually.
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.3

Operating System version: mac 10.15

Java version: 1.8

Steps to reproduce this issue

Spring start app

@SpringBootApplication
@EnableDubbo(multipleConfig = false)
public class RunApp {
}

application.yml

dubbo:
protocol:
register: false

start RunApp

Expected Result

Providers don't register to registry center

Actual Result

Providers registered to registry center.

Checked from dubbo admin

Problems

http://dubbo.apache.org/en-us/docs/user/references/xml/dubbo-service.html

Attribute register is not required, should be null when not set.

The default value in @service is true in v2.7.3.

v2.6.2

com.alibaba.dubbo.config.annotation.Service

boolean register() default false;

v2.7.3

org.apache.dubbo.config.annotation.Service

/**
* Whether to register the service to register center, default value is true
*/
boolean register() default true;

org.apache.dubbo.config.AbstractServiceConfig

/**
* Whether to register
*/
private Boolean register = true;

ServiceBean.register default value is true。(should be null)

org.apache.dubbo.config.ServiceConfig

doExportUrlsFor1Protocol(ProtocolConfig protocolConfig, List<URL> registryURLs){
......
appendParameters(map, provider);
appendParameters(map, protocolConfig);
appendParameters(map, this);// default: this.register=true (unset on @Service)
......
}

this.register has default value(from AbstractServiceConfig), can't be overrided by protocolConfig.

fix

org.apache.dubbo.config.AbstractServiceConfig

/**
* Whether to register
*/
private Boolean register;

Change to null on unset.

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

Operating System version: any

Java version: any

Steps to reproduce this issue

Code:

NetUtils.java

static boolean isValidPublicAddress(InetAddress address) {
return !address.isSiteLocalAddress() && !address.isLoopbackAddress();
}

Expected Result

A link local address like 169.254.0.0/16 should not pass the check.

Actual Result

The link local address can be taken to publish service.
Issue 1:
Environment

Windows build number: Microsoft Windows [Version 10.0.18363.836]
PowerToys version: I tried on v `0.18.1`, but downgraded to `0.17` (because of #3357)
PowerToy module for which you are reporting the bug (if applicable): Image Resizer, File Explorer

Steps to reproduce

First of all, it's important to mention I didn't install Power Toys via the .exe, but I used scoop to install and keep up to date with each release.

Open Power Toys -> General settings -> enable File Explorer and Image Resizer

Open File explorer and check the preview panel

Select an image, right click on it to open the context menu and look for the "Image resize" option

Expected behavior

I expected to see the new entry for Image Resizer in the context menu and for the Preview panel to work according to the specs

#Mentions

I have already checked #1922. I have no entry in the Registry for anything like ImageResizer.

I tried uninstalling Power Toys and re-installing it. (Again, via scoop).

I tried both with and without Administrator rights

Screenshots

Issue 2:
Summary of the new feature/enhancement

Distribute releases in a zip file. When extracted the command can be executed right away without any installation process. At first run, the necessary integration with explorer etc. can be installed.

This would make it easier to use across multiple machines as I can simply update in one place and synchronize files (like via OneDrive).
Issue 1:
In Angular1 when we have ng-model="obj.prop" and if obj does not exist, It will not throw any error. If user type anything on that input new obj Object created with prop.

However, In Angular 2 when we pass undefined object from parent to child component as @input and use as [(ngModel)]="obj.prop", If obj is defined in parent it works and even sync data with parent component. But, if it is not defined there it give an error : "Cannot read property 'prop' of undefined"

If I use elvis operator as [ngModel]="field?.value" (ngModelChange)="field ? field.value = $event : null" It eliminate error but then it does not sync with parent component.

We are using this as part of dynamic component. And we does not know if that object is defined or not. If not it should be like it does in Angular 1.

Issue 2:
I'm submitting a ...

[ ] bug report

[x] feature request

[ ] support request

Do you want to request a feature or report a bug?

Feature

What is the current behavior?

A2 supports the elvis operator (?.) in property bindings but not "two-way" bindings.

This is ok: [ngModel]="hero?.name".

A2 throws an error if I write [(ngModel)]="hero?.name" because this de-sugars (in part) to (ngModelChange)="hero?.name=$event" and the elvis operator (?.) is not supported in assignments.

Today's workaround is [ngModel]="hero && hero.name". We can do better.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via

https://plnkr.co or similar (you can use this template as a starting point: http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5).

What is the expected behavior?

Recommend that template statements support elvis in assignments.

For example, the following <input> element event binding — (input)="hero?.name = $event.target.value" — should assign the value to hero.name if hero != null; if hero == null it should do nothing.

It follows that we will then support [(ngModel)]="hero?.name" which was the original motivation for this request.

What is the motivation / use case for changing the behavior?

Elvis is useful in binding syntax ... both in property binding template expressions and event binding template statements involving assignment.

The 2-way binding syntax today prevents usage of elvis, even if we only wanted it for the property binding half of that syntax.

Please tell us about your environment:

Angular version: 2.0.0-beta.11 everywhere
Issue 1:
I love your editor guys!

One of the feature I like more is the git support, with highlights of lines/files changed.

Unfortunately, I don't use only git, but also bazaar. Could be possible to add a (basic) support for it?

Issue 2:
Right now, Project populates "@repo" only with the result GitRepository.open. There is no way to make Atom support other VCS like Subversion or Mercurial from a plugin because of that. Also, subclassing GitRepository is difficult because it does far more than simply forwarding Git status information, for example subscribing to window focus changes in the constructor.

There should be a simple, generic base class for VCS support, with a mean for Project to ask each VCS module if the current project has any repository for its directory, and a clean API to refresh any item status.
Issue 1:
Hello,

I dont know if that is possible, but it would great to find a way to speed up the to_csv method in Pandas.

In my admittedly large dataframe with 20 million observations and 50 variables, it takes literally hours to export the data to a csv file.

Reading the csv in Pandas is much faster though. I wonder what is the bottleneck here and what can be done to improve the data transfer.

Csv files are ubiquitous, and a great way to share data (without being too nerdy with hdf5and other subtleties). What do you think?

Issue 2:
iotop and a simple-mined c program indicates we're nowhere

near IO-bound in df.to_csv, at about ~10-15x.

It might be possible to speed things up considerably with a fast path

for special cases (numerical only) that don't need fancy quoting and other

bells and whistles provided by the underlying csv python module.

#include <stdio.h>
#include <stdlib.h>

int main(int argc,char **argv)
{
int i;
FILE *f;
char fmt[] = "%f,%f,%f,%f,%f\n";
while (1) {
f = fopen("out.csv","wb");
for(i=0;i<1000000;i++) {
fprintf(f,fmt, 1.0,2.0,3.0,4.0,5.0);
}
fclose(f);
}
}

sustains about 30MB/s on my machine (without even batching writes)

vs ~2-3MB/s for the new (0.11.0) cython df.to_csv().

need to check if it's the stringifying, quoting logic, memory layout, or something

else that constitutes the difference.

Should also yield insights for any future binary serialization format

implemented.