WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Bug report

I have posted question regarding to it on stackowerflow here:

https://stackoverflow.com/questions/70140202/webpack-defineplugin-process-env-node-env-is-undefined

I am not too good with front-end technologies... So if I have wrong expectations - please correct me or my code. I have created a repository with code that allows to reproduce issue. Here is the link: https://github.com/ffatheranderson/webpack-issue-reproduction

What is the current behavior?

After I execute npm run watch command - the generated result/bundle.js file contains such lines:

...

var _environment = undefined;

var _ANOTHER_VARIABLE = "another variable value";

...

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

What is the expected behavior?

I expect that after I execute npm run watch command - the generated result/bundle.js file to have such lines:

...

var _environment = 'development';

var _ANOTHER_VARIABLE = "another variable value";

...

I have such expectation because of these lines in in webpack.config.js file:

plugins: [

new webpack.DefinePlugin({

ENVIRONMENT: JSON.stringify(process.env.NODE_ENV),

ANOTHER_VARIABLE: JSON.stringify("another variable value"),

})

]

...

Other relevant information:

webpack version: 5.64.4

Node.js version: 14.16.0

Operating System: WIndows 10

Additional tools:

Issue 2:
I'd like to use require.ensure, but I have special requirements for loading chunks and I can't use the built-in jsonp loader (for offline support and to work around browser bugs I need to load JS from localStorage).

I "only" need to replace the few lines that create a new script and insert it to DOM, but replacing that bit seems like a rather a complex thing to implement (please correct me if there's a better way):

I've written a custom function for options.target that invokes all usual webpack plugins (same as WebpackOptionsApply) except the JsonpTemplatePlugin.

I've had to copy&paste&edit code of JsonpTemplatePlugin and JsonpMainTemplatePlugin plugin to modify the script loader part.

That already seems like a fragile hack — I'm duplicating webpack's built-in functionality and probably relying too much on implementation details.

There's another thing that has bitten me hard: options.target == "web" is magically special due to defaultByTarget in WebpackOptionsDefaulter and affects several other configuration options. This change in defaults was unexpected and has broken my build in subtle ways that were hard to debug.

Could you:

add configuration option or a more direct plugin API for replacing the jsonp loader code?

and/or make it easier to use custom target that extends behavior of "web"?

For example you could make target an instance of a class that has properties/getters for the defaults, so then instead of:

options.resolve.modulesDirectories = defaultByTarget(options.resolve.modulesDirectories,
["web_modules", "node_modules"],
…

it'd be something like:

options.resolve.modulesDirectories = options.resolve.modulesDirectories || options.target.getDefaultModulesDirectories();
Issue 1:
Description

Error in call of Scikit-Learn

Steps/Code to Reproduce

Simple call of "import sklearn"

Expected Results

Normal run

Actual Results

Traceback (most recent call last):

File "D:/code/python/hybrid3/borrar.py", line 5, in

import sklearn; print("Scikit-Learn", sklearn.version)

File "C:\Users\braun00r\AppData\Local\Programs\Python\Python36\lib\site-packages\sklearn_init_.py", line 57, in

from .base import clone

File "C:\Users\braun00r\AppData\Local\Programs\Python\Python36\lib\site-packages\sklearn\base.py", line 12, in

from .utils.fixes import signature

File "C:\Users\braun00r\AppData\Local\Programs\Python\Python36\lib\site-packages\sklearn\utils_init_.py", line 11, in

from .validation import (as_float_array,

File "C:\Users\braun00r\AppData\Local\Programs\Python\Python36\lib\site-packages\sklearn\utils\validation.py", line 18, in

from ..utils.fixes import signature

File "C:\Users\braun00r\AppData\Local\Programs\Python\Python36\lib\site-packages\sklearn\utils\fixes.py", line 406, in

if np_version < (1, 12, 0):

TypeError: '<' not supported between instances of 'str' and 'int'

Versions

Windows-7-6.1.7601-SP1

Python 3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 08:06:12) [MSC v.1900 64 bit (AMD64)]

NumPy 1.12.1rc1

SciPy 0.19.0

Issue 2:
There is a new bug in master brunch, scikit-learn/sklearn/utils/fixes.py

in line 406: if np_version < (1, 12, 0): , an error occured, TypeError: unorderable types: str() < int().

It's because in the function :

def _parse_version(version_string):
version = []
for x in version_string.split('.'):
try:
version.append(int(x))
except ValueError:
# x may be of the form dev-1ea1592
version.append(x)
return tuple(version)

However， my numpy version is：1.12.0b1, this funciotn return a tuple(1,12,'0b1') , but in line 406, It is compared with integer type, so the error occured.

I just in a simple way to solve it. I change the code to if np_version < (1, 12, '0'): in line 406, just change the third tuple index to string type.

Of course, this is not a common method.
Issue 1:
This is a follow-up issue of #25342 and #19799.

In #25269 the URL and URLSearchParams classes have been added as globals because since Node.js 10.0 they are exposed as globals.

Because lib.dom.d.ts also exposes them as globals, projects which referenced both, node and lib.dom, got "Duplicate identifier 'URL'" errors (see #25342). Therefore the global URL and URLSearchParams has been removed again.

This fix (actually a workaround for a missing declaration merging feature of TypeScript) now has the drawback that we cannot use the global URL class in Node.js-code (instead we need to import it from the url module). This is especially bad for universal modules which are supposed to work in the browser + node by just using the global URL (which works since Node.js 10).

So I want to discuss solutions for this atm. unsupported scenario here. (Without having local declarations in consuming projects.)

One solution would be to support this scenario in TypeScript (allow - exactly same? - global class definitions in multiple declaration files). @weswigham Would this be possible?

A more straight-foward solution would be to create a new DT package (e.g. node-global-url or maybe better whatwg-global-url) which can be installed additionally and selected by using e.g. "types": ["node", "node-global-url"] in a tsconfig.json for projects which face the mentioned scenario above.

Any other ideas?

Issue 2:
I tried using the @types/react-redux package and had problems.

I tried using the latest stable version of tsc. https://www.npmjs.com/package/typescript

I have a question that is inappropriate for StackOverflow. (Please ask any appropriate questions there).

Mention the authors (see Definitions by: in index.d.ts) so they can respond.

@jamesreggio @JounQin

updating from @types/react-redux 7.0.1 to @types/react-redux 7.0.2 gives the following error:

'/node_modules/hoist-non-react-statics' has no exported member 'NonReactStatics'.

47 import { NonReactStatics } from 'hoist-non-react-statics';

seems like it was introduced here: 8b1beff
Issue 1:
Hovering over X for a file tab causes a JS error (console pops up) indicating "jQuery is not defined".

Atom Version: 1

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.36 (KHTML, like Gecko) Atom/0.45.0 Atom-Shell/0.7.6 Safari/537.36

User: @mtodd

Screenshot:

Issue 2:
Since I updated to 0.45.0 today, I'm getting the following error in the console after using Atom for a few minutes:

Uncaught ReferenceError: jQuery is not defined
/Applications/Atom.app/Contents/Resources/app/node_modules/bootstrap/js/tooltip.js:213

Atom version: 0.45.0

User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/537.36 (KHTML, like Gecko) Atom/0.45.0 Atom-Shell/0.7.6 Safari/537.36
Issue 1:
System information (version)

OpenCV => 3.4.0

Operating System / Platform => windows 7

Compiler => vs 2015

Detailed description

I am trying to open my webcam using cvCreateCameraCapture (0); or cvCaptureFromCAM (0) but it just opens Video Source window with my camera in it when I press ok nothing happens, it returns null.

Anyone know what to do ?

Issue 2:
System information (version)

OpenCV => : 4.2.0

Operating System / Platform => : Linux Ubuntu 18.04

CUDA => : 10.2

Detailed description

I am trying to compile (with cmake) a C++ object detection code that includes OpenCV and CUDA , however when I do that I receive an unsuitable CUDA version error. Here are the outputs of my nvidia compiler driver and nvcc version, which are different.

And above is the error I get. Any suggestions on how to resolve this?
Issue 1:
When I use importMap, my code does not work as executable (deno install).

Tested with Deno v1.30.3.

Minimal reproducible example:

deno.json:

{
...
"imports": {
"std/": "https://deno.land/std@0.177.0/"
},
...
}

my-cli.ts

import * as log from 'std/log/mod.ts';

log.info('Hello world!')

Install & run:

deno install -A ./my-cli.ts

my-cli <--- This throws the error

Error output:

error: Relative import path "std/log/mod.ts" not prefixed with / or ./ or ../
at file:///C:/temp/app.ts:1:22

The same problem when I use an import map file (import_map.json). Only if I use absolute paths, it also works with deno install.

Issue 2:
It seems deno install currently doesn't auto-discover a deno.json or deno.jsonc config file.

This is suggested in the help entry for deno install -help.

-c, --config <FILE>
The configuration file can be used to configure different aspects of
deno including TypeScript, linting, and code formatting. **Typically
the configuration file will be called `deno.json` or `deno.jsonc`
and automatically detected; in that case this flag is not necessary.**
See
https://deno.land/manual@v1.30.0/getting_started/configuration_file

Steps To Reproduce

deno install -n my-module main.ts

Expected Result

#!/bin/sh
# generated by deno install
exec deno run --config /Users/foo/.deno/bin/.my-module.deno.json 'file:///Users/foo/my-module/main.ts' "$@"

Actual Result

#!/bin/sh
# generated by deno install
exec deno run --no-config 'file:///Users/foo/my-module/main.ts' "$@"
Issue 1:
Challenge http://freecodecamp.com/challenges/waypoint-manipulate-javascript-objects has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

// ourDog.bark(“arf!");

should be

// ourDog.bark = “arf!”;

Issue 2:
Challenge http://www.freecodecamp.com/challenges/waypoint-bring-your-javascript-slot-machine-to-life has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

slotOne = Math.floor(Math.random() * (3 - 1 + 1)) + 1;
slotTwo = Math.floor(Math.random() * (3 - 1 + 1)) + 1;
slotThree = Math.floor(Math.random() * (3 - 1 + 1)) + 1;
$($('.slot')[0]).html(slotOne);
$($('.slot')[1]).html(slotTwo);
$($('.slot')[2]).html(slotThree);

This is exactly how the description says to do it. Yet I get the error: You should have used the the selector given in the description to select each slot and assign it the value of slotOne, slotTwo and slotThree respectively.
Issue 1:
Please see http://jsfiddle.net/5sH6A/174/ and press "Click me"

Issue 2:
What problem does this feature solve?

I would like to use the same methodoligy as vue, for custom error-messages: show them in dev, hide them on prod (except if there is a error-handler in place).

For that it would be useful if I could just use vues built-in warn-function instead of duplicating that logic.

What does the proposed API look like?

import Vue from 'vue'

Vue.warn('My message')
Issue 1:
Denis Zhdanov opened SPR-6253 and commented

Spring defines a contract for autowiring arrays and type collections (3.4.5 Autowiring collaborators, 3.9.2 @Autowired and @Inject).

However, there is a possible use-case that a user wants to define particular order for autowired collection/array. It looks obvious in the case of autowiring typed lists (the client may want to preserve particular order for the list elements) but the same idea may be spread easily to sets/maps/arrays.

I suggest the following rules to be used during examining the order for two elements:

if both classes of compared object are marked by Ordered the one with lower value is considered to be less than another;

if class of one element is marked by Ordered and class of another is not marked by Ordered the former is considered to be less than the later;

if both classes of compared elements are not marked by Ordered but implement Comparable with consisting type parameter they are compared via Comparable#compareTo(Object);

Please note that the rules above may be applied to all elements of autowired collection/array in order to define particular for them.

Implementation

That feature may be optional and defaults to perform ordering. It seems that most natural to allow to define it via additional method of @Autowired annotation.

So, it can be implemented easily via minor AutowiredAnnotationBeanPostProcessor modification - the argument to be injected is just sorted if necessary.

Attached archive contains either feature implementation (classes from 'org.springframework.beans.factory.annotation' package) or usage example (classes from 'com.spring.example' package and its subpackages).

Affects: 3.0 RC1

Attachments:

ordered-autowired-collection.tar.gz (9.63 kB)

Issue Links:

#10245 Autowiring should support ordered collection driven by Order annotation or Ordered interface ("duplicates")

8 votes, 6 watchers

Issue 2:
Jörg Heinicke opened SPR-3461 and commented

Didn't find a better summary ...

My problem occurs when using spring:bind inside spring:nestedPath and form:form:

<form:form command="command">

<spring:nestedPath path="nestedPath">

<!-- ends in path nestedPath.test1 -->

<spring:bind path="test1"/>

<!-- ends in path command.nestedPath.test2 -->

<form:input path="test2"/>

</spring:nestedPath>

</form:form>

As you see you get two different paths for spring:bind and form:input while I would expect to get the same for both. This is because form:input (actually AbstractDataBoundFormElementTag) has special handling for command while spring:bind is of course not aware of it. This could be made consistent by making form:form behave like spring:nestedPath with setting the command name as nestedPath.

Affects: 2.0.4

Issue Links:

#6988 provide form:transform tag

1 votes, 0 watchers
Issue 1:
There are pitfalls when using the watch + list pattern. Many of our controllers use this pattern, and we expect many future pieces of code to use this pattern. Therefore, we'd like to provide a framework/example which lets you fill out three functions (list, watch, and process) to get a shiny new bug-free (at least the list+watch part) controller.

This can be modeled after/mostly copied from the scheduler.

Issue 2:
Filing this so we can revisit.

@satnam6502

Service names (and apparently Namespace names in the client, but not the server) are restricted to DNS 952 labels (24 characters). Most other API Objects have names that are DNS 1123 subdomains (much longer).

In doing tests it is useful to generate random names, and this is a bit annoying for services.

Can we expand service names?

DNS 1035 labels (longer)

DNS 1035 subdomains (longer and allow dots)

DNS 1123 labels (longer, allow leading digit)

DNS 1123 subdomains (longer, allow leading digit and dots)

(4) would be most consistent with other objects.

If we do (2) or (4) we need to convert dots to underscores in env-var names, which could cause a collision (e.g. foo-bar and foo.bar). Maybe double underscore for dots?

If we do (3) or (4) we need to handle leading digits in env-vars. Maybe a prefixed underscore?

(1) seems least controversial, but is still different than everything else.
Issue 1:
If I git clone the quick start tutorial and npm install, it pulls in electron-prebuilt@1.1.0 which doesn't work with the latest default installation of Windows 10.

If I downgrade to 1.0.1, things starts working.

npm install electron-prebuilt@1.0.1 -g
electron app

Issue 2:
Electron version: 1.1.0

Operating system: Windows 7

The system does not have visual studio 2015 installed
Issue 1:
Current Situation

When a user is initiating multiple file copying/moving operations at the same time or in a short time frame, Windows Explorer adds all those operations to the copying/moving queue and works on them at the same time, i.e. all those copying/moving operations run parallel. This slows down the process and Windows a lot because the source and target drives and the CPU are stressed more.

Feature request

When adding multiple file copying/moving operations to the copying/moving queue, only one operation (i.e. the first in the queue) should run, all the additional operations should be put on hold and started automatically when they move into the first position in the queue.

There should also be a user customizable size threshold setting so that copying/moving operations with small(er) amounts of data can still run parallel, even though they are not first in queue.

Benefits

faster file transfer speed

Windows operating system and Explorer run more responsive during file copy/move operations

less heat development of the drives

less noise development of the drives

possibly longer battery life (when on a laptop)

Issue 2:
Environment

Windows build number: 1803
PowerToys version: 0.11.0
PowerToy module for which you are reporting the bug (if applicable): FancyZones

Steps to reproduce

Enable Fancy Zones and pick a zone configuration.

Expected behavior

The zones layout should be replicated on each monitor. So dragging a window with shift enabled should give me the same behavior on each monitor regardless of the monitor.

Actual behavior

The zones only works on the primary screen. With dual monitor, the secondary screen can only maximize the windows. I don't know if this is by design but from my point of view, it makes sense to replicate the zones layout on each screen or add an option to do so.
Issue 1:
I am trying to compile tensorflow for Macbook, but every time I am getting same error.

When I Run this command

bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package

I get this error

/private/var/tmp/_bazel_cagrigider/2c548436011ab6b7308cd0cc70a91ed3/external/bazel_tools/tools/cpp/BUILD:3:1: invalid license type: 'notice'

Full Output Of Terminal

Mac OS 10.13.3

Xcode version = 9.2

Tensorflow version = 1.8

Bazel version = 0.13.0

Thanks.

Issue 2:
I am trying to compile tensorflow for Macbook, but every time when I use bazel build, I am getting same error.

When I Run this command

bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package

I get this error

/private/var/tmp/_bazel_cagrigider/2c548436011ab6b7308cd0cc70a91ed3/external/bazel_tools/tools/cpp/BUILD:3:1: invalid license type: 'notice'

Full Output Of Terminal

Mac OS 10.13.3

Xcode version = 9.2

Tensorflow version = 1.8

Bazel version = 0.13.0

Thanks.
Issue 1:
The second link, in the highlights session of the webpage

Vector Representations

is broken or outdated.

This is the link that's not working (404 from github)

https://www.github.com/tensorflow/tensorflow/blob/r1.1/tensorflow_models/tutorials/embedding/word2vec.py

Issue 2:
There is a wrong html link in text in the tutorial "Vector Representations of Words" at address https://www.tensorflow.org/tutorials/word2vec

The text is in the first paragraph after the bullet points in the Highlights section at the top of the page.

The link for:

tensorflow_models/tutorials/embedding/word2vec.py

https://www.github.com/tensorflow/tensorflow/blob/r1.1/tensorflow_models/tutorials/embedding/word2vec.py

is wrong, it should point to the following address:

https://github.com/tensorflow/models/blob/master/tutorials/embedding/word2vec.py

I hope that this is helpful.
Issue 1:
Trying to use hostname_pattern as per http://symfony.com/doc/master/components/routing/hostname_pattern.html

like this:

routing.yml

#Bike
bike:
prefix: /
pattern: /
hostname_pattern: *.cykelverkstad.nu
defaults: { _controller: EmpireBikeBundle:Homepage:index }

using this composer.json require:

{
"require": {
"php": ">=5.3.3",
"symfony/symfony": "2.2.*",
"doctrine/orm": ">=2.2.3,<2.4-dev",
"doctrine/doctrine-bundle": "1.2.*",
"twig/extensions": "1.0.*",
"symfony/assetic-bundle": "2.2.*",
"symfony/swiftmailer-bundle": "2.2.*",
"symfony/monolog-bundle": "2.2.*",
"sensio/distribution-bundle": "2.2.*",
"sensio/framework-extra-bundle": "2.2.*",
"sensio/generator-bundle": "2.2.*",
"jms/security-extra-bundle": "1.4.*",
"jms/di-extra-bundle": "1.3.*",
"jms/serializer-bundle": "0.9",
"friendsofsymfony/rest-bundle": "0.10.0"
},
}

Debug-bar shows symfony as 2.2.

Getting this error:

[InvalidArgumentException]

The routing file "D:/Dev/wamp/www/empire/app/config\routing.yml" contains u

nsupported keys for "bike": "hostname_pattern". Expected one of: "resource"

, "type", "prefix", "pattern", "path", "hostname", "schemes", "methods", "d

efaults", "requirements", "options".

It says "hostname_pattern" is a unsupported key, even though Symfony is on 2.2.

Issue 2:
Currently running into an issue with the new host matching when I'm trying to generate urls that requires me to pass in a host parameter.

InternalUserController:
resource: "@ApiBundle/Controller/Internal/UserController.php"
type: annotation
host: "api.{domain}"

DashboardController:
resource: "@DashboardBundle/Controller/DashboardController.php"
type: annotation
host: "{domain}"

The examples above work perfectly with the url matcher, but when needing to generate the url, it will require me to provide the domain parameter each time. I know this is how it's suppose to function, but it seems a bit annoying to require putting in the domain each time.
Issue 1:
% RUST_BACKTRACE=1 deno
Deno 1.18.0
exit using ctrl+d or close()
> console.log("😂"[0])
�

============================================================
Deno has panicked. This is a bug in Deno. Please report this
at https://github.com/denoland/deno/issues/new.
If you can reliably reproduce this panic, include the
reproduction steps and re-run with the RUST_BACKTRACE=1 env
var set and include the backtrace in your report.

Platform: macos x86_64
Version: 1.18.0
Args: ["deno"]

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error("unexpected end of hex escape", line: 1, column: 101)', /Users/runner/work/deno/deno/core/inspector.rs:724:66
stack backtrace:
0: _rust_begin_unwind
1: core::panicking::panic_fmt
2: core::result::unwrap_failed
3: core::result::Result<T,E>::unwrap
4: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
5: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
6: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
7: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
8: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
9: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
10: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
11: deno::tools::repl::run::{{closure}}
12: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
13: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
14: deno::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Issue 2:
So please, remove this feature. It is unnecessary.

P.S. just think what could be a leftpad case without a centralized source of trust.