WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

Get initial props using a HOC in _app.js same as when using directly in all pages

Current Behavior

Using custom _app.js works only client-side

Steps to Reproduce (for bugs)

Fork/install with-apollo example

Create a custom _app.js like here

Import and Wrap the default exported Component of _app.js with withData :: see below

Unwrap the default exported Component from Index page :: see below

Context

When the withData HOC wraps each Page, the GraphQL data fetched is available server-side like:

instead wrapping the custom _app.js is only available client-side, like:

Your Environment

Tech
Version

next
6.0.0

node
v8.11.0

OS
OSX 10.11.6

browser

etc

Code snippets

Code Snippet _app

import App, { Container } from 'next/app'
import React from 'react'
import withData from '../lib/withData'

class MyApp extends App {
static async getInitialProps({ Component, router, ctx }) {
let pageProps = {}

if (Component.getInitialProps) {
pageProps = await Component.getInitialProps(ctx)
}

return { pageProps }
}

render() {
const { Component, pageProps } = this.props
return (
<Container>
<Component {...pageProps} />
</Container>
)
}
}

export default withData(MyApp)

Code Snippet Index

import App from '../components/App'
import Header from '../components/Header'
import Submit from '../components/Submit'
import PostList from '../components/PostList'

export default () => (
<App>
<Header />
<Submit />
<PostList />
</App>
)

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

Expected Behavior

Next.js export and Next.js should result in an eventually consistent state when dealing with network request (with requests originating from server, client or both).

If it is an next export deployment then I need to refresh the content on top of the snapshot content but with now deployment, if SSR works, client refresh is not required.

Current Behavior

A deployment with now works flawlessly with SSR - https://self.now.sh

A deployment with next export shows the snapshot of when the export happened but does not refresh the data on client site - https://self.netlify.com

Both the above are deployments of same commit id but backend has an extra entry (resume) after the deployments. Now deployment shows it but Netlify depoyment does not.

Steps to Reproduce (for bugs)

Links provided above

Context

Your Environment

Tech
Version

next
4.1.0

node
8.4.0

OS
macOS Sierra - 10.12.6

browser
Version 61.0.3163.100 (Official Build) (64-bit)
Issue 1:
[Enter steps to reproduce below:]

...

...

Atom Version: 0.168.0

System: linux 3.2.0-75-generic

Thrown From: Atom Core

Stack Trace

Uncaught Error: self signed certificate in certificate chain

At events.js:85

Error: self signed certificate in certificate chain
at Error (native)
at TLSSocket.<anonymous> (_tls_wrap.js:914:36)
at TLSSocket.emit (events.js:104:17)
at TLSSocket._finishInit (_tls_wrap.js:457:8)

Commands

Config

{
"core": {
"themes": [
"atom-dark-ui",
"atom-dark-syntax"
]
},
"editor": {
"invisibles": {}
}
}

Installed Packages

# User
autocomplete-paths, v0.9.1
autocomplete-plus, v1.1.0
autocomplete-snippets, v0.3.2
file-icons, v1.4.4
linter, v0.9.1
minimap, v3.5.4

# Dev
No dev packages

Issue 2:
[Enter steps to reproduce below:]

...

...

Atom Version: 0.168.0

System: linux 3.2.0-75-generic

Thrown From: Atom Core

Stack Trace

Uncaught Error: self signed certificate in certificate chain

At events.js:85

Error: self signed certificate in certificate chain
at Error (native)
at TLSSocket.<anonymous> (_tls_wrap.js:914:36)
at TLSSocket.emit (events.js:104:17)
at TLSSocket._finishInit (_tls_wrap.js:457:8)

Commands

Config

{
"core": {
"themes": [
"atom-dark-ui",
"atom-dark-syntax"
]
},
"editor": {
"invisibles": {}
}
}

Installed Packages

# User
autocomplete-paths, v0.9.1
autocomplete-plus, v1.1.0
autocomplete-snippets, v0.3.2
file-icons, v1.4.4
linter, v0.9.1
minimap, v3.5.4

# Dev
No dev packages
Issue 1:
Hey!

PowerToys currently have a feature that lets you remap keys to other keys (key -> key) and shortcuts to other shortcuts (shortcut -> shortcut). It would be nice to be able to remap key -> shortcut too. For example: "Home -> Win+M" would minimize all windows when pressing the Home button, by remapping the Home key to the Win+M shortcut.

The opposite would be nice too. For example: "Win+1 -> F1" would press the F1 key when you press the Win+1 shortcut.

Issue 2:
The powertoys disabled the ALT GR (alt right) key making it impossible to write "@" "#" and so on.
Issue 1:
Electron version: 1.2.5

Operating system: Windows 7 (64-bit)

Canvas elements larger than 256x256 disappear on Windows when you set a minWidth and minHeight for the containing browser window, run the app, minimize, and then restore. I was unable to duplicate on a Mac. If you use the mouse to make the window considerably wider than the minWidth value, the problem does not duplicate.

Note: The problem may not manifest if dev tools are docked to the side.

Before minimizing the window:

After restoring the window:

Duplication steps:

Use the package.json, main.js and canvas.html code below to duplicate on Windows

npm install & npm start

Note the two canvas elements render OK

Resize the window to the smallest allowed

Minimize the window (Ctrl-M)

Restore the window

Note that the larger canvas on the left is no longer displayed

package.json:

{
"name": "electron-canvas-issue",
"version": "1.0.0",
"description": "Demo of canvas issue",
"main": "main.js",
"scripts": {
"start": "electron ."
},
"devDependencies": {
"electron-prebuilt": "^1.2.5"
}
}

main.js:

const electron = require('electron')
const app = electron.app
const BrowserWindow = electron.BrowserWindow
app.on('ready', function () {
mainWindow = new BrowserWindow({
title: 'Electron Canvas Issue',
width: 850,
height: 600,
minWidth: 850,
minHeight: 600
});
mainWindow.loadURL('file://' + __dirname + '/canvas.html');
});

canvas.html:

<!DOCTYPE html>
<html>
<body>
<canvas id="myCanvas" width="500" height="500" style="border:1px solid #000;"></canvas>
<script>
var c = document.getElementById("myCanvas");
var ctx = c.getContext("2d");
ctx.fillStyle = "#FF0000";
ctx.fillRect(10,10,480,480);
</script>
<canvas id="myCanvas2" width="256" height="256" style="border:1px solid #000;"></canvas>
<script>
var c2 = document.getElementById("myCanvas2");
var ctx2 = c2.getContext("2d");
ctx2.fillStyle = "#FF0000";
ctx2.fillRect(10,10,230,230);
</script>
</body>
</html>

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

I use VS Code maximized or full screen, and clicking on the config gear always bring a truncated menu. I'd rather have it in full and higher because I have to scroll every time.

I filed this previously on VS Code and they correctly redirected me here: microsoft/vscode#56921

Describe the solution you'd like

Having config menu popping up above bottom and expanded in full instead of having to scroll.

Describe alternatives you've considered

I can scroll instead.

Additional context

I'm using MacOS 10.13.16

Showing might help, please see my two screen shots.

Thank you for your time.
Issue 1:
Hello gentlemen,

I'm using your library on a listview to load images, these images are being transformed to fit the max width of my layout using override but my placeholder have max dimensions for height/width; after dowloading and showing final image it keeps with the same size and aspect ratio than placeholder.

After doing scroll it appear with proper size.

holder.mMultimediaLoadingProgress.setVisibility(View.VISIBLE);

int size = (int) mContext.getResources().getDimension(R.dimen.chat_message_text_max_long); // 250dp

Glide.with(mContext)
.load(msg.getMultimediaLink())
.placeholder(R.drawable.multimedia_placeholder)
.override(size, size)
.listener(new RequestListener<String, GlideDrawable>() {
@Override
public boolean onException(Exception e, String model, Target<GlideDrawable> target,
boolean isFirstResource) {
holder.mMultimediaLoadingProgress.setVisibility(View.GONE);
return false;
}

@Override
public boolean onResourceReady(GlideDrawable resource, String model,
Target<GlideDrawable> target,
boolean isFromMemoryCache, boolean isFirstResource) {
holder.mMultimediaLoadingProgress.setVisibility(View.GONE);
return false;
}
})
.into(holder.mMsgImage);

<ImageView
android:id="@+id/conversation_chat_list_item_msg_image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:scaleType="fitCenter" />

<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >

<item>
<shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<size
android:width="@dimen/chat_message_text_max_long"
android:height="@dimen/chat_message_text_max_long" />
</shape>
</item>

<item>
<bitmap android:src="@drawable/ic_file_image_box" android:gravity="center"/>
</item>

</layer-list>

How can I manage this ?

Thanks a lot for you really good work, regards.

Issue 2:
I'm trying to use both fitCenter and placeholder but the image does not get resized.

This code works fine (image is scaled down, aspect ratio is correct):

Glide.with(this).load(url).fitCenter().into(mImage);

This code does not work (placeholder is correct, but loaded image appears squished, aspect ratio is wrong):

Glide.with(this).load(url).placeholder(R.drawable.placeholder).fitCenter().into(mImage);
Issue 1:
Duplicate of #3384 #5059 - refer to these for existing discussion that was closed, while users were still asking for the feature.

Didn't want this to get overlooked since there is currently no open issue for this.

This issue serves as an open thread on this discussion.

Issue 2:
When you create a time series viz with a groupby and contribution Total, if at least one of the categories is missing a value for the date, no data points for that date are shown.

This is sort of reasonable - technically, the data could be missing for the missing category, so it is not clear how to calculate contribution. However, in most cases, the missing data point corresponds to the value 0, and removing all the other data points is very confusing. In older charts (ex. line chart), contribution assumes 0 if data is missing, so we should provide some way to "fill" 0 for feature parity.

I think there are two ways

Assume 0 whenever data is missing (similar to legacy line chart)

Have users use resample to fill missing values with 0. This is not possible yet because resample doesn't work if there's a group by - the error message is: cannot reindex from a duplicate axis and occurs here

How to reproduce the bug

Go to SQL Lab

Run query:

SELECT DATE('2021-09-01') AS ds, 'hi' AS x
UNION ALL SELECT DATE('2021-09-02') AS ds, 'hi' AS x
UNION ALL SELECT DATE('2021-09-01') AS ds, 'whoa' AS x

-> explore chart

Use time series bar chart v2 viz

Group by x, metric count, contribution total

Note the missing data point for (2021-09-02, hi)

Expected results

Two bars should be shown for 09-01, one bar should be shown for 09-02

Actual results

No bars are shown for 09-02, even though there is a data point

Environment

(please complete the following information):

browser type and version: chrome

superset version: up to date with master as of 2021-10-01

python version: 3.8

Checklist

Make sure to follow these steps before submitting your issue - thank you!

I have checked the superset logs for python stacktraces and included it here as text if there are any.

I have reproduced the issue with at least the latest released version of superset.

I have checked the issue tracker for the same issue and I haven't found one similar.

Additional context

This is somewhat related to this issue: #15036
Issue 1:
Migrated issue, originally created by Michael Bayer (@zzzeek)

we are now building up a bunch of code that is aliasing tables and labeling columns. the old "concatentation" methodologies dont work as most DB's have all kinds of restrictions on identifier lengths. right now we use random hex strings. so heres the ticket:

the algorithm should be changed to use an HMAC scheme that will return the same results each time for the same given name, to make it easier to write external SQL code, to enable unit tests, and to make echo'ed output easier to read.

all names should be limited to 30 characters (configurable. compiler-dependent ?)

the names should have only four hex characters at the end of the string, instead of clumps of hex characters as occurs now when you have a table alias combined into a column label.

groups of columns that are linked to the same table should preferably have the same four-digit grouping (though this may break their uniqueness if names are truncated)

bind parameters still have hardcoded "table_column" strings being used as identifiers, particularly in the mapper code where one piece of code sets up a bind dictionary and another reads/populates it. these should be abstracted away as well and probably derive from the column._label in all cases.

the "label" accessor on ColumnClause should be marked non-private

Issue 2:
Migrated issue, originally created by Anonymous

There's a simple typo in the reflection code for MySQL tables when discovering the collation of a column entry. See attached patch.

Attachments: mysql_collation_reflection.diff
Issue 1:
Hi there,

In Sublime Text, when you hold the "alt" key and click and drag the cursor, it will automatically create an instance of the cursor in the place where the cursor is touching (I suggest giving it a try, it is kind of complicated to explain).

Atom should have this, since it would be a big game changer for what it delivers in terms of speed coding flexibility :)

Is this planned for the near future?

Thanks in advance!

Issue 2:
In plenty editors, doing left-alt (left option) and selecting text will take a slice of that text:

Notice that only characters are selected, empty lines are ignored. Also, after selecting with left-alt, there should be multi-cursors at the end of each selection:

The GIF are from Sublime, the same behavior is observed in TextMate, IntelliJ, vim (visual selection).

The current behavior in Atom is to perform a normal text selection:
Issue 1:
Summary of the new feature/enhancement

There should be an option to map a shortcut to a key of vice versa.

for example:

win + h -> left arrow key

This could be used to make a hard to reach key more accessible. For example, the arrow keys are off in a corner, so I would implement vim style arrow keys (h is left arrow, j is up, etc . . .). It could also be used to provide access to a key that isn't on your keyboard.

Proposed technical implementation details (optional)

Issue 2:
Environment

Windows build number: Microsoft Windows [Version 10.0.18362.418]
PowerToys version: 0.12.0.0
PowerToy module for which you are reporting the bug (if applicable): Settings

Steps to reproduce

Right click on the PowerToys icon in taskbar

Click settings in the context menu

See the error

Expected behavior

Open the settings window of the PowerToys

Actual behavior

The following screen is shown:
Issue 1:
I'm trying to create an accordion based index that can be displayed as two columns.

My efforts haven't been successful so far and the best I have managed is buggy:

http://lcshn-demo.daddylonglegsdesign.com/

(this example may not stay)

The only example I have found that gets it to work is here:

http://stackoverflow.com/questions/14024278/bootstrap-collapse-two-rows

But achieves it by duplicating the ID of the data parent.

Is there a way round this?

Issue 2:
The accordion header links are small and easy to miss on mobile devices.

It would be nice if the whole panel-heading area would be clickable …

On solution could be to make the accordion links full width like so:

In panels.less:

// Within heading, strip any `h*` tag of it's default margins for spacing.
.panel-title {
margin-top: 0;
margin-bottom: 0;
font-size: ceil((@font-size-base * 1.125));
> a {
display: block;
width: 100%
color: inherit;
}
}
Issue 1:
Bug Report

Webpack5 beta.30 has enabled strict mode on the ESM modules imports https://github.com/webpack/webpack/releases/tag/v5.0.0-beta.30

webpack/webpack#11467 has noted people with code problems, however @babel/runtime appears to have code that doesn't follow the strict "type": "module" requirements, as expected for node / webpack.

.\node_modules\@babel\runtime\helpers\esm\package.json has "type": "module" being set and libraries that depend on @babel/runtime with ESM modules are broken as a result.

I expect the code generator should be outputting with the file extensions to satisfy the requirements of ESM modules

https://nodejs.org/api/esm.html#esm_differences_between_es_modules_and_commonjs

Current behavior

@babel/runtime/helpers/esm/*.js contains extensionless imports for dependencies.

Expected behavior

@babel/runtime/helpers/esm/*.js to contain fully specified extensions for imports

Babel Configuration (babel.config.js, .babelrc, package.json#babel, cli command, .eslintrc)

N/A - this is npm published module

Environment

System:
OS: Windows 10 10.0.19042
Binaries:
Node: 12.18.3 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.14.8 - C:\s\SwiftFox\node_modules\.bin\npm.CMD
Monorepos:
Yarn Workspaces: 1.22.5
npmPackages:
@babel/core: 7.11.4 => 7.11.4
babel-loader: 8.1.0 => 8.1.0
eslint: 7.7.0 => 7.7.0
webpack: 5.0.0-beta.30 => 5.0.0-beta.30

Issue 2:
Since the script depends on babel-core, it starts to require babel-runtime/core-js/* files which are created by the script.
Issue 1:
Bug report

What is the current behavior?

Using the following config works in Webpack 4 but not Webpack 5:

module.exports = {
output: {
library: "A",
},
optimization: {
runtimeChunk: "single"
},
};

I would expect the module to be assigned to a variable A, but in Webpack 5 A is undefined.

Webpack 4 output:

var A =
(window["webpackJsonpA"] = window["webpackJsonpA"] || []).push([["main"],{
...
},[["./src/index.js","runtime"]]]);

Webpack 5 output:

var A;
(self["webpackChunkA"] = self["webpackChunkA"] || []).push([["main"],{
...
},
0,[["./src/index.js","runtime"]]]);

If the current behavior is a bug, please provide the steps to reproduce.

Smallest reproducible bug demo: https://github.com/keeganstreet/webpack-5-library

What is the expected behavior?

The module should be assigned to A.

Other relevant information:

webpack version: 5.24.2

Node.js version: v14.4.0

Operating System: Mac OS

Additional tools: N/A

Issue 2:
Bug report

What is the current behavior?

I build using the following output configuration:

output: {
filename: './js/react/[name]-src.js',
library: ['RF', '[name]'],
libraryTarget: 'var',
path: outputPath,
},

This results in a variable RF which is undefined.

The declaration of a property of RF now occurs using the following code (generated):

var RF;
(self["webpackChunkRF_name_"] = self["webpackChunkRF_name_"] || []).push([["audit-trail"], {

If the current behavior is a bug, please provide the steps to reproduce.

What is the expected behavior?

In versions of webpack before v5.22 (up until 5.21.2), this resulted in an object 'RF' being declared, where (as in the example above) the following would be available RF['audit-trail'].

The same file resulted in this before 5.22

var RF;(RF = typeof RF === "undefined" ? {} : RF)["audit-trail"] =
(self["webpackChunkRF_name_"] = self["webpackChunkRF_name_"] || []).push([["audit-trail"], {

Other relevant information:

webpack version: 5.22 (also tried 5.23)

Node.js version: 15.7.0

Operating System: Windows 10

Additional tools:
Issue 1:
System information

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

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

TensorFlow installed from (source or binary): Binary

TensorFlow version (use command below): 1.8

Python version: 2.7

Bazel version (if compiling from source): N/A

GCC/Compiler version (if compiling from source): N/A

CUDA/cuDNN version: N/A

GPU model and memory: N/A

Exact command to reproduce: N/A

Describe the problem

I can create an estimator either direct or from a keras model using the initialisers:

tf.estimator.estimator(
model_fn,
model_dir=None,
config=None,
params=None,
warm_start_from=None
)

tf.keras.estimator.model_to_estimator(
keras_model=None,
keras_model_path=None,
custom_objects=None,
model_dir=None,
config=None
)

However with the keras approach there is no option to warm start the model from a previously saved checkpoint. I am requesting a feature that makes it possible to do this with a call such as:

tf.keras.estimator.model_to_estimator(
keras_model=None,
keras_model_path=None,
custom_objects=None,
model_dir=None,
config=None,
warm_start_from=None
)

Without this I cannot see how to start an estimator in a pre-trained state.

I have also tried to do this by just calling an untrained estimator to do .predict which causes it to attempt to load from a checkpoint. When I provide the checkpoint from previous estimator training I get an error as not all data seems to be available. This is described in more detail at stackoverflow here https://stackoverflow.com/questions/50855256/keras-estimator-model-to-estimator-cannot-warm-start-or-load-previous-checkpoi

Issue 2:
System information

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

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

TensorFlow installed from (source or binary): Docker nightly

TensorFlow version (use command below): Docker nightly

Python version: Docker nightly

Bazel version (if compiling from source): Docker nightly

GCC/Compiler version (if compiling from source): Docker nightly

CUDA/cuDNN version: Docker nightly

GPU model and memory: N/A

Exact command to reproduce: N/A

Describe the problem

Please add warm_start_from parameter in tf.model_to_estimator

Source code / logs

N/A