WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
I can't explain the difference between the two arrays built via the comprehension syntax.

julia> [a for a in ntuple(3, i -> i)]
3-element Array{Any,1}:
1
2
3

julia> xdump(ntuple(3, i -> i))
(Int64,Int64,Int64) (1,2,3)

julia> ntuple(3, i -> i) === (1, 2, 3)

julia> [a for a in (1, 2, 3)]
3-element Array{Int64,1}:
1
2
3

Issue 2:
_ _ _(_)_ |
(_) | (_) (_) | A fresh approach to technical computing
_ _ _| |_ __ _ |
| | | | | | |/ _` | | Version 0.0.0-prerelease
| | |_| | | | (_| | | Commit 335d1ef401 (2012-03-04 23:47:29)
_/ |\__'_|_|_|\__'_| |
|__/ |

julia> x = 5
5

julia> typeof(x)
Int64

julia> typeof([i | i = 1:5])
Array{Int64,1}

So far, so good.

julia> typeof([i | i = 1:x])
Array{Any,1}

Wat.

(with apologies to https://www.destroyallsoftware.com/talks/wat)
Issue 1:
Description

Hook for AWS SecretsManager

Use case / motivation

Simplify interaction with AWS's SecretsManager service

Issue 2:
Apache Airflow version

2.2.3 (latest released)

What happened

In case within the DAG definition we use both params and on_success_callback then after triggering the DAG from the UI (option "Trigger DAG") and the finish of the successful DAG run I got the DAG Import Errors error displayed in the UI.

Issue is related with the _serialize_params_dict method of BaseSerialization class.

Part of the error message:

if f'{v.__module__}.{v.__class__.__name__}' == 'airflow.models.param.Param':
AttributeError: 'str' object has no attribute '__module__'

In consequence there is also no update in the serialized_dag table of backend db.

Additionally:

using the script provided in this ticket #19471 results in the successful serialization

making any change to the code results in the successful serialization

So error occurs only after the successful DAG run from UI (I did not check the output of the run from CLI or just scheduled run)

In case we remove the params or on_success_callback attribute then there is no serialization error.

To confirm this issue I set up completely new Airflow instance in separate virtualenv and still had the same issue.

What you expected to happen

Successful serialization after the successful DAG run

How to reproduce

To reproduce this error I prepared very simple DAG presented below.

Additional information about the setup:

executor = LocalExecutor

sql_alchemy_conn = Postgres db

from airflow import DAG
from airflow.utils import timezone
from airflow.operators.dummy import DummyOperator
from airflow.models.param import Param

def func_on_success(context):
pass

with DAG(
dag_id="test",
start_date=timezone.datetime(2022, 1, 1),
schedule_interval='@once',
params={"param_test": Param("param_value_test")},
on_success_callback=func_on_success
) as dag:
DummyOperator(task_id='task_1')

After successful execution of this DAG through "Trigger DAG" option in the UI the error should be displayed (of course after refresh of the webpage).

Operating System

MacOS 12.1

Versions of Apache Airflow Providers

n/a

Deployment

Virtualenv installation

Deployment details

executor = LocalExecutor

sql_alchemy_conn = Postgres db

Anything else

There is one scenario in which there will be no error:

make some changes to the DAG code

in consequence DAG is serialized automatically

trigger DAG and finish it successfully within the min_serialized_dag_update_interval second

then there will be no error because serialization process will not start after the DAG run (at least this is my explanation).

Are you willing to submit PR?

Yes I am willing to submit a PR!

Code of Conduct

I agree to follow this project's Code of Conduct
Issue 1:
https://ibb.co/eEdyfK

There's no search bar

Issue 2:
Steps to Reproduce

I cloned your repository and opened (ex.) flutter_gallery example project in Android Studio.

When I go to pubspec.yaml flutter packages get fails with following message:

Running "flutter packages get" in flutter_gallery...
Package collection has no versions that match 1.14.5 derived from:
- async 2.0.6 depends on version ^1.5.0
- flutter 0.0.0 depends on version 1.14.5
- flutter_gallery depends on version 1.14.6
pub get failed (1)

I tried flutter packages upgrade - same error.

Flutter upgrade - Already up to date.

If I click on 'Get Dependencies' I get:

Resolving dependencies...
Package connectivity has no versions that match 0.3.0 derived from:
- flutter_gallery depends on version 0.3.0

Flutter doctor -

[√] Flutter (Channel beta, v0.1.5, on Microsoft Windows [Version 10.0.16299.248], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK 27.0.3)
[√] Android Studio (version 3.0)
[√] IntelliJ IDEA Ultimate Edition (version 2017.3)
[√] Connected devices (1 available)

Any idea how to fix this?
Issue 1:
I am trying to create a group that consists of THREE.Line and THREE.Mesh:

var line = new THREE.Line(text3d, lineMaterial);
var mesh = new THREE.Mesh(text3d, faceMaterial);
var group = new THREE.Object3D();
group.add(line);
group.add(mesh);

Unfortunately, only the "line" is rendered to the scene. If I change the order of adding to the group, that is that if I add "mesh" to the group before "line", then only "mesh" is rendered.

Of course, I want both elements to be rendered.

Any help?

PS. Great work on three.js, keep it up!

Issue 2:
In SpritePlugin.js line 190

if ( material.map && material.map.image && material.map.image.width ) {
//RENDER

My Code

//Used as the sprites map
this.miniMapTexture = new THREE.WebGLRenderTarget( 512, 512, { minFilter: THREE.LinearFilter, magFilter: THREE.NearestFilter, format: THREE.RGBFormat }
);
//Code below causes miniMapTexture to render properly
this.miniMapTexture.image = {};
this.miniMapTexture.image.width = <any number>;

The sprite with a RTT as a map never gets rendered because this.miniMapTexture.image is not set. I set the map.image to [] and map.image.width to 512 and it rendered properly.

Removing the restrictions on material.map.image or adding values to the RTT should fix this.
Issue 1:
Challenge Name

Build a Tribute Page

Issue Description

Please update this step in the instructions for setting up CodePen? Also in the video.

Adding Bootstrap to CodePen now defaults to the alpha of V4 of Bootstrap, so the Bootstrap V3 code that I learned on FCC (like my columns) wasn't working originally. Maybe let others know and encourage them to add Bootstrap to CodePen with this link?: https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css Might save them some time. Thank you!

Browser Information

Browser Name, Version: Chrome Version 57.0.2987.98 (64-bit)

Operating System: Mac OS 10.12.3 (16D32)

Mobile, Desktop, or Tablet: Desktop

Your Code

Screenshot

Issue 2:
Challenge Name

https://www.freecodecamp.com/challenges/get-set-for-our-front-end-development-projects

Issue Description

As of today Codpen default quick-add is Bootstrap.4 which has some differences from the 3.3.7 version that gets taught during the lessons.

I have noticed and increased number of Camper asking for help in chat asking why their code was not behaving as expected all due to them using version 4.

I propose to amend the description and provide the link to the version 3.3.7 and let the camper insert that.

It's also worth mentioning that in case we proceed with this change we have to change the .gif accordingly.

[edit]

The text I'm referring to is at step 6/7:

Click the gear in the upper left hand corner of the CSS box, then scroll down to "Quick add" and choose Bootstrap.

By doing so the camper will inevitably add the version 4.

We could change it with:

Click the gear in the upper left hand corner of the CSS box, then in the text field add this link

https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css.

And perhaps leaving a note that using the dropdown will load the Alpha version, advising that may encounter some differences in syntax with the lessons's examples.
Issue 1:
Bug report

To Reproduce

I'm working on reproducing, but next.js provides zero information about what's happening, so it's nearly impossible for me to actually identify where the problem is. All I know is that my code isn't working.

Expected behavior

Clicking this component should redirect to the about page.

<Link href="/about">About</Link>

A meta issue: If it does not redirect to the about page, next.js should provide some debug output to explain why it's not working. It's hard to isolate a bug when the entire HMR system is blackboxed.

System information

macOS

chrome

Next.js v 8.0.0

Additional context

I'm using a custom server and clean routes. The clean route pages do load properly, but the other pages in the "/pages" directory do not load properly. If I navigate directly to the url (eg. /about), the About page does load.

This might be related to #6317 and #6497

Issue 2:
const app = next({
dev,
dir:'./src'
})

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

Expected Behavior

It should load all the plugins in my .babelrc. It seems like it doesn't load my .babelrc and doesn't load the presets/

Current Behavior

You may need an appropriate loader to handle this file type. | layout | }) => ( | <div> | <Container> | <TextContainer>

Steps to Reproduce (for bugs)

Create a custom server and a custom .babelrc

Config a custom dir like:

const app = next({
dev,
dir:'./src'
})

run server
Issue 1:
VSCode Version:0.10.11

OS Version: Windows 10, Mac OSX El Captain

Hi, I'm developing console-wrapper , that is an extension for javascript console.log (other languages support will be added soon) and I need some access for clipboard content in Extensions API. I think this methods should be enough for most of cases:

vscode.clipboard.getContent()

vscode.clipboard.setContent()

Some event handlers should be useful, too, like:

-vscode.clipboard.beforeContentLoad()

-vscode.clipboard.onContentLoad()

-vscode.clipboard.onContentLoaded()

Steps for the extension:

user copy some text;

when ctrl+shift+q text is wrapped with console.log and inserted at below line.

hugs,

Issue 2:
Support writing (and maybe reading) the system clipboard.

Why I need it: I want to write an extension that will take the contents of the current editor, modify it (by escaping < and >) and then copy that modified text to the clipboard.
Issue 1:
When single layer network math is described you have following:

"""If we write that out as equations, we get:"""

after that comes picture with weight multiplications, but there should be

W_1,1_x_1 + W_1,2_x_2 + W_1,3_x_3 + b_1

etc..

Instead there written:

W_1,1_x_1 + W_1,2_x_1 + W_1,3_x_1 + b_1

etc..

Please correct me if I am mistaken.

Issue 2:
The following image on the Beginner's tutorial page is wrong:

Here is a corrected version:
Issue 1:
responsiveness goes south when one of the cells is very long

Notice there is no scrollbar. the entire screen is resized

maybe overflow:hidden / text-overflow:ellipsis; could do the trick

Issue 2:
Using .table-reponsive only works on the smallest screen size.

Solution 1: Use @grid-float-breakpoint so it becomes responsive when the navbar does (currently what we do in projects)

Solution 2: Use another variable that defaults to @screen-sm-max that can be overwritten in another less file
Issue 1:
by alex.gaynor:

Trying to load a PKCS8 DSA key fails with the error:

ERROR: asn1.StructuralError{Msg:"tags don't match (16 vs {class:0 tag:13 length:45 isCompound:true}) {optional:false explicit:false application:false defaultValue:<nil> tag:<nil> stringType:0 set:false omitEmpty:false} pkcs8 @2"}

An example of such a key is available at
https://raw.githubusercontent.com/pyca/cryptography/master/vectors/cryptography_vectors/asymmetric/PKCS8/unenc-dsa-pkcs8.pem

It can be successfully parsed by OpenSSL:

$ cat ./vectors/cryptography_vectors/asymmetric/PKCS8/unenc-dsa-pkcs8.pem | openssl
pkcs8 -nocrypt | openssl dsa -text -noout
read DSA key
Private-Key: (1024 bit)
priv:
00:a5:35:a8:e1:d0:d9:1b:ea:fc:8b:ee:1d:9b:2a:
3a:8d:e3:31:12:03
(continued)

OpenSSL's documentation claims that the specification for this can actually be found in
PKCS#11 (https://www.openssl.org/docs/apps/pkcs8.html#STANDARDS)

Issue 2:
In http://play.golang.org/p/RoelsmSVrI, this statement yields two errors:

_ = []byte{"foo"}
// cannot convert "foo" to type byte
// cannot use "foo" (type string) as type byte in array element

One seems like plenty.

FWIW, a similar pair of errors is emitted for other types T in []T{"foo"}.
Issue 1:
This was exposed by #8200 and "fixed" by #8218, but the underlying problem that caused the segfault to randomly show up and disappear when rebuilding julia is probably still exists.

To summarize the thread in #8200, there's a bug that causes a segfault. However, it only affects some builds. Rebuilding can make the bug appear or disappear, and running with make -j n, for different n, seems to affect the probability of a bad build.

cc @StefanKarpinski , since he seemed interested in this.

Issue 2:
Based on the discussion here, we need to investigate if sparse() can be sped up.

https://groups.google.com/forum/#!topic/julia-users/X8Jca4SZMxo

Potential opportunities include experimenting with different ways of sorting inputs, avoiding the use of the generic combine function, @inbounds, etc.

The following example takes 1.7 seconds for me:

s = sprand(70000,70000,0.001)
Issue 1:
Seen a few usages of this already:

<my-custom-element />

HTML5 spec says this is opening tag (previous versions handled it differently) and thus this fails silently and swallows up any following DOM. Compiler should probably warn / throw here if possible.

Issue 2:
Advantages:

We could use it in WebWorker, Server side, or with native renderers.

Proper camel casing. (We can get rid of inner-html vs innerHTML) #4923

Errors have proper line numbers.

We can rely on attribute order (not sure if it would be relevant)

We could support self closing tags <name /> for custom elements

No need to ship parser when doing offline compilation.

/cc: @pkozlowski-opensource, @gdi2290, @tbosch
Issue 1:
This seemed to have started recently, but I'm not sure which version of electron exactly. I've reproduced it on 0.36.4 and 0.36.5.

When sending an object over ipc from the main process, additional references to the same object end up being null. The first 'instance' of that property on state makes it to the client, but any additional references end up null.

const state = {}
const object = { 'prop': 1 }

state.firstReference = object
state.brokenReference = object // brokenReference ends up null on the client

win.webContents.on('did-finish-load', function() {
console.log('sending state', state)
win.webContents.send('update', state)
});

Here's a repo that reproduces this:

https://github.com/bmathews/electron-ipc-bug

Issue 2:
I came across a very interesting scenario. There was some missing information in a collection that I sent between two processes.

Assume the scenario, Renderer and Process.

If I have an array that contains multiple entries of the same object reference, only the first object will be provided to the receiving side of the message -- the other entries will be null.

Renderer

import {ipcRenderer} from 'electron';
var theObject = {foo: 'bar'};
var theList = [theObject, theObject, theObject];
ipcRenderer.send('test', theList);

Main Process

import {ipcMain} from 'electron';

ipcMain.on('test', (evt, data) => {
console.log(data);
// this will output [{foo: 'bar'}, null, null];
});

It is only when the object references are distinct from each other does the information remain intact. For example, If we do

Renderer

import {ipcRenderer} from 'electron';
var theObject = {foo: 'bar'};
// create new object references for the other two entries, such that all entries are unique by reference
var theList = [theObject, {...theObject}, {...theObject}];
ipcRenderer.send('test', theList);

Main Process

import {ipcMain} from 'electron';

ipcMain.on('test', (evt, data) => {
console.log(data);
// this will output [{foo: 'bar'}, {foo: 'bar'}, {foo: 'bar'}];
});

Then the proper information will be received.

I'm not sure if this is a problem with Chromium, and how virtual address space between threads is propagated when sending information between two processes, but clearly a collection of the same object references struggles to be passed around unless they are all distinct references.
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 a feature request that matches the one I want to file, without success.

Electron Version

12.0.0

What operating system are you using?

Other Linux

Operating System Version

Centos 8

What arch are you using?

x64

Last Known Working Electron version

No response

Expected Behavior

win.webContents.print should print a non blank page when configured in silent mode in linux.

Actual Behavior

win.webContents.print doesn't print anything.

Testcase Gist URL

https://gist.github.com/tomaspiaggio/0c0d259d88256b81794f6f1430b3e260

Additional Information

I've encountered this problem both on Ubuntu 18.04 and Centos 8. It works both on Windows 10 and macOS 10.15.7.

The printer I'm using is a Brother QL-800 (thermal label printer, 62mm x 100mm). The OSs have the correct drivers, and the printer is set to default. I've tried setting the device name manually on the print options unsuccessfully.

What's the problem?

The win.webContents.print does not work on linux when configured on silent mode.

I've replicated the problem on two other printers (another QL-800, and a QL-700)

Why do I think that this is an electron bug?

When I set silent to false, it works

Printing test prints directly on the printer works fine

Print to pdf works

window.print works

behaviour changes between linus and windows/macos

On previous versions (11.1.1), the printer inconsistently printed blank pages, which threw me off even more than this.

Please do tell me if I'm doing anything wrong, or if you can't replicate the problem.

Thank you in advance.

Issue 2:
Hi, I just upgraded to electron 3.0 and noticed that my applications windows controls are no longer there. I use titlebarStyle: 'hiddenInset' so that I can have the native OS's buttons as my windows controls, and it worked great until I upgraded to 3.0

Expected Behavior

The macOS buttons should be shown on the top left like in previous versions

Actual behavior

The buttons are not there. Though, if you click where the buttons should be the actions work, and if you fullscreen the application and then take it out of fullscreen the buttons start to show.

To Reproduce

By just adding the titleBarStyle option, or use the code below.

this.mainWindow = new BrowserWindow({
show: false, // .show() once 'ready-to-show'
backgroundColor: '#fff',
titleBarStyle: 'hiddenInset',
});
Issue 1:
Hey Bootstrapers. Congrats on the release. BS3 is awesome.

I asked this on the BS3 pull request but didn't get a reply, but it's the one thing that is bothering me when using BS3:

Shouldn't .col-sm-* be named .col-md-* instead?

.col-12 — mobile first, so you can say it affects small screens

.col-sm-12 — medium screens only

.col-lg-12 — large screens only

Thanks in advance for clarifying this!

Since I'm bothering you already, I had another 3-part question:

Why doesn't col-push/pul/offset work for any screen size? Why not favor one instead of keeping both push and offset? Would it make sense to be able to target a screen size like .col-lg-push-2?

Issue 2:
With Bootstrap 3 RC1, the sm keyword is used in an inconsistent manner. When referring to column sizes, it means "tablet sized." When referring to hide/show responsive classes it means "phone sized." My recommendation would be to rename all of the col-sm-X classes to be col-md-X classes.

This would solve the inconsistency while still advocating "mobile-first" and leaving the mobile columns un-prefixed.
Issue 1:
Im populating several Text Fields from localstorage using initialValue. As default im only able to see first row, but it will expand as soon as im start typing.

Is there any way i can enable full height as default?

I have tried the following properties.

multiLine={true}
fullWidth={true}
rowsMax={10}
rows={5}

Material-ui@0.16.4

React@15.4.2

Browser: Chrome Versjon 56.0.2924.87

Issue 2:
Problem description

When wanting to use multiline text field (2 or more) inside a nested list item, they start by displaying only one text-input line. As soon as one character has been typed in, it will expand the rows to the set row value, and stay that way until the dom is flushed or reloaded.

I am using Clojurescript to compile to javascript, but I was able to reproduce this behaviour in babel/jsx.

Steps to reproduce

This simple code should reproduce this behaviour:

import React, {Component} from 'react';
import {List, ListItem} from 'material-ui/List';
import TextField from 'material-ui/TextField';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';

class Main extends Component {

render() {

return (
<MuiThemeProvider muiTheme={getMuiTheme()}>
<div>
<TextField
rows={2}
multiLine={true}
hintText="Expands immeadiately"
/>
<list>
<ListItem primaryText="Nested text field here!"
style={{width: '250px',
backgroundColor: 'red',}}
nestedItems={[<ListItem
style={{width: '250px',
backgroundColor: '#E1F5FE'}}
disabled={true}>
<TextField
rows={2}
multiLine={true}
hintText="Waits for input to expand"
/>
</ListItem>]}></ListItem>
<ListItem
primaryText="disabled"
disabled={true}
style={{width: '250px',
backgroundColor: 'red',}}>
</ListItem>
</list>
</div>
</MuiThemeProvider>
);
}
}

export default Main;

Versions

Material-UI: 0.15.4

React: 15.3.1

Browser: Google Chrome
Issue 1:
Hi,

When a modal is shown on a smaller device resolution (iPhone) and it contains more content in the body than can fit on screen, the footer of the modal is cut off from view and unreachable.

iPhone dimensions:

http://puu.sh/1sHaG

http://puu.sh/1sHd2

Desktop dimensions:

http://puu.sh/1sHdz

I would assume that the height of the modal body is suppose to adjust so that the header and footer are always shown?

Thanks.

Issue 2:
As it says. Thanks for all your love, guys!