WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Environment info

Operating System: Mac OS X 10.11.4

CUDA: No

TF installed from source

git rev-parse HEAD: 6d04d601e9e8758ec4642fa9d548b7321d804d63

bazel version
Build label: 0.2.3-homebrew
Build target: bazel-out/local-fastbuild/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Tue May 17 15:07:52 2016 (1463497672)
Build timestamp: 1463497672
Build timestamp as int: 1463497672

Problem

I want to run inference on mobile and thought quantization would be a good idea. I also want to use the benchmark program to see speed and memory consumption of different models before starting to train them.

However the benchmark seems to be missing the quantization ops needed (it doesn't matter which quantization mode I use):

E tensorflow/tools/benchmark/benchmark_model.cc:72] Could not create TensorFlow Session: Not found: Op type not registered 'QuantizeV2'

I realize that I should modify this BUILD file somehow to include the missing ops but I can't figure out Bazel's name of the built library or how to link it statically into the benchmark program. Or are the ops missing for a reason (incompatible with the normals ops etc)?

I know that this is more of a question than a bug report, but I don't think I'm the only one with problem so perhaps you can treat is as a documentation bug?

Issue 2:
Environment info

Operating System:

Building on Mac OS X

Running on iOS 9.2.1

The commit hash (git rev-parse HEAD)

27eeb44

The output of bazel version

Build target: bazel-out/local-fastbuild/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Tue Jul 12 11:11:47 2016 (1468321907)
Build timestamp: 1468321907
Build timestamp as int: 1468321907

Steps to reproduce

I compile tf for iOS with the makefile

I follow https://www.tensorflow.org/versions/master/how_tos/quantization/index.html to quantize a model which run perfectly in iOS

Replace the frozen model file with the quantized one, iOS throw the Error

F /Users/yjmade/Documents/code/labs/tensorflow/tf_master1/tensorflow/contrib/ios_examples/camera_object_detect/CameraExampleViewController.mm:436] Couldn't load model: Not found: Op type not registered 'Dequantize'

I think it maybe is the same problem with #3543
Issue 1:
Hello,

#!/bin/env python
import pandas as pd
import numpy as np
import sys
print sys.version
print "NUMPY:", np.__version__
print "PANDAS:", pd.__version__

df = pd.DataFrame([[0, None], [4, 3]], columns=['a','b'])
print df

df["c"] = 1.0
#print df #uncomment and result change

df["c"][~df.all(axis=1)] = 2
print df
print df.c

gives

2.7.2 (default, Jul 30 2012, 17:32:47)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-46)]
NUMPY: 1.7.1
PANDAS: 0.12.0
a b
0 0 NaN
1 4 3
a b c
0 0 NaN 1
1 4 3 1
0 2
1 1
Name: c, dtype: float64

As you can see, I try to change value of the c columns to "2" for the element where one of the column is null and it does not work.

The serie is however modified.

What is even stranger is that adding an intermediate print (uncomment above) changes the behavior.

I was not able to find any duplicate of this issue.

Thanks in advance for having a look.

Issue 2:
Extend the new "pipe" protocol to GroupBy objects to allow for piping of a wider class of functions. Currently, one can only create pipes that chain together objects inheriting from NDFrame. But the concept of piping is general and could be extended to other pandas objects, specifically anything inheriting from GroupBy.

The use case is to write pipe that allow one to freely transform back-and-forth between NDFrames and GroupBy objects. Example:

df = DataFrame({A: [...], B: [...]})

def f(dfgb):
return dfgb['B'].value_counts()

def g(srs):
return srs * 2

grouped = df.groupby('A')

grouped.pipe(f).pipe(g)

Note that these transformations are transformations are

GroupBy -> Series

Series -> Series

and the chain seamlessly switches from a GroupBy.pipe to a NDFrame.pipe

There are a few ways to implement this. A simple way is to break out the core functionality of "pipe" into a pure function and then to call that function in any method implementation of pipe. Another way is to think of piping as a mix-in trait, put it as a method in a base class, and then mix that base class into any class that wants to implement pipe-ability. I have no strong preference between these options, and I'm open to other implementations that may be more inline with Pandas' design goals or the long-term vision of the "pipe" concept.

A strawman implementation of the first implementation suggestion can be found here:

master...ghl3:groupby-pipe

CC

@TomAugspurger

@shoyer
Issue 1:
Currently plotting a decision tree is a pretty big pain, in particular given how easy it could be in a notebook. jupyter actually has built-in support for showing graphviz graphs.

I suggest we add a function with a lazy graphviz import to return a graphviz graph, instead of writing to a file (it's one call to graphviz.Source()).

Alternatively we could add an option to export_graphviz to return the graph as a string instead of writing to a file. Having to create a StringIO object to show a graph seems silly.

Issue 2:
Recently I used built-in visualizer for DecisionTreeClassifier in Jupyter and can say that

its interface could be better (example is taken from docs):

>>> from IPython.display import Image
>>> dot_data = StringIO()
>>> tree.export_graphviz(clf, out_file=dot_data,
feature_names=iris.feature_names,
class_names=iris.target_names,
filled=True, rounded=True,
special_characters=True)
>>> graph = pydot.graph_from_dot_data(dot_data.getvalue())
>>> Image(graph.create_png())

In addition this does not work on Python 3, since at the time of writing pydot cannot be installed for Python 3.

The ideal solution will be something like

from sklearn import tree
tc = tree.DecisionTreeClassifier()
...
tree.plot(tc) # or even tc.plot()

but in this case tree module should depend on pydot and IPython.display.image modules.

I can fix this issue, but what is the best way to do this?
Issue 1:
es7 proposal : https://github.com/sebmarkbage/ecmascript-rest-spread

Spread properties

Typing

In my opinion the goal of this method is to be able to duplicate an object and changing some props, so I think it's particularly important in this case to not check duplicate property declaration :

var obj = { x: 1, y: 2};
var obj1 = {...obj, z: 3, y: 4}; // not an error

I have a very naive type check algorithm for a similar feature (JSXSpreadAttribute) in my little jsx-typescript fork: I just copy the properties of the spread object in the properties table when I encounter a spread object, and override those property if I encounter a declaration with a similar name.

Emitting

jstransform use Object.assign, babel introduce a shim:

var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };

We could either force the presence of assign function on ObjectConstructor interface, or provide a similar function (with a different name).

I think that the optimal solution would be to not emit any helper in es6 target (or if Object.assign is defined), and to emit an helper function for es5, es3.

var obj = { x: 1, y: 2};
var obj1 = {...obj, z: 3};

/// ES6 emit
var obj = {x: 1, y: 2};
var obj1= Object.assign({}, obj, { z: 3 });

//ES3 emit
var __assign = function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
for (var key in source) {
if (Object.prototype.hasOwnProperty.call(source, key)) {
target[key] = source[key];
}
}
}
return target;
};

var obj = {x: 1, y: 2};
var obj1= __assign({}, obj, { z: 3 });

Rest properties

Typing

For simple object the new type is a subtype of the assignation that does not contains properties that has been captured before the rest properties :

var obj = {x:1, y: 1, z: 1};
var {z, ...obj1} = obj;
obj1// {x: number; y:number};

If the destructuring assignment has an index declaration, the result has also a similar index declaration:

var obj: { [string: string]: string };
var {[excludedId], ...obj1} = obj;
obj1// { [string: string]: string };

new/call declarations are obviously not captured:

var obj: { (): void; property: string};
var { ...obj1} = obj;
obj1// { property: string };

Emitting

It is not possible to emit rest properties without an helper function, this one is from babel:

var obj = {x:1, y: 1, z: 1};
var {z, ...obj1} = obj;

var __objectWithoutProperties = function(obj, keys) {
var target = {};
for (var i in obj) {
if (keys.indexOf(i) >= 0) continue;
if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;
target[i] = obj[i];
}
return target;
};

var obj = {x:1, y: 1, z: 1};
var z = obj.z;
var obj1 = __objectWithoutProperties(obj, ["z"]);

Edit: added some little typing/emitting example

Issue 2:
interface Marker {}

type Foo = string & Marker;

let x = {};
let y: Foo = "hello";

x[y] = 1;

The error is demonstrated in the TypeScript playground (http://goo.gl/STqLUU) and is still present as of the latest typescript@next.
Issue 1:
After the update open_file plugin does not work in iOS with the following message:

Syncing files to device iPhone 7 Plus...
[VERBOSE-2:engine.cc(157)] Could not prepare to run the isolate.
[VERBOSE-2:engine.cc(116)] Engine not prepare and launch isolate.
[VERBOSE-2:FlutterViewController.mm(407)] Could not launch engine with configuration.

To reproduce the issue, clone the project

https://github.com/yathit/open_file

go to example folder and

run the app

Issue 2:
Steps to Reproduce

With previous beta, version 0.5.1 QR Code Scanning plugin was working fine, with no problems at all.

After upgrading to current beta, version 0.6.0, started receiving the following logs:

[+16642 ms] [VERBOSE-2:engine.cc(158)] Could not prepare to run the isolate.
[ ] [VERBOSE-2:engine.cc(117)] Engine not prepare and launch isolate.
[ ] [VERBOSE-2:FlutterViewController.mm(411)] Could not launch engine with configuration.

The plugin used is: https://github.com/apptreesoftware/flutter_barcode_reader

As it was working with previous beta, posted the issue here as it seems to be a flutter issue.

Logs

Lost were too big for raw text on GitHub: https://justpaste.it/7e99m

No issues

[✓] Flutter (Channel beta, v0.6.0, on Mac OS X 10.13.6 17G65, locale en-BR)
• Flutter version 0.6.0 at /Users/victorsouza/Documents/Flutter
• Framework revision 9299c02cf7 (2 weeks ago), 2018-08-16 00:35:12 +0200
• Engine revision e3687f70c7
• Dart version 2.1.0-dev.0.0.flutter-be6309690f

[✓] Android toolchain - develop for Android devices (Android SDK 28.0.1)
• Android SDK at /Users/victorsouza/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.1
• ANDROID_HOME = /Users/victorsouza/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
• All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 9.4.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 9.4.1, Build version 9F2000
• ios-deploy 1.9.2
• CocoaPods version 1.5.3

[✓] Android Studio (version 3.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 27.1.1
• Dart plugin version 173.4700
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)

[!] IntelliJ IDEA Ultimate Edition (version 2018.2.1)
• IntelliJ at /Users/victorsouza/Applications/JetBrains Toolbox/IntelliJ IDEA Ultimate.app
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• For information about installing plugins, see
https://flutter.io/intellij-setup/#installing-the-plugins

[✓] Connected devices (1 available)
• Victor’s iPhone • a5b21a21fc88260180f7749fa4f4d85cec4107d9 • ios • iOS 11.4.1

! Doctor found issues in 1 category.
Issue 1:
Hello, i'm trying to load my model using pytorch_java_only but it's return this error:

Exception in thread "main" java.lang.UnsatisfiedLinkError: no pytorch_jni in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at com.facebook.soloader.nativeloader.SystemDelegate.loadLibrary(SystemDelegate.java:22)
at com.facebook.soloader.nativeloader.NativeLoader.loadLibrary(NativeLoader.java:43)
at org.pytorch.NativePeer.<clinit>(NativePeer.java:11)
at org.pytorch.Module.load(Module.java:23)
at com.github.beeqwe.Bootstrap.main(Bootstrap.java:18)

How to reproduce the bug:

OS: Windows

public static void main(String[] args) throws IOException {
System.setProperty("java.library.path", LIBTORCH_PATH + "lib");

Module mod = Module.load(MODEL_PATH + "model.pt1"); //LINE 18
Tensor data =
Tensor.fromBlob(
new int[]{1, 2, 3, 4, 5, 6}, // data
new long[]{2, 3} // shape
);
IValue result = mod.forward(IValue.from(data), IValue.from(3.0));
Tensor output = result.toTensor();

System.out.println("shape: " + Arrays.toString(output.shape()));
System.out.println("data: " + Arrays.toString(output.getDataAsFloatArray()));
}

pom.xml:

<dependency>
<groupId>org.pytorch</groupId>
<artifactId>pytorch_java_only</artifactId>
<version>1.6.0</version>
</dependency>
<dependency>
<groupId>com.facebook.fbjni</groupId>
<artifactId>fbjni-java-only</artifactId>
<version>0.0.3</version>
</dependency>
<dependency>
<groupId>com.facebook.soloader</groupId>
<artifactId>nativeloader</artifactId>
<version>0.8.0</version>
</dependency>

LIBTORCH_PATH this is directory of files which downloaded from there

And i noticed one regularity, linux archive contains the libpytorch_jni.so file and macos archive contains the libpytorch_jni.dylib, but in windows archive no similar file. Same with libfbjni.so and libfbjni.dylib. Could you help me? Maybe i do something wrong.

Thanks!

cc @peterjc123 @maxluk @nbcsm @guyang3532 @gunandrose4u @smartcat2010 @mszhanyi

Issue 2:
I think pytorch should add Windows support.

Other deep learning frameworks, like tensorflow, theano and mxnet, all support Windows.

I only use Windows in my work. So I want to know whether pytorch will support Windows in future.
Issue 1:
I have a controller with the following code:

$form = $this
->createForm(SurveyType::class, $survey)
->add('submit', SubmitType::class, [
'label' => 'Create',
]);

When I go to the profiler, it throws an exception Key "type_class" for array with keys "id, name, view_vars, children" does not exist in @WebProfiler/Collector/form.html.twig at line 460.

So adding elements to the created form (not form builder) leads to this problem.

Btw, is it a bad practice to add buttons (specific for controller action) in such a manner? I know that a can use inherit_data for the SurveyType, but it does not allow to have DATA events, which I do use in this particular case.

Issue 2:
Is this issue related to: Exception after 3.2 upgrade #20698 ?

The issue occurs opening the Form panel in the Profiler.
Issue 1:
Challenge Name

https://www.freecodecamp.com/challenges/use-a-css-class-to-style-an-element#?solution=%0A%3Cstyle%3E%0A%20%20.red-text%20%7B%0A%20%C2%A0%20%20color%3A%20red%3B%0A%20%20%7D%0A%3C%2Fstyle%3E%0A%0A%3Ch2%20class%3D%22red-text%22%3ECatPhotoApp%3C%2Fh2%3E%0A%0A%3Cp%3EKitty%20ipsum%20dolor%20sit%20amet%2C%20shed%20everywhere%20shed%20everywhere%20stretching%20attack%20your%20ankles%20chase%20the%20red%20dot%2C%20hairball%20run%20catnip%20eat%20the%20grass%20sniff.%3C%2Fp%3E.%0A

Issue Description

I have the correct code which I have verified with the gitter community but still the header will not change to red. I have no other means of doing this training than on my phone which is an Android. I cannot proceed with these lessons until this is rectified.

Browser Information

I only have access to this via my Android using Google chrome

Browser Name, Version: Google chrome

Operating System: Android

Mobile, Desktop, or Tablet: Mobile

Your Code

<style>
.red-text {
color: red;
}
</style>

CatPhotoApp

Kitty ipsum dolor sit amet, shed everywhere shed everywhere

Issue 2:
Challenge add-inline-styling-to-elements has an issue.

User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0.

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

Similar to issues mentioned in issues within #12762, I can't get the Your h2 elements should have a font-family of verdana. test to pass in Firefox. I have refreshed the page, reset the code, cleared local storage--in all permutations, several times each--verified that each h2 element has the correct attribute and value, and checked to see what FCC JS code's test was asserting. The only error being logged throughout any of this is Content Security Policy: Directive ‘frame-src’ has been deprecated. Please use directive ‘child-src’ instead. on page refresh. At least one other person has tried and had the same problem in Firefox, but were able to pass after a few refreshes in Chrome after a few page refreshes.

Additional challenges that appear to have this same problem:

Change Styles Based on Data

Change the Presentation of a Bar Chart

Change the Color of an SVG Element

Style D3 Labels

A recurring theme is that the solution to the failing test cases are all in element attributes, if that helps any...
Issue 1:
Given A and B type as below, but gobind does not generate the exported "Connect()" in A's proxy(java).

type B struct {

A

}

func NewB() *B{

return &B{}

}

type A struct {

}

func (a A) Connect() {

}

Issue 2:
as golang.org/s/gobind says:

Passing and returning a struct S promotes it to *S for the purpose of generating bindings.

Currently this is not implemented.
Issue 1:
I'm using ansible-pull as cron.daily job for syncing new packages to my clients.

But right now it fails to pull updates from the remote host.

I run ansible-pull like this:

#!/bin/bash
# Cron job to git clone/pull a repo and then run locally
echo "127.0.0.1" > /tmp/ansible_hosts
su root -c 'env ANSIBLE_HOSTS="/tmp/ansible_hosts" ansible-pull -d /var/lib/ansible/local -U ansible-git:ansible -C ansible-update >/var/log/ansible-pull.log 2>&1'

ansible-git is defind in my ssh_config. The Output from ansible-pull is:

127.0.0.1 | success >> {
"after": "971fe17",
"before": "971fe17",
"changed": false
}

But git status shows:

~# git status
# On branch ansible-update
# Your branch is behind 'origin/ansible-update' by 3 commits, and can be fast-forwarded.
#
nothing to commit (working directory clean)

Issue 2:
When using a non-cloned (originally) repository, the git module errors out.

The logic here:

cmd = "git branch -a"
cmd = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
(gbranch_out, gbranch_err) = cmd.communicate()

try:
m = re.search( '^\* (\S+|\(no branch\))$', gbranch_out, flags=re.M )
cur_branch = m.group(1)
m = re.search( '\s+remotes/origin/HEAD -> origin/(\S+)', gbranch_out, flags=re.M )
default_branch = m.group(1)

Seems to be the culprit.

There is most likely a different way to determine the default branch. Something like git ls-remotes? or the like?

Currently there are two possible work-arounds:

remove and re-clone from the remote repository

manually add the symref (untested)
Issue 1:
I'm having issues with the "Page view" trigger on Google Tag Manager. If there is a page where the template is reused and only the data changes, the trigger won't fire. I've tried putting the GTM script in the head component directly, and loading it with the react-gtm-module package. Both result in the same problem. I came up with a temporary fix where I fire the tags on "All Pages" and on "All History Changes". This is a lot better because it will catch the history changes as well, but it duplicates the firing in many cases. Is there a specific way to accomplish this in Next? I thought the "Head" component would re-render everything on a route change so I'm guessing either that isn't happening with the tags, or GTM isn't picking that up. Any help on how to solve this is much appreciated.

Issue 2:
Every .js file in pages becomes a route, can i change it?

I want use src/pages
Issue 1:
expect formart of insert like :

// insert_with_muti_values
INSERT INTO t_order_item (order_id , user_id , status , creation_date)
VALUES
(1, 1, 'insert', '2017-08-08'),
(2, 2, 'insert', '2017-08-08')
ON DUPLICATE KEY UPDATE status = 'init'

// insert_with_muti_set
INSERT INTO t_order SET order_id = 1,
user_id = 1,
status = CONVERT(to_base64(aes_encrypt(1 , 'key')) USING utf8)
ON DUPLICATE KEY UPDATE status = VALUES(status)

// insert_with_select
INSERT INTO t_order (order_id , user_id , status)
SELECT order_id , user_id , status
FROM t_order
WHERE
order_id = 1;

Issue 2:
Which version of Sharding-Sphere do you using?

3.1.0

Which project do you using? Sharding-JDBC or Sharding-Proxy?

Sharding-JDBC

Expected behavior

All sharding tables' structure of a logic table are mostly same, so we can load one sharding table metadata instead of loading each of the sharding tables.

Actual behavior

Loading all metadata from database, causing startup too slowly.

check.table.metadata.enabled = false