WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
I have a webpack configs for two builds with watch: true options.

If I try module.exports = {/*1st build*/} or module.exports = {/*2st build*/} everything is fine.

But when I try to combine them into one like this:

module.exports = [{/*1st build*/},{/*2d build*/}]

and run webpack command it doesn't watch for changes. It just stops working like there is no watch: true option there.

But if I run webpack --watch it works and watches for changes.

Shouldn't those watch: true options work from inside the config? Or is webpack --watch the only way to do it?

Issue 2:
I'm submitting a...

bug report

Webpack version:

1.13.1/2.x

Please tell us about your environment:

OSX 10.11.5

Current behavior:

If webpack.config exports an array watch param doesn't work

Expected/desired behavior:

If webpack.config exports an array, watch param should work

Webpack configuration:

module.exports = [
{
entry: entries,

output: {
path: __dirname + '/www/f/min/',
filename: '[name].build.js',
publicPath: '/rev-18/f/min/',
},

watch: true,

watchOptions: {
aggregateTimeout: 150
},

devtool: 'source-map',

resolve: {
modulesDirectories: ['node_modules'],
extensions: ['', '.js'],
alias
},

resolveLoader: {
modulesDirectories: ['node_modules'],
moduleTemplates: ['*-loader', '*'],
extensions: ['', '.js']
},

module: {
loaders: [
{
test: /\.js$/,
exclude: /(node_modules|bower_components|nform)/,
loader: 'babel',
query: {
plugins: ['transform-runtime'],
presets: ['es2015', 'stage-0']
}
},
{
test: /\.modernizrrc$/,
loader: 'modernizr'
},
],
},

stats: {
children: false
},

plugins: [
new webpack.NoErrorsPlugin(),
new webpack.optimize.CommonsChunkPlugin({
name: 'common',
minChunks: 4
}),
]
},
{
entry: entriesLess,

output: {
path: __dirname + '/www/f/min/',
filename: '[name].build.css'
},

watch: true,

watchOptions: {
aggregateTimeout: 150
},

resolveLoader: {
modulesDirectories: ['node_modules'],
moduleTemplates: ['*-loader', '*'],
extensions: ['', '.js']
},

module: {
loaders: [
{
test: /modules\/.*\.less$/,
loader: ExtractTextPlugin.extract('style', 'css?-url!postcss!less')
},
]
},

postcss: function () {
return [cssnext]
},

stats: {
children: false
},

plugins: [
new webpack.NoErrorsPlugin(),
new ExtractTextPlugin('[name].build.css')
]
}
];

The problem in this line. In our case options is an array. So, the fastest way to fix this is to use firstOptions variable which defined above.

What do you think?
Issue 1:
Repro: https://codesandbox.io/s/elegant-villani-9d3hr?file=/src/index.js

import { TiltLoader } from "three/examples/jsm/loaders/TiltLoader"

new TiltLoader().load("/model.tilt", (scene) => console.log(scene))

This is the error message in a local env (Parcel):

TiltLoader.js:42 TypeError: _jszipModuleMin.JSZip is not a constructor
at TiltLoader.parse (TiltLoader.js:59)
at Object.onLoad (TiltLoader.js:32)
at XMLHttpRequest.<anonymous> (three.module.js:36749)

Issue 2:
Looks like the morph weights are not calculated correctly in the software renderer. I have a simple grid-based weighting system which works correctly on WebGL but seems to have severe distortions on software renderer.

WebGL version: http://samiarola.com/buggyrenderer/morpher.html

Software version: http://samiarola.com/buggyrenderer/morphersoft.html

If you pull the weights one by one, you can notice distortions if the values are not 0 or 1, and if you stack the weights, the whole model distorts badly. E-mail me (sami (at) ookoohko.com), I can send the test over.
Issue 1:
I use Syimfony v2.5.7, and I set entry_point to id of my service that extends Symfony\Component\Security\Http\EntryPoint\FormAuthenticationEntryPoint class but symfony remains to call start method of Symfony\Component\Security\Http\EntryPoint\FormAuthenticationEntryPoint instead to call method from my implementation.

I must crate compiler pass that replace security.authentication.form_entry_point definition with definition that use my entry point implementation to achieve this.

Issue 2:
I am not good at english and I will do my best to articulate..

Yestoday, I have upgrade my Symfony framework from 2.3.18 to 2.3.22. Everything is good, except my AuthenticationEntryPoint class.

Code here:

class AuthenticationEntryPoint implements AuthenticationEntryPointInterface
{
private $router;

public function __construct(Router $router)
{
$this->router = $router;
}

public function start(Request $request, AuthenticationException $exception)
{
if ($request->isXmlHttpRequest()) {
return new JsonResponse(array('status' => 'login_required'));
}
return new RedirectResponse('/my/login');
}
}

services:
my_entry_point:
class: My\Bundle\Security\AuthenticationEntryPoint
arguments: [ "@router" ]

security:
firewalls:
secured:
pattern: .*
entry_point: my_entry_point
form_login:
check_path: /my/login/check

The question is, if remove form_login from security.yml, AuthenticationEntryPoint running and got this exception:

Unable to find the controller for path "/my/login/check".
Maybe you forgot to add the matching route in your routing configuration?

if leave form_login in security.yml, AuthenticationEntryPoint does not work, and the default login_path will be used:

No route found for "GET /login"
404 Not Found - NotFoundHttpException

Thanks very much.
Issue 1:
The help text for the JSON property is truncated, so it ends with "Can be omitted if ......."

Cheers,

Trevor Sullivan

Microsoft MVP: PowerShell

Issue 2:
VSCode Version: 1.0.0-alpha

OS Version: Windows 10

Steps to Reproduce:

Right click on a file in the Git menu that is untracked or deleted

Clicking on show changes does nothing.

It would be nice, if possible, to not show the option for open change if there is no change to show.
Issue 1:
It should use test_util::new_deno_dir() to construct an ephemeral one.

This also applies to test_bundle and maybe other tests in tsc.rs.

Issue 2:
Following tests are non-deterministic:

test_compile

test_bundle

They do not use custom DENO_DIR but rather rely on the default value - that means they modify files in default location of DENO_DIR on developers machine.
Issue 1:
Description

Using adjusted_rand_score gives me a PendingDeprecationWarning as seen below:

/lib/python3.6/site-packages/numpy/matrixlib/defmatrix.py:68: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.

Steps/Code to Reproduce

Example:

from sklearn.metrics import adjusted_rand_score
from sklearn.datasets import make_blobs

X, y = make_blobs()
kmeans = KMeans()
pred = kmeans.fit_predict(X)
adjusted_rand_score(y, pred)

Versions

System

python: 3.6.5 (default, Jun 17 2018, 12:26:58) [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.39.2)]

executable: /usr/local/Cellar/python/3.6.5_1/bin/python3.6

machine: Darwin-16.7.0-x86_64-i386-64bit

BLAS

macros: NO_ATLAS_INFO=3, HAVE_CBLAS=None

lib_dirs:

cblas_libs: cblas

Python deps

pip: 18.1

setuptools: 40.4.3

sklearn: 0.20.0

numpy: 1.15.3

scipy: 1.1.0

Cython: None

pandas: 0.23.4

Issue 2:
When running a the test suite we get a number PendingDeprecationWarning,

PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
return matrix(data, dtype=dtype, copy=False)

See for instance https://ci.appveyor.com/project/sklearn-ci/scikit-learn/builds/19341228/job/q6rysq7flma8hi6v Warnings seems to be hidden on Travis so we don't see those there.

This typically happens when we have a sparse matrix, sum along one axis to get a dense one, than do some mathematical operation with this matrix. It should be explicitly converted to an array first.

This has also been reported by @drorata in #11251 (comment). There was previous discussion about this in #11251 but it doesn't look like it's fixed. I also saw this recently when running PyPy CI.

To investigate where this happen it's sufficient to run pytest tests with -Werror::PendingDeprecationWarning to error on those warnings, as they don't seem to be raised with the right stacklevel (see also #7963 (comment) for workarounds)
Issue 1:
Probably related to #9127 (or at least the stack traces look similar to me):

CFG_CONFIGURE_ARGS := --enable-debug --disable-optimize --enable-ccache --enable-clang --prefix=~/opt/rust-dbg-nopt

% x86_64-apple-darwin/stage2/bin/rustc --cfg stage2 --cfg debug -Z no-debug-borrows --target=x86_64-apple-darwin --lib -o x86_64-apple-darwin/stage2/lib/rustc/x86_64-apple-darwin/lib/librun_pass_stage2.dylib tmp/run_pass_stage2.rc
Bus error: 10

Update: Here is a isolated test case (importantly, it does not depend on pulling in libsyntax):

pub trait bomb { fn boom(@self, Ident); }
pub struct S;
impl bomb for S { fn boom(@self, _: Ident) { } }

pub struct Ident { name: uint }

// macro_rules! int3( () => ( unsafe { asm!( "int3" ); } ) )
macro_rules! int3( () => ( { } ) )

fn Ident_new() -> Ident {
int3!();
Ident {name: 0x6789ABCD }
}

pub fn light_fuse(fld: @bomb) {
int3!();
let f = || {
int3!();
fld.boom(Ident_new()); // *** 1
};
f();
}

fn main() {
let b = @S as @bomb;
light_fuse(b);
}

Issue 2:
Compiling the following project leads to an ICE:

https://github.com/michaelwoerister/rs-persistent-datastructures/tree/vtable_ice

mw@ubuntu:~/rs-persistent-datastructures$ rustc --test ./lib.rs
error: internal compiler error: unexpected failure
This message reflects a bug in the Rust compiler.
We would appreciate a bug report: http://static.rust-lang.org/doc/master/complement-bugreport.html
note: the compiler hit an unexpected failure path. this is a bug
Ok(task 'rustc' failed at 'vtables missing where they are needed', /home/mw/rust/src/libstd/option.rs:130
)

I don't think it does anything special but I have not done any investigation what the cause might be. Give me a shout if the repro-branch needs an update to compile (or not compile in just the right way :)
Issue 1:
Hello,

Expected behaviour

The TextField's label clashes with the underlying tag's pre-populated content when using type=[datetime-local|time|date|etc]. I would expect the pre-populated content to be hidden when the TextField does not have focus and appear only when it does have focus and the label's position is changed.

Current behaviour

Code:

<TextField
required
margin="dense"
id="timestamp"
label="Timestamp"
type="datetime-local"
fullWidth
/>

Example:

The label stops classing when the field is completed.

Your Environment

Tech
Version

Material-UI
1.0.0 beta21

React
16.1.1

browser
Version 62.0.3202.94 (Official Build) (64-bit)

os
MacOS 10.13

Thanks for the fantastic UI framework!

Issue 2:
Problem description

As I said in some issue, the production generated classNames from Material is colliding with my global styles so I need to pass a custom createGenerateClassName like here

Now I need to pass the jss context with JSSProvider component here

But then, #7627 happens again. Material UI starts to generate duplicated classNames.

So my question is, is there anyway to pass JSS context safely on browser render code ? I want to stop forking Material UI for that 1 character change

Link to minimal working code that reproduces the issue

Versions

Material-UI: 1.0.0-beta-4

React: ^15.0.0

Browser: not relevant
Issue 1:
gccgo crashes on the following program:

package a
var _, _ = <-chan int(n)

go1: internal compiler error: in do_get_backend, at go/gofrontend/expressions.cc:3450
0x5e2224 Unsafe_type_conversion_expression::do_get_backend(Translate_context*)
../../gcc/go/gofrontend/expressions.cc:3450
0x5fb6ca Call_expression::do_get_backend(Translate_context*)
../../gcc/go/gofrontend/expressions.cc:9299
0x64de42 Temporary_statement::do_get_backend(Translate_context*)
../../gcc/go/gofrontend/statements.cc:487
0x61c5b7 Block::get_backend(Translate_context*)
../../gcc/go/gofrontend/gogo.cc:5862
0x64b65c Block_statement::do_get_backend(Translate_context*)
../../gcc/go/gofrontend/statements.cc:1836
0x61c5b7 Block::get_backend(Translate_context*)
../../gcc/go/gofrontend/gogo.cc:5862
0x61c763 Variable::get_init_block(Gogo*, Named_object*, Bvariable*)
../../gcc/go/gofrontend/gogo.cc:6426
0x624f57 Gogo::write_globals()
../../gcc/go/gofrontend/gogo.cc:1418

gofrontend is on commit 81810917af7ba19e1f9f8efc8b1989f7d6419d30

Issue 2:
gccgo crashes on the following program:

package a
func f() {
_, _ = <-chan int(n)
}

go1: internal compiler error: in do_get_backend, at go/gofrontend/expressions.cc:3450
0x5e2224 Unsafe_type_conversion_expression::do_get_backend(Translate_context*)
../../gcc/go/gofrontend/expressions.cc:3450
0x5fb6ca Call_expression::do_get_backend(Translate_context*)
../../gcc/go/gofrontend/expressions.cc:9299
0x64de42 Temporary_statement::do_get_backend(Translate_context*)
../../gcc/go/gofrontend/statements.cc:487
0x61c5b7 Block::get_backend(Translate_context*)
../../gcc/go/gofrontend/gogo.cc:5862
0x64b65c Block_statement::do_get_backend(Translate_context*)
../../gcc/go/gofrontend/statements.cc:1836
0x61c5b7 Block::get_backend(Translate_context*)
../../gcc/go/gofrontend/gogo.cc:5862
0x61ddac Function::build(Gogo*, Named_object*)
../../gcc/go/gofrontend/gogo.cc:5468
0x61f2c7 Named_object::get_backend(Gogo*, std::vector<Bexpression*, std::allocator<Bexpression*> >&, std::vector<Btype*, std::allocator<Btype*> >&, std::vector<Bfunction*, std::allocator<Bfunction*> >&)
../../gcc/go/gofrontend/gogo.cc:7187
0x625532 Gogo::write_globals()
../../gcc/go/gofrontend/gogo.cc:1345

gofrontend is on commit 81810917af7ba19e1f9f8efc8b1989f7d6419d30
Issue 1:
Describe the issue:

input: np.arange(1.0125, 1.1, 0.0125)

output is: array([1.0125, 1.025 , 1.0375, 1.05 , 1.0625, 1.075 , 1.0875, 1.1 ])

output expected: array([1.0125, 1.025 , 1.0375, 1.05 , 1.0625, 1.075 , 1.0875 ])

Reproduce the code example:

#They do not have the same behavior
np.arange(0.0125,0.1,0.0125)
np.arange(1.0125,1.1,0.0125)

Error message:

No error occurs, but the output is not as expected since there is one array element to much.

NumPy/Python version information:

numpy.version

'1.21.5'

sys.version

'3.9.7 (default, Sep 16 2021, 16:59:28) [MSC v.1916 64 bit (AMD64)]'

Issue 2:
Let me show you the issue directly:

Reproducing code example:

np.arange(2114.8,2114.8+.05,.05) produces array([2114.8 , 2114.85])

np.arange(2114.8,2114.8+1.,1.) produces array([2114.8])

dont understand why they return arrays of different lengths.
Issue 1:
This does not happen every time it is idea but it mostly crashes at least once a day. It gets slow and then crashes. I've been using it exclusively to write elm code so I don't know if it has to do with the plugin.

How can I get detailed log next time it happens?

Issue 2:
Ubuntu 12.04, VSCode 0.10.1

Several times VS Code has become unresponsive overnight on the above configuration (locked). Here is the program output:

$ code .
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell

<--- Last few GCs --->

173527197 ms: Scavenge 1397.0 (1457.6) -> 1397.0 (1457.6) MB, 1.8 / 0 ms [allocation failure] [incremental marking delaying mark-sweep].
173527199 ms: Scavenge 1397.0 (1457.6) -> 1397.0 (1457.6) MB, 1.9 / 0 ms [allocation failure] [incremental marking delaying mark-sweep].
173529040 ms: Mark-sweep 1397.0 (1457.6) -> 1396.9 (1457.6) MB, 1841.7 / 98 ms [last resort gc].
173530775 ms: Mark-sweep 1396.9 (1457.6) -> 1396.1 (1457.6) MB, 1735.0 / 5 ms [last resort gc].

<--- JS stacktrace --->

==== JS stack trace =========================================

Security context: 0x8a48933a859 <String[7]: file://>
1: _completed [file:////home/local/ANT/daniimms/VSCode-linux-x64/resources/app/out/vs/workbench/workbench.main.js:~1544] [pc=0x23ff9b465433] (this=0x1a37262790b1 <JS Object>,e=0x1cd36e9041b9 <undefined>)
2: arguments adaptor frame: 0->1
6: bound [native v8natives.js:1208] [pc=0x23ff99a26270] (this=0x8a489346089 <JS Global Object>)

==== Details =============================...

Failed to get crash dump id.
Report Id:
events.js:141
throw er; // Unhandled 'error' event
^

Error: channel closed
at process.target.send (internal/child_process.js:509:16)
at Console.console.error (/home/local/ANT/daniimms/VSCode-linux-x64/resources/app/out/bootstrap.js:5:937)
at process.<anonymous> (/home/local/ANT/daniimms/VSCode-linux-x64/resources/app/out/bootstrap.js:5:1340)
at emitOne (events.js:77:13)
at process.emit (events.js:169:7)
at process._fatalException (node.js:223:26)
[VS Code]: detected unresponsive

This has never occurred with Atom.
Issue 1:
Donny A. Wijaya opened SPR-5892 and commented

Add ability to merge multiple lists/maps/sets that share the same id into a map/list (through the use of flag).

Some frameworks require developers to provide a list of mapping location (inside classpath). This would not be a problem if everything is bundled in a war. But in modular deployment, we usually have the mapping files to be packaged inside jars where they belong. This new improvement would remove the responsibility to add every mapping file located in every new jar we deploy, into the the a mapping list resides in the main context file of the application.

For example:

JAR_A has a collectionContext.xml with a map/list with id "myList"

JAR_B has a collectionContext.xml with a map/list with id "myList"

WAR has an applicationContext.xml that imports classpath*:**/collectionContext.xml

This feature would allow the two maps to be merged into a map with id "myList".

Issue Links:

#11189 Introduce 'merge' attribute for util namespace collection elements ("Cloned to")

Issue 2:
Marcin Kamionowski opened SPR-9197 and commented

RestTemplate cannot return HTTP response code 308 because it's not defined in the HttpStatus enumeration.

It's required for resumable POST/PUT HTTP requests in HTTP/1.0 (http://code.google.com/p/gears/wiki/ResumableHttpRequestsProposal)

Issue Links:

#13626 Add the ability to Scan Packages for JAXB Marshalling (java example provided) ("duplicates")
Issue 1:
Bug Report

Postgresql database + ShardingSphere using the following SQL times wrong: nested exception is org.postgresql.util.PSQLException: 未设定参数值 5 的内容。

The sample：

INSERT INTO xxx(c1,c2,c3,c4,c5)VALUES (#{c1},#{c2},#{c3},#{c4},lower(#{c5}))

ON conflict(id) DO

UPDATE SET c1=#{c1},appdes=#{c2},c4=lower(#{c5})

Through the debug code, is a postgresql parse SQL syntax tree, unable to properly resolve the insert at the back of the parameters, lead to the JDBC insert data, tip missing parameters

Issue 2:
I'll refactor sharding-transaction-2pc-xa, here is the detail design, please feel free to give me some advices.

changes

faced to XA DataSource to handle XA Connection instead of AtomikosDataSourceBean

adapt Connection to XAConnection if needed

Get XAResource, then inject it into XA transactionManager if needed

Add ShardingTransactionAPI to handle all transaction operation, this can be used in other transaction type
Issue 1:
Hi all, At the moment I am trying to scan and scroll my ES index to export all the data, but I noticed that not always all the documents are returned. In other words ES says I have 1.115.857 documents in my index, but my export contains 1.049.191 documents. Testing with an index with up to 900.000 document is working fine. Somebody that can explain this behavior?

ES is running on a CentOS machine with 6GB of RAM with a ES_HEAP_SIZE of 3GB.

Issue 2:
It would be useful to be able to query nested objects with the query_string.

For example consider the following document structure:

@graph

------------- @Drug

------------------- @value

The query could look like this:

"query": {

"query_string" : {

"fields" : ["@graph*"]

"query" :"*@value:paracetamol"

}

}

It can be laborious to explicitly specify nested fields when the document is heavily nested.

What do you think?
Issue 1:
Expected Behaviour

Body of a 412 response should be included on all Platforms.

(Works on OS X, but not on linux system)

from flask import Flask
app = Flask(__name__)
@app.route('/')
def r():
return 'This should be visible\n', 412
app.run('0.0.0.0', port=8080)

curl localhost:8080

# Expected:
# > 127.0.0.1 - - [03/Jan/2018 17:00:15] "GET / HTTP/1.1" 412 -
# > This should be visible

Actual Behavior

The response does have an empty body if executed on a linux system. (docker-image python)

curl localhost:8080

# Actual:
# > 127.0.0.1 - - [03/Jan/2018 17:00:15] "GET / HTTP/1.1" 412 -

Environment

Python version: 3.6.4

Flask version: 0.12.2

Werkzeug version: 0.14.1

Issue 2:
Problem:

Creating a custom command for the flask CLI with an import exception is silent, even when running the command, e.g. start with flask start directly.

This makes it difficult to debug import errors in changing environments, as you're left with

Error: No such command "start".

without further explanation.

Origin:

flask/src/flask/cli.py

Lines 541 to 546
in
d694eb4

try:

rv = info.load_app().cli.get_command(ctx, name)

if rv is not None:

return rv

except NoAppException:

pass

NoAppException is caught silently with a pass, even though get_command seems to only be used to execute a single command rather than an entire command listing.

However, even the command listing of list_commands explicitly prints the traceback with traceback.print_exc().

Why that is not done in get_command is not clear to me at this point.