WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Python's for-else construct as described for example in section 4.4, here, is sometimes very useful. (The idea is that the else clause will be executed after the loop completes normally, but not if we break out of the loop.) Could something similar be added to Julia?

As an example, code like:

converged=true
for i=1:n
if !isapprox(y[i],ynew[i])
converged=false
break
end
end
if converged
return y
end

could become:

for i=1:n
if !isapprox(y[i],ynew[i])
break
end
else
return y
end

Issue 2:
Allow and else clause on for and while loops that executes if the loop never executes.
Issue 1:
I hit CTRL+Z one too many times and it displayed the code from the previous challenge. I did a hard refresh and still have the code you see below. A screenshot is attached as well.

adjust-the-hue-of-a-color has an issue.

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

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

<style>
body {
background-color: white;
}
header {
background-color: #09A7A1;
color: white;
padding: 0.25em;
}
h2 {
color: #09A7A1;
}
button {
background-color: #FF790E;
}
footer {
background-color: #09A7A1;
color: white;
padding: 0.5em;
}
</style>
<header>
<h1>Cooking with FCC!</h1>
</header>
<main>
<article>
<h2>Machine Learning in the Kitchen</h2>
<p>Join this two day workshop that walks through how to implement cutting-edge snack-getting algorithms with a command line interface. Coding usually involves writing exact instructions, but sometimes you need your computer to execute flexible commands, like <code>fetch Pringles</code>.</p>
<button>Sign Up</button>
</article>
<article>
<h2>Bisection Vegetable Chopping</h2>
<p>This week-long retreat will level-up your coding ninja skills to actual ninja skills. No longer is the humble bisection search limited to sorted arrays or coding interview questions, applying its concepts in the kitchen will have you chopping carrots in O(log n) time before you know it.</p>
<button>Sign Up</button>
</article>
</main>
<br>
<footer>&copy;2016 FCC Kitchen</footer>

Issue 2:
Steps to reproduce:

go to one of a challenge

click "Map"

click another challenge

repeat step 2 and 4 as many as you want

CTRL-Z (undo) in the editor will restore the editor to previous challenge

Expectation:

when a challenge is opened, the CTRL-Z (undo) history expected to be cleared

Related with this

Codemirror has ability to clear undo history but in beta site we are using React (react-codemirror)

So the way to handle it might be different
Issue 1:
The capability has been discussed here and here and here. I would like to see a built-in way of doing this in the Typescript language itself. Sort of like a deserializer.

JSON is the language of data. Typescript will have greater adoption if there is an easy way to 'cast' a JSON string (or the javascript object created from it) into an instance of a Typescript class. If it is just the javascript object, it doesn't have methods of the class and items initialized with the constructor.

In the links above, one challenge is complex classes, ie: instance of Car class that has instance of Engine class in the same JSON. There is not an elegant way of doing this. The closest is to adopt a convention for metadata in the JSON which shows the subclass name. For example, a property like name = "Engine", so the 'deserializer' knows what type of class to instantiate for the subclass items. One suggestion to make the convention less arbitrary would be to use metadata that Typescript adds to the javascript when using Typescript's reflection. If that was the approach, it would probably make sense to also create a 'serializer' that when stringifying the Typescript instance, also included the necessary metadata.

Could there be a way to accomplish this with Typescript declaration merging or mixins?

Issue 2:
Motivation

The shape of JSON stored in files can be validated using JSON schema. However, JSON schema cannot be used to ensure the stored JSON corresponds to a specific TypeScript interface.

Understandably, most JSON tends to be stored in databases. However, there are many cases where small documents are stored on the file system in order to permit quick editing. Two common examples are config and resource files. The JSON in these files is loaded at runtime and accessed by JavaScript code, thereby necessitating they correspond to specific TypeScript interfaces.

We have a small but significant use case for this scenario.

Proposal

Interface declarations file user.d.ts

declare module user {

interface Address {
house: number;
street: string;
}

interface User {
name: string;
address:Address;
age: number;
}
}

TypeScript JSON file user.json.ts

/// <reference path="user.d.ts" />
user.User: { <----------- Annotation
"name": "Joe Bloggs", /*Comment*/ // Permit comments
"address": {
"house": "1", // Error: Number expected
street: "London" // Error: Names must be quoted
},
"age": 55 // Error: Missing comma
"id": 101 // Error: Invalid property
}

Compiled output (after errors are corrected): File user.json

{
"name": "Joe Bloggs",
"address": {
"house": 1
"street": "London"
},
"age": 55
}
Issue 1:
After installing tensorflow, I found only one tensorflow folder in the path tensorflow/inlcude. In fact, it shoud consist of many other folders such as third_party, google, Eigen and so on. I don't known the reason why I could not find these folders. The way which I used to install tensorflow is "sudo pip install --upgrade https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.7.1-cp27-none-linux_x86_64.whl"

Thanks

Issue 2:
Will you make it possible to install and update it by distributions package systems (deb & rpm)? You can make an official repository.

Will you make it possible to install a Tensorflow-devel package, which gives acces to C++ headers to make programs, which link to Tensorflow?
Issue 1:
Current behaviour

Every time I build the react app the same bundle with the same hash name is built, Because of this the files get cached and the website loads the old assets. Even if I have done changes in any existing (eg: css) file still the built is creating the bundle with the same name.

Expected behaviour

Every time I build the app the hash name should change, Where can I configure that in my react app.

My react version is 16.7.0, I have created my project using the create-react-app command

Issue 2:
Describe what you were doing when the bug occurred:

I was profiling a grid performance when rendering with 100 rows

Then I was moving between the profiled data

When clicked on the Ranked tab, the console showed error and a button to report it.

Please do not remove the text below this line

DevTools version: 4.2.1-3816ae7c3

Call stack: at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:157108

at Map.forEach ()

at commitIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:157054)

at e.getRankedChartData (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:157577)

at vl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:314907)

at gi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:59907)

at jl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:107381)

at Lc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:92715)

at Pc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:92640)

at wc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:89544)

Component stack: in vl

in div

in div

in div

in wo

in Unknown

in n

in Unknown

in div

in div

in Li

in $e

in dn

in Ca

in Pc
Issue 1:
What problem does this feature solve?

In large applications, there are often families of components, within which components share most of the look/behavior, but vary slightly. This makes it desirable to reuse code between them. Some reuse can be achieved with slots, other is better with component inheritance. But while most of the parent component definition can be smart-merged with child definition, the template has to be either kept as is, or replaced entirely.

I have seen multiple approaches to reusing component templates:

Write very granular appearance-only components with many slots. While this sounds good in theory, in practice the granularity needed often makes this approach into an obstruction rather than abstraction.

Implement all required variation in a single component and make it configurable with slots and props. The downside is that you are stuck with a god-component, which is hard to maintain and extend further.

Extend the component, and use <parent>...</parent> in the child template, using slots as "parts". The downside is that you have to "proxy" all props and slots down and events up. This is very cumbersome and fragile.

Split the component in question further into "part" components, so that you can override only certain part. This gets tedious very quickly, especially when you need v-bind or v-on inside of the overridden part.

Define "part" render functions among the methods, so that they can be overridden. The downside is that you can not really write such parts in template DSL, and the parts get disconnected from the main template, which makes it harder to understand.

What does the proposed API look like?

The Pug template engine (former Jade) implements a feature called blocks, which allows templates to extend other templates while overwriting (or extending) certain named blocks. I think this feature ported to Vue would fill the gap described above, and allow the templates to be more reusable.

A possible syntax:

<!-- parent.vue -->
<template>
<div>
<block name="header">
<h3>Default header</h3>
</block>
<block name="body">
<p>Default body</p>
</block>
<block name="footer">
<!-- no footer by default -->
</block>
</div>
</template>

<!-- child.vue -->
<!-- there is no root element (only blocks), so the parent template is reused -->
<template>
<block name="header">
<h2>More pronounced header</h2>
</block>
<block name="footer">
<p>Footer added by the child</p>
</block>
</template>

Issue 2:
What problem does this feature solve?

Subject pretty much sums it all up. More often than not a property name matches a variable name. Typing :value="value" :options="options" looks a bit excessive.

Feature is strictly cosmetics but it would help us to write less and more expressive code.

What does the proposed API look like?

<component :prop1 :prop2 /> would automatically pass prop1 and prop2 to the component. If prop1/prop2 is not defined undefined would be passed instead. Additionally a warning would be printed to the console.
Issue 1:
Even without any customization, the following error is produced in css file:

A less error occured trying to build your bundle. You've likely entered an invalid input into the less variable field. Check your syntax and try again!

thanks!

{"type":"Parse","message":"missing opening {","filename":"bootstrap.css","index":373685,"line":6379,"column":0,"extract":["","",null]}

Issue 2:
Hi - I am trying to use the v2.3.1 customize and download feature. Regardless of whether I change any of the variables I get 2 error.txt files in the CSS folder and no .css files.

The error text message reads:

"A less error occured trying to build your bundle. You've likely entered an invalid input into the less variable field. Check your syntax and try again!

thanks!

{"type":"Parse","message":"missing opening {","filename":"bootstrap.css","index":372259,"line":6292,"column":0,"extract":["}","",null]}"
Issue 1:
Migrated issue, originally created by Asher Leon Manning (@A-Manning)

At line 2523 in sqlalchemy\sql\compiler ,

text += "(%d)" % type_.length

causes a TypeError, as the '%d' expects a number, not 'max'

Issue 2:
Migrated issue, originally created by adridg (@adridg)

With SQL Server, you can create columns of type VARCHAR(MAX). This is the modern rendition of NTEXT or TEXT, and SQL Alchemy translates String() into VARCHAR(MAX). With SQL Server 2012 or later, this happens automatically, and it's described in http://docs.sqlalchemy.org/en/latest/changelog/changelog_10.html#change-f520106ec3455eaa056110c048aa4862 .

However, on reflection (through the inspector) you can end up with a VARCHAR (sql type-)object that has a length of "max" (i.e. a string). Printing that object causes an exception. As a very simple and contrived example:

from sqlalchemy import VARCHAR

print VARCHAR()

print VARCHAR(80)

print VARCHAR("max") # Fails in _render_type_string

Attached find a simple test program that creates a table with a String() column, then reflects it to discover the VARCHAR(MAX) column.

Attachments: t.py
Issue 1:
Hi,

Use-case:

I have a directive which performs my custom componetns search via ContentChildren

I have multiple re-usable container components

I want to use "search" directive in the template of these components

Here is plunker with STR:

Open plunker

Open browser's console

"dump inputs from container" dumps the result of "search" directive. Directive was used in container's component template. Array will be empty (reproduction of the issue)

At the same time "dump inputs from app" dumps 3 existing input components. Directive was used for container in app's template

Issue 2:
I'm submitting a ...

[] bug report
[ x ] feature request
[ ] support request

Current behavior

Querying ngContent with a superclass doesn't work.

Expected behavior

Querying ngContent with a superclass should work.

Minimal reproduction of the problem with instructions

Currently, if you have a component that uses ng-content inside of its template, it can render out whatever you pass to it. (ie. any other component or html). However referencing this component is only possible if you know exactly what component it will be.

@ContentChildren(Component1) myComponent;

In the case where you don't know, you can't select it. My request would be that you can select the components off a super class. Say, Component1 extends MySuperClass and Component2 extends MySuperClass you can select their instances like so:

@ContentChildren(MySuperClass) myComponents;

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

The motivation behind this is allowing dynamic components to be injected yet allow their instance to be referenced by their parent component. In my particular use-case I am allowing the developer to build pages of a wizard containing whatever component they need -- I then assume that they have a class or interface on them that they share so that I can call functions on them like, say, validate so I can move forward in the wizard.

<wizard>
<page>
<component1></component1>
</page>
<page>
<component2></component2>
</page>
</wizard>

Please tell us about your environment:

Windows 10, Angular 2.0.1, WebStorm, Webpack/Gulp

Additional Notes

A workaround currently is instead to pass the components in as a config (say an array of components) and then refer to them that way. However it would be nice to be able to reference the instances of the components injected dynamically via ng-content

I would also think that this may be related to #8580 in the sense that I would expect these two scenarios to work the same. The linked issues mentions that super class selectors should work (at least when the components aren't dynamically defined).
Issue 1:
xref #10577 (has test for duplicates with empty data)

I don't expect this is the correct behavior, although it's always possible I'm doing something wrong. Importing data using the names keyword will clobber the values of columns where the name is duplicated. For example:

from StringIO import StringIO
import pandas as pd

data = """a,1
b,2
c,3"""
names = ['field', 'field']

print pd.read_csv(StringIO(data), names=names, mangle_dupe_cols=True)
print pd.read_csv(StringIO(data), names=names, mangle_dupe_cols=False)

returns

field field
0 1 1
1 2 2
2 3 3
field field
0 1 1
1 2 2
2 3 3

However, this produces the correct result:

df = pd.read_csv(StringIO(data), header=None)
df.columns = names
print df

field field
0 a 1
1 b 2
2 c 3

Interestingly, it works if the field names are in the header:

data_with_header = "field,field\n" + data
print pd.read_csv(StringIO(data_with_header))

field field.1
0 a 1
1 b 2
2 c 3

Is this a bug or am I doing something wrong?

Issue 2:
I find R's expand.grid() function quite useful for quick creation of example datasets. For example:

expand.grid(height = seq(60, 70, 5), weight = seq(100, 180, 40), sex = c("Male","Female"))

height weight sex
1 60 100 Male
2 65 100 Male
3 70 100 Male
4 60 140 Male
5 65 140 Male
6 70 140 Male
7 60 180 Male
8 65 180 Male
9 70 180 Male
10 60 100 Female
11 65 100 Female
12 70 100 Female
13 60 140 Female
14 65 140 Female
15 70 140 Female
16 60 180 Female
17 65 180 Female
18 70 180 Female

A simple implementation of this for pandas is easy to put together:

def expand_grid(dct):
rows = itertools.product(*dct.values())
return pd.DataFrame.from_records(rows, columns=dct.keys())

df = expand_grid(
{'height': range(60, 71, 5),
'weight': range(100, 181, 40),
'sex': ['Male', 'Female']}
)
print(df)

Do people think this would be a useful addition?

If so, what kind of features should it have beyond the basics? A dtypes argument, specifying which column should be the index, etc.?

I'm also not sure if expand_grid is the most intuitive name, but given that it's duplicating

R functionality, maybe it's best just to leave it as is.
Issue 1:
Summary of the new feature/enhancement

Adding the possibility to customize what shortcuts you want to see in Shortcut Guide and even add custom ones.

Then we can all add the Win+. shortcut so we don't always have to google it on Bing 🙏

Issue 2:
Summary of the new feature/enhancement

When activating PowerToys Run, the search bar always appears in the center of the screen, sometimes hiding relevant content to enter into the search bar. I would like the ability to move the search bar to whatever location on the screen by dragging it. PowerToys Run should also remember where it was last placed so it will always launch from that location.

For example, I'm a longtime user of Launchy (even on Windows 10), and always would place it on the bottom left of my screen. I would like to do the same with PowerToys Run

Proposed technical implementation details (optional)
Issue 1:
System information (version)

OpenCV => 4.11

Operating System / Platform => Raspberry Pi 4

Compiler => g++(Raspbian 8.3.0-6+rpi1)

Detailed description

Always download face_landmark_model.dat, even though it was not the first time run cmake.

It wastes so many time.

note like that:

-- data: Download: face_landmark_model.dat

Steps to reproduce

My cmake options like this:

cmake -D CMAKE_BUILD_TYPE=RELEASE \
-D CMAKE_INSTALL_PREFIX=/usr/local \
-D INSTALL_C_EXAMPLES=ON \
-D INSTALL_PYTHON_EXAMPLES=ON \
-D ENABLE_NEON=ON \
-D ENABLE_VFPV3=ON \
-D OPENCV_ENABLE_NONFREE=ON \
-D BUILD_TESTS=OFF \
-D WITH_V4L=ON \
-D WITH_QT=ON \
-D WITH_OPENGL=ON \
-D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules \
-D PYTHON_DEFAULT_EXECUTABLE=/usr/bin/python3 \
-D BUILD_EXAMPLES=ON ..

Issue 2:
System information (version)

OpenCV => 4.2

Operating System / Platform => Windows 64 Bit

Compiler => Visual Studio 2015

Detailed description

PNG format starts to support EXIF information since 2017, but somehow using IMREAD_COLOR to read a PNG file does not respect the orientation

Attached Capture.png and Capture.jpg are two images both with same EXIF orientation information, try both and you can see the difference.

Steps to reproduce

// C++ code example
cv::Mat cvImgColor = cv::imread("Capture.png", cv::IMREAD_COLOR);
// Expected: cols = 333, rows = 280
// Actual: cols = 280, rows = 333
Issue 1:
Using go 1.5.1, I got this crash in a process that allocates many GB of RAM in several maps. Probably a duplicate of #13227 but I'll let you guys decide that! It's repeatable, but involves an enormous and confidential data set.

$ go env
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/sergey/go"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GO15VENDOREXPERIMENT="1"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0"
CXX="g++"
CGO_ENABLED="1"

fatal error: unexpected signal during runtime execution
[signal 0xb code=0x1 addr=0xf1 pc=0x45f51b]

runtime stack:
runtime.throw(0xb744a0, 0x2a)
/usr/local/go/src/runtime/panic.go:527 +0x90 fp=0x7f9a052d0d70 sp=0x7f9a052d0d58
runtime.sigpanic()
/usr/local/go/src/runtime/sigpanic_unix.go:12 +0x5a fp=0x7f9a052d0dc0 sp=0x7f9a052d0d70
runtime.munmap(0x7f99eb1b1000, 0xb7ed28, 0x41c85f, 0x7f99eb1b1000, 0xb7ed28, 0xe00f60, 0x7f99eb1b1000, 0x16fda5, 0x1853d3, 0x41c07c, ...)
/usr/local/go/src/runtime/sys_linux_amd64.s:266 +0x1b fp=0x7f9a052d0dc8 sp=0x7f9a052d0dc0
runtime.sysFree(0x7f99eb1b1000, 0xb7ed28, 0xe00f60)
/usr/local/go/src/runtime/mem_linux.go:103 +0x34 fp=0x7f9a052d0de0 sp=0x7f9a052d0dc8
runtime.gcCopySpans()
/usr/local/go/src/runtime/mgc.go:1600 +0xdf fp=0x7f9a052d0e18 sp=0x7f9a052d0de0
runtime.gcMark(0xbe16c05dffa)
/usr/local/go/src/runtime/mgc.go:1415 +0x5c fp=0x7f9a052d0e80 sp=0x7f9a052d0e18
runtime.gc.func3()
/usr/local/go/src/runtime/mgc.go:1089 +0x23 fp=0x7f9a052d0e90 sp=0x7f9a052d0e80
runtime.systemstack(0xc820024000)
/usr/local/go/src/runtime/asm_amd64.s:262 +0x79 fp=0x7f9a052d0e98 sp=0x7f9a052d0e90
runtime.mstart()
/usr/local/go/src/runtime/proc1.go:674 fp=0x7f9a052d0ea0 sp=0x7f9a052d0e98

goroutine 66 [garbage collection]:
runtime.systemstack_switch()
/usr/local/go/src/runtime/asm_amd64.s:216 fp=0xc8201af498 sp=0xc8201af490
runtime.gc(0x0)
/usr/local/go/src/runtime/mgc.go:1097 +0x3d0 fp=0xc8201af790 sp=0xc8201af498
runtime.backgroundgc()
/usr/local/go/src/runtime/mgc.go:897 +0x3d fp=0xc8201af7c0 sp=0xc8201af790
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1696 +0x1 fp=0xc8201af7c8 sp=0xc8201af7c0
created by runtime.startGC
/usr/local/go/src/runtime/mgc.go:870 +0x186

Issue 2:
I propose to change both Go package archives and Go object files to use the more standard zip archive format.

In contrast to ar archives, zip archives admit efficient random access to individual files within the archive

and also allow decisions about compression on a per-file basis.

The result for Go will be cleaner access to the parts of a package archive

and the ability later to add compression of individual parts

as appropriate.

See golang.org/design/14386-zip-package-archives for details.
Issue 1:
Description of the new feature/enhancement

Ability to specify a list of command(s) to be ran upon opening a new terminal. This would be extremely useful if users wanted to configure their terminal upon opening a new tab, for example, I would like that once I open a new CMD instance it would go to a specific directory (cd ...).

It's obvious there may need to be different lists for different terminals.

Issue 2:
Environment

Windows build number: 10.0.18363.0
Windows Terminal version: 0.6.2951.0

Any other software? Nope

Steps to reproduce

Start Terminal

Focus another window

Re-focus Terminal by clicking on the active tab

Enter text using your keyboard

Expected behavior

Raising the Terminal window should focus the text area no matter how you do it.

Works as expected if you click any other tab than the currently active.

Actual behavior

Text input is ignored even though the Terminal window has focus. Text input is restored when clicking the text area or focusing another tab.
Issue 1:
Opening a modal shifts the page layout left by adding the class .modal-open to body.

body.modal-open has: padding-right: 13px;

Environment:

Bootstrap 3.2.0

Firefox 32.0 (Linux)

Issue 2:
re: #9855

in 3.2.0, when body has a scrollbar, it's content now stays in place when modal is opened (padding is added to the body).

But fixed top navbar, having position: fixed, left: 0 and right: 0, now jumps to the right when modal is opened, as it ignores padding-right on the body.