WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
When using mysql as URI scheme in caravel_config.py, everything works fine.

I could add druid cluster. When I try to refresh druid metadata, it throws following error:

sqlalchemy.exc.InvalidRequestError: This Session's transaction has been rolled back due to a previous exception during flush. To begin a new transaction with this Session, first issue Session.rollback(). Original exception was: (_mysql_exceptions.IntegrityError) (1452, 'Cannot add or update a child row: a foreign key constraint fails (caravel.columns, CONSTRAINT columns_ibfk_1 FOREIGN KEY (column_name) REFERENCES datasources (datasource_name))')

On debugging, I figured out that while calling sync_to_db, DruidDatasource is trying to modify DruidColumn which I understand is not allowed.

Could some one help me if I am doing something wrong or is it a valid issue.

OS: Ubuntu 14.04

Druid: 0.9

Caravel: 0.9

Steps to reproduce.

Change URI scheme to mysql as instructed in tutorial. Follow tutorial.

Add Druid cluster.

Do Druid Refresh Metadata.

Issue 2:
In the commit c2bb49f, the foreign key that references datasource.datasource_name was set on columns.column_name when it should be columns.datasource_name. This causes errors when there are any new columns to be created when refreshing the druid datasources.

I am trying to generate a migration script to fix this. However, op.drop_constraint() requires the name of the foreign key you want to drop.

The following code works on SQLite because the foreign keys don't have any names:

naming_convention = {
"fk": "fk_%(table_name)s_%(column_0_name)s_%(referred_table_name)s",
}

def upgrade():
with op.batch_alter_table('columns', schema=None, naming_convention=naming_convention) as batch_op:
fk_name = 'fk_columns_column_name_datasources'
batch_op.drop_constraint(fk_name, type_='foreignkey')
batch_op.create_foreign_key(fk_name, 'datasources',
['datasource_name'], ['datasource_name'])

But for MySQL, the foreign keys are named like "columns_ibfk_1". Should I presume that on every machines, this foreign key has the same name and just drop the foreign key named columns_ibfk_1?

Do you have any suggestion about how to write a universal migration script that works on every SQL dialects? Or should I iterate through the known default names in different dialects in try-catch blocks?

I just couldn't figure out a way to drop the foreign key without knowing its name.
Issue 1:
Environment

Windows build number: 10.0.18363.476
Windows Terminal version (if applicable): 0.6.2951.0

Steps to reproduce

Make sure Windows Terminal is in dark theme and Windows 10 default app mode is light

Open about modal

Highlight some text and right click

Expected behavior

Context menu should be legible with white text on dark background.

Actual behavior

Context menu text is not legible.

Issue 2:
Summary of the new feature/enhancement

In Profile.json we will define the actions section.

This section is an array and each element takes an Object, the schema can be

{
"icon" : "...",
"title" : "...",
"command": "..."
}

You can add an icon next to the icons at the top right and make the following features.

A list will open.

Using the information in actions in Profile.json, it will create the elements of the list and execute a command when we click on it.

I'm leaving a picture to make it more descriptive.

Edit : Where can we find a complete list of shortcut commands that we can use on the Windows-terminal? If there is no such place, is it possible to share in pdf or website form?
Issue 1:
Description of the problem

[.Offscreen-For-WebGL-0EAEC5B0]RENDER WARNING: texture bound to texture unit 0 is not renderable. It maybe non-power-of-2 and have incompatible texture filtering.

This is what came up in the console:

i tried duplicating the water shader material in codepen

https://codepen.io/marshall_hunts/pen/GEeXJa

chrome couldn't load the skybox material but works fine locally

Issue 2:
my vtk file format like:

vtk DataFile Version 4.1

3D point save to vtk file

ASCII

DATASET STRUCTURED_POINTS

DIMENSIONS 100 100 100

SPACING 1 1 1

ORIGIN 0 0 0

POINT_DATA 1000000

SCALARS gray_value float 1

LOOKUP_TABLE default

0.364706

0.345098

0.054902

0.654902

0.623529

0.627451

0.333333

0.72549

....

....

My 3D model is a series of grayscale images combined, so the data points have only grayscale values instead of RGB.I don't know if the current vtkloder.js does not support the 4.x version of the vtk file.
Issue 1:
Hello,

Cant create session with auth object after upgrading to 1.0.3 used to work in 0.14.2

(This is an interactive session, I replaced < and > with //)

Python 2.7.2+ (default, Oct 4 2011, 20:03:08)

[GCC 4.6.1] on linux2

Type "help", "copyright", "credits" or "license" for more information.

import requests

requests.version

'1.0.3'

auth = requests.auth.HTTPDigestAuth('admin','1234')

auth

//requests.auth.HTTPDigestAuth object at 0xb715c9ec//

requests.session(auth=auth)

Traceback (most recent call last):

File "//stdin//", line 1, in //module//

File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 385, in session

return Session(**kwargs)

TypeError: init() got an unexpected keyword argument 'auth'

requests.session()

//requests.sessions.Session object at 0xb715c9cc//

auth=('user', 'pass')

auth

('user', 'pass')

requests.session(auth=auth)

Traceback (most recent call last):

File "//stdin//", line 1, in //module//

File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 385, in session

return Session(**kwargs)

TypeError: init() got an unexpected keyword argument 'auth'

Issue 2:
requests.session(**kwargs)
Returns a Session for context-management.

This not longer works:

session = requests.Session(verify=not staging)

TypeError: __init__() got an unexpected keyword argument 'verify'
Issue 1:
Problem description

CircularProgress is frozen on FF & Safari (I don't have Edge and IE to test that)

Link to minimal working code that reproduces the issue

Just look at the documentation page: https://material-ui-1dab0.firebaseapp.com/component-demos/progress

Versions

Material-UI: 1.0.0-alpha.17

React: 15.6.0

Browser: Newest on Safari and FF

Issue 2:
Circular progress doesn't work on safari, it looks full.

Open next docs in safari.

Versions

Material-UI: Next branch

Browser: Safari 9.1.3, 10.1; Firefox 45.8.0
Issue 1:
It seems that once emacs parses a '"' (that is, a double-quote character literal), in rust code it interprets this as the beginning of a string and highlights accordingly. This is very easy to spot, for example, in the file src/libextra/json.rs (which is where I discovered it).

Issue 2:
The latest version of rust-mode for Emacs (20130928.1740) has issues with

single-quoted characters, especially when that character is a " (double

quote). The following program executes correctly in Rust 0.8, but is font-locked

improperly in Emacs:

fn main() {
println!("{}", '"');
}

It treats the double quote as the beginning of a string which runs to the end of

the file. If the double quote character is escaped like so:

fn main() {
println!("{}", '\"');
}

Then there is not a problem with an unterminated string, but the characters

inside the single quotes are not fontified at all.

Note: Both programs compile and execute successfully under Rust 0.8.

This is related to #8793
Issue 1:
I would be willing to contribute a median absolute deviation function to scipy.stats, if there is a broader interest. There are other robust measures of variance (tvar and iqr) and I think the mad function would complement these nicely.

Issue 2:
Some functions like linregress and theilslopes return tuples of 4 or 5 results. A Bunch pattern would be much cleaner, and also allows adding extra return values easily.

See discussion at rgommers@6c1048f6416 with @josef-pkt
Issue 1:
I need to limit CPU usage of tensorflow on Windows by setting inter_op_parallelism_threads = 1 , ( intra_op_parallelism_threads = 1 also for CPU)

When I run a model on CPU, inter_op_parallelism_threads = 1 works perfectly, and only one logical core is used.

But when I run a model on GPU, inter_op_parallelism_threads =1 doesn't work, tensorflow still uses all the available logical cores.

Issue 2:
We are using:

with sv.managed_session(
server.target,
config=tf.ConfigProto(log_device_placement=True,
inter_op_parallelism_threads=1,
intra_op_parallelism_threads=1),
) as sess:

but TensorFlow still launches a number of threads proportional to the number of cores on each process. I counted +50 threads used by each process on my 24 vcore machine.

What can we do to limit the number of threads in a managed session.

EDIT: @yaroslavvb identified the problem. See the end of the thread about Session vs Server options.
Issue 1:
It would be useful to us and I'm pretty sure to other people to be able to call gemm in C.

There is the file numpy/core/src/multiarray/cblasfuncs.c that contain this function:

static void
gemm(int typenum, enum CBLAS_ORDER order,
enum CBLAS_TRANSPOSE transA, enum CBLAS_TRANSPOSE transB,
int m, int n, int k,
PyArrayObject *A, int lda, PyArrayObject *B, int ldb, PyArrayObject *R)

Giving access to it would solve this, this function is currently private and do not do error checking. The function:

NPY_NO_EXPORT PyObject *
cblas_matrixproduct(int typenum, PyArrayObject *ap1, PyArrayObject *ap2,
PyArrayObject *out)

In the same file does the error checking, but do not allow the alpha and beta parameter.

Before going further and plan how to implement it. Would a PR that add a public function PyArray_Gemm that take the 3 ndarray + alpha + beta be accepted?

Issue 2:
I was wondering if it's possible for the relevant Numpy DLLs (e.g. lapack_lite or _umath_linalg) to export the CBLAS functions, so that other software can call into them using e.g. ctypes. Under Linux they are exported by default, but not under Windows (AFAIK you have to explicitly export symbols on Windows, by default "global" symbols in a shared library are private to the library).

Or perhaps I'm missing another way of accessing those functions at runtime?
Issue 1:
System information (version)

OpenCV => 4.1.1

Operating System / Platform => Windows 64 Bit / C++ & Python

Compiler => Visual Studio 2017, Python 3.7.6

Detailed description

I just updated OpenCV 4.2.0 and found a big problem.

If I open the lenna BMP image with IMREAD_GRAYSCALE flag, the image is little bit dark. (the mean value was 110)

I felt something weird because I knew the mean value of lenna gray image is 124.

So I tried to open the lenna image as a color image and convert it to a grayscale image using cvtColor(), then the mean value was 124.

So there must be something wrong on the color conversion code in imread().

Steps to reproduce

Mat src1 = imread("lenna.bmp", IMREAD_GRAYSCALE);

Mat src2 = imread("lenna.bmp", IMREAD_COLOR);

cvtColor(src2, src2, COLOR_BGR2GRAY);

cout << mean(src1)[0] << endl; // 110.207

cout << mean(src2)[0] << endl; // 124.049

My opinion

I checked the recent versions, and found that OpenCV 4.1.0 was ok.

So I searched commits and found it:

058367f#diff-c868f69925dd124c54190546d4843841

In the updated code, I think 68th line should be changed like this:

(-) if (_swap_rb) std::swap(cRGB0, cRGB2);

(+) if (!_swap_rb) std::swap(cRGB0, cRGB2);

Please check the code.

Issue 2:
058367f#diff-c868f69925dd124c54190546d4843841 break BGR color conversion utilities in opencv/modules/imgcodecs/src/utils.cpp.

Before this commit when swap channels is set to 0 we have a following formula:

rgba[0]*cB + rgba[1]*cG + rgba[2]*cR

As rgba, in this case, is really BGRA data it works fine.

After this change:

rgba[0]*cRGB0 + rgba[1]*cG + rgba[2]*cRGB2

where

cRGB0 = cR

cRGB0 = cB

It is used by ../modules/imgcodecs/src/grfmt_tiff.cpp which reads RBG data, but uses icvCvt_BGRA2Gray_8u_C4C1R for conversion but with channel swapped.

relates #14760
Issue 1:
Hi,

I design a network which composes of shared layers, I write code using functional API. However, there always be errors.

I paste my network structure graph , code , and error information below, hope to provide a clue.

Thanks!

Network Structure:

Share layers:

Embedding is shared among 3 input.(blue color). However, input_length is different for input1/input2 and input3. The input_length for input1/input2 is LSTM_MAXLEN, 1000, for input3 is QUERY_MAXLEN, 5, eg. max 5 words for a query.

CNN feature learning layer is shared between input1 and input2. (green color)

Issue 2:
I'm trying to create a neural network "within" a neural network, basically I branch off from an intermediate layer, use that as an output to train another neural network. I want to train both networks together. I can't seem to do it, I run into the following error:

UserWarning: Model inputs must come from a Keras Input layer, they cannot be the output of a previous non-Input layer

Sample code below:

# 1st NN: Simple convolutional autoencoder
input_img = Input(shape=(1, 80, 80), name="input_layer")
intermediate = Convolution2D(32, 3, 3, subsample=(2, 2))(input_img)
decoded = Deconvolution2D(1, 3, 3, subsample=(2, 2))(intermediate)

#2nd NN: Uses output from encoding part to do supervised learning on FC layers
fc_flatten = Flatten()(intermediate)
y = Dense(64)(fc_flatten)
fc_output = Dense(1)(y)

model = Model(input=[input_img, fc_flatten], output=[decoded, fc_output])

I don't understand. I'm using almost the same architecture as the "Multi-input and multi-output models" example on the Keras Functional API, with the exception that I don't have an auxillary input.
Issue 1:
When I try example Mobx

Error: MobX observer: Store 'store' is not available! Make sure it is provided by some Provider

at http://localhost:3000/_next/-/commons.js:8459:46

at Array.forEach (native)

at http://localhost:3000/_next/-/commons.js:8456:17

at _fn.render (http://localhost:3000/_next/-/commons.js:8435:31)

at _fn.render (http://localhost:3000/_next/-/main.js:7616:30)

at _fn.withHandleError (http://localhost:3000/_next/-/main.js:1962:17)

at _fn [as render] (http://localhost:3000/_next/-/main.js:2004:24)

at http://localhost:3000/_next/-/commons.js:28328:21

at measureLifeCyclePerf (http://localhost:3000/_next/-/commons.js:27607:12)

at ReactCompositeComponentWrapper._renderValidatedComponentWithoutOwnerOrContext (http://localhost:3000/_next/-/commons.js:28327:25)

Issue 2:
For some reason if I upgrade to beta 19 of next I get an error about the mobx store not being available. I'm using a provider and then injected the store into my components. Anyone else using mobx with next getting this error when upgrading?
Issue 1:
As of today interacting with input and outputs of dynamically loaded components requires access to potentially "private" fields of a component. To illustrate it with a concrete example let's say that I want to load, using DynamicComponentLoader, a following component:

@Component({
selector: 'my-modal-content'
template: `...`
})
export class MyModalContent {
@Output() close = new EventEmitter();
..
}

After loading, I would like to subscribe to the close event which sounds like an easy task:

dcl.loadIntoLocation(content, this._elRef, 'content').then((componentRef) => {
componentRef.instance.close.subscribe((closeEvent) => {
...
});
});

Unfortunately this method requires me to use EventEmmiter’s instance name instead of event name. Why this could be a problem? Well, nothing stops people from implementing MyModalContent like so:

@Component({
selector: 'my-modal-content'
template: `...`
})
export class MyModalContent {
@Output('close') _close = new EventEmitter();
..
}

In this case the contract is broken as the only thing I should be knowing of is event name.. Instead I need to subscribe using a private field name (_close).

cc: @mhevery @adamdbradley as discussed yesterday

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

There is no way to set @inputs or subscribe to @output events of the Component created by NgComponentOutlet.

Expected behavior

I expect some to set values and to subscribe events.

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

At least, we should have the same level of functionality as ViewContainerRef.createComponent() which is roughly the programatic equivalent of NgComponentOutlet. That function returns a ComponentRef<any> which provides an instance property that allows direct access to the class instance of the Component. The original feature request for NgComponentOutlet defined an event on the directive that would fire and pass this ComponentRef object after creation. This did not make it into the current implementation and I see no other alternatives to access inputs/outputs.

Supporting only Components with no inputs or outputs severely limits the usefulness of NgComponentOutlet.

Angular version: 4.0.0-rc.1
Issue 1:
Data Visualization with D3: Work with Data in D3

http://beta.freecodecamp.com/en/challenges/data-visualization-with-d3/work-with-data-in-d3

Issue Description

Submit and incorrect answer then submit the correct answer. The tests and output will say the solution is incorrect.

Clear your localStorage and try the correct solution and the challenge will pass.

Browser Information

Browser Name, Version: Chrome

Operating System: Mac

Mobile, Desktop, or Tablet: Desktop

Solution Code

<body>
<script>
const dataset = [12, 31, 22, 17, 25, 18, 29, 14, 9];

// Add your code below this line
d3.select('body').selectAll('h2')
.data(dataset)
.enter()
.append('h2')
.text('New Title')

// Add your code above this line
</script>
</body>

Issue 2:
Issue 1:
Steps to Reproduce

create new project

add a TextFormField widget

run and compare with android native

Native Android

-> new Android Studio project - selected "Login Activity"-template

Flutter

-> new clean project - TextFormField added:

Logs

Launching lib/main.dart on Nexus 5 in debug mode...

Initializing gradle... 0,8s

Resolving dependencies... 1,1s

Running 'gradlew assembleDebug'... 7,8s

Built build\app\outputs\apk\debug\app-debug.apk (30.4MB).

Installing build\app\outputs\apk\app.apk... 9,4s

I/FlutterActivityDelegate( 8200): onResume setting current activity to this

Syncing files to device Nexus 5... 2,9s

To hot reload your app on the fly, press "r". To restart the app entirely, press "R".

An Observatory debugger and profiler on Nexus 5 is available at: http://127.0.0.1:8104/

For a more detailed help message, press "h". To quit, press "q".

Run flutter analyze and attach any output of that command also.

Analyzing C:\Users\x\Projekte\x\flutter\testapp...

No issues found!

Flutter Doctor

[√] Flutter (Channel beta, v0.3.1, on Microsoft Windows [Version 10.0.16299.371], locale de-DE)

• Flutter version 0.3.1 at C:\Users\x\Projekte\SDK\flutter

• Framework revision 12bbaba (7 days ago), 2018-04-19 23:36:15 -0700

• Engine revision 09d05a3

• Dart version 2.0.0-dev.48.0.flutter-fe606f890b

[√] Android toolchain - develop for Android devices (Android SDK 27.0.3)

• Android SDK at C:\Users\x\AppData\Local\Android\sdk

• Android NDK location not configured (optional; useful for native profiling support)

• Platform android-27, build-tools 27.0.3

• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java

• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)

• All Android licenses accepted.

[√] Android Studio (version 3.1)

• Android Studio at C:\Program Files\Android\Android Studio

• Flutter plugin version 23.2.2

• Dart plugin version 173.4700

• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)

[√] VS Code, 64-bit edition (version 1.22.2)

• VS Code at C:\Program Files\Microsoft VS Code

• Dart Code extension version 2.11.2

[√] Connected devices (1 available)

• Nexus 5 • 02cd7a87d023fb75 • android-arm • Android 6.0.1 (API 23)

• No issues found!

Issue 2:
code:

var pictureRecorder = ui.PictureRecorder();
var canvas = Canvas(pictureRecorder, Rect.fromLTWH(0.0, 0.0, image.width.toDouble(), image.height.toDouble()));
var paint = Paint();
paint.isAntiAlias = true;
var src = Rect.fromLTWH(
0.0, 0.0, image.width.toDouble(), image.height.toDouble());
var dst =
Rect.fromLTWH(0.0, 0.0, image.width.toDouble(), image.height.toDouble());
canvas.drawImageRect(image, src, dst, paint);
canvas.drawRect(Rect.fromLTWH(0.0, 0.0, 100.0, 100.0), paint);
var pic = pictureRecorder.endRecording();
ui.Image img = pic.toImage(image.width, image.height);`
.......to Uint8List

use image.memory widget load it just can see a rect
Issue 1:
Hi,

I have an annoying behavior that prevents me to type the character "]". Instead it folds current-line.

On Azerty layout the ] can be typed with : AltGr + 0 .In the keybindings the current line folding should be triggered with Ctrl + Alt + ]. So there is some kind of conflict...

Thanks,

Atom@0.127.0, Windows 7 FR, azerty keyboard layout

Issue 2:
Original issue: atom/atom#1625

Use https://atom.io/packages/keyboard-localization until this issue gets fixed (should be in the Blink upstream).
Issue 1:
The following characters not working with the Hungarian keyboard:

\ => Alt Gr + q

[ => Alt Gr + f

€ => Alt Gr + u => This key also uploading the sync settings with the "sync-settings" plugin.

2 of these 3 keys ar urgent for code editing.

Issue 2:
Original issue: atom/atom#1625

Use https://atom.io/packages/keyboard-localization until this issue gets fixed (should be in the Blink upstream).
Issue 1:
VSCode Version: 0.10.11

OS Version: Windows 10

Steps to Reproduce:

Open Any JS File

Define multiple variables using single var. i.e.

var a = 0, b = 1, c = 3;

Syntax highlighting for b,c will be broken. (Tested on multiple themes)

Issue 2:
From @vsccarl on March 10, 2016 1:2

When defining multiple var in JavaScript the colorization is not working properly after the first defined variable if they are on separate lines.

var wm1 = new WeakMap(), wm2 = new WeakMap(), wm3 = new WeakMap();

On the same line they are correctly colorized

Expected: wm2 and wm3 should be the same color as wm1 regardless of the line they are on.

Version 0.10.12-alpha

Commit e8d5a7932b99f6b7559d48536bfc84732bfc8582

Date 2016-03-09T09:53:18.387Z

Shell 0.35.6

Renderer 45.0.2454.85

Node 4.1.1

Copied from original issue: microsoft/vscode#3940
Issue 1:
Is it possible to sort by stars or the number of downloads when searching packages & themes ?

It would be nice to have this feature for atom and also on the webpage...

Issue 2:
From @boustanihani on February 17, 2015 11:4

Could you please allow sorting search results on https://atom.io/packages & https://atom.io/themes by the number of downloads and the number of stars ?

And maybe also inside the Atom Editor...

Copied from original issue: atom/apm#303
Issue 1:
First of all, congratulations for such a nice integration in package.json, with Schema Store support and server packages autocomplete.

I noted here that NPM's default registry is hardcoded, even if a custom registry was set by npm config set registry.

Is there any possible way to use a registry provided by the user instead of the default one? Does JavaScript extension even provide any extensibility or customization at this point?

Issue 2:
vscode 0.10.8, windows 10.

like in the video, branch status updated only when clicking git panel.

if auto tracking is not possible, how about update status when clicking the sync button in the status bar?