WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Should pandas have a Symbol datatype for strings which are frequently re-used?

For example, consider a table of stock trades with columns ['Timestamp','Price','Size','StockSymbol']. Suppose there are 10 million trades, but only 500 different stock symbols. Instead of storing 10 million strings, we could fill the 'StockSymbol' column with integers 0-499 where 0 represents AAPL, 1 represents AMZN, etc.

The Symbol type in Ruby, Scala, and Q does this compression/expansion automatically. It's a big memory saver in big tables, and Symbol comparison can be much faster than string comparison.

I often use .astype('category') for string compression in pandas. But at a talk I saw recently, @wesm suggested this might not be a great idea. I've definitely caused several confusing problems by abusing categoricals this way: comparing two columns with different levels, appending rows with new symbols, wrongly assuming sort_values() will sort symbols lexicographically, etc.

Related question: Without a Symbol datatype, is there a consensus on best practice for storing repetitive strings in a Series or DataFrame? Should we leave them as Object type? Compress them as un-ordered categoricals? Do something else I haven't thought of?

Issue 2:
update for 2019-10-07: We have a StringDtype extension dtype. It's memory model is the same as the old implementation, an object-dtype ndarray of strings. The next step is to store & process it natively.

xref #8627

xref #8643, #8350

Since we introduced Categorical in 0.15.0, I think we have found 2 main uses.

as a 'real' Categorical/Factor type to represent a limited of subset of values that the column can take on

as a memory saving representation for object dtypes.

I could see introducting a dtype='string' where String is a slightly specialized sub-class of Categroical, with 2 differences compared to a 'regular' Categorical:

it allows unions of arbitrary other string types, currently Categorical will complain if you do this:

In [1]: df = DataFrame({'A' : Series(list('abc'),dtype='category')})
In [2]: df2 = DataFrame({'A' : Series(list('abd'),dtype='category')})
In [3]: pd.concat([df,df2])
ValueError: incompatible levels in categorical block merge

Note that this works if they are Series (and prob should raise as well, side -issue)

But, if these were both 'string' dtypes, then its a simple matter to combine (efficiently).

you can restrict the 'sub-dtype' (e.g. the dtype of the categories) to string/unicode (iow, don't allow numbers / arbitrary objects), makes the constructor a bit simpler, but more importantly, you now have a 'real' non-object string dtype.

I don't think this would be that complicated to do. The big change here would be to essentially convert any object dtypes that are strings to dtype='string' e.g. on reading/conversion/etc. might be a perf issue for some things, but I think the memory savings greatly outweigh.

We would then have a 'real' looking object dtype (and object would be relegated to actual python object types, so would be used much less).

cc @shoyer

cc @JanSchulz

cc @jorisvandenbossche

cc @mwiebe

thoughts?
Issue 1:
Describe the issue

version 0.19.0 , because mergeConfig : is not support custom parameters realization RESETful

Example Code

Code snippet to illustrate your question

axios.delete(diagnosis, {
params: {
text: 'hello'
},
pathParams: {
userId: 1000,
batchId: 'XD982393'
}
})

Expected behavior, if applicable

Workable

Environment:

All

Additional context/Screenshots

none

Issue 2:
Describe the bug

The getUri method only returns the supplied url parameter and not the full request URL. However, using this method in a response interceptor seems to work correctly

This might be a duplicate or related to #2190 but I'm not sure so just throwing this out there anyway.

To Reproduce

Runkit example

The example shows that the getUri method only returns the url parameter in the request interceptor but in the response interceptor the full URL is returned.

Expected behavior

The getUri method always returns the full URL of the request config

Environment:

Axios Version [0.19.0]

OS: [OSX 10.13.4]

Environment [node >= 10]
Issue 1:
The following code does not compile:

use std::rc::Rc;
use std::cell::RefCell;

pub struct Callbacks {
callbacks: Vec<Rc<RefCell<FnMut(i32)>>>,
}

impl Callbacks {
pub fn call(&mut self, val: i32) {
for callback in self.callbacks.iter() {
let mut closure = callback.borrow_mut();
closure(val);
}
}
}

(Playpen)

It says: "cannot borrow immutable borrowed content as mutable".

Instead, I have to explicitly dereference and borrow the closure in the loop, with (&mut *closure)(val). Typically, Rust performs this automatically, so I expected that to also happen in this case. At the very least, the error message should be improved, as currently, it doesn't help with the actual issue at all.

Issue 2:
Testcase:

use std::ops::*;
struct S<'a, T:FnMut() + 'static + ?Sized>(&'a mut T);
impl<'a, T:?Sized + FnMut() + 'static> DerefMut for S<'a, T> {
fn deref_mut(&mut self) -> &mut Self::Target { &mut self.0 }
}
impl<'a, T:?Sized + FnMut() + 'static> Deref for S<'a, T> {
type Target = FnMut() + 'a;
fn deref(&self) -> &Self::Target { &self.0 }
}
fn main() {
let mut f = ||{};
let mut s = S(&mut f);
s();
}

Yields:

<anon>:13:5: 13:6 error: cannot borrow immutable borrowed content as mutable
<anon>:13 s();
^

Auto-deref should be picking DerefMut here, not Deref.
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: Mac Os

Java version: JDK 1.8

Steps to reproduce this issue

Fix for PR: #4276

Step 1: set executes to 1 in dubbo:service

<bean id="demoService" class="com.xxx."/>
<dubbo:service interface="com.xxx" ref="demoService" executes="1">
</dubbo:service>

Step 2:

Invoke service with two threads concurrent. The second one have been rate limited.

ExecutorService executorService = Executors.newFixedThreadPool(2);
for (int i = 0; i < 2; i++) {
executorService.submit(new Runnable() {
@Override
public void run() {
String result = service.sayHello(input);
System.out.println(result);
}
});
}

Step 3:

Repeat step 2, all two requests have been passed.

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

Expected Result

Step 3 should be rate limited.

Actual Result

Step 3 have not been rate limited.

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: 2.7.0

Steps to reproduce this issue

ReferenceConfig referenceConfig = new ReferenceConfig();

//application
String appName = AppInfoUtils.getAppName();
ApplicationConfig applicationConfig = new ApplicationConfig();
applicationConfig.setName(appName);
referenceConfig.setApplication(applicationConfig);

//registry
//zookeeper://127.0.0.1:2181
referenceConfig.setRegistry("zookeeper://127.0.0.1:2181");
......

Expected Result

it can use zookeeper registry

Actual Result

it does't work

java.lang.IllegalStateException: No registry config found or it's not a valid config! The registry config is: <dubbo:registry zookeeperProtocol="false" valid="false" id="zookeeper://127.0.0.1:2181" prefix="dubbo.registries." />

at org.apache.dubbo.config.AbstractInterfaceConfig.checkRegistry(AbstractInterfaceConfig.java:129)
at org.apache.dubbo.config.AbstractInterfaceConfig.loadRegistries(AbstractInterfaceConfig.java:198)
at org.apache.dubbo.config.ReferenceConfig.createProxy(ReferenceConfig.java:358)
at org.apache.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:314)
at org.apache.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:232)
Issue 1:
Description of the new feature/enhancement

Problem

The following pattern is inefficient from the command-line and often requires an alternate GUI tool:

Run a command that produces a list

For each entry in the list, run another command

For example:

git status (say we are interested in the conflict list)

For each file in the list above, "vi filename" to resolve merge conflicts

For each file in the list above, "git add"

In practice, this pattern has so much duplicate typing from the command-line, often people are required to use a GUI tool instead.

Proposal

Add a multi-command feature so the list work flow becomes:

Run a command that produces the list (eg. git status)

Alt-select list of interesting files

Type "git add {special key}" to enter multi-command mode which replicates the current typed line for each row in the selection.

Either type more commands afterwards or hit {enter} after to run multiple commands one at a time in the order they appear in the row selection.

Issue 2:
Environment

Windows build number: Microsoft Windows [Version 10.0.18362.356]
Windows Terminal version (if applicable): Version: 0.5.2762.0

Steps to reproduce

Switch to a font that contains ligatures that effect the '>' character. (In my case I used Fira Code)

Type a character such as '=' on a fresh line and it will combine in with the text that you are normally unable to edit

Expected behavior

Not sure how impactful this really is but my expectation would be that the user would be unable to effect the current location text since they are unable to edit it as normal text

Actual behavior

The user typed character is being combined into the location text modifying the normally un-editable text
Issue 1:
In a simple component with an Output as follows:

@Output() final trigger = new LazyEventEmitter<String>();

This error is thrown:

"Bad state: Stream has already been listened to."

Under the hood, the component uses a LazyEventEmitter (which is just a wrapper of Stream/Stream Controller), but it is not broadcast. Changing the controller to instantiate a broadcast stream fixes this, but up until now, we have been able to expect only one subscription from Angular framework.

@Output() final trigger = new LazyEventEmitter<String>.broadcast();

Issue 2:
Consider this component:

@Component({
selector: 'hero-detail',
inputs: ['hero'],
outputs: ['deleted'],
template: `
<div>
<b>Hero Detail: {{hero?.fullName}}</b>
<button (click)="onDelete()">Delete</button>
</div>
`
})
class HeroDetailComponent {

@Input()
hero: Hero;

@Output()
deleted = new EventEmitter();

onDelete() {
this.deleted.next(this.hero);
}
}

Now we bind to it:

<hero-detail [hero]="currentHero" (deleted)="onDeleted($event)"></hero-detail>

When the user clicks the Delete button inside <hero-detail>, the parent's onDeleted method is called twice.

Remove either the [outputs] array or the @Output decoration and the parent's method is called only once.

The number of parent method calls increase by one for each additional @Output decoration.

I maintain that any number of mentions as an output > 1 should still mean a single call to the parent method.
Issue 1:
# Some heading

Collapsing `#` should collapse all lower level headings; `##`, `###`, etc.

## Another heading

Collapsing `##` should collapse all lower level headings; `###`, `####`, etc.

### Another heading

And so on...

Issue 2:
The current implementation of folding uses an indentation based folding strategy that is unaware of the language it works on. Knowledge on the underlying language allows us to solve the following requests:

[folding] Cannot code fold empty functions #3349

[folding] Collapse ending brace to the same line #3352

[folding] Folded block comments should show */ #3350

[folding] should not fold whitespace after function #3353

[folding] Add code folding for markdown based on heading level #3347

[folding] [lua] Weird code folding with Lua #3602

[folding] Collapse code block ignore comments inside this block #3957

[folding] Code Folding: support golang multiline strings #5994

[folding] Optionally fold chained method calls #6991
Issue 1:
Since we are retiring Camper News, we need a new dataset or API to replace our Camper News dataset in Show Relationships with a Force Directed Graph.

We need to identify the dataset (preferably one that doesn't require an API key) and update the challenge.

Issue 2:
We are retiring Camper News, so we need a new dataset for our Force-Directed Graph challenge (http://www.freecodecamp.com/challenges/show-relationships-with-a-force-directed-graph).

Identify an appropriate dataset (preferably a static one, which we can host on FCC)

implement a working CodePen demo of it

I will fork it and record an updated video for it

Update by @raisedadead

Challenge has been replaced with new data set and has been renamed, its available now at

https://www.freecodecamp.com/challenges/show-national-contiguity-with-a-force-directed-graph

We now need a updated video of it.

/cc @Septimus
Issue 1:
When a folder has a lot of files, more than fits on the screen vertically, I would like to 'focus' a specific file by typing the first letters of the file.

I notice 'A' and 'D' are already mapped by default to add and duplicate, so I propse to add 'F' (or 'S') for find (or search) to use following keyboard input for finding a matching file and focusing it, bringing it into view if it's off screen.

A comparative user experience is in Windows Explorer, also when done there on the folder tree-view, if I remember correctly, the search is done over all currently visible nodes of the tree.

Issue 2:
To quickly select an item in the tree-view one knows the name of, it would be nice to search by typing ahead. For example the "Project Explorer" in Eclipse and GNOME's file manager Nautilus do this:

A problem I see with this is that currently there are some keybindings like m that make it impossible to enter text when the tree-view is focused. One option qould be to prefix them with a modifier like Ctrl+m or move them to non-letter keys like F2.
Issue 1:
Description of the problem

nPOT textures can be swapped during the uploading process if the textures were already in Browser Cache.

Repeating of the problem

Open this link in Chrome on Android device.

Toilets must be bottom of screen, baths must be on top of screen.

Reload some page

Now bath and toilets mixed on both sides (or may be only baths, or only toilets)

Simple fix

Adding var _canvas in this line fixes it.

One more possible (unconfirmed) fix: use createImageBitmap on Image before doing the resize.

It seems that texImage2d somehow doesnt get update from that canvas in time.

Three.js version

Dev

Browser

Chrome

Firefox

Internet Explorer

OS

All of them

Windows

macOS

Linux

Android

iOS

Hardware Requirements (graphics card, VR Device, ...)

Device: Huawei Nova

Android 7.0

Chrome 65.0.3325.109

Second Device: Meizu M2 Note

Android 5.1.1

Chrome 65.0.3325.109

Proofs

PC (as reference)

Mobile (Huawei Nova) (bug)

Mobile (Huawei Nova) (bug)

Issue 2:
As reported in #12763 (comment), we're currently updating the video texture at 60 (or 90 in VR) fps.

Ideally we'll only update the texture on the GPU in sync with the video framerate (usually 25-30). Unfortunately the web platform does not provide any API for figuring out the framerate of a video so something like videoTexture.frameRate = 25 is needed.

It seemed easy enough so I tried to implement this (#13304) but I hit some browser bugs and I had to revert (#13305).

It'll be good to investigate this a bit more and report bugs to browsers if needed.
Issue 1:
Running ec2_elb_facts through a playbook generates the error below.

ansible 2.0.0.2

boto 2.38.0

An exception occurred during task execution. The full traceback is:
Traceback (most recent call last):
File "/Users/robm/.ansible/tmp/ansible-tmp-1452917234.12-163996366850200/ec2_elb_facts", line 2357, in <module>
main()
File "/Users/robm/.ansible/tmp/ansible-tmp-1452917234.12-163996366850200/ec2_elb_facts", line 193, in main
list_elb(connection, module)
File "/Users/robm/.ansible/tmp/ansible-tmp-1452917234.12-163996366850200/ec2_elb_facts", line 165, in list_elb
elb_array.append(get_elb_info(elb))
File "/Users/robm/.ansible/tmp/ansible-tmp-1452917234.12-163996366850200/ec2_elb_facts", line 144, in get_elb_info
'health_check': get_health_check(elb.health_check),
File "/Users/robm/.ansible/tmp/ansible-tmp-1452917234.12-163996366850200/ec2_elb_facts", line 124, in get_health_check
'ping_port': int(port),
ValueError: invalid literal for int() with base 10: '443/healthtest/'

- hosts: localhost
tasks:
- action:
module: ec2_elb_facts
region: us-west-2
register: elb_facts

Issue 2:
Issue Type:

Bug Report

Bugfix Pull Request: #1420

Ansible Version:

Latest checkout from git (devel).

Ansible Configuration:

No changes

Environment:

Running on Mac OSX against AWS EC2 Ubuntu instances.

Summary:

In cloud/amazon/ec2_elb_facts.py:get_health_check,

Ping Target parsing is currently broken if the health-check path has more than one component e.g.:

HTTP:80/api/v1/health_check. Python str split will separate this into more than 2 components and throw a ValueError exception (since it is trying to assign to 2). The assigment in the exception handler than causes port = '80/api/v1/health_check' which causes a failure when creating the dict.

Steps To Reproduce:

Create an ELB with a health-check that has more than one component in the path ie HTTP:80/api/vi/health_check/ instead of HTTP:80/health_check

Expected Results:

module should not fail in this use case

Actual Results:

ValueError: invalid literal for int() with base 10: '80/api/v1/health_check/'
Issue 1:
I'd really like to be able to pass functions to loaders in my webpack config:

function jsLoader(source) {
// do whatever...
}

module.exports = {
...,
module: {
loaders: [
{test: /\.js$/, loader: jsLoader}
]
},
...
};

The reason is that I have some global configuration state in my webpack.config.js, example:

var STATIC_ROOT = 'path/to/static/root';

And my js_loader needs access to that static root for the transformation that it performs on the source code. My options are either to duplicate the configuration in each files, which is annoying to maintain and error-prone, or to throw all of the configuration variables into process.env, and from my js_loader, read them back from process.env, which just feels hacky.

Issue 2:
Bug report

What is the current behavior?

I have a web app which I bundle using the Webpack (using it only for bundling and generating chunks)

Let's say after bundling I have the following output:

main.bundle.js,

feature1.module.js,

feature2.module.js

On the html page (using a different tool) I include then:

main.bundle.js,

feature1.module.js,

feature2.module.js

In this scenario it all works ok

However as my system is runtime configurable I also have a situation where on the html page only the following is included:

main.bundle.js,

feature1.module.js,

i.e. feature2.module.js is not included (because server app having this feature is not running).

When I run the app now, Webpack during runtime initialization does not complete but quit silently without any message, to be exact:

function checkDeferredModules() {
var result;
for(var i = 0; i < deferredModules.length; i++) {
var deferredModule = deferredModules[i];
var fulfilled = true;
for(var j = 1; j < deferredModule.length; j++) {
var depId = deferredModule[j];
if(installedChunks[depId] !== 0) fulfilled = false;
}
if(fulfilled) {
deferredModules.splice(i--, 1);
result = __webpack_require__(__webpack_require__.s = deferredModule[0]);
}
}

return result;
}

The variable fullfilled is false and so the content of main.module.js is not loaded.

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

What is the expected behavior?

When I "manually" set the variable fulfilled to true to tell Webpack something like: ignore missing chunks because server app with this feature is not running and user will not have a access to features from feature2.module.js

The above scenario worked without problems with Webpack 3

Is there any better way to say Webpack 4 to ignore missing chunks and continue with loading the app?

Other relevant information:

webpack version: 4.35.3

Node.js version: 10.14.0
Issue 1:
Is this a request for help? (If yes, you should use our troubleshooting guide and community support channels, see http://kubernetes.io/docs/troubleshooting/.): No

What keywords did you search in Kubernetes issues before filing this one? (If you have found any duplicates, you should instead reply there.): nodePort, kubeadm

Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG REPORT

Kubernetes version (use kubectl version):

$ kubectl version
Client Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.3", GitCommit:"4957b090e9a4f6a68b4a40375408fdc74a212260", GitTreeState:"clean", BuildDate:"2016-10-16T06:36:33Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.5", GitCommit:"5a0a696437ad35c133c0c8493f7e9d22b0f9b81b", GitTreeState:"clean", BuildDate:"2016-10-29T01:32:42Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"}

Environment:

Cloud provider or hardware configuration: AWS

OS (e.g. from ca): Ubuntu 16.04.1 LTS

Kernel (e.g. uname -a): 4.4.0-31-generic x86_64 GNU/Linux

Install tools: kubeadm

Others: single node cluster, with calico network plugin

What happened:

nodePort attribute in pod does not map container port to host.

What you expected to happen:

Yaml file like:

ports:
- containerPort: 80
hostPort: 80

should expose the container port 80 to host port 80.

How to reproduce it (as minimally and precisely as possible):

Create a pod use below yaml file:

apiVersion: v1
kind: Pod
metadata:
name: demo
spec:
containers:
- name: nginx-demo
image: nginx
ports:
- containerPort: 80
hostPort: 80

Then use curl <node-ip>:80 try access it, will get Connection refused error.

Check the docker container via docker inspect <container-id>, the container port is actually not exposed:

"HostConfig": {
"PortBindings": null
}
"Config": {
"ExposedPorts": {
"443/tcp": {},
"80/tcp": {}
}
}
"NetworkSettings": {
"Ports": null,
}

Anything else do we need to know:

Issue was found originally because the rc-default.yaml file in ingress example require nodePort.

Issue 2:
Happy to send a patch for this -- I've already written an SNI Client Hello packet parser --

https://github.com/paultag/sniff/blob/master/parser/parser.go

That code needs to be audited a bit, and fuzzed, but it's hello-world-ing. Anyone willing to break this?

However, this will fail if the request has no SNI extension, so default routes are unclear to me.

The HTTPS Ingress point could do TLS termination, but that'll be mildly annoying for containers that terminate TLS (perhaps Golang apps that to TLS Peer Authentication?), otherwise we could use virtual hosting on HTTP Host.