WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Hello,I dont know what the problem it is? it cant generate a new pb file.thank you.

bazel-bin/tensorflow/tools/graph_transforms/transform_graph --in_graph=/media/long/data/android/PoseEstimationForMobile/release/cpm_model/model.pb --out_graph=/media/long/data/android/PoseEstimationForMobile/release/cpm_model/graph_opt1.pb --inputs=inputs/X --outputs=output/predict --transforms='strip_unused_nodes(type=float, shape="256*64") remove_nodes(op=Identity, op=CheckNumerics) fold_constants(ignore_errors=true) fold_batch_norms fold_old_batch_norms'

2018-10-18 21:49:33.990823: I tensorflow/tools/graph_transforms/transform_graph.cc:317] Applying strip_unused_nodes

2018-10-18 21:49:33.991322: E tensorflow/tools/graph_transforms/transform_graph.cc:263] Input node output/predict not found in graph

2018-10-18 21:49:33.991366: E tensorflow/tools/graph_transforms/transform_graph.cc:264] usage: bazel-bin/tensorflow/tools/graph_transforms/transform_graph

Flags:

--in_graph=""	string	input graph file name

--out_graph=""	string	output graph file name

--inputs=""	string	inputs

--outputs=""	string	outputs

--transforms=""	string	list of transforms

--output_as_text=false	bool	whether to write the graph in text protobuf format

Transforms are:

add_default_attributes

backport_concatv2

backport_tensor_array_v3

flatten_atrous_conv

fold_batch_norms

fold_constants

fold_old_batch_norms

freeze_requantization_ranges

fuse_pad_and_conv

fuse_remote_graph

fuse_resize_and_conv

fuse_resize_pad_and_conv

insert_logging

merge_duplicate_nodes

obfuscate_names

place_remote_graph_arguments

quantize_nodes

quantize_weights

remove_attribute

remove_control_dependencies

remove_device

remove_nodes

rename_attribute

rename_op

rewrite_quantized_stripped_model_for_hexagon

round_weights

set_device

sort_by_execution_order

sparsify_gather

strip_unused_nodes

Issue 2:
Environment info

Operating System:

OSX El Capitan 10.11.5

Installed version of CUDA and cuDNN:

N/A

If installed from sources, provide the commit hash:

a4b7bb9

Steps to reproduce

git clone --recursive https://github.com/tensorflow/models.git

cd models/syntaxnet/tensorflow

./configure

cd ..

bazel build syntaxnet/...

What have you tried?

Confirmed that bazel version is 0.2.2

Confirmed that configure has been run

Logs or other output that would be helpful

(If logs are large, please upload as attachment).

INFO: Found 74 targets... ERROR: /private/var/tmp/_bazel_pberkman/64f225994fec6ff696f44dfe0caf6bfc/external/org_tensorflow/util/python/BUILD:14:1: Executing genrule @org_tensorflow//util/python:python_check failed: bash failed: error executing command /bin/bash -c ... (remaining 1 argument(s) skipped): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1. ERROR: Cannot find 'external/org_tensorflow/util/python/python_lib'. Did you run configure?

Seems that this issue is consistent with error #2703
Issue 1:
Is there a Window.cookies like node-webkit?

Issue 2:
Hello Everyone,

I am a newbie to Electron (Atom-shell), Was figuring out the api provided in ATOM shell. While doing mock up codes. I was unable to find any api to retrieve cookies and delete specific cookies for domain.

Am i missing something, can someone put me in a right direction.

Mac : ~/Library/Application Support/<appName>/Cookies i deleted all were gone.
windows : appData/<appName>/cookies

deletion will delete everything But is there any api to collect all Cookies and manage selective domains to delete them? or can we enable https://developer.chrome.com/extensions/cookies api

BTW, I just love the architecture and way atom is working embedding CEF and Node

Cheers!!!!!
Issue 1:
A recent change to the DateTimeToStringTransformer (b20c5ca) now causes time values with AM/PM timestamps (H:i A) to fail in validation This is because the change now expects all time values to be in H:i:s datetime format whereas previously the system was more compatible with different formats.

Works: 14:03:07

Fails: 02:03:07 PM

This specifically causes errors when using a datetime entity type.

It seems that there are two possible ways to fix this issue. The first is to allow the DateTimeType to take in format as an option so users can specify different time formats instead of defaulting to H:i:s in all cases. The other would be to modify the DateTimeToStringTransformer so it is more resistant to failures like this, but could possibly cause the initial fix to break.

Is there any other way to bypass this issue?

Issue 2:
Is there a way to use 12H format in Time Field?
Issue 1:
Original ticket http://projects.scipy.org/numpy/ticket/1647 on 2010-10-24 by trac user phaustus, assigned to unknown.

Hi,

Under numpy 1.4.1, the output of:

int32(array([0.]))

is simply "0", whereas under numpy 1.3.0, the output is

"array([0], dtype=int32)". While the former is a number,

the latter is an array. Interestingly, the output for

int32(array([0.,1.]))

and for

int32(array([]))

is the same in each version (i.e., both return arrays).

I apologize if this has already been addressed. I did a search and found nothing.

Cheers,

Phaustus

Issue 2:
Original ticket http://projects.scipy.org/numpy/ticket/764 on 2008-04-29 by @charris, assigned to unknown.

In [1]: float32(array([[1]]))
Out[1]: array([[ 1.]], dtype=float32)

In [2]: float64(array([[1]]))
Out[2]: 1.0

In [3]: int64(array([[1]]))
Out[3]: array([[1]], dtype=int64)

In [4]: int32(array([[1]]))
Out[4]: 1

But also

In [5]: float64([[1]])
Out[5]: array([[ 1.]])

In [6]: int32([[1]])
Out[6]: array([[1]])
Issue 1:
This issue to enumerate and track for 1.5 release the items needed to move the following @kubernetes/sig-scheduling features out of alpha/beta and into product:

Taints and Tolerations

Inter-pod Affinity and Anti-Affinity

/cc @ConnorDoyle @ingvagabund @jayunit100 @davidopp

We should socialize the checklist of items here.

Issue 2:
Hey all, I’m looking to extend the default scheduler with a capability that I don’t think exists yet. I wanted to ask here just in case I'm duplicating work.

My workload:

A few services/forever pods, but a large number of terminating pods (not yet using the jobs object, but that’s the general idea). These jobs can run anywhere from 5 min to 3 days, and we pretty much always have more “requests” of the cluster than capacity (this is by design). We currently have a fairly hacky way of setting up a priority queue, where certain jobs are submitted to the cluster before others. The details of this hacky system are not that relevant for this discussion.

The need:

It is my task to rewrite this system to be more robust. While my use case in prod will be a more complicated and dynamic, a more or less FIFO queue is sufficient to discuss the scheduler code in question (as long as the priority of a job can be changed later, such as through an annotation on the pod).

Wait, doesn't the scheduler already do this?

Currently the default scheduler effectively does a for loop over all pods, which somewhat randomly selects pods to schedule in order. If it can't schedule a pod, it will move onto the next one. I don't really want to touch the logic of determining which node to schedule the pod on; I just want to modify which pods are selected to be scheduled. For my needs, the scheduler doesn't have to be lightning fast as long as it's reasonable.

Gotchas

Large request pods: It's possible that small pods can get blocked behind large pods in the queue. I have a straightforward way to overcome this, but that adds more complexity to this issue and I'd rather wait until later.

relevant issues:

Multiple schedulers (wip)

https://github.com/kubernetes/kubernetes/blob/master/docs/proposals/multiple-schedulers.md

Dispatcher feature request

#17430

None of the above has been implemented, and frankly I'm ok with just extending my existing scheduler (and running all pods through this mechanism) until multiple schedulers are supported.

relevant issue labels: area/scheduling

relevant code:

I believe all I have to do is implement this function differently:

https://github.com/kubernetes/kubernetes/blob/master/plugin/pkg/scheduler/scheduler.go#L66

Is that it or am I missing something? I am also unclear of where that actually is calculated...

Can anyone give me a few pointers/suggestions and I'll code it up?

Once I code it up, where should I contribute this back to? I'm sure I'm not the only one trying to schedule a ton of jobs on a cluster.
Issue 1:
As reported in the three.js IRC channel:

With the CanvasRenderer, If you create an object with SmoothShading and only specify a color (not texture), it is always white. This can be seen in the canvas_materials.html example file by changing the color of the ball with SmoothShading.

Issue 2:
you can't set the color of an element (faces or the whole object) when using SmoothShading.

Reproduce the bug :

get the provided sample code called : canvas_materials.html

(line 75) where is defined the coloured (not mapped) SmoothShading Material, simply replace the color by what your want :

ie : { material: new THREE.MeshLambertMaterial( { color: 0xff0000, shading: THREE.SmoothShading } ), overdraw: true, doubleSided: false },

your color value have no effect :(
Issue 1:
Migrated issue, originally created by Anonymous

With the MySQL dialect it is currently possible to specify a collation for a VARCHAR column (as well as for TEXT and CHAR columns??).

AFAIK that's not possible with the PostgreSQL dialect. That would be a nice feature to have, as the locale setting is set (in stone) when a Postgres database is created...

I've just seen that someone requested the same feature for the SQLite dialect (bug #2276).

So maybe that collation feature could be implemented in a more generic way inside SQLAlchemy?

Thanks a lot!

Issue 2:
Currently the AsyncEngine implements just the methods begin, connect and raw_connection.

It should probably implement also the other api of the engine 2.0. As support for inspection is missing.

The api for the engine would be:

attr uri, pool, dialect, engine, name, driver, echo

methods clear_compiled_cache, update_execution_options, execution_options, get_execution_options, dispose

Also the AsyncSession has some part of the api missing (non complete list):

attr bind, new, deleted

methods get, delete

The same may apply to other Async classes that proxy the sync ones, like AsyncConnection
Issue 1:
Uncaught Error: spawn rubocop ENOENT

Atom Version: 0.154.0

System: Mac OS X 10.9.5

Thrown From: Atom Core

Steps To Reproduce

...

...

Stack Trace

At events.js:85

Error: spawn rubocop ENOENT
at exports._errnoException (util.js:742:11)
at Process.ChildProcess._handle.onexit (child_process.js:1051:32)
at child_process.js:1142:20
at process._tickCallback (node.js:378:11)

Issue 2:
Uncaught Error: spawn rubocop ENOENT

Atom Version: 0.156.0

System: Mac OS X 10.10.1

Thrown From: Atom Core

Steps To Reproduce

Install linter and linter-rubocop

Quit atom

Open atom, and open a project

Stack Trace

At events.js:85

Error: spawn rubocop ENOENT
at exports._errnoException (util.js:742:11)
at Process.ChildProcess._handle.onexit (child_process.js:1051:32)
at child_process.js:1142:20
at process._tickCallback (node.js:378:11)
Issue 1:
Please consider adding a class named table-fixedheader that can be applied to a table so that the body scrolls under fixed headers.

See this JSFiddle for a working demo: http://jsfiddle.net/drueter/yqgB5/3/

All that is needed:

table.table-fixedheader>tbody {
display: block;
}

table.table-fixedheader>tbody {
overflow-y: auto;
height: 50px; /*placeholder: override as needed*/
}

table.table-fixedheader>thead>tr>th, table.table-fixedheader>tbody>tr>td {
float: left;
width: 100px; /*placeholder: override as needed*/
}

See comments in JSFiddle for usage notes. This seems to work well.

Issue 2:
Would be nice to have a simple way to have the headings of a table stay at the top of a table as you scroll the page. Think long list of employee data.

Would be nice to have this integrated in so it's aware of the other fixed elements like the navbar and will adjust blocking accordingly.

Maybe something like:

<table class="table-fixed-header">

<thead>

<tr>

or

<table>

<thead class="fixed">

<tr>
Issue 1:
David J. M. Karlsen opened SPR-4456 and commented

Please se attached class ApplicationContextReaderImpl.java .

Testcase:

We tried to get this class @Autowired into a consumer of the class (The consumer declares @Autowired on the interface).

Observations:

If used as is - Spring finds no match (expecting 1 unique bean - finds none).

If it's not defined in the spring context as a @Component but defined in xml - it will be found!

If the inner Cache class is defined as a static class - autowiring ( 1) ) will succeed.

So this clearly has to be an autowiring bug.

Affects: 2.5.1

Attachments:

ApplicationContextReaderImpl.java (8.46 kB)

Issue Links:

#9003 component scanning incorrectly excludes classes ("duplicates")

Issue 2:
Arnaud Nauwynck opened SPR-8531 and commented

the META-INF/ is a hidden package for isolated ClassLoader, for example as osgi Netbeans plugins

Suppose you want to use Spring in your netbeans plugins application, and your application in split into several plugins depending of each others, you can not start the ClassPathXmlApplicationContext, because it fails to validate xml files, as none of the META-INF/spring.handlers are seen by the ClassLoader of your plugin.

Unfortunately, this resource name "META-INF/spring.handlers" is hard-coded in org.springframework.beans.factory.xml.PluggableSchemaResolver and the stack calling this constructor from ClassPathXmlApplicationContext is extremely difficult (impossible?) to customize so as to change the default value.

Would it be possible to use another (additionnal) resource name than "META-INF/spring.handlers", for example "org/springframework/spring.handlers" ? A simple migration plan would be to search for both names, and simply concatenate results : no backward compatible problem, and no more problem with all these strange isolated ClassLoader such as osgi, Netbeans, JavaWebStart...

Issue Links:

#13015 Spring XSD validation fails in the presence of non-standard classloaders due to problems resolving "schema.handlers" etc. ("duplicates")
Issue 1:
Do you want to request a feature or report a bug?

Bug.

What is the current behavior?

Node throws an error when webpack runs.

Error log

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

package.json

webpack.config.js

What is the expected behavior?

Webpack should run the build.

Please mention other relevant information such as the browser version, Node.js version, Operating System and programming language.

webpack@2.2.0-rc.4

node@5.7.0

Windows 7

The build runs fine when using rc.3 or when using node >= 6.0.0

Issue 2:
Do you want to request a feature or report a bug?

bug

What is the current behavior?

.../node_modules/webpack/lib/SourceMapDevToolPlugin.js:158
Buffer.from(JSON.stringify(sourceMap)).toString("base64");
TypeError: this is not a typed array

this breaks my deploy

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

devtool: '#inline-source-map' in node4?

If this is a feature request, what is motivation or use case for changing the behavior?

In this commit Buffer.from is used, but it was introduced in node6

7327ee6

Maybe create some ponyfill for that?
Issue 1:
Pretty much the title.

Right now we're only using the default blur amount.

Issue 2:
I'm reading through the docs and I'm not sure if I just don't find it, or if there is no option to override specific profile settings.

I tried adding "globals" with smaller font size than the hard-coded default of 18 but to no avail I don't want to add it to all profiles, as it would be easier to just do it once. (In Notepad++ this is quite easy.)

// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
"globals": { "fontSize": 8 }, // TRYING TO OVERRIDE THE HARD-CODED FONT SIZE OF 18 (WAY TOO BIG)
"profiles": [
{
// Make changes here to the powershell.exe profile
"guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"name": "Windows PowerShell",
"commandline": "powershell.exe",
"hidden": false
},
{
// Make changes here to the cmd.exe profile
"guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
"name": "cmd",
"commandline": "cmd.exe",
"hidden": false
},
{
"guid": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
"hidden": false,
"name": "PowerShell Core",
"source": "Windows.Terminal.PowershellCore"
},
{
"guid": "{2c4de342-38b7-51cf-b940-2309a097f518}",
"hidden": false,
"name": "Ubuntu",
"source": "Windows.Terminal.Wsl"
},
{
"guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
"hidden": false,
"name": "Azure Cloud Shell",
"source": "Windows.Terminal.Azure"
}
],
// Add custom color schemes to this array
"schemes": [],
// Add any keybinding overrides to this array.
// To unbind a default keybinding, set the command to "unbound"
"keybindings": []
}
Issue 1:
https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gce/18908/

Failed: [k8s.io] Port forwarding [k8s.io] With a server that expects no client request should support a client that connects, sends no data, and disconnects [Conformance] {Kubernetes e2e suite}

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/portforward.go:335
Jun 18 16:48:52.632: Pod did not stop running: timed out waiting for the condition

Issue 2:
We should make them all FROM either scratch, busybox, or debian:jessie (or ubuntu:14.04 but it is bigger). I am sad that there is not an ultra-small "just enough debian to run apt-get install" base.
Issue 1:
Describe your question

When i use session.merge, i got a (pymssql.IntegrityError) (2627, b"Violation of PRIMARY KEY constraint 'PK__payment___357D4CF8B9E5C8E5'. Cannot insert duplicate key in object 'dbo.test'. The same in mysql sqlalchemy.exc.IntegrityError: (mysql.connector.errors.IntegrityError) 1062 (23000): Duplicate entry 'payCode_-298' for key 'PRIMARY'

Example (if applicable)

from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base, declared_attr
from sqlalchemy.orm import sessionmaker, scoped_session

from config import Config

engine = create_engine(
Config.SQLALCHEMY_DATABASE_URI,
pool_size=Config.SQLALCHEMY_POOL_SIZE,
max_overflow=Config.SQLALCHEMY_MAX_OVERFLOW,
pool_recycle=Config.SQLALCHEMY_POOL_RECYCLE,
# echo=True
)

db_session = scoped_session(
sessionmaker(autocommit=False, autoflush=False, bind=engine)
)

class Base:
@declared_attr
def __tablename__(cls):
return (
"".join("_%s" % c if c.isupper() else c for c in cls.__name__)
.strip("_")
.lower()
)

Base = declarative_base(cls=Base)
class PaymentMethod(Base):
"""test"""

code = Column(String, primary_key=True, autoincrement=False, comment="primary_key")
name = Column(String, comment="name")
group_id = Column(String, comment="group_id")
shop_id = Column(String, comment="shop_id")
insert_time = Column(DateTime, comment="insert_time", default=datetime.now)

data = [{'name': 'payCode_-298', 'value': 'pospalopenpay_yiling.clientscanpos'}, {'name': 'payCode_-299', 'value': 'pospalopenpay_yiling.clientscanpos'}, {"name":'payCode_-298', 'value': 'pospalopenpay_jlpay.clientscanpos'}, {'name': 'payCode_-299', 'value': 'pospalopenpay_jlpay.clients'}]
for i in data:
db_session.merge(PaymentMethod(code=i["name"], name=i['value'], shop_id='test_shop_id', group_id='test_group_id'))
db_session.commit()

Additional context

Add any other context or screenshots about the feature request here.

The tables in the database are clean

Have a nice day!

Issue 2:
Migrated issue, originally created by Anonymous

(original reporter: ged) Is this intended? It used to work in 0.5.xxx...

Attachments: test_fk.py | 1765.patch
Issue 1:
Hello,

Since the upgrade to BS3 I have the following problem:

I have a vertical menu with 5 links one below the other. Each link has a tooltip with position - top.

After the upgrade to BS3, rolling over the links makes the tooltips to appear randomly in firefox (and only there, chrome works fine). Error in console is : 'TypeError: this.remove is not a function' and is given by JQuery (v 1.9.1).

Moreover, the links dont work anymore (since I guess the tooltip is above them somehow).

Eventually, I had to move the tooltips with placement - right and the links worked again (but the console errors remain).

Can you please check this up?

Issue 2:
When you hover out a tooltip in FireFox on Windows you will get a error message:

TypeError: this.remove is not a function

...){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"=...

The error was thrown by jquery.js (Line 4).

You can test it here:

http://getbootstrap.com/javascript/

I'm not sure, but it can be the same issue like this #8765
Issue 1:
When viewing the 10 minute step example as seen here, i expect to be able to click on any numbers available. When 10 minute steps are set, I can still view 5 minute increments on the clock.

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

Your Environment

Demo website: http://www.material-ui.com/#/components/time-picker

Issue 2:
Description

Switch, Checkbox, and Radio use SwitchBase to render.

Radio renders item labels, but neither Switch nor Checkbox does.

Images & references

https://material.google.com/components/selection-controls.html#

Proposal

I'll use Radio as the guide and submit a PR for Switch and Checkbox that will render an optional item label based on the label prop.

Versions

Material-UI: next

@oliviertassinari does this sound acceptable? I'd like to get this done tomorrow, so guidance is welcome.
Issue 1:
Been having an issue with this snippet of code:

var reader = new FileReader();
var debug = {hello: "world"};
var blob = new Blob([JSON.stringify(debug, null, 2)], {type : 'application/json'});

reader.onload = function(evt){
console.log(evt.target.result);
}
reader.readAsText(blob);

So when running this as plain JS, I end up logging {hello:"world"}. But this doesn't typecheck right now.

So currently the interface structures involved in lib.d.ts are something like (trimmed for space):

interface Event {
target:EventTarget;
}

interface FileReader extends EventTarget{
onload:(ev:Event)=>any;
result: any;
}

The interface signature makes it clear that FileReader is meant to be the target, but because of how the interfaces are structured, this doesn't bubble down properly.

In a vacuum, the simple solution seems to be to make Event be generic on its target:

interface Event<T extends EventTarget>{
target:T
}

interface FileReader extends EventTarget{
onload:(ev:Event<FileReader>)=>any;
result: any;
}

But two things cause me to hesitate at this patch:

The Event interface is defined in the W3C DOM spec .I'm not quite sure what the policy is upstream with Edge on this, but introducing generics into the typing might be too much deviation from this.

Event touches a lot of stuff, so there's a lot of collateral damage. I think it would require rewriting almost everything related to Events (kind of defeating the purpose of generating lib.d.ts from Edge).

As a side note, I've noticed that there's a lot of onX(ev:Event<Self>)=>any-type event listeners a bit all over the place (where Self is the containing interface). I run into this quite a bit in my own code, I wonder if there's value in having a special type variable to refer to the containing class.

Anyways, I wanted to get some feedback on this before moving forward.

Issue 2:
When using the Event interface from lib.d.ts, and attaching a listener, the callback will get an object of type Event. However, the Event's currentTarget property is of type EventTarget (whereas it's should be of type Element/HTMLElement).