WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
System information

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

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

TensorFlow installed from (source or binary): Binary

TensorFlow version (use command below): v1.11.0-rc2-4-gc19e29306c 1.11.0

Python version: 3.6.5

CUDA/cuDNN version: N/A

GPU model and memory: N/A

Describe the current behavior

FLOPS is always 0 when specifying batch dimension

Describe the expected behavior

FLOPS should be linear in batch dimension

Code to reproduce the issue

import tensorflow as tf
g = tf.Graph()
with g.as_default():
b, m, p, q = 2, 25, 16, 9
A = tf.Variable(tf.zeros([b, m, p]))
B = tf.Variable(tf.zeros([b, p, q]))
C = tf.matmul(A,B)

flops = tf.profiler.profile(g, options = tf.profiler.ProfileOptionBuilder.float_operation())
print('FLOP should be', b * m * q * 2 * p)
print('Calculated FLOP', flops.total_float_ops)

Other info / logs

Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.

Issue 2:
System information

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

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

Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:N/A

TensorFlow installed from (source or binary):binary

TensorFlow version (use command below):v1.10.0-0-g656e7a2b34 1.10.0

Python version:3.7

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

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

CUDA/cuDNN version:N/A

GPU model and memory:N/A

Exact command to reproduce:see below

import tensorflow as tf
a = tf.random_normal([1, 100, 100])
b = tf.random_normal([1, 100, 100])
c = tf.matmul(a, b)
tf.profiler.profile(
tf.get_default_graph(),
cmd='op',
options=tf.profiler.ProfileOptionBuilder.float_operation())

The outputs are correct (2M flops) if a and b have shape [100, 100].

But with 3D inputs, it outputs no flops for matmul.

The reason is that for 3D inputs it uses the "BatchMatMul" op which does not have flop statistics implemented.
Issue 1:
I follow the introduction and happened to this error.

cuda10, cudnn7, install pytorch by pip.

however, when I check by

> torch.utils.tensorboard import SummaryWriter

, it is all right.

Python 3.7.3 | packaged by conda-forge | (default, Jul 1 2019, 21:52:21)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from torch.utils.tensorboard import SummaryWriter
>>>

but when I use

> tensorboard --logdir=runs, it happens to this error:

`Traceback (most recent call last):
File "/home/kingsoft/anaconda3/envs/liubiao2/bin/tensorboard", line 10, in <module>
sys.exit(run_main())
File "/home/kingsoft/anaconda3/envs/liubiao2/lib/python3.7/site-packages/tensorboard/main.py", line 64, in run_main
app.run(tensorboard.main, flags_parser=tensorboard.configure)
File "/home/kingsoft/anaconda3/envs/liubiao2/lib/python3.7/site-packages/absl/app.py", line 300, in run
_run_main(main, args)
File "/home/kingsoft/anaconda3/envs/liubiao2/lib/python3.7/site-packages/absl/app.py", line 251, in _run_main
sys.exit(main(argv))
File "/home/kingsoft/anaconda3/envs/liubiao2/lib/python3.7/site-packages/tensorboard/program.py", line 228, in main
server = self._make_server()
File "/home/kingsoft/anaconda3/envs/liubiao2/lib/python3.7/site-packages/tensorboard/program.py", line 309, in _make_server
self.assets_zip_provider)
File "/home/kingsoft/anaconda3/envs/liubiao2/lib/python3.7/site-packages/tensorboard/backend/application.py", line 161, in standard_tensorboard_wsgi
reload_task)
File "/home/kingsoft/anaconda3/envs/liubiao2/lib/python3.7/site-packages/tensorboard/backend/application.py", line 194, in TensorBoardWSGIApp
return TensorBoardWSGI(plugins, path_prefix)
File "/home/kingsoft/anaconda3/envs/liubiao2/lib/python3.7/site-packages/tensorboard/backend/application.py", line 245, in __init__
raise ValueError('Duplicate plugins for name %s' % plugin.plugin_name)
ValueError: Duplicate plugins for name projector`

Issue 2:
in-place operations over ranges with overlap can lead to unexpected results.

To Reproduce

# e.g., attempting to convert a time series into deltas:
>>> a=torch.tensor([ 10, 11, 12, 13, 14, 13, 12, 11], dtype=torch.float )
>>> a[:len(a)-1]
tensor([10., 11., 12., 13., 14., 13., 12.])
>>> a[1:]
tensor([11., 12., 13., 14., 13., 12., 11.])
>>> a[1:]/a[:len(a)-1]
tensor([1.1000, 1.0909, 1.0833, 1.0769, 0.9286, 0.9231, 0.9167])
>>> a[1:] /= a[:len(a)-1]
>>> a
tensor([10.0000, 1.1000, 10.9091, 1.1917, 11.7483, 1.1065, 10.8445, 1.0143])

Expected behavior

we should probably raise an error pointing the user to the out-of-place operation.
Issue 1:
Migrated issue, originally created by Elmer de Looff (@edelooff)

The events documentation notes that since 0.9, the listens_for event decorator accepts a keyword named. With this, event arguments are provided as a dict. This works fine for the example of the Pool event, but fails for Engine events (for the current 0.9.7 release).

A testcase to reproduce this and traceback are included as attachments. The relevant code is also included below:

from sqlalchemy.event import listens_for
from sqlalchemy.engine import Engine

@listens_for(Engine, 'before_execute', named=True)
def intercept_execute(conn, **kw):
print conn.engine.url

Attachments: traceback.log | engine_event_fail.py

Issue 2:
Migrated issue, originally created by Michael Bayer (@zzzeek)

diff --git a/lib/sqlalchemy/orm/events.py b/lib/sqlalchemy/orm/events.py
index c50a7b0..bd0b48f 100644
--- a/lib/sqlalchemy/orm/events.py
+++ b/lib/sqlalchemy/orm/events.py
@@ -1490,7 +1490,7 @@ class AttributeEvents(event.Events):
@classmethod
def _listen(cls, event_key, active_history=False,
raw=False, retval=False,
- propagate=False):
+ propagate=False, **kw):

target, identifier, fn = \
event_key.dispatch_target, event_key.identifier, event_key.fn
@@ -1509,14 +1509,14 @@ class AttributeEvents(event.Events):
return fn(target, value, *arg)
event_key = event_key.with_wrapper(wrap)

- event_key.base_listen(propagate=propagate)
+ event_key.base_listen(propagate=propagate, **kw)

if propagate:
manager = instrumentation.manager_of_class(target.class_)

for mgr in manager.subclass_managers(True):
event_key.with_dispatch_target(
- mgr[target.key]).base_listen(propagate=True)
+ mgr[target.key]).base_listen(propagate=True, **kw)

def append(self, target, value, initiator):
"""Receive a collection append event.

from sqlalchemy import *
from sqlalchemy.orm import *
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import event

Base = declarative_base()

class A(Base):
__tablename__ = 'a'

id = Column(Integer, primary_key=True)
bs = relationship("B")

class B(Base):
__tablename__ = 'b'

id = Column(Integer, primary_key=True)
a_id = Column(Integer, ForeignKey('a.id'))

e = create_engine("sqlite://", echo=True)

sess = Session(e)

@event.listens_for(A.bs, 'set', named=True)
def update_challenge_points(target, **kw):
pass
Issue 1:
Since last update the default VS Code dark theme has changed (I like the old one because I just don't want bright red colors on the dark background). So I tried (first time I have to admit) create (or modify) a theme via http://tmtheme-editor.herokuapp.com/

Resulting theme is a modification of Visual Studio Dark (uploaded as .txt since .tmTheme is not allowed)

Visual Studio Dark Modified.txt

tmtheme-editor online interprets theme as follows:

VS Code however does not interpret theme identically:

Please note that this is my first contact with this stuff - I'm not sure if this is an issue related to VS Code of tmtheme-editor

Issue 2:
Right now, those keywords like import class from are all plain white.
Issue 1:
Original ticket http://projects.scipy.org/scipy/ticket/1708 on 2012-07-24 by trac user jgarc063, assigned to unknown.

First system info:

Ubuntu 10.04

Python 3.1.2

Scipy 0.9.0

Matplotlib 1.1.0(unofficial version ported through a sprint)

In the code below I've seperated the offending section. In the section shown variable alpha is set to 3_10^4 and the code works giving the expected responsed of an RLC circuit. However if I alternatively set alpha to 30000 the response returned by odeint is incorrect. Additionally if I set alpha to 3.2_10^4 the script won't even run. I also tried 3e4 and that doesnt give the proper results either.

Thank you for your consideration.

Best Regards,

Jorge Garcia

import numpy as np

import math as m

import matplotlib.pyplot as plt

from scipy.integrate import odeint

Differential equation values

w02 = 16_10^8 #Resonant Frequency a little over 10hz

alpha = 5_10^4 #Neper Frequency adjusted for each graph

I = 0.024 #Source Current

Solve system of equations dy/dt = f(y,t)

def f(y, t):

x2i = y[0]

x1i = y[1]

#Model equation

x2prime = w02_(I-x1i)-2_alpha*x2i

x1prime = x2i

return [x2prime, x1prime]

initial conditions

x20 = 0

x10 = 0

y0 = [x20, x10] #initial condition vector

t = np.linspace(0, 5, 10000)

plot results

plt.figure

plt.title('Current Step Response')

solve the ODEs

soln = odeint(f, y0, t)

V = soln[:, 1]

plt.plot(t, V, label='overdamped')

----------------------------------------- LOOK HERE

alpha = 3*10^4

soln = odeint(f, y0, t)

V = soln[:, 1]

plt.plot(t, V, label='underdamped')

----------------------------------------- LOOK HERE

alpha = 4*10^4

soln = odeint(f, y0, t)

V = soln[:, 1]

plt.plot(t, V, label='critically damped')

g=[]

for element in t:

g.append(I*0.9)

plt.plot(t, g, label='90% value')

plt.legend(loc=0)

plt.xlabel('Time(100us)')

plt.ylabel('Current(mA)')

plt.grid(True)

plt.show()

Issue 2:
Original ticket http://projects.scipy.org/scipy/ticket/1709 on 2012-07-24 by trac user jgarc063, assigned to unknown.

First system info:

Ubuntu 10.04

Python 3.1.2

Scipy 0.9.0

Matplotlib 1.1.0(unofficial version ported through a sprint)

In the code attached I've seperated the offending section. In the section shown variable alpha is set to 3_10^4 and the code works giving the expected responsed of an RLC circuit. However if I alternatively set alpha to 30000 the response returned by odeint is incorrect. Additionally if I set alpha to 3.2_10^4 the script won't even run. I also tried 3e4 and that doesnt give the proper results either.

Thank you for your consideration.

Best Regards,

Jorge Garcia
Issue 1:
.sizeAttenuation property works great at any zoom level but when perspective camera fov is changed ..the size is not maintained.

fiddle https://jsfiddle.net/orion_prime/exfmp6nw/92/

Issue 2:
I'm using PerspectiveCamera and a model including some Points using a PointsMaterial. I'm using a customised version of OrbitControls.js to allow the viewing of a large and complex model. One of the changes is that zoom function changes the FOV of the camera instead of moving it closer. The camera moves to show a specfic part of the models. I've noticed that the PointsMaterial attenuation changes sizes when the camera moves closer to the model but not when the FOV is changed.

I assume the size algorithm uses distance to the camera but not FOV? I've never posted to this repo before so excuse me if I miss something. I tried to test with IE but cannot get it to load the page at the moment. Equally, not sure exactly which version of Three it is but within the last year.

Code that creates the PointsMaterial:

var texFlame = new THREE.TextureLoader().load("textures/flame.png");
mtlFlame = new THREE.PointsMaterial ({size: 2, sizeAttenuation: true, color: 0xffffff, transparent: true, blending: THREE.AdditiveBlending, depthWrite: false, map: texFlame});

The code that changes FOV is similarly unexciting:

this.camera.fov = fov;
this.camera.updateProjectionMatrix ();

Three.js version

Dev

r87

...

Browser

All of them

Chrome

Firefox

Internet Explorer

OS

All of them

Windows

macOS

Linux

Android

iOS

Hardware Requirements (graphics card, VR Device, ...)

Don't know if this is hardware specific but it seems unlikely. I'm using GeForce GTX950 in Windows 10.
Issue 1:
Bug report

Bug summary

Code for reproduction

# Paste your code here

import matplotlib.pyplot as plt
import numpy as np

a = np.linspace(1,5)+1e4
b = np.random.random(a.size)+1e5

fig,ax =plt.subplots(1,2,figsize=(6,3),dpi=200)
ax[0].plot(a,b)

ax[1].plot(a,b)
ax[1].tick_params(left=False,labelleft=False,
bottom=False,labelbottom=False)
fig.show()

Actual outcome

Expected outcome

Both ticks and labels are removed, including the offset ones.

tick_params() seems to be the most straightforward way of removing the ticks but keeping the box. Setting labelxxx=False should intuitively include all its parts. And there is no other parameter in tick_params() that could deal with it.

Matplotlib version

Operating system: Ubuntu 18.04

Matplotlib version: 3.2.1

Matplotlib backend (print(matplotlib.get_backend())): module://backend_interagg

Python version: 3.8.3

Issue 2:
Bug report

If I use an "L" configuration for the ImageGrid label_mode, then the offset text on axes still appears for all axes, even though the tick labels themselves are not present. The "L" mode should disable the offset text where appropriate.

Code for reproduction

import matplotlib.pyplot as plt
from mpl_toolkits.axes_grid1 import ImageGrid
import numpy as np

im1 = np.arange(100).reshape((10, 10))
im2 = im1.T
im3 = np.flipud(im1)
im4 = np.fliplr(im2)

fig = plt.figure(figsize=(4., 4.))
grid = ImageGrid(fig, 111, # similar to subplot(111)
nrows_ncols=(2, 2), # creates 2x2 grid of axes
label_mode="L",
axes_pad=0.2, # pad between axes in inch.
)

for ax, im in zip(grid, [im1, im2, im3, im4]):
# Iterating over the grid returns the Axes.
ax.imshow(im, extent=[0, 1.e8, 0, 1.e8])

plt.savefig("test.png")

Actual outcome

# If applicable, paste the console output here
#
#

Expected outcome

The 10^8 offset text on the x-axis of the upper left axes, the x- and y- on the upper right, and the y on the lower right should not be display.

Matplotlib version

Operating system: Fedora 31

Matplotlib version: 3.2.1

Matplotlib backend (print(matplotlib.get_backend())): Qt5Agg

Python version: 3.7.6

Jupyter version (if applicable): N/A

Other libraries:

matplotlib installed via pip
Issue 1:
Apache Airflow version

2.4.2

What happened

Some tasks can be reordering during run in grid

What you think should happen instead

No response

How to reproduce

When i start generating tasks from query on postgreSQL and run any dag this bug show up

Operating System

Ubuntu 20.04.5 LTS

Versions of Apache Airflow Providers

apache-airflow-providers-common-sql==1.0.0

apache-airflow-providers-elasticsearch==4.2.1

apache-airflow-providers-ftp==3.0.0

apache-airflow-providers-google==8.1.0

apache-airflow-providers-http==3.0.0

apache-airflow-providers-imap==3.0.0

apache-airflow-providers-postgres==5.0.0

Deployment

Virtualenv installation

Deployment details

No response

Anything else

Every run on random tasks groups

Are you willing to submit PR?

Yes I am willing to submit a PR!

Code of Conduct

I agree to follow this project's Code of Conduct

Issue 2:
Apache Airflow version

2.3.0 (latest released)

What happened

While navigating the Grid view with auto refresh on the list of tasks is constantly rearranging. You can have the task instance centered in the view and then it refreshes and that task is now at the bottom of the list of tasks, next second its at the top.

What you think should happen instead

The list of tasks should atleast be somewhat stable. Finding specific run and task just to have it essentially run away from you is very annoying.

How to reproduce

Just have grid view open with tasks running and auto refresh on.

Operating System

Hosted on Astronomer

Versions of Apache Airflow Providers

No response

Deployment

Astronomer

Deployment details

Using astronomer's 2.3.0-3 build

Anything else

No response

Are you willing to submit PR?

Yes I am willing to submit a PR!

Code of Conduct

I agree to follow this project's Code of Conduct
Issue 1:
It would be nice if I could define an inline style with an array and the parser would expand it to duplicate styles props. For example:

let myStyles = {

display: ['-webkit-flex', '-ms-flexbox', 'flex'],

....

};

and then specifying "style={myStyles}" in my component would expand to:

style="display: -webkit-flex; display: -ms-flexbox; display: flex"

Thanks!

Issue 2:
Hi there ✋

We use react-virtualize to render a list. A sub component of a row carries some state. This state obviously gets reinitialized on every remount.

Can we just store the state on the parent in object, pass this object down the tree by props and then set this object every time we do a state update?

props : {
stateCache: {
childState: {}
}
}

constructor(props) {
super(props)
this.state = props.stateCache.childState;
}
...
this.setState({property: 2}, () => this.props.stateCache.childState = this.state)
Issue 1:
Since PT Run is a great replacement for the start menu, I'd like to assign the Windows key to open PT Run instead of the Windows 10 start menu.

However, the PowerToys settings UI won't allow me to set just the Windows key as a shortcut for opening PT Run.

This is similar to #3721, but I don't want a key combination including the Windows key, I want just the Windows key alone.

Issue 2:
Summary of the new feature/enhancement

Since I'm used to just pressing Windows key and typing what I want into the start menu before. I was wondering if it might be possible to map (Win LEFT) to PT/run
Issue 1:
Sites collapsed when portrait view to landscape view in the ipad 2. but successfully change landscape view to portrait view.i also check your given example sites in the getbootstrap.com. zooming is automatically activate in the landscape view.Thank you

Issue 2:
When turning the iPad from portrait to landscape, it seems to zoom in on the content instead of adjusting to the new pixel-width. Is this a webkit-issue or is there a way to fix this in bootstrap?

Thanks
Issue 1:
Lorenz Schumann opened SPR-4688 and commented

The RedirectView should handle arrays in the model as array get parameters.

The current behaviour would be that an array of ints with the model key "ids" would result in such a redirect url:

http://www.example.com/page.action?ids=[I@10b62c9

The desired behaviour should look like this:

http://www.example.com/page.action?ids=1&ids=2&ids=3

Affects: 2.0.7

1 votes, 3 watchers

Issue 2:
Mike Youngstrom opened SPR-1108 and commented

I attempted to upgrade from Spring 1.2.1 to 1.2.2 and with 1.2.2 a lot more of my beans are displaying:

"Bean 'XXXXX' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying"

I attempted to step through the code and it appears that many more beans are being initialized at the same time my AutoProxy instance is initialized and added as a post processor. If I downgrade back to 1.2.1 everything works fine again. Any ideas? Or do you need more information.

Mike

Affects: 1.2.2

Issue Links:

#5820 AbstractBeanFactory.getType change dramatically alters bean instantiation order ("duplicates")
Issue 1:
The thing that is missing for me most during the Mac install experience is moving VS Code.app to the Applications folder. Once it is there it is discoverable by spotlight and won't accidentally be deleted when cleaning out the download folder.

Issue 2:
have the debug viewlet open

have the output visible, like git output

select the output action in the debug viewlet, it shows the debug console

select the output action again

it hides the bottom panel but I would expect it to restore my previous UI state. that is reveal the output channels again, not hide the panel. Tho obviously when it brought up the panel it should hide it
Issue 1:
E.g. running:

$ atom /usr/local/etc/supervisor/conf.d/ /usr/local/etc/nginx/conf.d

Should open just one window with both these folders in one window, like sublime. At least I would love to see that.

(I also miss being able to use Cmd-Shift-F for searching the opened folder, even when it's not an actual project. Is there another way?)

Issue 2:
In Sublime I can have multiple folders in the side bar. If Atom already has this, I haven't been able to figure out how to do it.
Issue 1:
During prepare a pull request, I found the AndroidManifest.xml's sample are there twice.

What's the purpose of this, or is one of them just an outdated relict ?

Who knows it ?

If it's a pointless double code, I vote for a deletion to reduce confusion. But which one ?

Eclipse ?

Gradle

Compare a sample

For me it looks like the one with **/gradle/AndroidManifest.xml is the right one

Issue 2:
System information (version)

OpenCV => 4.0.0

Operating System / Platform => Ubuntu 16.04

Compiler => g++ (Ubuntu 5.5.0-12ubuntu1~16.04) 5.5.0 20171010

Detailed description

This is actually a feature request instead of a bug report. I was told that I could request features here. Please see http://answers.opencv.org/question/205794/how-do-i-know-which-header-file-i-should-use-for-my-opencv-c-program/?comment=205834#post-id-205834

When I was trying to look for the header files for different OpenCV functions via Google, I really had some troubles as a beginner. I wish the OpenCV manual could be more like what CPP reference website have so that users could know what header files to use immediately. For example, on https://en.cppreference.com/w/cpp/io/basic_stringstream, it specifically tells you the function is "Defined in header ". While for OpenCV functions, it is very vague. For example, on https://docs.opencv.org/trunk/d4/da8/group__imgcodecs.html#ga288b8b3da0892bd651fce07b3bbd3a56, the module name was hidden in the url, which was not so obvious to the new users.

Steps to reproduce

N/A.
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: xxx

Operating System version: xxx

Java version: xxx

Steps to reproduce this issue

xxx

xxx

xxx

Pls. provide [GitHub address] to reproduce this issue.

Expected Result

What do you expected from the above steps？

Actual Result

What actually happens?

If there is an exception, please attach the exception trace:

Just put your stack trace here!

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

I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: 2.7.3

Operating System version: windows8

Java version: 1.8

Steps to reproduce this issue

在消费端使用注解@reference时候，其中registry中指定了具体的值（注册配置对应的id属性）后，在启动解析注解时候，会执行configureRegistryConfigs方法解析@reference中的registry属性值，在改属性里面设置了值后，会执行getBeans方法，在getBeans方法中会返回Collections.unmodifiableList集合

在步骤1中返回的集合，会在接下来调用相应的ReferenceBean的方法setRegistries，设置到属性List registries中，此时的list是Collections.unmodifiableList实现。

接下来，在ReferenceBean初始化中，会先检测注册配置，调用checkRegistry方法，在里面会将RegistryIds 转换为registries，即在convertRegistryIdsToRegistries方法中完成。

convertRegistryIdsToRegistries 方法在有registryIds时候,有如下代码：

String[] ids = COMMA_SPLIT_PATTERN.split(registryIds); List<RegistryConfig> tmpRegistries = CollectionUtils.isNotEmpty(registries) ? registries : new ArrayList<>(); Arrays.stream(ids).forEach(id -> { if (tmpRegistries.stream().noneMatch(reg -> reg.getId().equals(id))) { tmpRegistries.add(ConfigManager.getInstance().getRegistry(id).orElseGet(() -> { RegistryConfig registryConfig = new RegistryConfig(); registryConfig.setId(id); registryConfig.refresh(); return registryConfig; })); } });

其中tmpRegistries.add时候会报错，因为此时的tmpRegistries是Collections.unmodifiableList实例，导致无法添加

Pls. provide [GitHub address] to reproduce this issue.

改变下类型，使其可以进行添加