WhereIsAI/github-issue-similarity huggingface dataset:
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: 2.7.0-SNAPSHOT

Steps to reproduce this issue

README file in 2.7.0 branch (https://github.com/apache/incubator-dubbo/blob/2.7.0-release/README.md) still using package name com.alibaba.dubbo, it should update to org.apache.dubbo

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

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

Environment

Dubbo version: 2.7.2

Operating System version: mac

Java version: 1.8

Steps to reproduce this issue

Define a interface, put @Path annotation on the implement class

public interface PureService {
String hello(String name);
}

// implement class
@Component
@Service(protocol = {"dubbo","rest"}, version = "1.0.0", group = "test")
@Consumes({MediaType.APPLICATION_JSON})
@Produces({MediaType.APPLICATION_JSON})
@Path("/pure-service")
public class PureServiceImpl implements PureService{

@GET
@Path("hello")
@Override
public String hello(String name) {
return "hello " + name;
}
}

It report exception when starting application

In RestProtocol class, it can not real implement class behind proxy.

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

Expected Result

What do you expected from the above steps？

It can normally start when putting @Path on the implement class

Actual Result

What actually happens?

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

Just put your stack trace here!
Issue 1:
Electron version: 0.37.7

Operating system: Windows 64, Ubuntu 14.04, 15.10

One of the application of us packaged with electron 0.37.7 will quit silently before seeing the window when run. The cause is found, using debugger on a ubuntu 14.04 virtual machine, to be app.makeSingleInstance in the main.js file returns true even for the first instance of the program. All the machines having the problem had not run (or "installed") the program before. After down grade to 0.37.6 and re-package, the program startup OK and the problem disappears. Then, after upgrade to 0.37.7 again the problem also does not re-appear (due to this reason, it never manifests on our development machine and other old machines having used the program packaged with lower versions of electron). It is found that the problem is still there even for a very simple probram with empty main page and almost empty main.js.

Any ideas?

Issue 2:
Electron version: 0.37.7

Operating system: MacOS 10.11.4

Create a directory with the attached package.json and main.js files. The app just calls app.makeSingleInstance (code sample copied from the Electron docs) and then creates an empty window.

package.json.txt

main.js.txt

Type:

rm -rf ~/Library/Application\ Support/Electron
npm start

The app will display

### version 0.37.7
### shouldQuit: true

...even though no other instance is running.

If you create an empty ~/Library/Application\ Support/Electron directory, the app runs as expected.

(Obviously, any established Electron developer will have such a directory and will not notice this bug. Their users will notice it very quickly indeed.)
Issue 1:
(I'm fairly sure this worked in the previous release)

Environment

Windows build number: 10.0.18362.0
Windows Terminal version (if applicable):0.4.2382.0

Steps to reproduce

Open Windows Terminal

Double click in the title bar (see screenshot below)

Expected behavior

Windows maximises/restores

Actual behavior

Nothing happens

Issue 2:
Environment

Platform ServicePack Version VersionString
-------- ----------- ------- -------------
Win32NT 10.0.18362.0 Microsoft Windows NT 10.0.18362.0

Any other software?

Steps to reproduce

Hit control space

Expected behavior

Trigger Powershell's MenuComplete

Actual behavior

Nothing. If I remap MenuComplete to Tab it works, otherwise it doesn't
Issue 1:
Since it is not necessary to have package.json file with deno, how can I as a developer have a similar experience just as we have with npm scripts in package.json while using node.js environment?

Issue 2:
Import from url is very hard to use. I think is not a good idea.

If so,

We must manage more js files not our own development.

Heavily dependent on the network, because the third package also can import another packages.

Like C#\Java, the nuget and maven is good for use. Maybe use that mode can help us manage the packages.
Issue 1:
[Enter steps to reproduce below:]

...

...

Atom Version: 0.192.0

System: Unknown Windows Version

Thrown From: Atom Core

Stack Trace

Uncaught Error: ENOENT: no such file or directory, open 'C:\Users\k.karashima\Desktop\Pastis\PDF_DecisionTable.page'

At events.js:141

Error: ENOENT: no such file or directory, open 'C:\Users\k.karashima\Desktop\Pastis\PDF_DecisionTable.page'
at Error (native)

Commands

3x -8:19.8 encoding-selector:show (atom-text-editor.editor)
-7:31.5 core:save (atom-text-editor.editor)
-6:52.8 core:backspace (atom-text-editor.editor)
2x -6:51.5 core:save (atom-text-editor.editor)
-3:39.4 core:backspace (atom-text-editor.editor)
-3:37.5 core:save (atom-text-editor.editor)

Config

{
"core": {},
"editor": {
"invisibles": {}
}
}

Installed Packages

# User
MavensMate-Atom, v0.0.20

# Dev
No dev packages

Issue 2:
[Enter steps to reproduce below:]

Invoke atom for non-existent file: atom Dockerfile

Atom Version: 0.190.0

System: Mac OS X 10.9.5

Thrown From: Atom Core

Stack Trace

Uncaught Error: ENOENT: no such file or directory, open '/Users/arve/Projects/gradlehub/Dockerfile'

At events.js:141

Error: ENOENT: no such file or directory, open '/Users/arve/Projects/gradlehub/Dockerfile'
at Error (native)

Commands

-0:00.5 tree-view:reveal-active-file (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-one-dark-syntax.theme-one-dark-ui)

Config

{
"core": {
"ignoredNames": [
".git",
".svn",
".DS_Store"
]
},
"editor": {
"showIndentGuide": true,
"preferredLineLength": 110,
"tabLength": 4,
"softWrapAtPreferredLineLength": true,
"invisibles": {},
"fontSize": 15
}
}

Installed Packages

# User
Stylus, v0.7.0
atom-lint, v0.20.1
auto-reveal-in-sidebar, v0.4.0
coffee-refactor, v0.6.2
editorconfig, v0.3.3
language-clojure, v0.14.0
language-docker, v1.1.3
language-gradle, v0.0.3
language-haskell, v1.0.0
language-scala, v1.1.0
refactor, v0.4.1
tabs-to-spaces, v0.9.2

# Dev
No dev packages
Issue 1:
Feature request

What is the expected behavior?

I'm currently using the asset/resource module rule to explicitly generate a JSON bundle containing runtime settings (pure JSON - no JS) with the filename "[name].[contenthash].bundle.json". When importing the JSON file in my entry file I'm provided with the hashed filename, which I pass to a window.fetch request to retrieve the JSON content.

The intent of this JSON file is to serve as appsettings file, allowing runtime settings to be modified after deployment. The browser would always fetch this file during the entry point bootstrapping process.

I was wondering whether it's possible to combine multiple JSON files into one before generating the asset/resource? For example, if appsettings.dev.json was present, a single JSON bundle would be generated from the combined results of merging appsettings.json and appsettings.dev.json.

It's not clear whether asset/resource can be chained with other loaders? Originally I was thinking of writing my own loader which transforms the appsettings.json with the dev config (if present) using webpack-merge, however I think I'd need to chain in the file-loader which has been deprecated in v4.

What is motivation or use case for adding/changing the behavior?

I'd like to simplify local development by adding an optional appsettings.dev.json file which is merged with appsettings.json.

How should this be implemented in your opinion?

Don't have prerequisite knowledge just yet...

Are you willing to work on this yourself?

Don't have prerequisite knowledge just yet...

Issue 2:
During app rebuild this error happens:

let data = module.buildInfo.jsonData;

TypeError: Cannot read property 'jsonData' of undefined

Webpack 5.42.0
Issue 1:
I frequently get asked about post-pruning. Often using single trees is important for interpretability, and post-pruning can help both interpretability and generalization performance.

[I'm surprised there is no open issue on this, but I couldn't find one]

Issue 2:
Everything is in the title. This behaviour comes from the __iter__(self) method of ParameterSampler. By creating a generator that randomly picks each time values for every parameter independently, there is no way to prevent collision.

If n_iter is greater than a significant fraction of the grid cardinal, collision happens quite often, and RansomizedSearchCV launches the exact same CV several times. It seems at least inelegant, at most a significant waste of computational time :-)

I would also suggest a check on n_iter to be bounded by the grid cardinal, when RandomizedSearchCV becomes GridSerachCV.
Issue 1:
💻

Would you like to work on a fix?

How are you using Babel?

Other (Next.js, Gatsby, vue-cli, ...)

Input code

Code that reproduces the crash (only happens when targeting older engines like IE 11:

main();

async function main() {
let is_done = false;
const async_iterable = {
[Symbol.asyncIterator]: () => ({
next: () => {
const promise = Promise.resolve({ value: "luv u", done: is_done });
is_done = true;
return promise;
},
}),
};

(async () => { // IIFE: required for babel to crash
for await (const string of async_iterable) { // for await: required for babel to crash
console.log(string);
}
})();

const [one] = [1]; // array destructuring: required for babel to crash
}

REPL link that also crashes

Configuration file name

babel.config.js

Configuration

Not relevant IMO since it also crashes in REPL. Target has to be set to IE 11.

Current and expected behavior

Current behavior: Property name expected type of string but got null

Expected behavior: Code that prints luv u to the console when ran.

Environment

Babel: 7.15.7 (@babel/core 7.15.5)

Node v16.9.1

Yarn 3.0.2

OS: macOS 10.15.7 (19H1323)

Possible solution

Transpile the code correctly instead of crashing

Additional context

I wrote code which was the reproduction code but with many more steps. Wanted to push it to a customer as a quick fix before my next calendar event. Babel crashed. Suck. Deployed only for modern browsers. Bored, offline on a flight I removed code bit for bit for bit for bit until I came up with the reproduction snippet. This is a very weird bug.

Issue 2:
Following code produces the error:

const hello = async () => {
const he = { ll: '2' }
const { ll } = he
}

babel config

module.exports = {
presets: [
[
require('@babel/preset-env'),
{
targets: 'defaults, not ie <= 11, not edge > 0, not IE_Mob 11',
modules: false
}
],
require('@babel/preset-react')
],
plugins: [
require('react-hot-loader/babel'),
require('@babel/plugin-transform-regenerator'),
require('@babel/plugin-syntax-dynamic-import'),
require('@babel/plugin-syntax-throw-expressions'),
require('@babel/plugin-transform-runtime'),
require('babel-plugin-styled-components')
],
env: {
production: {
plugins: [require('babel-plugin-transform-react-remove-prop-types')]
}
}
}

package.json

"dependencies": {
"@babel/core": "^7.9.0",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-syntax-throw-expressions": "^7.8.3",
"@babel/plugin-transform-regenerator": "^7.8.7",
"@babel/plugin-transform-runtime": "^7.9.0",
"@babel/preset-env": "^7.9.0",
"@babel/preset-react": "^7.9.4",
"babel-eslint": "^10.1.0",
"babel-jest": "^25.1.0",
"babel-loader": "^8.1.0",
"babel-plugin-styled-components": "^1.10.7",
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
"react-hot-loader": "^4.12.20"
},

node version v12.13.1

Thanks

More context #390
Issue 1:
I'm using Session.request to do GET from a HTTPS URL where the the server side certificate may be invalid. For testing purposes, if the certificate is invalid, I want to retry the GET with 'verify=False'. I'm reusing the Session for the retry, but the second request also fails even though I specify 'verify=False' in the request. It seems that the verify state is persisted in the Session somewhere and not updated from the request parameters if already set in a previous request. Is this the expected behavior? It seems unusual to me. If I create a new Session for the second request the certificate doesn't get checked in this request.

Issue 2:
Using a website that has a self-signed cert, the following use of verify=False fails:

import requests

s = requests.Session()

r = s.get('https://selfsignedsite')

traceback

r = s.get('https://selfsidnedsite', verify=False)

traceback is the same about SSL3 not finding a valid cert

requests.get('https://selfsignedsite', verify=False)

traceback as above
Issue 1:
>>> sparse.hstack( [] )
Traceback (most recent call last):

File "<ipython-input-143-f5f1847514fe>", line 1, in <module>
sparse.hstack( [] )

File "C:\Python27\lib\site-packages\scipy\sparse\construct.py", line 423, in hstack
return bmat([blocks], format=format, dtype=dtype)

File "C:\Python27\lib\site-packages\scipy\sparse\construct.py", line 533, in bmat
raise ValueError('blocks[%d,:] is all None' % brow_lengths.argmin())

ValueError: blocks[0,:] is all None

>>> sparse.vstack( [] )
Traceback (most recent call last):

File "<ipython-input-144-de4027ae6d92>", line 1, in <module>
sparse.vstack( [] )

File "C:\Python27\lib\site-packages\scipy\sparse\construct.py", line 454, in vstack
return bmat([[b] for b in blocks], format=format, dtype=dtype)

File "C:\Python27\lib\site-packages\scipy\sparse\construct.py", line 503, in bmat
raise ValueError('blocks must have rank 2')

ValueError: blocks must have rank 2

Issue 2:
>>> import numpy as np
>>> from scipy import sparse
>>> sparse.hstack( (sparse.csr_matrix([[1,2]]), np.array([[]])) )
Traceback (most recent call last):

File "<ipython-input-27-f65b402ca75d>", line 1, in <module>
hstack( (csr_matrix([[1,2]]), np.array([[]])) )

File "C:\Python27\lib\site-packages\scipy\sparse\construct.py", line 423, in hstack
return bmat([blocks], format=format, dtype=dtype)

File "C:\Python27\lib\site-packages\scipy\sparse\construct.py", line 535, in bmat
raise ValueError('blocks[:,%d] is all None' % bcol_lengths.argmin())

ValueError: blocks[:,1] is all None

The same error occurs with all sparse matrix formats and with vstack.
Issue 1:
Electron version: the one bundled with Atom 1.7.1, also 0.36.0

Operating system: Linux

The "focus()" call does not actually focus the window, it only raises it. Focus remains in the caller app (terminal, for instance).

No "focus stealing prevention" is used. This can be reproduced on multiple window managers (xfwm, unity).

Steps to reproduce, using Atom (as an example -- works with any other Electron-based app that focuses itself):

open terminal

atom myfile.txt

switch back to terminal

atom myfile.txt

note that Atom raised itself, but the focus is still in terminal.

Issue 2:
I am hitting an issue where a window (in Windows 10) is not being put to the front when I call focus() on it. The same code brings the window to the front on Windows 8 and below, so something must have changed in Windows 10 with regards to window management.

What I see happening is that the task bar is flashing in orange, so there is some indication. Just the window does not get focussed properly.
Issue 1:
Trying out electron for the first time and downloaded the latest version 0.28 (win x64). I basically copy and pasted the tutorial code from Quick Start (https://github.com/atom/electron/blob/master/docs/tutorial/quick-start.md) and was able to bring up a window. However I see the following error:

Uncaught Error: Cannot find module './web-view/web-view-attributes' (module.js:334)

I checked v0.27 and do not see this error.

Issue 2:
Electron version: v1.7.5

Operating system: MacOS

Expected behavior

WebView opens external website e.g https://google.com

Actual behavior

When creating a WebView in Angular projects either using JavaScript or by adding a HTML tag, it crashes with this error.

Uncaught TypeError: WebViewImpl.BrowserPlugin is not a constructor

at WebViewImpl.createBrowserPluginNode (/usr/local/lib/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/renderer/we…:41)

at new WebViewImpl (/usr/local/lib/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/renderer/we…:29)

at HTMLElement.proto.createdCallback (/usr/local/lib/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/renderer/we…:283)

at :1:10

createBrowserPluginNode @ /usr/local/lib/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/renderer/we…:41

WebViewImpl @ /usr/local/lib/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/renderer/we…:29

proto.createdCallback @ /usr/local/lib/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/renderer/we…:283

(anonymous) @ VM370:1

​​

How to reproduce

$ npm install -g @angular/cli

$ ng new test1 --minimal

$ cd test1

$ npm start

document.createElement('webview')
Issue 1:
I wanted to exclude all of the tensorflow logs in output. I searched and found that one or both of these setting should work:

os.environ['TF_CPP_MIN_LOG_LEVEL']='3'
tf.logging.set_verbosity(tf.logging.ERROR)

Though, I am still getting network loading logs, e.g.:

2019-02-28 23:51:13,520:INFO::Restoring parameters from ./pre_model/classic/brain4/network--6009999

I was wondering why the INFO logs are still there. I also searched a lot about it and read the previous issues, but neither had a certain solution for this problem.

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): Debian 8.7

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

TensorFlow installed from (source or binary): binary

TensorFlow version (use command below): 1.10.1

Python version: 2.7

Bazel version (if compiling from source): NA

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

CUDA/cuDNN version: 9.0

GPU model and memory: K80 12GB

Exact command to reproduce:

checkpoint = tf.train.get_checkpoint_state(os.path.join(directory, saved_model_address))
tf.train.Saver.restore(session, checkpoint.model_checkpoint_path)

in which saved_model_address is the address of the saved model, and session is an instance of tf.Session() which the model is created in.

Issue 2:
In the softmax documentation on page:

http://tensorflow.org/tutorials/mnist/beginners/index.md

There is a set of images showing an example of what the function is doing:

Then the "xs" are pulled out so that we have the vectors Wx. But the coefficients in the image above is incorrect. If the image below, also take form the docs, shows the true form then the equations in the above image should be:

y1 = W1,1x1 + W1,2x2 + W1,3x3 + b1

instead of:

y1 = W1,1x1 + W1,2x1 + W1,3x1 + b1
Issue 1:
Describe your issue.

with scipy1.10 scipy.interpolate.RegularGridInterpolator object gives the following error message when the call method is used:

Reproducing Code Example

import scipy
import scipy.interpolate
import numpy as np

foo = scipy.interpolate.RegularGridInterpolator(
[np.arange(4), np.arange(5)],
np.zeros([4,5],"f"),
bounds_error=False,
method="linear",
fill_value=None,
)
print( foo( (0,0)))
print( foo( [ (0,0), (0,0) ]))
print( foo(np.zeros([20,21,2],"f")))

Error message

Traceback (most recent call last):
File "test.py", line 12, in <module>
print( foo( (0,0)))
File "/tmp/pippo/lib/python3.8/site-packages/scipy/interpolate/_rgi.py", line 336, in __call__
result = evaluate_linear_2d(self.values,
File "_rgi_cython.pyx", line 19, in scipy.interpolate._rgi_cython.__pyx_fused_cpdef
TypeError: No matching signature found

SciPy/NumPy/Python version information

1.10.0 1.24.1 sys.version_info(major=3, minor=8, micro=10, releaselevel='final', serial=0)

Issue 2:
Describe your issue.

Invoking RegularGridInterpolator for a 2D interpolation problem where the data array is float32 crashes.

Reproducing Code Example

"""
Found our code tickled a bug. We have a mismatched type, but probably this shouldn't crash...

Reproducing code is copied (and reduced to 2d ) from the `scipy` tutorial:

https://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.RegularGridInterpolator.html
"""

from scipy.interpolate import RegularGridInterpolator
import numpy as np

def f(x, y):
return 2 * x**3 + 3 * y**2

x = np.linspace(1, 4, 11)
y = np.linspace(4, 7, 22)

xg, yg = np.meshgrid(x, y, indexing='ij', sparse=True)
data = f(xg, yg)

# This line tickles the issue.
data = data.astype(np.float32)

interp = RegularGridInterpolator((x, y), data)

pts = np.array([[2.1, 6.2],
[3.3, 5.2]])

q = interp(pts)

print(q) # expect [134.10469388 153.40069388]
print(f(*pts[0]), f(*pts[1])) # 133.842 152.994

Error message

# Traceback (most recent call last):
# File "repro_interp_issue.py", line 22, in <module>
# q = interp(pts)
# File "/Users/gbwright/opt/miniconda3/envs/sp110/lib/python3.8/site-packages/scipy/interpolate/_rgi.py", line 336, in __call__
# result = evaluate_linear_2d(self.values,
# File "_rgi_cython.pyx", line 19, in scipy.interpolate._rgi_cython.__pyx_fused_cpdef
# TypeError: No matching signature found

SciPy/NumPy/Python version information

1.10.0 1.24.1 sys.version_info(major=3, minor=8, micro=15, releaselevel='final', serial=0)