WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
What version of Go are you using (go version)?

I have tried go1.5rc1 and building from source:

go version devel +6f0c7df Tue Aug 18 17:00:59 2015 +0000 linux/amd64

What operating system and processor architecture are you using?

Linux 3.4, amd64

What did you do?

Build a distribution of our library as a tarball of the desired contents of GOPATH/src and GOPATH/pkg. Our distribution script implements the "mtime hack" discussed here, packaging dummy source files that only contain the package declaration line and .a files that have an mtime later than the corresponding source files.

Then to test our distribution we try to build an executable that imports the libraries in our distribution.

What did you expect to see?

A built executable.

What did you see instead?

The go tool complains about missing structs and funcs in our dummy go files.

This issue is also referenced in #2775

I also tried to use the shared library feature of go1.5 to distribute our library, but that appears to also require the source code.

Issue 2:
by czapkofan:

What steps will reproduce the problem?
1. Try to compile the following code ("test01-forrange.go"):
package main

var tab = []int{55, 44, 33}

func main() {
var i int
for i, v := range tab {
if v == 44 {
break
}
}
print(i)
}

What is the expected output?
(compilation succeeds)

What do you see instead?
test01-forrange.go:7: i declared and not used

Which compiler are you using (5g, 6g, 8g, gccgo)?
8g

Which operating system are you using?
Linux

Which revision are you using? (hg identify)
409c37909d73 tip

Please provide any additional information below.
Current behaviour in the code example is different to one employed in regular :=
variables assignment statement - the latter allows mixing pre-declared variables with
newly created ones. I believe that the difference is against the "principle of
least surprise".
Issue 1:
When going from Babel 4 to 5 I am getting this error and not sure where it is coming from. Any ideas?

My .babelrc is:

{
"stage": 0,
"auxiliaryComment": "istanbul ignore next"
}

The error is:

/Users/wavded/Projects/widnr/node_modules/babel/node_modules/babel-core/lib/babel/helpers/parse.js:70
throw err;
^
AssertionError: /Users/wavded/Projects/widnr/modules/models/User.js: undefined does not match type Pattern
at Type.Tp.assert (/Users/wavded/Projects/widnr/node_modules/babel/node_modules/babel-core/node_modules/ast-types/lib/types.js:53:16)
at addPattern (/Users/wavded/Projects/widnr/node_modules/babel/node_modules/babel-core/node_modules/ast-types/lib/scope.js:220:24)
at recursiveScanScope (/Users/wavded/Projects/widnr/node_modules/babel/node_modules/babel-core/node_modules/ast-types/lib/scope.js:167:9)
at recursiveScanChild (/Users/wavded/Projects/widnr/node_modules/babel/node_modules/babel-core/node_modules/ast-types/lib/scope.js:214:9)
at NodePath.<anonymous> (/Users/wavded/Projects/widnr/node_modules/babel/node_modules/babel-core/node_modules/ast-types/lib/scope.js:150:13)
at NodePath.each (/Users/wavded/Projects/widnr/node_modules/babel/node_modules/babel-core/node_modules/ast-types/lib/path.js:96:22)
at recursiveScanScope (/Users/wavded/Projects/widnr/node_modules/babel/node_modules/babel-core/node_modules/ast-types/lib/scope.js:149:14)
at recursiveScanChild (/Users/wavded/Projects/widnr/node_modules/babel/node_modules/babel-core/node_modules/ast-types/lib/scope.js:214:9)
at /Users/wavded/Projects/widnr/node_modules/babel/node_modules/babel-core/node_modules/ast-types/lib/scope.js:176:13
at /Users/wavded/Projects/widnr/node_modules/babel/node_modules/babel-core/node_modules/ast-types/lib/types.js:627:18
at Array.forEach (native)
at Object.exports.eachField (/Users/wavded/Projects/widnr/node_modules/babel/node_modules/babel-core/node_modules/ast-types/lib/types.js:626:27)
at recursiveScanScope (/Users/wavded/Projects/widnr/node_modules/babel/node_modules/babel-core/node_modules/ast-types/lib/scope.js:173:15)
at recursiveScanChild (/Users/wavded/Projects/widnr/node_modules/babel/node_modules/babel-core/node_modules/ast-types/lib/scope.js:214:9)
at NodePath.<anonymous> (/Users/wavded/Projects/widnr/node_modules/babel/node_modules/babel-core/node_modules/ast-types/lib/scope.js:150:13)
at NodePath.each (/Users/wavded/Projects/widnr/node_modules/babel/node_modules/babel-core/node_modules/ast-types/lib/path.js:96:22)

Issue 2:
import foo from 'bar';
(function* () {});

Compiling this raises AssertionError: test.js: undefined does not match type Pattern
Issue 1:
matplotlib 1.5.1, python 3.4.4, win8.1, seaborn 0.7.0

anaconda installation

EPS produced while using the seaborn package are empty in my win 8.1 environment. I went through seaborn's rcmod.py and figured that setting "font.sans-serif": ["Arial", "Liberation Sans", "Bitstream Vera Sans", "sans-serif"] causes the problem, which itself calls matplotlib.rcParams.update(). PNG, JPG etc. work without problem. It also runs without problems on my UX system.

Cannot say it has worked before, as I only recently started to use seaborn

Issue 2:
Using Arial as font.sans-serif in a figure will produce an EPS file that can't be opened or converted to PDF. In my case, using any other font, e.g. Bitstream Vera Sans or Liberation Sans produces a valid EPS.
Issue 1:
A failed assertion in unit_test.ts gives me incorrect line numbers, plus the following scary error:

=====Error inside of prepareStackTrace====
TypeError: CallSite method toString expects CallSite as receiver
at Object.toString (<anonymous>)
at stack.map (gen/bundle/main.js:126369:77)
at Array.map (<anonymous>)
at prepareStackTrace$1 (gen/bundle/main.js:126369:28)
at Function.prepareStackTraceWrapper (gen/bundle/main.js:126358:18)
at Object.runTests [as cb] (C:/Users/BertBelder/d/deno/js/testing/testing.ts:60:39)
=====Original error=======================
Error
at Object.assert (eval at _gatherDependencies (gen/bundle/main.js:126631:16), <anonymous>:32:19)
at makeTempDir (C:/Users/BertBelder/d/deno/js/unit_tests.ts:72:28)
at Object.runTests [as cb] (C:/Users/BertBelder/d/deno/js/testing/testing.ts:55:23)
out\debug\deno.exe js/unit_tests.ts permW0N0
out\debug\deno.exe js/unit_tests.ts permW1N0 --allow-write

Issue 2:
When running

eval("unknownVariable")

Deno gives the following cryptic error message.

=====Error inside of prepareStackTrace====
TypeError: CallSite method toString expects CallSite as receiver
at Object.toString (<anonymous>)
at stack.map (gen/bundle/main.js:127367:77)
at Array.map (<anonymous>)
at prepareStackTrace$1 (gen/bundle/main.js:127367:28)
at Function.prepareStackTraceWrapper (gen/bundle/main.js:127355:18)
at onGlobalError (gen/bundle/main.js:127912:25)
=====Original error=======================
ERROR RS -
Issue 1:
[x ] I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

There should be no error

Current Behavior

The following error happens:

Menu.js:535 Uncaught TypeError: Cannot read property 'props' of undefined

at Object.handleClickAway [as onClickAway] (Menu.js:535)

at HTMLDocument.ClickAwayListener._this.handleClickAway

Steps to Reproduce (for bugs)

Provide SelectField an empty array [] as child instead of array of MenuItem's.

Open this SelectField's dropdown. Empty dropdown is shown as there are no items to select.

Click away to close the dropdown. Error will appear in the console.

(the same happens if I provide undefined instead of empty array)

Context

Perhaps it is intended I provide at least one MenuItem in the child array but empty array should be valid also as I don't want items in the dropdown in my context.

Your Environment

Tech
Version

Material-UI
0.19.4

Issue 2:
Property 'ref' does not exist on type 'IntrinsicAttributes & IconButtonProps & { children?: ReactNode; }'

This is the case for IconButton, but might be the case for others as well (didn't test any others).

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

Expected Behavior

The ref property should be available for any react component.

Current Behavior

It is not, making TS complain with a 'Property 'ref' does not exist on type 'IntrinsicAttributes & IconButtonProps & { children?: ReactNode; }' when trying to add it.

Steps to Reproduce (for bugs)

Create a tsx file that uses the following:

<IconButton
ref={node => { console.log(node); }}
>
</IconButton>

Context

Your Environment

Tech
Version

Material-UI
latest beta

React
16

browser
Chrome 62

ts
2.6.1
Issue 1:
Hello,

I would suggest to add a "regex literal" type to make ensuring that a string data matches a pattern at assigment.

As the literal string feature has been added in the latest release, i found very convenient to type my variables with, e.g. for typing my react props (size : "small"| "big" )... On the same idea, it could be convenient to be able to type a variable with a pattern.

Example :

var myString : /\d{3}.*\d{2}/;
myString="555hhhhh44" ; //correct
myString="55dsds5dss4"; //error

In react it could be vey useful for defining a react prop like phone numbers, emails, dates, ...

regards

Xavier

Issue 2:
There are cases, where a property can not just be any string (or a set of strings), but needs to match a pattern.

let fontStyle: 'normal' | 'italic' = 'normal'; // already available in master
let fontColor: /^#([0-9a-f]{3}|[0-9a-f]{6})$/i = '#000'; // my suggestion

It's common practice in JavaScript to store color values in css notation, such as in the css style reflection of DOM nodes or various 3rd party libraries.

What do you think?
Issue 1:
Bug Report

Which version of ShardingSphere did you use?

apache-shardingsphere-4.1.0-sharding-proxy-bin.tar.gz

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

ShardingSphere-Proxy

Expected behavior

can get data correctly

Actual behavior

if there are null values in a record, wrong data will be return .

Reason analyze (If you can)

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

#3801 can be refered to create the test data.

test.zip is the source file of a test project.

yaml.zip includes the configuration files in conf folder.

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

test.zip

yaml.zip

Issue 2:
my version is upgraded to 4.0.0-RC3.

and i still have the problem while shardingjdbc load all the default database table metadata info causing application start slowly. i browsed all the questions commited on the git issues. i set "check.table.metadata.enabled" with false, i event set "executor.size" with 100。 but all of them do not work. and no body can give an correct answer。 is this question an Unsolvable problem？ can someone tell me that whether the problem can be solved or not ?
Issue 1:
Is there currently a way to use reflection with an AsyncEngine?

e.g. something like

import asyncio
from sqlalchemy import text, select, MetaData
from sqlalchemy.ext.asyncio import AsyncEngine, AsyncSession, create_async_engine
from sqlalchemy.ext.automap import automap_base

async def main():

eng = create_async_engine(
"postgresql+asyncpg://..."
)

meta = MetaData()
base = automap_base(metadata=meta)

await base.prepare(
eng,
reflect=True,
schema="public",
)
# sqlalchemy.exc.NoInspectionAvailable:
# No inspection system is available for
# object of type <class 'sqlalchemy.ext.asyncio.engine.AsyncEngine'>

(
asyncio
.get_event_loop()
.run_until_complete(main())
)

Issue 2:
The title pretty much describes this feature request. I would greatly appreciate if SQLAlchemy would support the Runtime Inspection API with a AsyncEngine much in the same way that it does with normal Engine objects. I know that the SQLAlchemy devs are very busy atm, so please don't feel any pressure to implement this soon. Just wanted to let you guys know about this.

Have a nice day!
Issue 1:
Im working on simple image classifier in Java. I`m using OpenCv 3.4.3 and JDK 1.8_192 and i encountered problem with JNI.

When i execute this code

public class Main {

private static List<String> getOutputNames(Net net) {
List<String> names = new ArrayList<>();

List<Integer> outLayers = net.getUnconnectedOutLayers().toList();
List<String> layersNames = net.getLayerNames();

outLayers.forEach((item) -> names.add(layersNames.get(item - 1)));
return names;
}

public static void main(String[] args) {

System.loadLibrary(Core.NATIVE_LIBRARY_NAME);

String modelWeights = "yolov3.weights";
String modelConfiguration = "yolov3.cfg";

Net net = Dnn.readNetFromDarknet(modelConfiguration, modelWeights);

Imgcodecs imageCodecs = new Imgcodecs();
Mat image = imageCodecs.imread("test.jpg");

Mat blob = Dnn.blobFromImage(image, 1.0, new Size(416, 416), new Scalar(0), false, false);
net.setInput(blob);

List<Mat> result = new ArrayList<>();
List<String> outBlobNames = getOutputNames(net);

net.forward(result, outBlobNames);
}
}

I get following error

#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007fe9cf215716, pid=12403, tid=0x00007fe9d075c700
#
# JRE version: Java(TM) SE Runtime Environment (8.0_192-b12) (build 1.8.0_192-b12)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.192-b12 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# V [libjvm.so+0x6ce716] jni_CallObjectMethodV+0x76
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/mateusz/detector/hs_err_pid12403.log
Compiled method (c1) 296 18 1 java.util.ArrayList::size (5 bytes)
total in heap [0x00007fe9b910ec50,0x00007fe9b910eee0] = 656
relocation [0x00007fe9b910ed78,0x00007fe9b910eda0] = 40
main code [0x00007fe9b910eda0,0x00007fe9b910ee20] = 128
stub code [0x00007fe9b910ee20,0x00007fe9b910eeb0] = 144
scopes data [0x00007fe9b910eeb0,0x00007fe9b910eeb8] = 8
scopes pcs [0x00007fe9b910eeb8,0x00007fe9b910eed8] = 32
dependencies [0x00007fe9b910eed8,0x00007fe9b910eee0] = 8
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
#

Im using yolov3.weights and yolov3.cfg.

Error occurs only when last line of code is executed.

EDIT:

It is written under Ubuntu 18.04, problem also occurs on 16.04, but everything works fine on Windows 10.

Issue 2:
System information (version)

OpenCV => ❔

Operating System / Platform => ❔

Compiler => ❔

Detailed description

Steps to reproduce
Issue 1:
In the latest version of Flutter the behaviour of button presses is wrong. Sometimes taps are missed because there is a move threshold - pressing, moving then releasing your finger on a button does not result in a click.

That must be deliberate, and I guess someone thought it was the correct behaviour but it's not. The threshold is only a couple of mm too, so it's quite common for taps to be missed.

Native Android apps have a better behaviour - they only cancel the click if your finger is moved off the hit area for the button. If you keep your finger on the button it will send a click even no matter how far you move it. This is much nicer to use.

I've made a video showing the difference (not sure why the mouse cursor is offset - ignore that).

flutter_button_behaviour.zip

[√] Flutter (on Microsoft Windows [Version 10.0.15063], channel alpha)
• Framework revision dc4ca8db83 (10 days ago), 2017-05-11 15:33:29 -0700
• Engine revision f99d3ef108
• Tools Dart version 1.23.0-dev.11.11

Issue 2:
You should be able to slop around a big button without rejecting the tap recognizer.
Issue 1:
Hi

this is a request for improvement :

sometimes within the grid, you want the order of your markup to not necessarily be the same as the order items are flowed into the grid.

It would be a nice improvement to have source ordering classes : by using these source ordering classes, you can shift columns around on desktops and tablets. On phones the grid will still be linearized into the order of the markup.

Thanks in advance

Issue 2:
It would be nice if we could use negative offsets to allow presentation order to be independent from source order. For example, to have the first sidebar to come after the content in the source, but be presented still to the left of the content.

For example, we could use something like in mixins.less:

.inset(@columns: 1) {
margin-left: 0 - ((@gridColumnWidth * @columns) + (@gridGutterWidth * (@columns - 1)));
}

Then in scaffolding.less

// Inset column options
.inset1 { .inset(1); }
.inset2 { .inset(2); }
.inset3 { .inset(3); }
.inset4 { .inset(4); }
.inset5 { .inset(5); }
.inset6 { .inset(6); }
.inset7 { .inset(7); }
.inset8 { .inset(8); }
.inset9 { .inset(9); }
.inset10 { .inset(10); }
.inset11 { .inset(11); }
.inset12 { .inset(12); }

Thoughts on adding something like this? Is this already possible, and I just missed it?
Issue 1:
const msg = prompt();
console.log(msg);

Then enter 你好, it outputs �.

It looks like we should reconsider the implementation of readline

deno/cli/rt/41_prompt.js

Lines 48 to 73
in
d40b071

function readLineFromStdinSync() {

const c = new Uint8Array(1);

const buf = [];

while (true) {

const n = stdin.readSync(c);

if (n === null || n === 0) {

break;

}

if (c[0] === CR) {

const n = stdin.readSync(c);

if (c[0] === LF) {

break;

}

buf.push(CR);

if (n === null || n === 0) {

break;

}

}

if (c[0] === LF) {

break;

}

buf.push(c[0]);

}

return decoder.decode(new Uint8Array(buf));

}

Issue 2:
While #8179 got partially fixed by #8199 (nice one btw, thanks for everyone involved!!), the prompt method still has some issues regarding input (related to stdin). For example, the code below doesn't perform as expected when non-ascii characters are used.

const a = prompt('Insert your character');

console.log(`a===a => ${a === 'a'}`); // When inserting the character 'a', returns true, as expected!
console.log(`ã===ã => ${a === 'ã'}`); // When inserting the character 'ã', returns false, not what we expected.

Opened a new issue because the other one got closed before this got adressed.
Issue 1:
Problem

I'm always frustrated when I want to find the font "Arial Black", because the family name of this font is "Arial".

I would like it if we could search a font by it's name.

Here is an example how I search the font "Arial Black":

import matplotlib.font_manager as fm
print(fm.findfont("Arial Black"))

Here is the output:

C:\Users\jerem\Desktop>py font.py
findfont: Font family ['Arial Black'] not found. Falling back to DejaVu Sans.
C:\Users\jerem\AppData\Local\Programs\Python\Python310\Lib\site-packages\matplotlib\mpl-data\fonts\ttf\DejaVuSans.ttf

When I say name of the font, I am talking about this name in yellow:

Proposed solution

I proposed to add a field "name" to matplotlib.font_manager.FontProperties class: https://github.com/matplotlib/matplotlib/blob/v3.5.1/lib/matplotlib/font_manager.py#L596-L947

Issue 2:
The following Ubuntu fonts are installed on my system:

/home/edwin/.fonts/Ubuntu-LI.ttf: Ubuntu,Ubuntu Light:style=Light Italic,Italic
/home/edwin/.fonts/Ubuntu-L.ttf: Ubuntu,Ubuntu Light:style=Light,Regular
/home/edwin/.fonts/Ubuntu-M.ttf: Ubuntu,Ubuntu Light:style=Medium,Bold
/home/edwin/.fonts/Ubuntu-BI.ttf: Ubuntu:style=Bold Italic
/home/edwin/.fonts/Ubuntu-RI.ttf: Ubuntu:style=Italic
/home/edwin/.fonts/Ubuntu-R.ttf: Ubuntu:style=Regular
/home/edwin/.fonts/Ubuntu-MI.ttf: Ubuntu,Ubuntu Light:style=Medium Italic,Bold Italic
/home/edwin/.fonts/Ubuntu-B.ttf: Ubuntu:style=Bold

Ubuntu Light is shown with two family names: Ubuntu and Ubuntu Light. In XeTeX I can select the font directly by naming Ubuntu Light, but I cannot do the same in matplotlib:

matplotlib.rcParams['font.family'] = 'Ubuntu Light'

Instead, I must use a more obscure (albeit more technically correct) method:

matplotlib.rcParams['font.family'] = 'Ubuntu'
matplotlib.rcParams['font.weight'] = 200

It would be convenient if Ubuntu Light could be addressed directly by its 'common' name.
Issue 1:
It can be super helpful to piggyback on ElasticSearch's node stats endpoint to report various stats on all nodes on the cluster, however non-data nodes (data=false or client=true) do not seem to have this enabled, and node stats return mostly empty for them.

Issue 2:
Using 0.90

If a data node hasn't been searched on, the getOs().getMem() in the NodesStatsResponse for that node will be null. It appears as if an actual search request has to be issued against a node for that to be populated.
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.2

Operating System version: macOS 10.12.6

Java version: 1.8

Steps to reproduce this issue

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

Expected Result

What do you expected from the above steps？

ZookeeperDynamicConfiguration(URL url, ZookeeperTransporter zookeeperTransporter) {
this.url = url;
rootPath = "/" + url.getParameter(CONFIG_NAMESPACE_KEY, DEFAULT_GROUP) + "/config";

initializedLatch = new CountDownLatch(1);
this.cacheListener = new CacheListener(rootPath, initializedLatch);
this.executor = Executors.newFixedThreadPool(1, new NamedThreadFactory(this.getClass().getSimpleName(), true));

zkClient = zookeeperTransporter.connect(url);
zkClient.addDataListener(rootPath, cacheListener, executor);
try {
// Wait for connection
this.initializedLatch.await();
} catch (InterruptedException e) {
logger.warn("Failed to build local cache for config center (zookeeper)." + url);
}
}

zkClient = zookeeperTransporter.connect(url);会通过URL中的client参数来正确选择自适应扩展来初始化zk客户端。但在初始化配置中心的时候，URL是由ConfigCenterConfig得到的，此时URL中无client的信息，所以这个地方创建zk还是用的默认的zkClient。希望和注册中心时候一样获取自己扩展的zkClient

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: 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 1:
The duplicated code in FormHelper (FrameworkBundle) and FormExtension (Twig bridge) should be extracted into a common base class Symfony\Component\Form\AbstractRenderer. It's interface should be extracted into a new Symfony\Component\Form\FormRendererInterface (containing the render*() methods of FormExtension).

The engine specific code should be placed in TwigRenderer (Twig bridge) and TemplatingRenderer (FrameworkBundle). FormHelper and FormExtension can then simply create such a renderer object and forward any method calls to the renderer.

@fabpot: Is the Templating component already able to load templates from components? If yes, we should definitely move FormHelper, TemplatingRenderer and the PHP templates to the Form (or Templating) component to make it self-contained (and usable without FrameworkBundle).

@vicb: Can you do this?

Issue 2:
binding partial parameters effectively clears all existing values from the model and only persists the new parameters that are passed in. See example:

// Author.php
class Author
{
public $name;
public $email = 'bar';
}

// AuthorType
...
$builder->add('name', 'text')->author('text');
...

Passing $form->bind(array('name' => 'foo')) wipes out the existing email value.