WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
If you add multiple child elements to a ToolTip, you will receive the following error:

Invariant Violation

Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in.

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

Expected Behavior

The current error message is associated with forgetting to import a component, making troubleshooting more difficult.

Current Behavior

Either update the ToolTip component to allow multiple children, or throw a more descriptive error.

Steps to Reproduce (for bugs)

https://codesandbox.io/s/qv37l9w609

Context

Took extra time to find the cause of the Invariant Violation

Your Environment

Tech
Version

Material-UI
24

React
16

browser
Chrome

etc

Issue 2:
Hi, for the url here: Testing Documentation of material UI where is 'material-ui/test-utils' coming from? is that a package included or does that need to be installed separately?

Also, what is the best way to test your components when mounting them with Enzyme? there seem to be different suggestions which are adding to my confusion. 1. Pass context to the mount call: const wrapper = mount( <CreateAssessment />, { context: {muiTheme}, childContextTypes: {muiTheme: React.PropTypes.object} } )

or use Material-UI's mount wrapper?

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

Expected Behavior

Current Behavior

Steps to Reproduce (for bugs)

Context

Your Environment

Tech
Version

Material-UI
0.16.7

React
15.3.2

browser

Jest
21.2.1

Enzyme
3.1.1

etc
Issue 1:
Hello,

there are some issues with http://twbs.github.io/bootstrap/

here are errors from chrome console

GET http://twbs.github.io/dist/css/bootstrap.min.css 404 (Not Found) twbs.github.io/:19
GET http://twbs.github.io/assets/css/docs.min.css 404 (Not Found) twbs.github.io/:22
GET http://twbs.github.io/assets/js/docs.min.js 404 (Not Found) (index):231
GET http://twbs.github.io/dist/js/bootstrap.min.js 404 (Not Found) (index):230

the index page is ko and links are ko but other pages are fine

Cheers,

Jamal

Issue 2:
Hey guys. Did you notice that the home page mentioned in the title is broken?

This is what I see since a few weeks (!) now.

It only appears on the index.html, every sub page works fine.

Also all the travis builds appear to be working (https://travis-ci.org/twbs/bootstrap).

Hope I could help with some issues.
Issue 1:
I want to use sklearn.compose.ColumnTransformer consistently (not parallel, so, the second transformer should be executed only after the first) for intersecting lists of columns in this way:

log_transformer = p.FunctionTransformer(lambda x: np.log(x))
df = pd.DataFrame({'a': [1,2, np.NaN, 4], 'b': [1,np.NaN, 3, 4], 'c': [1 ,2, 3, 4]})
compose.ColumnTransformer(n_jobs=1,
transformers=[
('num', impute.SimpleImputer() , ['a', 'b']),
('log', log_transformer, ['b', 'c']),
('scale', p.StandardScaler(), ['a', 'b', 'c'])
]).fit_transform(df)

So, I want to use SimpleImputer for 'a', 'b', then log for 'b', 'c', and then StandardScaler for 'a', 'b', 'c'.

But:

I get array of (4, 7) shape.

I still get Nan in a and b columns.

So, how can I use ColumnTransformer for different columns in the manner of Pipeline?

P.S. please note that I already asked a question on SO.

Issue 2:
In the documentation , you wrote:

The algorithm supports sample weights, which can be given by a parameter sample_weight. This allows to assign more weight to some samples when computing cluster centers and values of inertia. For example, assigning a weight of 2 to a sample is equivalent to adding a duplicate of that sample to the dataset X.

This is disproved by the following code:

from sklearn.cluster import KMeans
vecs = [[0], [1]]
weights = [2 , 2]
kmeans = KMeans(n_clusters=1)
kmeans.fit(vecs, sample_weight=weights)
print(kmeans.inertia_) #Outputs 0.5

vecs = [[0], [0], [1], [1]]
weights = [1 , 1, 1, 1]
kmeans = KMeans(n_clusters=1)
kmeans.fit(vecs, sample_weight=weights)
print(kmeans.inertia_) #Outputs 1.0

Suggested fix:

Explain the correct definition of the inertia to this site and this site . I would suggest adding the weights to the equation on this site .
Issue 1:
I've upgraded to matplotlib 1.4.0 and am getting invalid EPS files (according to Preview) when I save figures that use

basemap (1.0.7). The same figure in PNG or PDF format works fine. I also saved a bar chart in EPS that worked.

I have verified that this happens in both OS X Mavericks and Mountain Lion. It doesn't matter whether I install using pip or homebrew. If I downgrade to matplotlib 1.3.1 it works fine.

Below is the code I was trying:

import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import numpy as np
from mpl_toolkits.basemap import Basemap

plt.figure()
m = Basemap(projection='npstere',lon_0=-270.,boundinglat=30.,round=True)
m.drawcoastlines(linewidth=1)
m.drawmapboundary(linewidth=1)
m.fillcontinents(color='silver')
m.drawmeridians(np.arange(-360,1,60))
m.drawparallels(np.arange(30,90,30))

plt.savefig('test.eps')
plt.savefig('test.pdf')
plt.savefig('test.png')

[TAC edited for formatting]

Issue 2:
the following script works fine on python 2.7.8, however it produces a non valid eps file on python 3.4.1.

import numpy as np
import matplotlib
from matplotlib import pyplot as plt

if __name__ == "__main__":
print ("Using matplotlib v%s" %matplotlib.__version__)
x = np.linspace(0, 10)
y = np.sin(x)

plt.figure()
plt.plot(x, y)
plt.savefig("out.eps", format='eps')
plt.show()

The two attachements following are the two outputs generated by python2 and python3 respectively (I changed the file extension to png to be able to upload them, but they are indeed eps files).

With a diff of the two files, and some manual editing, I found that the line responsible for the malfunctioning is the following

377c377
< /DejaVuSans findfont
---
> /b'DejaVuSans' findfont
Issue 1:
Should the sections have different titles, or would you prefer that they are merged? If you can't define them at a single place we can also add code that does the merging. (assign to me then)

Issue 2:
VSCode Version: 1.1.0

OS Version: Windows 8.1

C# extension used in some screen shots below: v1.0.5-rc2

Steps to Reproduce:

Show Errors and Warnings in a project with a few of each.

or

Stop at a breakpoint in a project using long-named classes or with a deeply-nested property hierarchy.

Notes

Highlighting on hover only goes so far in a few more places than #5580 covers...

Build messages

Note these messages can only be seen in full affter opening the offending file.

Call stack at breakpoint

This particular view might be improved if the stack showed {method}, {namespace-qualified class} or {class.method}, {namespace}.

Deeply nested variables
Issue 1:
Q
A

Bug report?
yes

Feature request?
no

BC Break report?
yes/no

RFC?
yes/no

Symfony version
3.4.7

Hello,

Updating one of our project from Sf 3.4.4 to 3.4.7 i see an error at cache:clear command or any other cli command from the console.

./app/console cache:clear --no-warmup --env=local (same for dev)

In Container.php line 297:

Circular reference detected for service "routing.loader", path: "routing.loader".

Try to check our routing import but did not found any duplicate... anyway it is only appearing when updating to 3.4.7 .

Did something changed related to this subject? do we need to take care of something in special in our configs?

Thx

Issue 2:
Hey guys!

Currently, there's no standard way of retrieving the absolute URL to an asset. This would be useful when generating asset paths in a template for an email. Would be cool a function like:

{{ asset_url('images/foo.jpg') }}

The current solution is not pratical and breaks when using CDN.

Thanks,

Marcos
Issue 1:
Since #41225 I'm no longer able to augment the static side of class Module. Before it was possible as indicated there: #40927 (comment)

I get `Duplicate identifier 'Module' as error. Any hints how to tell typescript to merge the declarations?

I tried using the @types/node 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.

Authors: @SimonSchick @sandersn @andrewbranch

Issue 2:
i noticed that i get compile errors when i have any of above references. Do i miss something?
Issue 1:
Describe the bug

ShapePath makes holes in wrong shape plane if shapes added in specific order.

To Reproduce

Steps to reproduce the behavior:

Create ShapePath as described below

Code

const shape = new THREE.ShapePath();

shape.moveTo(0, 0);
shape.lineTo(0, 9);
shape.lineTo(8, 9);
shape.lineTo(8, 0);
shape.currentPath.closePath();

shape.moveTo(1, 1);
shape.lineTo(7, 1);
shape.lineTo(7, 5);
shape.lineTo(1, 5);
shape.currentPath.closePath();

shape.moveTo(3, 2);
shape.lineTo(3, 4);
shape.lineTo(5, 4);
shape.lineTo(5, 2);
shape.currentPath.closePath();

shape.moveTo(4, 3);
shape.lineTo(5, 3);
shape.lineTo(5, 4);
shape.lineTo(4, 4);
shape.currentPath.closePath();

shape.moveTo(1, 6);
shape.lineTo(7, 6);
shape.lineTo(7, 8);
shape.lineTo(1, 8);
shape.currentPath.closePath();

const shapes = shape.toShapes();
const geometry = new THREE.ExtrudeBufferGeometry(shapes, {
depth: 1,
bevelEnabled: false,
});
const material = new THREE.MeshPhongMaterial({ color: 0xb0b0b0});
const mesh = new THREE.Mesh(geometry, material);

scene.add( mesh );

Live example

jsfiddle-latest-release

Expected behavior

Hole should be in correct shape plane

Screenshots

Shape adding order:

Expected result:

Actual result:

Platform:

Device: [Desktop]

OS: [Windows]

Browser: [Chrome]

Three.js version: [latest release]

Issue 2:
Description of the problem

When creating a polygon with constructPathShape.toShapes the order of the constructpathshapes commands plays a role which shouldn't be the case. (I think so)

I am adding a hole than the outer vertice then again a hole.

The last hole is not recognized.

https://jsfiddle.net/0g9bdar5/2/

The only thing which was changed is the order of the constructpathshape commands.

If I add the two holes at the beginning the polygon is rendered correctly.

https://jsfiddle.net/0g9bdar5/3/

Three.js version

latest

Browser

All of them

Chrome

Firefox

Internet Explorer

OS

All of them

Windows

macOS

Linux

Android

iOS

Hardware Requirements (graphics card, VR Device, ...)
Issue 1:
Leap Day Edition 🎉

Typing Work

#7156 Library include directives

#7125 UMD module definitions

Salsa-supporting work

#6992 Use smarter type fallbacks in error cases

Suggestions

#7279 Trailing commas in argument lists

#7209 Add a "force strict mode" option

#7077 Duplicate identifiers in namespace emit

#7011 Apply interface types to implicit-any-declared class properties

#6864 Disallow implicitly duplicated enum values

#185 Non-nullable: confirm that this is committed?

#471 Permit an implementing class to ignore private methods of the implementee class

#3812 Type guards on property access

#6758 Allow --name=value commandline switch format

#7256 Disallow void in truthyness positions

#7071 require of .json file

#6808 Start a deprecation path for module

Issue 2:
From @prencher on April 21, 2016 22:28

VSCode Version: 1.0

OS Version: Any

When formatting a TSX document, <span onClick={this.test()}> gets formatted as <span onClick={this.test() }>.

It appears isolated to ), for example <span onClick={this.test}> is unaffected, as is every other case I could think of to test.

I would assume this is supposed to not have spaces, or respect the non-empty bracket setting added in 1.0.

Copied from original issue: microsoft/vscode#5630
Issue 1:
Challenge Sum All Odd Fibonacci Numbers has an issue.

User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36.

Please describe how to reproduce this issue, and include links to screenshots if possible.

The issue I am having is with receiving a "SyntaxError: Unexpected token ;" syntax error. This issue has to do with the semicolon at the end of the do while, which is syntactically correct. This prevents the code from running. While there is a work around, I just wanted to shed some light.

Thanks

My code:

function sumFibs(num) {
var prevNum = 1;
var curNum = 1;
var result = 2;

do {
var newNum = prevNum + curNum;

if (newNum % 2 !== 0 && newNum <= num) {
result += newNum;
}
prevNum = curNum;
curNum = newNum;
} while (curNum < num);

console.log(result);
return result;
}

sumFibs(1000);

Issue 2:
my comment

the code runs with node, e.g.

node test.js

in FCC it doesn't work.

I'm using two while loops (outer and inner) what might be the cause.

auto generated text

Challenge Sorted Union has an issue.

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/602.2.14 (KHTML, like Gecko) Version/10.0.1 Safari/602.2.14.

Please describe how to reproduce this issue, and include links to screenshots if possible.

My code:

function mergeArrays(x) {
// empty array as initial value. Combine two arrays several times.
return x.reduce(function(a,b){return a.concat(b);},[]);
}

function uniteUnique(){
// convert JSON (the arguments variable) to an Array
var arr = [].slice.call(arguments); //console.log(arr);
// merge initially
arr = mergeArrays(arr);
// start outer while loop
var flag = true;
while(flag){
// check if one element is an array
var stopped=false;
var i=0;
while(i<arr.length && !stopped){
// stop if one element is an Array
if(Array.isArray(arr[i])){stopped=true;}
i++;
}
if(stopped){
// merge elements that are numbers/strings and Arrays.
arr = mergeArrays(arr);
}else{
// abort outer while loop
flag = false;
}
//console.log(arr);
}
return arr;
}

console.log(uniteUnique([1, 3, 2], [5, 2, 1, 4], [2, 1]));
console.log(uniteUnique([1, 3, 2], [1, [5]], [2, [4]]));
console.log(uniteUnique([1, 2, 3], [5, 2, 1]));
console.log(uniteUnique([1, 2, 3], [5, 2, 1, 4], [2, 1], [6, 7, 8]));
console.log(uniteUnique([1, 3, 2], [3, [1, [5]]], [2, [4]]));
Issue 1:
Summary.

If a http page redirects via 301 to a non-http location, eg a magnet link, requests raises exception and the redirect link is not available except in the error text

Expected Result

Would be better if it returned status_code=301 and content=redirect link

Actual Result

exception No connection adapters were found for 'magnet:?xt=urn:btih...

Issue 2:
I'm currently mocking an API that is consumed by an Android application.

One of the API responses contains a redirect to a custom URL schema app:// in the Location header

Since I am not interested in my mocked API client in following the redirect (which would raise an InvalidSchema exception anyway), I have set allow_redirects = False on my session object. Although the redirect is not fired, it is still being resolved, causing an exception due to the missing url adapter.

Expected Result

Since I'm not interested in the redirects being followed, it would make sense to not resolve the redirected request in the first place.

How to reproduce

import requests

S = requests.session()
S.allow_redirects = False
destination = https://somesite.example # URL with a redirect to a non-standard protocol
S.get(url=destination)

Response headers (example):

HTTP/1.1 302 Found
Server: Apache-Coyote
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
Location: app://api-test.somesite.example?q=example
Content-Language: en
Content-Length: 0
Date: Tue, 31 Oct 2017 12:39:17 GMT
Connection: close

Exception thrown by code:

Traceback (most recent call last):
File "example.py", line 6, in <module>
S.get(url=destination)
in get
return self.request('GET', url, **kwargs)
File ~/.local/lib/python2.7/site-packages/requests/sessions.py", line 518, in request
resp = self.send(prep, **send_kwargs)
File "~/.local/lib/python2.7/site-packages/requests/sessions.py", line 661, in send
history = [resp for resp in gen] if allow_redirects else []
File "~/.local/lib/python2.7/site-packages/requests/sessions.py", line 214, in resolve_redirects
**adapter_kwargs
File "~/.local/lib/python2.7/site-packages/requests/sessions.py", line 633, in send
adapter = self.get_adapter(url=request.url)
File "~/.local/lib/python2.7/site-packages/requests/sessions.py", line 717, in get_adapter
raise InvalidSchema("No connection adapters were found for '%s'" % url)
requests.exceptions.InvalidSchema: No connection adapters were found for 'app://api-test.somesite.com?q=example'

Actual Result

InvalidSchema exception
Issue 1:
Challenge Name

All challenges are affected.

Issue Description

When you finish a level and then start a new one and click a position in the editor, often the cursor will appear to be in the correct position but actually will be one line below when one types a character.

Arrow key navigation also is not working as expected until said character is typed, as the cursor jumps to and from the next line at positions that do not match the natural line breaks of the text. This behavior can be seen by holding the left or right arrow keys after the above first click.

Browser Information

Browser Name: Firefox, Version: 47.0.1

Operating System: Windows 10

Desktop

Issue 2:
In all the exercises, we the users are forced to press the enter key before writing any code.

Update:

We have locked the conversation temporarily on this thread to collaborators only, this has been resolved in staging, and will be live soon.

The fix can be confirmed on the beta website.

The workaround currently on production website is:

Press the Enter key on the challenge editor and then proceed with the challenge.

Apologies for the inconvenience meanwhile.

Reach us in the chat room if you need any assistance.
Issue 1:
clone.app doesnt work Kindly check

url:http://www.freecodecamp.com/challenges/waypoint-clone-an-element-using-jquery?solution=fccss%0A%20%20%24(document).ready(function()%20%7B%0A%20%20%20%20%24(%22%23target1%22).css(%22color%22%2C%20%22red%22)%3B%0A%20%20%20%20%24(%22%23target1%22).prop(%22disabled%22%2C%20true)%3B%0A%20%20%20%20%24(%22%23target4%22).remove()%3B%0A%20%20%20%20%24(%22%23target2%22).appendTo(%22%23right-well%22)%3B%0A%20%20%20%20%24(%22%23target5%22).clone().appendTo(%22%23left-well%22)%3B%0A%20%20%20%20%0A%20%20%7D)%3B%0Afcces%0A%0A%3C!--%20Only%20change%20code%20above%20this%20line.%20--%3E%0A%0A%3Cdiv%20class%3D%22container-fluid%22%3E%0A%20%20%3Ch3%20class%3D%22text-primary%20text-center%22%3EjQuery%20Playground%3C%2Fh3%3E%0A%20%20%3Cdiv%20class%3D%22row%22%3E%0A%20%20%20%20%3Cdiv%20class%3D%22col-xs-6%22%3E%0A%20%20%20%20%20%20%3Ch4%3E%23left-well%3C%2Fh4%3E%0A%20%20%20%20%20%20%3Cdiv%20class%3D%22well%22%20id%3D%22left-well%22%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target1%22%3E%23target1%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target2%22%3E%23target2%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target3%22%3E%23target3%3C%2Fbutton%3E%0A%20%20%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%3Cdiv%20class%3D%22col-xs-6%22%3E%0A%20%20%20%20%20%20%3Ch4%3E%23right-well%3C%2Fh4%3E%0A%20%20%20%20%20%20%3Cdiv%20class%3D%22well%22%20id%3D%22right-well%22%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target4%22%3E%23target4%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target5%22%3E%23target5%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target6%22%3E%23target6%3C%2Fbutton%3E%0A%20%20%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%3C%2Fdiv%3E%0A%20%20%3C%2Fdiv%3E%0A%3C%2Fdiv%3E%0A

Issue 2:
A bug seems to be present: Chrome 46.0.2490.86 m; Windows 8.1 with respect to appendTo() function.

$("#target2").appendTo($("#right-well")); does work, but not the $("#target2").appendTo("#right-well");, the latter being suggested in the tutorial.

Hard reload and cache clearing did not seem to solve the problem.
Issue 1:
Environment

Windows build number: Microsoft Windows [Version 10.0.18363.900]
PowerToys version: v19.1
PowerToy module for which you are reporting the bug (if applicable): FancyZones

Steps to reproduce

Move the taskbar to the top of the screen screen and set up FancyZones.

Expected behavior

An option in fancyzones to select the taskbar location

Actual behavior

FancyZones is not accounting for the fact that i have my taskbar at the top of my screen. In v18 this was not an issue but since i updated to v19 (and then to v19.1) all my windows are moved up to account for the taskbar to be at the bottom whereas mine is at the top

Screenshots

(Very new to programming so sorry if there isn't as much detail as need but hope you see my issue)

Issue 2:
Environment

Windows build number: 10.0.18363.900
PowerToys version: 0.19.0
PowerToy module for which you are reporting the bug (if applicable): FancyZones
Monitor(s): 2 side-by-side 4K monitors (one set to display scaling 100% and the other to 125%)

Steps to reproduce

Set Windows taskbar location to Top

Snap a window to a FancyZone (2 priority grid zones in my case)

Expected behavior

The window should snap to the full-height of the FancyZone below the task bar

Actual behavior

The window snaps behind the task bar (as shown with the green arrows)

The window leaves a gap underneath each window (as shown with the red arrows), which exposes the desktop background underneath

Screenshots
Issue 1:
Currently, the example 'with-typescript' is using an ugly 'concurrently' to run asynchronously with next.js.

I tried to modify the webpack loaders but no hope, next.js required files be in filesystem/.next folder, not memory. Now I can't use my lovely CoffeeScript for API construction😖. I have to launch external project for that.

Issue 2:
As mentioned in #867 (comment) and #627 (comment), it sounds possible to use Webpack universally. There's e.g the universal-webpack package which might help, and this article gives some tips and an example.

If it can be done efficiently, having a universal Webpack sounds like a great way to reduce the complexity of the Next.js codebase and would allow users to load any Webpack plugin they need?

What's Next.js' team's opinion on this, does it make sense and should it be investigated?
Issue 1:
For the query refactoring we started testing equals()/hashCode() contracts for the query builders in a central abstract base test, assuming the test can use some helper methods to e.g. make deep copies of objects via serialization. We have similar tests e.g. in BaseAggregationTestCase and for several other parts of the search request (e.g. the SuggestBuilderTests via the abstract WritableTestCase, AbstractShapeBuilderTestCase). We also started doing those kind of tests in a helper class now in the rank_eval module, which triggered the discussion if we should make an effort to centralize this.

While putting this kind of basic equals/hashCode tests into abstract superclasses works for test of similar classes (e.g. all queries), it is a bit tricky to generalize this easily and makes the test inheritance structure hard and tests sometimes difficult to read. On the other hand, having this kind of tests clearly documented in some central test utility class would make reusing it more straight forward and avoid the duplication we have today. I'm leaning towards not inheriting this kind of testing code but rather have some utility function somewhere that e.g. takes the original object, some function that returns a deep copy and a function that returns a mutation (an instance different in only one aspect) as arguments and does all the assertions necessary. This way it can be used by different tests without the burden of having to inherit various levels of abstract base test classes.

Issue 2:
Please, see https://discuss.elastic.co/t/phrase-highlighting-works-incorrectly-on-es-2-1-1-and-2-2-0/39971