WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
I just came across an error message that, in my opinion didn't really tell me what the problem was.

I was setting up a simple *ngFor *ngFor="#mode in modes"

Yet, obviously I got an error because I put "in" instead of "of", however the error was

Can't bind to 'ngForIn' since it isn't a known native property (template info)

It's clearly a stupid mistake, and now that I've seen it once, I understand the error. However first looking at it, I was stumped. I don't personally have suggestions as to what It should be, though perhaps the community does. (If it's deemed worthy of a rewrite)

Issue 2:
I'm submitting a ... (check one with "x")

[ ] bug report => search github for a similar issue or PR before submitting
[x ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior

ViewChildren and ViewChild are searching for child / children only,

Expected/desired behavior

They should search for descendents also.

Reproduction of the problem

steps for reproduce:

Lets say you have component1 that declare component2 inside of it,

and component2 declare component3 inside of itself.

component1 can't use ViewChildren to get component3.

What is the expected behavior?

I would expect component1 to find component3

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

I want to find descendents of specific type and not only children

Please tell us about your environment:

Angular version: 2.0.0-rc.4

Browser: [Chrome 52]

Language: [ TypeScript 1.8]
Issue 1:
Every time I open app/assets/stylesheets/github/contributions.scss the app becomes unresponsive -- except I can Quit. No amount of waiting seems to allow for it to right itself. I've opened the inspector before opening the file to try to catch some hint of what's going on, but either the app becomes unresponsive before reporting errors or nothing actually errors out.

Note: This is accompanied with a CPU spike where the Atom Helper process is consuming 100%.

Not sure if this is related to #150 as I am able to load large large files from vendor/assets just fine.

Issue 2:
When I open _transition.scss It reliably freezes my whole atom. I can't even open web inspector console.
Issue 1:
System information (version)

OpenCV => 2.4.11

Operating System / Platform =>Windows 64 Bit

Compiler => python

Detailed description

Much thanks to anyone who may help,

I am using the cv2.findcirclesgrid() in python script to detect the centers of images of calibration board, but the results appear to be existing a shift between the detected centers and visual centers(from my own point of view). As follows:

I checked the blob detector this morning, it successfully extracted the circles in my pictures. So maybe this shift is not because of the blob parameters(I think so). As follows:

Anyhow, I wonder:

Whether this should happen? apparent bias of extracted centers between real position.

If the answer is 'it should not be like this', then what should I do?

Steps to reproduce

here is my code in python, appreciation for any information you may supply to me

findCircleGridAsymmetric.txt

Issue 2:
System information (version)

OpenCV => 4.2.0-dev 5265db8

Operating System / Platform => Windows 10 64 Bit

Compiler => Visual Studio 2015

Detailed description

I have a Caffe model with Slice layers. However, I'm not able to access the "implicit" outputs of the layer.

Steps to reproduce

Here is a MWE:

Model definition and weights: https://github.com/BVLC/caffe/tree/master/models/bvlc_reference_caffenet

By adding a Slice layer after the final prob layer:

layer {
name: "split"
type: "Slice"
bottom: "prob"
top: "out1"
top: "out2"
slice_param {
axis: 1
slice_point: 100
}
}

the outputs out1 / out2 can be accessed in Caffe by

net.forward()['out1']

In OpenCV, though, I got the error:

OpenCV(4.2.0-dev) Error: Unspecified error (Requested layer "out1" not found) in cv::dnn::dnn4_v20191202::Net::Impl::getLayerData, file C:\src\opencv\modules\dnn\src\dnn.cpp, line 1473

with the following code:

net = cv::dnn::readNetFromCaffe("deploy.prototxt", "bvlc_alexnet.caffemodel");
net.setPreferableBackend(cv::dnn::DNN_BACKEND_CUDA);
net.setPreferableTarget(cv::dnn::DNN_TARGET_CUDA);
cv::Mat blob, img = cv::imread("examples/images/cat.jpg");
cv::dnn::blobFromImage(img, blob, 1, cv::Size(227, 227), cv::Scalar(104, 117, 123), false/*swapRB*/, false/*crop*/);
net.setInput(blob, "data");
cv::Mat detection = net.forward("out1");

Note:

There is no problem executing net.forward("prob").

Both on CPU and CUDA backend.

I'm not sure if this is a bug or not. 🤔
Issue 1:
Currently only variables and modules which conflict with aliases give errors, for example

module A {
export var AAA: {VarInt;}
export interface AAA { IntInt; }
}

module MyModule {
var XXX : { VarExt; } // Highlighted as error - ok
// module XXX { export var VarExt; } // Also would give an error, but import statement would be highlighted. A little bit inconsisent, but ok
import XXX = A.AAA;
}

At the same time, interfaces, classes, enums and functions would not produce an error. Instead, import aliases with a same name would be silently ignored, resulting in WTF errors later in the code.

For example:

module A {
export var AAA: {VarInt;}
export interface AAA { IntInt; }
}

module MyModuleWithFunction {
function XXX() {}
import XXX = A.AAA;
XXX.VarInt; // WTF error
XXX.arguments; // No error
}

module MyModuleWithClass {
class XXX { static VarDup; IntDup;}
import XXX = A.AAA;
XXX.VarInt; // WTF error
XXX.VarDup; // No error
var i: XXX;
i.IntInt; // WTF error
i.IntDup; // No error
}

IMHO, current behavior of silently ignoring duplicate aliases is confusing and is not described in specifications.

Issue 2:
I have been having a heck of a time getting es6 promises to work with Typescript in a ASP.NET 5 project. I installed the es6-promise.d.ts via tsd install es6-promise. However, I get errors about Promise being duplicated. When I hover on the Promise declaration in the es6-promise.d.ts file, I get the error below (see the blue section ac the bottom of the image). It seems to be conflicting with some typescript definition file from a Microsoft SDK, which is obviously not part of my project.

Does anyone have an idea on why this might be happening or how I can fix this?
Issue 1:
Q
A

Bug report?
yes

Patch?
yes

Feature request?
no

BC Break report?
no

RFC?
no

Symfony version
3.2

The problem occurs when the amount of cache generated is such that writing is no longer possible on the HttpCache (e.g dedicated disk, my case).

More precisely, the temporary file created by tempnam can no longer be moved to the HttpCache cache folder.

Until then everything is not going so bad, the cache is not created but the page is displayed correctly.

Symfony/Component/HttpKernel/HttpCache/Store.php The case is provided line 412

if (false === @rename($tmpFile, $path)) {

return false;

}

The tempnam function creates a unique temporary file for each call to a page to be cached, and if the temporary folder passed as an argument is not writable, tempnam will use /tmp.

Note: If PHP cannot create a file in the specified dir parameter, it falls back on the system default. On NTFS this also happens if the specified dir contains more than 65534 files.

http://php.net/manual/en/function.tempnam.php

Therefore, as soon as the HttpCache cache is no longer writable, the /tmp fills up fairly quickly, tempnam being called on every page (since no page cache) and creating a new unique file in /tmp.

Patch:

I propose to delete the temporary file $tmpFile. It will not fix the space problem for the cache but it will no longer fill the server /tmp and will not crash the instance anymore:

httpcache.patch.txt

Thx!

Issue 2:
Symfony\Bundle\FrameworkBundle\Templating\TemplateNameParser received a new regular expression in 2.7.10, breaking the use of template names that are not in Resources/views.

E.g. a template in "src/My/SuperBundle/Whatever/Template.html.twig" could be found with "@MySuperBundle/Whatever/Template.html.twig" as template name until 2.7.9.

As of 2.7.10 the new regex in the TemplateNameParser matches said template name and thus does not use the parent's parse method of Symfony\Component\Templating\TemplateNameParser effectively not finding the template anymore.

This should not have happened in a minor release.
Issue 1:
Summary of the new feature/enhancement

Today, custom-zone-sets are stored in the zones-settings.json file, along with app-zone-history and devices trees. This makes it difficult to backup or share configurations between people / computers.

Proposed Solution

Propose moving custom-zone-sets into a directory where each custom zone setting is a separate file.

Benefits

back up and restore custom zone sets

sharing custom zone sets or specific templates with community

Issue 2:
Having the app history in the same file of the zones settings has some drawbacks:

it contains sensitive data and makes more complicated to report the zone settings without it

we need to make changes to the app history schema and that work should not effect the zones settings code path

since we have to persist the app history data more frequently than the zone settings, it's kind of pointless to process the zone settings every time we need to read/write the app history
Issue 1:
There is no environment variable equivalent to -J/--sysimage option for specifying a custom image for Julia instance. I think supporting a variable like JULIA_SYSIMAGE can be quite useful when deploying Julia for custom environment, i.e. deploying in a Docker container with custom system image baked in.

Currently, one would have to manually add an option every time or create a wrapper script to launch Julia with custom image, especially when replacing default system image is not an option (i.e. repo2docker does not allow root privileges for touching system image when using default Julia buildpak).

Issue 2:
Being able to specify this path with a variable such as JULIA_SYSIMAGE=/tmp/sysimage.so would be useful.
Issue 1:
The include/exclude clause used in aggregations like terms agg uses regex syntax to identify terms.

While this offers a lot of flexibility for matching, the list of terms supplied by a user is sometimes a fixed set of raw values and it is:

a) inconvenient for the user to have to escape these strings into "legal" regex patterns and

b) inefficient to parse and interpret these as regex patterns when a simple hashset would suffice

The proposed change is the addition of a "values" array to both include and exclude clauses:

"terms" : {
"field" : "domains.raw",
"include" : {
"values": [ "http://www.foo.com", "http://www.bar.com"]
}
}

This can be used in conjunction or instead of the existing "pattern" clause in a search. If an include or exclude statement contains a mix of regex ("pattern") and exact ("values") clauses then this would be a logical OR - a match on the regex clause OR the exact value clause would constitute a match.

@clintongormley you may have some input on this?

Issue 2:
In facets, we can filter a Terms Facet using an array of values:

{
"query" : {
"match_all" : { }
},
"facets" : {
"tag" : {
"terms" : {
"field" : "tag",
"exclude" : ["term1", "term2"]
}
}
}
}

In aggs, we can't use the same syntax anymore as IncludeExclude does not support arrays.

Same apply for include.

We can probably use | character to separate terms but it could be handy to be able to specify directly an array of terms.

cc @jpountz
Issue 1:
For English only, other languages we will close it directly.

Please answer these questions before submitting your issue. Thanks!

Before submit a new issue, please check existed issue first, to make sure your issue is not a duplicated one.

Which version of Sharding-Sphere do you using?

3.0.0M3

Which project do you using? Sharding-JDBC or Sharding-Proxy?

Sharding-JDBC

Expected behavior

there are two data sources ds-2017 and ds-2018 use year sharding database

very data sources use month sharding tabale table1..12

using create_date field in table sharding rule

query 2017-08-01 to 2018-09-01 data

Sharding-Sphere-SQL.log

select * from ds-2017.table1..12 where create_date between ? and ?

select * from ds-2018.table1..12 where create_date between ? and ?

way not

select * from ds-2017.table8..12 where create_date between ? and ?

select * from ds-2018.table1..09 where create_date between ? and ?

It's my sharding rule problem?

if database sharding rule and table sharding rule can unified processing, use the same doBetweenSharding() method then can return the specified database corresponds to the specified table

like ds-2017 contain table8..table12 ds-2018 contain table1..09

Map<String, List> result = [{ds2017, [table8,table9....,table12]}, {ds2018, [table1.....,table9]}]

please help answer this question thank you!

Actual behavior

Reason analyze

Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc

For bug report, please MUST provide the reproduce example codes (such as a github link).

Issue 2:
Bug Report

For English only, other languages will not accept.

Before report a bug, make sure you have:

Searched open and closed GitHub issues.

Read documentation: ShardingSphere Doc.

Please pay attention on issues you submitted, because we maybe need more details.

If no response anymore and we cannot reproduce it on current information, we will close it.

Please answer these questions before submitting your issue. Thanks!

Which version of ShardingSphere did you use?

master

Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?

Proxy + Agent

Expected behavior

build_info, proxy_state, proxy_meta_data_info are only exported once.

Actual behavior

build_info, proxy_state, proxy_meta_data_info will be repeatedly exported.

Reason analyze (If you can)

Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.

Example codes for reproduce this issue (such as a github link).
Issue 1:
Is your feature request related to a problem? Please describe.

Yes, as document describes, material cannot be shared by Mesh and InstanceMesh. So when I set override material of scene, it would no work on one of Mesh and InstanceMesh.

I guess this is because the material will be compiled before rendering. Once a Mesh object is rendered first, the vertexShader of the material will not contain the code blocks required by InstanceMesh.

So, for example, when I render a scene contains Mesh and InstanceMesh, and use a BokehPass which required a override material to render a depth buffer, it will trigger a visual bug.

Describe the solution you'd like

Add an overriedMaterialForInstance property to Scene, and once the overrideMaterial is set, we clone it to overriedMaterialForInstance.

Inside the renderObjects function of WebGLRenderer. we override object's material based on whether it is instanceof Mesh or InstanceMesh.

If you think the solution I proposed is feasible, I am willing to submit a PR.

Describe alternatives you've considered

None.

Additional context

None.

Issue 2:
Description of the problem

I'm having a problem where the InstancedMesh method setMatrixAt seems to fail (the matrix positions doesn't change visually) whenever I add another object with the same material object (not a clone) in the scene. No log/warning/errors are emitted.

The following briefly illustrates:

var geometry = new THREE.BoxBufferGeometry();
var material = new THREE.MeshStandardMaterial( { roughness: 0, envMap: texture });
var mesh1 = new THREE.Mesh( geometry, material );
mesh1.position.set(0, 1, 0);
scene.add( mesh1 ); // removing this line makes the instanced mesh work as intended
mesh = new THREE.InstancedMesh( geometry, material, 9 ); // same material usage
scene.add( mesh ); // This works and I can see both meshes in the scene.

var dummy = new THREE.Object3D();
dummy.position.set( 1, 5, 1 );
dummy.updateMatrix();
mesh.setMatrixAt( 0, dummy.matrix ); // Nope, doesn't work, it just stays where it's at.
mesh.setMatrixAt( 1, dummy.matrix ); // Rotation seems to be applied, but position doesn't.
// It looks like every instance is at the same place, but I don't know.

Note that if I use material.clone() at the instanced mesh declaration, the problem also goes away / is fixed, but now I have two materials, and I intend to have one for performance reasons.

A live example is available here:

jsfiddle (The problem is that you should see multiple boxes, but only 1 or 2 are visible, remove line 41 to fix)

Three.js version

Dev

r109

r108

Browser

All of them

Chrome

Firefox

Internet Explorer

OS

All of them

Windows

macOS

Linux

Android

iOS

Hardware Requirements (graphics card, VR Device, ...)

(Not applicable, as far as I know)
Issue 1:
Feature request

Is your feature request related to a problem? Please describe.

By default next.js automatically routes /api/file, we need a way to access the api through relative path. It is currently forbidden in next.js probably due to the need to support SSR, though it should be possible to supply the address where api could be accessed from the req header.

Describe the solution you'd like

add something like appAddress in context parameter of getInitialProps

Describe alternatives you've considered

.env or other configuration setting to customize, though it creates overhead for a usual use-case.

Additional context

Issue 2:
Feature request

Add hostname parameter in ctx which returns current hostname on both server and client.

Is your feature request related to a problem? Please describe.

We have 2 web apps - Next.js frontend and Django API. We use Nginx to proxy routes so both are using the same host but API is hosted under /api. And because we deliver our app to VPS we don't know the current host so we can't just use localhost.

I have to use custom _app without prerendering so my page only renders on server.

Here's my _app:

import React from 'react'
import App from 'next/app'

class CustomApp extends App {
static async getInitialProps({ Component, ctx }) {
let host

if (ctx.req) {
host = ctx.req.headers.host
} else {
host = location.hostname
}

let pageProps = {}

if (Component.getInitialProps) {
pageProps = await Component.getInitialProps({ ...ctx, host })
}
return { pageProps }
}
render() {
const { Component, pageProps } = this.props
return <Component {...pageProps} />
}
}
export default CustomApp

Describe the solution you'd like

I can make a PR with this custom getInitialProps argument so it will be accessible via ctx.hostname:

Page.getInitialProps = async ({ hostname }) => {
const res = await fetch(`${hostname}/some-proxied-api/data`)
}

Describe alternatives you've considered

Write a function getHost and call it in every getInitialProps. Not very suitable especially when you have tons of pages with using getInitialProps.
Issue 1:
I'm trying to display placeholder value in a Select if value is not selected. When user selects value it should disappear and the value should replace placeholder. However label should be displayed all the time. I can achieve it in TextField but not in Select.

Here is my try however it doesn't display anything in placeholder.

const errorObj = mapError(props);

return (<FormControl error={errorObj.error} fullWidth={props.fullWidth} margin={props.margin} required={props.required}>
<InputLabel htmlFor={props.label} shrink>{props.label}</InputLabel>
<Select input={<Input id={props.label} placeholder={props.placeholder} margin={props.margin} />} {...props as any} >
{props.children}
</Select>
{errorObj.helperText && <FormHelperText>{errorObj.helperText}</FormHelperText>}
</FormControl>)

Issue 2:
disabled is not being inherited by either Checkbox or Switch (or FormControlLabel actually) when used inside a FormControl.

I tried this:

FormControl (disabled) -> checkbox (not inherited)

FormControl (disabled) -> FormControlLabel -> checkbox (not inherited)

FormControl -> FormControlLabel (disabled) -> checkbox (inherited)

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

Expected Behavior

when setting a FormControl to disabled the inner controls (Checkbox and Switch) should be disabled as well, both if they are directly inside or wrapper around a FormControlLabel.

Current Behavior

They don't get disabled, having to resort to also put the disabled property on them as a workaround.

Steps to Reproduce (for bugs)

https://codesandbox.io/s/w2zy4yqwml

Context

Your Environment

Tech
Version

Material-UI
latest beta

React
16

browser
Chrome 62

etc
TS 2.6-rc
Issue 1:
Environment

Windows build number: Microsoft Windows [Version 10.0.18363.836]
PowerToys version: 0.18.1
PowerToy module for which you are reporting the bug (if applicable): launcher

Steps to reproduce

search a file

Expected behavior

showing files

Actual behavior

not displaying files in 0.18.1 worked in 0.18 see screenshots

Screenshots

0.18.1

0.18

Issue 2:
Environment

Windows build number: Version 10.0.18363.836
PowerToys version: v.0.18.1
PowerToy module for which you are reporting the bug: PowerToys Run

Steps to reproduce

Install PowerToys via GetWin

Run PowerToys in always admin mode

Run PowerToys Run via Alt + Space

Search for any give file / folder name

Expected behavior

Showing the file / folder which I searched for

Actual behavior

No files / folders showing up what so ever,

unless I type something like "D:\Documents..."

Screenshots

It is a normal folder, I just changed the icon.
Issue 1:
Challenge Increment a Number with JavaScript has an issue.

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

Please describe how to reproduce this issue, and include links to screenshots if possible. I think it is correct but it won't let me pass

My code:

var myVar = 87;
// Only change code below this line
myVar = ++myVar;

Issue 2:
Challenge http://www.freecodecamp.com/challenges/waypoint-bring-your-javascript-slot-machine-to-life freezes up when trying to enter code. I had started entering my code and got $($) entered when I could no longer enter anything. I also cannot reset my code or anything. I have to kill the page and get back in. If I try to go back to that page it freezes up again during loading.