WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Well this is a downer. I just spun up a new build machine and started cruising through the build, probably not paying as much attention as I should. Here's an excerpt:

checking for C compiler default output file name... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... .exe
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking build system type... Invalid configuration `x86_64-pc-msys': system `msys' not recognized
configure: error: /bin/sh ../autoconf/config.sub x86_64-pc-msys failed
Makefile:369: recipe for target 'llvm-3.3/build_Release/config.status' failed
make[2]: *** [llvm-3.3/build_Release/config.status] Error 1
Makefile:43: recipe for target 'julia-release' failed
make[1]: *** [julia-release] Error 2
Makefile:32: recipe for target 'release' failed
make: *** [release] Error 2

Digging into the /deps/llvm-* and doing a make there confirms that the problem is that the LLVM configure is not detecting the build system.

$uname -a
MSYS_NT-6.1 VM-Win7x64 2.0.0(0.272/5/3) 2014-03-19 13:02 x86_64 Msys

Up to date:

$ git remote -v
origin https://github.com/JuliaLang/julia.git (fetch)
origin https://github.com/JuliaLang/julia.git (push)

$ git show --oneline
898962c Merge pull request #6200 from JuliaLang/sjk/sprintf

Just to be safe I did a pacman -S autoconf -- same build failure after updating autoconf.

Note that I have not bisected and I am not implicating this particular commit of course. I'll look for recent changes to the makefiles when I get back Monday.

Issue 2:
Summary of situation:

built julia-1.2.0-rc2 from source for centos6 with gcc 6.4.0 and -DGLIBCXX_USE_CXX11_ABI=0

dlopen an .so which embeds some simple julia code. “Lifted” into global namespace with dlopen(RTLD_NOW | RTLD_GLOBAL)

from a maya plugin.

jl_init() results in this assert:

void* jl_init_llvm(): Assertion `jl_TargetMachine && “Failed to select target machine -” " Is the LLVM backend for this CPU enabled?"’ failed.

Any ideas? A toy julia embedding works fine ( not loaded from maya )

versioninfo():

Julia Version 1.2.0-rc2.0

Platform Info:

OS: Linux (x86_64-pc-linux-gnu)

CPU: Intel(R) Xeon(R) CPU E5-2630 v4 @ 2.20GHz

WORD_SIZE: 64

LIBM: libopenlibm

LLVM: libLLVM-6.0.1 (ORCJIT, broadwell)
Issue 1:
Hi there,

we're currently test driving some of our old scripts remotely from ansible and if we choose to use it probably will for some time.

On the one hand ansible makes it really easy to automate workflows that span multiple servers (that we'd like to use) on the other hand though it makes it really hard to see live whats going on on the other system.

What we would like is a way to see the output of the task on the target system as live feedback (possibly if requested via an option in a playbook).

As far as I can see that is not possible with the current design of playbooks as the underlying callback object does not get callbacks for individual lines in the playbook.

As far as I understand how ansible works (ssh into the other machine run a command) this should not be difficult to implement as the output is streamed live to the local machine anyway (or could be easily).

So that's the feature request: show live output of remote tasks/commands. How about it? Would you be willing to do that in ansible? Would you accept a pull request? Is it already possible?

Best regards and thanks for the great tool!

Issue 2:
Would love to see each 'shell' (&other) command creathave an option that creates a pipe for the duration of the process and pipes it's output into the pipe real time.

Doing some long lived load generation and Ansible is crucial, but I don't know how to monitor process, short of adding more layers.
Issue 1:
Is there a simple way to expose the XHR object so that it can be aborted, or is this better off being handled somehow in a response interceptor?

Issue 2:
Describe the bug

Typing definitions in v0.22.0 are incorrect for Axios class methods. Request (eg. https://github.com/axios/axios/blob/master/index.d.ts#L146) methods typings indicate request data and response should be the same type. That is not correct.

To Reproduce

Use any request method in typescript and define data property of the config object. It will expect the response to be of the same type.

Expected behavior

Types should be something like this

export class Axios {
.......
request<T = never, R = AxiosResponse<T>, RC = any> (config: AxiosRequestConfig<RC>): Promise<R>;
.......
}

Environment

Axios Version 0.22.0

Additional context/Screenshots

n/a
Issue 1:
The thrown TransformationFailedException is swallowed by the form component

it is happening in the code block bellow

excerpt from Form.php starting at line 631

$modelData = $this->normToModel($normData);
$viewData = $this->normToView($normData);
}
} catch (TransformationFailedException $e) {
// the exception is caught here and is not throw again
$this->synchronized = false;

// If $viewData was not yet set, set it to $submittedData so that
// the erroneous data is accessible on the form.
// Forms that inherit data never set any data, because the getters
// forward to the parent form's getters anyway.
if (null === $viewData && !$this->config->getInheritData()) {
$viewData = $submittedData;
}
}

Issue 2:
Hey!

I dig into an issue with the form component.

First, the use case:

A customer would like to have a date form field splitted in a single text field for the date part and two dropdown fields for the hour and minute. For invalid input, it would like to get different error messages according to what was wrong. The different cases are:

The date is invalid (in case of wrong date input)

The hour is invalid (in case of wrong hour input)

The minute is invalid (in case of wrong minute input)

The problem:

The issue is this kind of error is detected by the data transformer which can only result to one error message (invalid_message).

An idea how the form component can provide this kind of error messages?
Issue 1:
[x ] I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

Text field of this select field should not be cleared when its dropdown is opened.

Current Behavior

Text field is cleared

Steps to Reproduce (for bugs)

http://www.material-ui.com/#/components/select-field

Select someting in select field.

Open the select field dropdown again.

With dev inspector, move the overlaying dropdown. You will see text field without value.

Context

It triggers me the change of select field which I need to detect. But the change should only happen if the user actually selected something differently than the current value.

Your Environment

| Tech | Version |

| Material-UI | v.0.19.4

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

Expected Behavior

Bug related to v1 branch. How to add right icon to CardHeader component as on Expandable example in current stable version.

Current Behavior

No possibility to add right icon in CardHeader.
Issue 1:

Issue 2:
requested by @bartlomieu following our chat on the deno/lobby i'm opening an issue concerning, how can we do to write a plugin in pure C code ?

for exemple:

-- hello.c

#include <stdio.h>

void deno_plugin_init(void){
puts("Welcome in the deno land !");
}

void dino(void){
puts("[OK]");
}

gcc -c -Wall -fpic hello.c

gcc -shared -o libhello.so hello.o

and the following deno code:

hello.ts

const libhello = Deno.openPlugin("./libhello.so")
const funct_hello = libhello.ops
// this thing work correctly and call deno_plugin_init from my ".so" library
funct_hello.dino()
// Type 'PluginOp' has no call signatures.

so how can we do ?
Issue 1:
Chris Beams opened SPR-8667 and commented

Affects: 3.0.6, 3.1 M2

This issue is a sub-task of #13297

Issue Links:

#13335 MANIFEST.MF: OSGi-Version Range too small for JDO in Library org.springframework.orm ("is duplicated by")

Issue 2:
Gerrit Brehmer opened SPR-7278 and commented

The recommended way to develop REST-style webservices is the usage of @ResponseBody annotation and HttpMessageConverter instead of generating a model and a view (ContentNegotiatingViewResolver etc.).

But there are some limitations, that make things hard to handle:

ExceptionResolver support

@RequestBody is only supported with @ExceptionHandler annotation. I need a centralized exception handling to generate a special error object as the return value. So I must wrote a method in each controller class to delegate to the centralized exception handler. I think the ExceptionResolver-interface is more like an AOP-approach, with no glue code.

ExceptionResolver also have some nice standard implementations like SimpleMappingExceptionResolver, where I can handle the returned HTTP status code very easy. This is also not supported by @ExceptionHandler out of the box

'useNotAcceptableStatusCode' from ContentNegotiatingViewResolver (so for some features, I must also configure view-handling)

simple and easy to use attribute to enable NOT_ACCEPTABLE Http Status code

missing option for enabling global @ResponseBody-like handling instead of annotate all methods (e.g. in AnnotationMethodHandlerAdapter)

I also would recommend the full HttpMessageConverter way (@RequestBody & @ResponseBody) without view handling, so it would be nice, if @ResponseBody has fewer limitations. Additionaly it would be great, if the documentation have some notes about the recommended way for webservice-only REST-style applications (with hints to the limitations above)

Affects: 3.0.2

Issue Links:

#12776 @ExceptionHandler doesn't handle exceptions from other controllers ("is duplicated by")

#12012 Add equivalent of JAX-RS @Produces to Spring MVC

Referenced from: commits e5eceaf

1 votes, 2 watchers
Issue 1:
System Info

transformers branch main

Wrong Codes in examples/pytorch/**_no_trainer.py

for step, batch in enumerate(eval_dataloader):
with torch.no_grad():
generated_tokens = accelerator.unwrap_model(model).generate(
batch["input_ids"],
attention_mask=batch["attention_mask"],
**gen_kwargs,
)

generated_tokens = accelerator.pad_across_processes(
generated_tokens, dim=1, pad_index=tokenizer.pad_token_id
)
labels = batch["labels"]
if not args.pad_to_max_length:
# If we did not pad to max length, we need to pad the labels too
labels = accelerator.pad_across_processes(batch["labels"], dim=1, pad_index=tokenizer.pad_token_id)

generated_tokens, labels = accelerator.gather((generated_tokens, labels))
generated_tokens = generated_tokens.cpu().numpy()
labels = labels.cpu().numpy()

if args.ignore_pad_token_for_loss:
# Replace -100 in the labels as we can't decode them.
labels = np.where(labels != -100, labels, tokenizer.pad_token_id)
if isinstance(generated_tokens, tuple):
generated_tokens = generated_tokens[0]
decoded_preds = tokenizer.batch_decode(generated_tokens, skip_special_tokens=True)
decoded_labels = tokenizer.batch_decode(labels, skip_special_tokens=True)

decoded_preds, decoded_labels = postprocess_text(decoded_preds, decoded_labels)
# If we are in a multiprocess environment, the last batch has duplicates
if accelerator.num_processes > 1:
if step == len(eval_dataloader):
decoded_preds = decoded_preds[: len(eval_dataloader.dataset) - samples_seen]
decoded_labels = decoded_labels[: len(eval_dataloader.dataset) - samples_seen]
else:
samples_seen += decoded_labels.shape[0]

here, In the for loop, step will never equal to len(eval_dataloader), so here should be modified to if step == len(eval_dataloader) - 1

and

samples_seen += decoded_labels.shape[0]

decoded_labels is a list that produced by the postprocess_text(),

list object have no attribute shape.

GLHF

Information

The official example scripts

My own modified scripts

Tasks

An officially supported task in the examples folder (such as GLUE/SQuAD, ...)

My own task or dataset (give details below)

Reproduction

just run the examples scripts provided in the readme

Expected behavior

samples_seen exceed the dataset size
and also the attribute error

Issue 2:
System Info

When I finetuned the text classification model based on the glue no trainer script, I found a bug in our script.
The URL is below:
https://github.com/huggingface/transformers/blob/main/examples/pytorch/text-classification/run_glue_no_trainer.py#L525

When we use the accelerator for multi-GPU training, the code should transfer from
if step == len(eval_dataloader)
to
if step == len(eval_dataloader) -1
Otherwise, it cannot work to filter the last step duplicated samples.

Who can help?

No response

Information

The official example scripts

My own modified scripts

Tasks

An officially supported task in the examples folder (such as GLUE/SQuAD, ...)

My own task or dataset (give details below)

Reproduction

just run the script with a text classification using multi-GPU accelerator. The problem occurs in the last step for duplicated samples.

Expected behavior

I think it should be fixed soon.
Issue 1:
I am filing this issue per @sebmarkbage.

See this bin as an example: http://jsbin.com/zehiqa/1/edit?js,output

@syranide suggested adding an onChange to the <input> calling this.props.toggleSelected, then adding a setTimeout around setState inside App.toggleSelected. This approach works but seems unnecessary since the <input> should bubble up to the <div> which is handling the event.

Issue 2:
Now that flat bundles are mostly done (#9327), separating out followup work into a separate issue.

Should ReactDebugCurrentFrame be in isomorphic package? #9365

Does --extractErrors fully work? It does update the file, but I'm still seeing "out of sync" console spam on rebuilds.

What happens if user forgets to envify process.env.NODE_ENV with webpack or use dead code elimination? Would it bundle both bundles? Sounds like even worse than what happens now. Would the user see any warnings?

Wrap CommonJS bundles into conditions #9361

Add a way to see bundle size change

Address internal FB invariant issue (I think they wanted it to be ignored so it's used verbatim)

Figure out RN rollout strategy

When does it go 100% Fiber? Do we switch to flat bundles after that?

See gaearon@db1f704 for possible workaround for circular injection

Flat ReactNative bundle would require flat React bundle but that's not what's shipped on npm

Make sure error codes transform still works

Add a fixture for ReactART

Make a final decision on how we bundle server renderer

Remove providesModule in source

Maybe reduce duplication between UMD bundles (e.g. put object-assign on React internals) #10671

Convert source to ES6 modules

Update release documentation

Extract shared state to npm package

Use named imports in more places (eg event system)

Figure out a static injection mechanism for www and RN

Investigate mangling and GCC optimizations

Figure out how to share build process with third party renderers (e.g. ART for starters)

Simplify the default build process to not run FB bundle builds, come up with a better strategy for FB only builds maybe?
Issue 1:
Bug Report

For English only, other languages will not accept.

Before report a bug, make sure you have:

Searched open and closed GitHub issues.

Read documentation: ShardingSphere Doc.

Please pay attention on issues you submitted, because we maybe need more details.

If no response more than 7 days and we cannot reproduce it on current information, we will close it.

Please answer these questions before submitting your issue. Thanks!

Which version of ShardingSphere did you use?

org.apache.shardingsphere
sharding-jdbc-spring-boot-starter
4.0.0-RC1

Which project did you use? Sharding-JDBC or Sharding-Proxy?

sharding-jdbc

Expected behavior

Actual behavior

Reason analyze (If you can)

Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.

Example codes for reproduce this issue (such as a github link).

Issue 2:
Which version of ShardingSphere did you use?

5.0.0-alpha

Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?

ShardingSphere-Proxy

Expected behavior

I use XA transaction configuation, but the sharding-proxy does not send XA SQL to the physics node, the XA transaction is invalid.

props:
# # LOCAL: Proxy will run with LOCAL transaction.
# # XA: Proxy will run with XA transaction.
# # BASE: Proxy will run with B.A.S.E transaction.
proxy-transaction-type: XA

I write the SQL in sharding-proxy mysql client,the SQL is:

start transaction;
update activity set startTime="2020-08-01 18:00:01" where activityId=30;
rollback;

The result is change, transaction does not rollback.

Actual behavior

This is my Wireshark analysis chart:

� �� � � H �update activity set startTime="2020-08-01 18:00:01" where activityId=300 � � � (Rows matched: 1 Changed: 0 Warnings: 0

I can't see any XA SQL in the analysis.So I think the XA configuration is invalid.
Issue 1:
This template is for miscellaneous issues not covered by the other issue categories.

For questions on how to work with TensorFlow, or support for problems that are not verified bugs in TensorFlow, please go to StackOverflow.

If you are reporting a vulnerability, please use the dedicated reporting process.

For high-level discussions about TensorFlow, please post to discuss@tensorflow.org, for questions about the development or internal workings of TensorFlow, or if you would like to know how to contribute to TensorFlow, please post to developers@tensorflow.org.

Issue 2:
System information

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

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

TensorFlow installed from (source or binary): No

TensorFlow version (use command below): 1.5

Python version: 3.5

Bazel version (if compiling from source):

GCC/Compiler version (if compiling from source): 4.8

CUDA/cuDNN version: 9.0

GPU model and memory: NVIDIA GTX 1080 8GB

Exact command to reproduce:

Describe the problem

Here I want to ask and sure that: Is this possible to run a trained model (using python to train) in a Java application with GPU support and detect the object and get the result of matches and the x, y point and the width and height?

I am going to use python to train my own dataset by using one of the model e.g: ssd_mobilenet_v1_coco OR faster_rcnn_resnet101_coco and then use the trained model in the Java application with GPU support with boxes output. So I want to sure that does the TensorFlow support this task or not? If yes, is there any good tutorial to show the usage? If not, why, and when it can be supported?

Thanks in advance!!
Issue 1:
Describe the bug

Hi Three Team,

i am facing a great Perfomance drop while setting the correct color encoding for an cubemap used as scene.environment.

The drop occours in: WebGLProgram @ three.module.js:18311

Thx

Philipp

To Reproduce

Live example

Check out those Fiddles:

Wrong (default, not changed) encoding:

https://jsfiddle.net/u70f9cek/

Correct sRGBEncoding set:

https://jsfiddle.net/n8otvcry/1/

Expected behavior

Somehow better performance, or some hints....

Screenshots

Platform:

Device: [Desktop]

OS: [Windows 10]

Browser: [Chrome]

Three.js version: [133.1]

Issue 2:
Describe the bug

The introduction of SRGB8_ALPHA8 in #22551 improved the render quality of sRGB textures, but also added significant synchronous conversion times that block the main thread. Every sRGB texture adds to the total blocking time, resulting in a poor user experience, especially when the scene contains many textures.

To Reproduce

Steps to reproduce the behavior:

Set encoding of any Uint8 RGBA texture to sRGBEncoding. (WebGL 2 context is required.)

Render a scene that uses the texture.

See the main thread being blocked for a noticeable period of time during the first frame.

Code

The following example loads a cube map and sets its encoding to sRGBEncoding:

https://codesandbox.io/s/srgb8-alpha8-wv3jf?runonclick=1&file=/index.js

Live example

LinearEncoding (0.16 seconds blocking) (Refresh to see small freeze)

sRGBEncoding (1.49 seconds blocking) (Refresh to see long freeze)

The blocking behaviour can also be observed in live examples that load GLTF models, such as https://threejs.org/examples/?q=gltf#webgl_loader_gltf.

Expected behavior

Ideally, the main thread should not be blocked at all. Blocking time should at least be reduced as much as possible.

Screenshots

With LinearEncoding or sRGBEncoding pre r133
With sRGBEncoding since r133

Longest blocking time = 160 ms
Longest blocking time = 1496 ms

Platform:

Device: Desktop

OS: Windows

Browser: Chrome, Brave, Firefox

Three.js version: r133
Issue 1:
CSS for Table is a little wonky when viewed in IE 11 most egregious issues are TableFooter and TableRow do not respect the padding or spacing

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

Expected Behavior

Should be a similar if not identical look and feel across all browsers

Current Behavior

First column of table is always expanded to take up the empty width of the parent div

Footer aligns left and pagination drop down overlaps text

Steps to Reproduce (for bugs)

Open link in IE 11 https://material-ui.com/demos/tables/

Context

Trying to make an app IE compatible the issue with the padding is minor compared to the issue with the TableFooter

Your Environment

Tech
Version

Material-UI
^1.0.0-beta.20

React
^15.6.1

browser
IE11

Issue 2:
Icon button color = unset, disabled = true -> disabled color

Icon button color = primary | accent | contrast, disabled = true -> primary | accent | contrast color

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

Expected Behavior

The disabled color should be applied when disabled is true, no matter what the color parameter is set to

Current Behavior

This only happens when the color prop is unset, for the others the disabled color is never applied.

Steps to Reproduce (for bugs)

<IconButton disabled color="primary><Icon>alarm</Icon></IconButton>

Your Environment

Tech
Version

Material-UI
latest beta

React
15

browser
Chrome 61

etc
Issue 1:
Original ticket http://projects.scipy.org/numpy/ticket/414 on 2007-01-08 by trac user lbolla, assigned to unknown.

[[BR]]

Wrong results are given by subtract.reduce and divide.reduce, with respect to the standard function reduce.

Take a look at this piece of code:

from numpy import *

x = arange(4) # x = array([0,1,2,3])

def myadd(x,y): # re-define the binary sum function

return x + y

print reduce(myadd, x) # 6, as expected

print add.reduce(x) # 6, as expected

def mysub(x,y): # re-define the binary diff function

return x - y

print reduce(mysub, x) # -6, as expected

print subtract.reduce(x) # 2 ---> WRONG!

It probably depends on the wrong order of the operands in the binary operation subtract or divide. Any non-commutative operation can lead to this problem (and it's worth checking!).

This code works correctly if the Numeric package is imported istead of numpy (first row of the snippet).

Issue 2:
Original ticket http://projects.scipy.org/numpy/ticket/413 on 2007-01-08 by @rkern, assigned to @teoliphant.

In [21]: import numpy

In [22]: numpy.subtract.reduce(numpy.arange(5))
Out[22]: 2

In [23]: import Numeric

In [24]: Numeric.subtract.reduce(Numeric.arange(5))
Out[24]: -10

In [25]: print numpy.__version__
1.0.2.dev3493

In [26]: print Numeric.__version__
24.2