WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
OpenCV = >3.4.1```

Operating System / Platform => Windows 64 Bit

Compiler => Visual Studio [2017]

Detailed description

I have used the Facenet code to train a model and get .ckpt and .meta files. (https://github.com/davidsandberg/facenet). I used freeze_graph.py from tensorflow to get a .pb file from this, and then used the steps here (https://medium.com/@dibyaranjan.sathua/how-to-use-tensorflow-graph-with-opencv-dnn-module-3bbeeb4920c5) to optimize the model.

Now I've tried calling it in tf_inception.cpp from CV dnn samples, just to see if model would load.

My model throws error as

batch_join/fifo_queue:FIFOQueueV2
shared_name:[ ]
shapes:[ ]
container:[ ]
component_types:[ ]
capacity:[ ]
OpenCV(3.4.1) Error: Unspecified error (Unknown layer type FIFOQueueV2 in op batch_join/fifo_queue) in cv::dnn::experimental_dnn_v4::`anonymous-namespace'::TFImporter::populateNet, file C:\build\master_winpack-build-win64-vc14\opencv\modules\dnn\src\tensorflow\tf_importer.cpp, line 1582

How do I solve this?

=> Is it because the training code has FIFOQueueV2 as part of input pipeline, and CV doesn't recognize it?

=> Am I using the wrong .cpp file to call model?

=> would there be something wrong with my .pb file?

thanks!

Issue 2:
System information (version)

OpenCV => 3.1

Operating System / Platform => Windows 64 Bit

Compiler => Visual Studio 2015

description

I'm using the tf_importer.cpp to import a tensorflow pb frozen model. However, I get an error during populating to the Net class variable:

batch/fifo_queue:FIFOQueueV2

container:[ ]

component_types:[ ]

shapes:[ ]

capacity:[ ]

shared_name:[ ]

OpenCV Error: Unspecified error (Unknown layer type FIFOQueueV2 in op batch/fifo_queue) in cv::dnn::experimental_dnn_v1::`anonymous-namespace'::TFImporter::populateNet, file ......\source\modules\dnn\src\tensorflow\tf_importer.cpp, line 735

Is there a way I can add this layer type into tf_importer.cpp? Or how could I remove this as this is not used in the network any longer after training.

thanks
Issue 1:
The DataFrame constructor supports numpy's ndarray of primitive type, recarray (or structured array) or a masked array of simple type. It breaks when given a masked recarray:

>>> a = np.ma.mrecords.fromrecords([(1,2)], names=['a', 'b'], mask=False)
>>> pandas.DataFrame(a)
...
TypeError: cannot perform reduce with flexible type

Tested at latest public release and HEAD.

Issue 2:
as it stands

In [24]: tuples = [(randint(10), randint(10)) for _ in range(10)]

In [25]: mi = MultiIndex.from_tuples(tuples)

In [26]: df = DataFrame(index=mi, columns=mi)

fails, whereas single level indexes work fine

In [27]: df = DataFrame(index=range(10), columns=range(10))

In [28]: df
Out[28]:
0 1 2 3 4 5 6 7 8 9
0 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN
1 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN
2 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN
3 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN
4 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN
5 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN
6 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN
7 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN
8 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN
9 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN
Issue 1:
When the animation is done between placeholder and new image then the placeholder is stretched during the animation. Please do only the fade animation without modifying the imagesize.

Issue 2:
Glide Version/Integration library (if any): 3.5.2

Device/Android Version: S4/4.4

Issue details/Repro steps: Load a different sized thumbnail and image, or placeholder and image and note the result:

Glide load line:

class Delay extends UnitTransformation {
private final int sleepTime;
public Delay(int sleepTime) { this.sleepTime = sleepTime; }
@Override public Resource transform(Resource resource, int outWidth, int outHeight) {
try { Thread.sleep(sleepTime); } catch (InterruptedException ex) {}
return super.transform(resource, outWidth, outHeight);
}
}

@Override protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
final ImageView image = new ImageView(this);
setContentView(image);

// Saved as R.drawable.placeholder
String placeholder = "http://placehold.it/300x500/eedddd.png&text=PLACEHOLDER";
// Square image
String thumb = "http://placehold.it/300x300/eeeedd.png&text=THUMB";
// Wide image
final String full = "http://placehold.it/300x100/eedddd.png&text=FULL";
// Prepared request with unimportant clutter
final DrawableRequestBuilder<String> req = Glide
.with(this)
.fromString()
.diskCacheStrategy(DiskCacheStrategy.SOURCE) // disable network delay for demo
.skipMemoryCache(true) // make sure transform runs for demo
.crossFade(2000) // default, just stretch time for noticability
;

req.clone()
.thumbnail(req.clone()
.transform(new Delay(500)) // wait a little
.load(thumb)
)
.transform(new Delay(1000)) // wait before going from thumbnail to image
//.dontAnimate() // solves the problem
.load(full)
.into(image);

image.setOnClickListener(new OnClickListener() {
@Override public void onClick(View v) {
req.clone()
.load(full)
.placeholder(R.drawable.placeholder)
.transform(new Delay(1000))
//.animate(R.anim.abc_fade_in) // also solves the problem
.into(image);
}
});

By removing all the delaying parts, the end result is better, but the now the thumbnail is messed up:
Issue 1:
the following will now fail due to .col-xs-12:

@import 'twitter/bootstrap';
.test {
.text-center;
.text-uppercase;
.col-xs-12;
}

here is a test app: https://github.com/allenwlee/test-less-rails-bootstrap

Issue 2:
Hello everyone

I found out that the following code won't work in the LESS package of Bootstrap v3.2.0.

.main-col {
&:extend(.col-md-16 all);

border-right: 1px solid lighten(@gray, 33%);
padding-right: 40px !important;
}

.sidebar-col {
&:extend(.col-md-6 all);

padding-left: 40px !important;
}

The classes are just not getting extended. There is no error message. I have tested it with less.js.

Any suggestions?

Thank you in advance.
Issue 1:
Describe the bug

Many scenes use a CubeCamera to generate static reflections.

On 132 or 133 Standard Materials do not show the reflection. Either if set via material.envMap or scene.environment

To Reproduce

See live example

Essentially use the code from CubeCamera demo in 132 or 133

Code

const cubeRenderTarget = new THREE.WebGLCubeRenderTarget( 128, { format: THREE.RGBFormat, generateMipmaps: true, minFilter: THREE.LinearMipmapLinearFilter } );
const cubeCamera = new THREE.CubeCamera( 0.1, 100, cubeRenderTarget );
scene.add( cubeCamera );
cubeCamera.update(renderer, scene);

const chromeMaterial = new THREE.MeshStandardMaterial( { color: 0xff9999, metalness: 1, roughness: 0 } );
const chromeMaterial2 = new THREE.MeshStandardMaterial( { envMap: cubeRenderTarget.texture, color: 0xff9999, metalness: 1, roughness: 0 } );
const geometry = new THREE.SphereGeometry(0.4, 16, 16);
const mesh = new THREE.Mesh( geometry, chromeMaterial );
scene.add(mesh);
cube.material = chromeMaterial;
cube2.material = chromeMaterial2;
scene.environment = cubeRenderTarget.texture;
mesh.position.y=0.5;

Live example

https://brass-husky-icicle.glitch.me/

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

131:

132:

Issue 2:
It may be a duplicate one, but i can't find it...

and has my english is poor i made a fiddle : http://jsfiddle.net/Turboconnard/34btU/56/

I don't know if it's a bug or if it's normal for a plane to display like this.

(my project is almost done, i'll show you by the end of the week...)
Issue 1:
DAO层使用 MyBatis，当使用 INSERT INTO VALUES

ON DUPLICATE KEY UPDATE

语句时，UPDATE 部分参数全都会丢失

Issue 2:
Please answer these questions before submitting your issue. Thanks!

开源不易，我们希望将精力放在完成新功能和解决有价值的问题上，为了让大家的配合更具有效率，请填写以下列出的全部问题

Which version of Sharding-Jdbc do you using?（您使用的Sharding-Jdbc版本为？）

1.5.41

Expected behavior （您预期的结果是）

没有配置分表的表，能够使用一切SQL语句， 包含OR等sharding jdbc不支持的语句

Actual behavior （实际运行的结果是）

不支持OR

Steps to reproduce the behavior （可重现问题的操作步骤）

<rdb:data-source id="shardingDataSource">

<rdb:sharding-rule data-sources="masterDataSource">

rdb:table-rules

<rdb:table-rule logic-table="order" actual-tables="order_${0..9}${0..9}" table-strategy="tableShardingStrategy"/>

<rdb:table-rule logic-table="amount_detail" actual-tables="amount_detail_${0..9}${0..9}" table-strategy="tableShardingStrategy"/>

</rdb:table-rules>

</rdb:sharding-rule>

rdb:props

false

false

</rdb:props>

</rdb:data-source>

然后查询 一个没有在这里配置的table，并且使用OR
Issue 1:
Hello. I found a memory leak in com.bumptech.glide.request.target.ViewTarget.

GlideDrawableImageViewTarget provide a memory leak. It keeps a reference to my activity. And GC can not release the activity.

I found this problem when run "SELECT * FROM instanceof android.support.v7.app.AppCompatActivity" in MAT.

When I use

protected final WeakReference<T> view;

in com.bumptech.glide.request.target.ViewTarget I resolved this problem for me.

P.S. Sorry for my English :)

Issue 2:
Glide Version: com.github.bumptech.glide:glide:3.7.0

Integration libraries:

debugCompile 'com.squareup.leakcanary:leakcanary-android:1.4-beta1'
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'com.github.bumptech.glide:okhttp-integration:1.3.1@aar'
compile 'com.google.code.gson:gson:2.6.2'
compile 'com.squareup.retrofit:retrofit:1.9.0'
compile 'com.squareup.okhttp:okhttp:2.5.0'
compile 'com.squareup.okhttp:okhttp-urlconnection:2.5.0'
compile 'com.android.support:recyclerview-v7:23.1.1'
compile 'com.android.support:cardview-v7:23.1.1'
compile 'com.android.support:design:23.1.1'

Device/Android Version: Android 4.1.1 tested, Genemotion

Issue details / Repro steps / Use case background:

Open my app

Open an activity where showing RecycelerView with images

Then press Back -> Back -> .... Home Screen.

After I wait about 1 minute and press to run GC.

I have leakcanary. I saw next memory leak.

Then I collected glide.hprof and saw a memory leak.

(SELECT * FROM instanceof android.support.v7.app.AppCompatActivity)

Glide load line:

Next code running in RecyclerView.Adapter.

Glide.with(context)
.load(images.get(i))
.error(android.R.drawable.ic_delete)
.centerCrop()
.into(viewHolder.imageViewCar);

context - GalleryFragment -> original methot getContext() from android.support.v4.app.Fragment;

Layout XML:

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

<android.support.v7.widget.CardView
android:id="@+id/cardViewGalleryItem"
android:layout_width="match_parent"
android:layout_height="wrap_content">

<ImageView
android:id="@+id/imageViewCar"
android:layout_width="match_parent"
android:layout_height="150dp"
android:scaleType="centerCrop"
tools:src="@drawable/notification_template_icon_bg" />
</android.support.v7.widget.CardView>
</RelativeLayout>

Link to test project
Issue 1:
When cloning a skeleton, the bones and boneInverses arrays of the cloned skeleton still reference the arrays from the original skeleton. Hence when the original skeleton is animated, the bones on the cloned skeleton are also affected. Is this the intended behavior?

three.js/src/objects/Skeleton.js

Line 153
in
c0dbf05

return new Skeleton( this.bones, this.boneInverses );

Issue 2:
There are a few things which geometry.clone() doesn't copy a reference to, which it should.

.bones

.skinWeights

.skinIndices

.animations

.animation

are all left without references to the original, which leads to skinning being broken unless the references to those are manually copied. I think references should be passed as it's less confusing, but I don't think they should be deep copies, or this would lead to mostly wasted memory.
Issue 1:
Issue Type: Bug Report

Ansible Version: 1.5

Environment: CentOS 6.5

Summary: includes in templates loose their variable context

Steps To Reproduce:

In one template file i have this code snippet:

{% for group in group_names %}

{% include "debug_include.j2" with context %}

{% endfor %}

In the included template 'debug_include.j2' i have this code:

This is the included Template. The current group is {{group}}

The documentation claims that included templates have the same variable context as the main file.

So i would expect to see something like:

This is the included Template. The current group is mailserver

Expected Results:

I would expect to see something like:

This is the included Template. The current group is mailserver

Actual Results:

Instead i get an error on the commandline when executing this play:

TASK: [common-linux | dump all variables] *************************************

fatal: [ltesthost] => {'msg': "One or more undefined variables: 'group' is undefined", 'failed': True}

fatal: [testhost] => {'msg': "One or more undefined variables: 'group' is undefined", 'failed': True}

FATAL: all hosts have already failed -- aborting

Issue 2:
Issue Type:

Bug Report

Ansible Version:

ansible 1.5

Environment:

debian 7

Summary:

Variables go out of scope inside an included template

Steps To Reproduce:

hosts.yml:

---
- hosts: all
vars:
mylist:
- alpha
- bravo
tasks:
- name: template test
template: src=test.j2 dest=/tmp/testfile

test.j2:

{% for x in mylist %}

X: {{ x }}

{% include 'test-inc.j2' with context %}

{% endfor %}

test-inc.j2:

{{ x }}

Expected Results:

I expect x in test-inc.j2 to be properly dereferenced

Actual Results:

fatal: [myhost] => {'msg': "One or more undefined variables: 'x' is undefined", 'failed': True}

fatal: [myhost] => {'msg': "One or more undefined variables: 'x' is undefined", 'failed': True}
Issue 1:
Bug report

Describe the bug

Dynamic routing to page with ant.design Table component doesn't work.

Bug only appears on build. On dev run it works properly.

To Reproduce

I have two pages: Main and Sub.

Sub page contains component which contains Table component.

When I go from Main page to Sub page via Link (dynamic routing) then nothing happens and I am not redirected to Sub page. When I type Sub page url manually to browser bar then Sup page loads.

Expected behavior

I should be redirected to Sup page via Link (dynamic routing).

Additional context

I am using latest versions for antd, nextjs, typescript.

Firstly I was using Table component in Sub page directly. (Sub has Table)

Importing via below code didn't work and caused above error:

import { Table } from 'antd'

I have fixed it with importing Table directly

import Table from 'antd/lib/table'

Later on I had to move Table component to sub component. And both import doesn't work now. (SomeComponent has Table, Sub has SomeComponent)

next.config.js

/* eslint-disable */
const withLess = require('@zeit/next-less')
const lessToJS = require('less-vars-to-js')
const fs = require('fs')
const path = require('path')

// Where your antd-custom.less file lives
const themeVariables = lessToJS(
fs.readFileSync(path.resolve(__dirname, './assets/theme.less'), 'utf8')
)

module.exports = withLess({
exportTrailingSlash: false,
lessLoaderOptions: {
javascriptEnabled: true,
modifyVars: themeVariables, // make your antd custom effective
},
webpack: (config, { isServer }) => {
if (isServer) {
const antStyles = /antd\/.*?\/style.*?/
const origExternals = [...config.externals]
config.externals = [
(context, request, callback) => {
if (request.match(antStyles)) return callback()
if (typeof origExternals[0] === 'function') {
origExternals[0](context, request, callback)
} else {
callback()
}
},
...(typeof origExternals[0] === 'function'
? []
: origExternals),
]
config.externals.exclude = /node_modules\/(?!(os)\/).*/

config.module.rules.unshift({
test: antStyles,
use: 'null-loader',
})
}
return config
},
})

.babelrc

{
"presets": ["next/babel"],
"plugins": [
[
"import",
{
"libraryName": "antd",
"style": true
}
]
]
}

Issue 2:
Examples bug report

Example name

with-ant-design-less

https://github.com/zeit/next.js/tree/canary/examples/with-ant-design-less

Describe the bug

When I click on a Link to a page that uses any antd component, it doesn't work and when I click on a Link to a page that doesn't use any antd component, it works.

To Reproduce

I create a codesandbox to reproduce te bug https://codesandbox.io/s/nextjs-ant-design-8t41c

Click on "Go to page with antd" doesn't work

Click on "Go to page without antd" works

Expected behavior

The Link redirect to page that uses antd

System information

Dependencies:

"@zeit/next-less": "1.0.1",

"antd": "3.25.1",

"babel-plugin-import": "1.12.2",

"less": "3.10.3",

"less-vars-to-js": "1.3.0",

"next": "latest",

"null-loader": "3.0.0",

"react": "^16.7.0",

"react-dom": "^16.7.0"
Issue 1:
I would like to prevent MUI from optimising classNames:

development: .MuiAppBar-root-12

production: `.c12``

documentation: https://material-ui.com/customization/css-in-js/#class-names

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

Current Behavior

With NODE_ENV=production MUI optimizes the names, which is cool, but I am using MUI with https://github.com/kriasoft/react-starter-kit and (it may be configuration noobness), but I am seeing the following code being generated. Class names in HTML optimised, but styles not optimised:

I've been through the documentation trying to figure out how to disable the class name optimisation but can't find anything. Should there be a configuration flag, or am I missing something? As a side note I'm doing this side project to cut some learning curve, so I may be missing something obvious.

Your Environment

current dependencies, is mostly the stuff from here https://github.com/kriasoft/react-starter-kit, except with an added material ui:

"dependencies": {
"babel-polyfill": "7.0.0-beta.3",
"bluebird": "^3.5.1",
"body-parser": "^1.18.2",
"classnames": "^2.2.5",
"cookie-parser": "^1.4.3",
"core-js": "^2.5.1",
"express": "^4.16.2",
"express-graphql": "^0.6.11",
"express-jwt": "^5.3.0",
"graphql": "^0.11.7",
"history": "^4.7.2",
"install": "^0.10.1",
"isomorphic-style-loader": "^4.0.0",
"jsonwebtoken": "^8.1.0",
"material-ui": "^1.0.0-beta.18",
"node-fetch": "^1.7.3",
"normalize.css": "^7.0.0",
"passport": "^0.4.0",
"passport-facebook": "^2.1.1",
"pretty-error": "^2.1.1",
"prop-types": "^15.6.0",
"query-string": "^5.0.1",
"ramda": "^0.25.0",
"react": "^16.0.0",
"react-dom": "^16.0.0",
"rss-parser": "^2.10.6",
"sequelize": "^4.17.2",
"serialize-javascript": "^1.3.0",
"source-map-support": "^0.5.0",
"universal-router": "^4.3.0",
"whatwg-fetch": "^2.0.3",
"yarn": "^1.2.1"
}

Any help or direction would be great. And thanks for the hand.

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

Expected Behavior

Select should display the placeholder, like a regular input.

Current Behavior

Using the placeholder property on Select has no visible effect. I looked into the code and it seems this property is being forwarded to the underlying <input hidden /> element, hence it does not appear.

https://codesandbox.io/s/ol4pln434q

Your Environment

Tech
Version

Material-UI
1.0.0-beta.16

React
16.0.0

browser
Chrome 62.0.3202.62
Issue 1:
Context: https://tour.golang.org/basics/3

Change the title above to describe your issue and add your feedback here, including code if necessary

hI

I did not understand the description export.Please provide more clear explanation

regards,ppp

Issue 2:
Context: https://tour.golang.org/basics/3

This page tells that exported name must start with upper character, but it does not say what the "exported name" means. Also, "Exported identifiers" maybe more aligned with other material.

This made me think "ok... I understand what it looks like, but what does this exported name do?".

One sentence like "exported names can be accessed from another package, while unexported names remains local".
Issue 1:
If test.ts is:

const { symlinkSync, readFileSync } = Deno;

try {
const s = readFileSync("./test_private/file");
console.log(s);
} catch(e) {
console.log("caught", e.name);
}

symlinkSync("./test_private/file", "./test_public/file");
const s = readFileSync("./test_public/file");
console.log("success!", new TextDecoder().decode(s));

Then:

$ deno --version
deno 0.36.0
v8 8.1.310
typescript 3.8.3
$ mkdir test_private test_public
$ echo data > test_private/file
$ deno --allow-read=./test_public --allow-write=./test_public test.ts
caught PermissionDenied
success! data

Hence, if I know that ./test_private/file exists, and have --allow-read --allow-write access anywhere, I can create a symlink to ./test_private/file and put it in the second location, giving me (at least) read access to ./test_private/file. (I verified that I'll also have write access to it.)

Combined with the issues in #4423, if I have only --allow-write but not --allow-read access to ./test_private, I have the means to query the existence of any paths underneath it.

We could partly address this by having op_symlink require --allow-read access on its source file. I don't know if that would break the ability to create symlinks to non-existent paths. I don't think it would prevent one from gaining write access to any path they had read access to, if they had read/write access to any other path (such as /tmp).

A different strategy for addressing might be to have our state.check_read/check_write machinery follow symlinks?

Issue 2:
e.g. Currently creating a symlink under write-allowed directory to other directories would allow escaping the perm rules and access any file.
Issue 1:
Assuming that windows and webviews inherit the nodeintegration setting from parents, and nodeintegration is disabled, is still possible to run JS with full node integration via the Preload function.

<webview src="data:text/html,<script>require('child_process').exec('notepad.exe',function(){})</script>" preload="file:\\192.168.1.11\temp\test.js"></webview>

Currently seems that the only scheme accepted is file://, despite documentation saying that also asar:// is supported.

What will be the best way to prevent Preloading files from the network? asar:// was a local reference only? If so will be good to have that one back. Otherwise is there a way to implement a filter with event handling in the main.js to block remote files ?

Is there a way to enable preload in main.js only and disable it in all renderers?

Will protocol module work to handle file:// in Preloads?

Electron version: 0.37.5

Operating system: Windows 10

Issue 2:
Currently webview tag is available even when node integration is off, this can introduce security problems since webview can be used to execute arbitrary code.

Refs #3921.