WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
I use scrapy 1.3 According to documentation I can declare settings for each specific spider simple enough. Here is my code

class BhSpider(scrapy.Spider):
name = "code"
custom_settings = {'CONCURRENT_REQUESTS' : '20',
'FEED_EXPORT_FIELDS' :['price', 'stock','partnumber','sku', 'name' ,'manufacture','attribute','distributor','upc','descr', 'p_url','main_image','images']}
allowed_domains = ***

But according to logs project settings are used. How do i know project settings are overcomed by this specific spider settings?here is the log

2017-08-20 13:47:51 [scrapy.utils.log] INFO: Scrapy 1.3.2 started (bot: pc) 2017-08-20 13:47:51 [scrapy.utils.log] INFO: Overridden settings: {'NEWSPIDER_MODULE': 'pc.spiders' , 'FEED_URI': 'test_output1.csv', 'CONCURRENT_REQUESTS': 200, 'SPIDER_MODULES': ['pc.spiders'], 'BO T_NAME': 'pc', 'USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) C hrome/59.0.3071.115 Safari/537.36', 'FEED_FORMAT': 'csv', 'FEED_EXPORT_FIELDS': ['price', 'stock', 'partnumber', 'sku', 'name', 'manufacture', 'attribute', 'distributor', 'upc', 'descr']} 2017-08-20 13:47:51 [scrapy.middleware] INFO: Enabled extensions:

In the output file Export fields seem to be correct( as in custom settings, though log does not show that). How can i know that specific settings are enabled?

-- | --

Issue 2:
Hi,

I would like to notice that custom_settings per spider does not work properly. Global settings updated nothing when I added custom_settings in spiders, and unittests for that are missing too.

Regards,

Canh
Issue 1:
If the tab items are longer than wrapper width the tabs should switch to accordion type of content.

Currently the items that don't fit are placed on a second row. For the style bootstrap uses for tabs it doesn't look that bad but for different styles for tabs it doesn't really work.

Issue 2:
You should remove the label "mobile-first" from twitter bootstrap. Just because you add this label, does not mean your framework IS mobile-first.

For example, there should be no tabs on mobile devices or they must be displayed as accordion, but they are here... Why? Because you develop it for desktop (first), then just ported to mobile...
Issue 1:
I got few dozen crashes of a new type with 4.3.0

The crash log from Play dashboard is:

java.lang.IllegalArgumentException:	at com.bumptech.glide.manager.RequestManagerRetriever.get(RequestManagerRetriever.java)
at <OR> com.bumptech.glide.manager.RequestManagerRetriever.get (RequestManagerRetriever.java)
or .assertNotDestroyed (RequestManagerRetriever.java)
or .getRequestManagerFragment (RequestManagerRetriever.java)
or .getSupportRequestManagerFragment (RequestManagerRetriever.java)
at com.bumptech.glide.manager.RequestManagerRetriever.get (RequestManagerRetriever.java)
or .assertNotDestroyed (RequestManagerRetriever.java)
or .getRequestManagerFragment (RequestManagerRetriever.java)
or .getSupportRequestManagerFragment (RequestManagerRetriever.java)
at com.bumptech.glide.Glide.get (Glide.java)
or .getAnnotationGeneratedGlideModules (Glide.java)
or .with (Glide.java)
at com.armeniatoday.rss.ui.ArticleActivity.loadSourceData (ArticleActivity.java)
or .access$300 (ArticleActivity.java)
or .access$1200 (ArticleActivity.java)
at com.armeniatoday.rss.ui.ArticleActivity$$Lambda$5.run (ArticleActivity.java)
at android.os.Handler.handleCallback (Handler.java:751)
at android.os.Handler.dispatchMessage (Handler.java:95)
at android.os.Looper.loop (Looper.java:154)
at android.app.ActivityThread.main (ActivityThread.java:6776)
at java.lang.reflect.Method.invoke (Method.java)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1520)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1410)

Issue 2:
Glide Version: 3.6.1

Integration libraries:

Device/Android Version: 5.1.1

Issue details / Repro steps / Use case background:

I'm trying to load image from url when activity is ready, and I want to have a placeholder that is by ColorDrawable(Color.WHITE);. The placeholder does not get replaced first time loading the image, but it does get replaced when it's from cache instead of URL.

Glide load line:

glide.load(mPlayer.imgUrl)
.diskCacheStrategy(DiskCacheStrategy.ALL) // If I choose NONE for cache it works
.placeholder(new ColorDrawable(Color.WHITE)) // if I comment this line it works
.into(mPicture);

Layout XML:

<...Layout>
<de.hdodenhof.circleimageview.CircleImageView
android:id="@+id/player_image"
android:layout_width="112dp"
android:layout_height="112dp"
app:civ_border_color="@color/bright_100"
app:civ_border_width="4px"
app:civ_fill_color="@color/bright_100" />
</..Layout>

Stack trace / LogCat:

No log trace available
Issue 1:
Can we please bring back the docstring comments in CrawlSpider that were removed in e2290a5? The code has zero comments now. Just spent two hours pulling my hair out trying to pass extra params down the crawler. Until I found the removed docstrings in this commit that where hugely helpful :) Thanks!

Issue 2:
Hi, I ran scrapy shell and fetch('https://www.example.com') then I got an error related to "There is no current event loop in thread 'Thread-1 (start)' "

the error that I get

2022-12-25 12:51:33 [scrapy.core.scraper] ERROR: Spider error processing <GET https://www.google.com/> (referer: None)
Traceback (most recent call last):
File "/home/mohsn/Documents/lrn_scrap/venv/lib/python3.10/site-packages/twisted/internet/defer.py", line 892, in _runCallbacks
current.result = callback( # type: ignore[misc]
File "/home/mohsn/Documents/lrn_scrap/venv/lib/python3.10/site-packages/scrapy/utils/defer.py", line 285, in f
return deferred_from_coro(coro_f(*coro_args, **coro_kwargs))
File "/home/mohsn/Documents/lrn_scrap/venv/lib/python3.10/site-packages/scrapy/utils/defer.py", line 272, in deferred_from_coro
event_loop = get_asyncio_event_loop_policy().get_event_loop()
File "/usr/lib/python3.10/asyncio/events.py", line 656, in get_event_loop
raise RuntimeError('There is no current event loop in thread %r.'
RuntimeError: There is no current event loop in thread 'Thread-1 (start)'.
2022-12-25 12:51:33 [py.warnings] WARNING: /home/mohsn/Documents/lrn_scrap/venv/lib/python3.10/site-packages/twisted/internet/defer.py:892: RuntimeWarning: coroutine 'SpiderMiddlewareManager.scrape_response.<locals>.process_callback_output' was never awaited
current.result = callback( # type: ignore[misc]

scrapy version is 2.7.1

python version is 3.10.6

that works for me in scrapy version 2.7.0
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

Floating label should only float after selecting an element from the list.

Current Behavior

Floating label starts floating for a short amount of time before opening the dropdown list.

Steps to Reproduce (for bugs)

Go to http://www.material-ui.com/v0.19.4/#/components/select-field. Scroll down to "Floating label example" section.

Click on the placeholder area of the SelectField on the first example. Notice everything including the floating label works fine.

Then try clicking on the little arrow icon indicating the dropdown menu located on the right area of the SelectField.

Notice the floating label starts floating for a very short amount of time just before the dropdown menu is completely open.

Note: Pressing and waiting on the arrow icon triggers the floating label to float. However, pressing and waiting on the other area of the SelectField does not trigger anything. That may be the cause of the bug.

Context

Your Environment

Tech
Version

Material-UI
v0.19.4

browser
Chrome v61.0.3163.100

Issue 2:
If you go to material-ui website http://www.material-ui.com/ changing the emulator for example to

blackberry Z30 and refresh, you would see that there are some issues with the layout.

After investigating the code it seems that if I change the muiTheme.userAgent to 'all' it got fixed, but that breaks IE 10 for example.

It seems to me that there is no fallback when the userAgent is not detected by the Autoprefixer.

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

Expected Behavior

prefixed styling should be applied

Current Behavior

There are no prefixes applied to new browsers.

Steps to Reproduce (for bugs)

Go to material-ui main website, change emulator to Blackberry and refresh the page

Context

It affects my AppBar rightElements, it might be only happen there

Your Environment

Tech
Version

Material-UI
0.19.14

React
16.1.0

browser
Blackberry or any other modern browser
Issue 1:
My glide version:

compile 'com.github.bumptech.glide:glide:3.7.0'

Exception info

java.lang.IllegalArgumentException: You cannot start a load for a destroyed activity
at com.bumptech.glide.manager.RequestManagerRetriever.assertNotDestroyed(RequestManagerRetriever.java:134)
at com.bumptech.glide.manager.RequestManagerRetriever.get(RequestManagerRetriever.java:102)
at com.bumptech.glide.Glide.with(Glide.java:653)

Issue 2:
if DiskCacheStrategy.ALL can't load?
Issue 1:
I didn't find a good way to use different 'process_item' methods to different classes of Items.

For example we could create two item classes to crawl and then store in db:

class Headers(item):
url = Field()
response_code = Field()
content_type = Field()

class Body(item):
title = Field()
h1 = Field()

Than in item pipeline we would need to do something like this:

class StoreInDB(object):

def process_item(self. item, spider):
if isinstance(item, Headers):
return self.storeHeaders(item, spider)
elif isinstance(item, Body):
return self.storeBody(item, spider)

def storeHeaders():
pass # make some things with Headers item here

def storeBody():
pass # make some things with Body item here

Wouldn't it be nice to put this functionality in base class, so we would have some dict or function to map item to the correct processor? Sure, current behavior would stay as default. Here is what i'm talking about:

from project.items import Headers, Body
from scrapy.contrib.pipeline import Pipeline

class StoreInDB(Pipeline):

self.assignItemProcessor(itemclass=Headers, processor=self.storeHeaders)
self.assignItemProcessor(itemclass=Body, processor=self.storeBody)

def storeHeaders():
pass # make some things with Headers item here

def storeBody():
pass # make some things with Body item here

I can write the code if you guys think it's useful. It certainly is for me.

Issue 2:
Access the text page(not mine) by browsers or wget and you will find the response content is not duplicate, but scrapy's response.body is duplicate. I had tried set the scrapy's headers same as a real brower's, but it is still duplicate.

Just use the follow sample code, and you will find the issue.

scrapy shell "http://files.qidian.com/Author4/3615059/88542882.txt"

Sorry for my bad english.
Issue 1:
To reproduce:

Create multiple indexes

Search on all indexes, with a search size of 2_000_000_000

Run test with a normal, low -Xmx

I expect to be able to set a high search size to return all total values, even if all the indexes are small.

Happens in v. 1.1.2. I haven't tested other versions yet.

I can create a Java Unit test sometime later if you need me to.

Issue 2:
Hi Folks,

We're currently using the official elasticsearch/elasticsearch-repository-hdfs/2.0.2-light plugin to support HDFS snapshots. In our environment we use Cloudera Distribution Hadoop, so we need to supply these jars on startup into the Elasticsearch Java classpath.

https://github.com/elasticsearch/elasticsearch-hadoop/tree/master/repository-hdfs

As another point of reference, we're also using the official Puppet module in our environment so this problem would apply to both the supplied RPM files here as well as the Puppet file templates.

https://github.com/elasticsearch/puppet-elasticsearch/blob/master/templates/etc/init.d/elasticsearch.RedHat.erb

Currently, I provide ES_CLASSPATH="$ES_CLASSPATH:/path/to/hadoop/jars" in our /etc/sysconfig/elasticsearch and add an additional line in /etc/init.d/elasticsearch export ES_CLASSPATH (since the official Puppet module doesn't support export ES_CLASSPATH="..." directly).

Should the SysV init script include export ES_CLASSPATH like the other export ES_JAVA_OPTS, export ES_HEAP_SIZE, etc. environments variables in there for consistency? I wouldn't mind submitting a pull request to add this if it makes sense.

Thanks!

Brian
Issue 1:
I think there should be a triple state value instead of a boolean in the settings.json. So one can choose between don't show folding, show folding on hover and alwasy show folding.

Issue 2:
When you define decorators for an editor (activeEditor.setDecorations), you must define a Range, which can be a specific line where you want to add that decorator (an image with gutterIconPath for instance).

But if you Fold the lines where this decorator is defined, the icon is not hidden with the lines, but instead, it is shown in the line where the folding starts.

I didn't find anything in line or decorators that could be used to detect if the line is folded, so I think that the folding engine should be taking care of that, right?

Thanks in advance
Issue 1:
Version

2.5.2

Reproduction link

https://jsfiddle.net/50wL7mdz/71931/

Steps to reproduce

run the jsfiddle example

What is expected?

v-else to work

What is actually happening?

v-else seems to have no effect

maybe related/duplicate with issue #6917 or issue #6907

Issue 2:
Here's a fiddle that uses all of the mutation methods on an array that this being used by v-repeat with a javascript v-transition.

Things I noticed:

push and pop behave as expected.

When using shift and unshift, the new array element is added to the front of the list, but the last item in the list animated in/out.

sort and reverse work, but there are no transitions applied.

splice kinda works; the data is updated correctly, but then only one new element is transitioned, even though I removed one element from the middle of the list and added two new elements.
Issue 1:
Describe the bug

After upgrading from v0.18.1 to v0.19.2 axios stopped respecting GET params that are set as defaults.params or params passed while creating an instance.

To Reproduce

const newAxios = axios.create({
baseURL: 'https://httpbin.org/get',
params:{
'a': 'b'
}
});

// this request doesn't respect params set above
newAxios.get('');

// this request doesn't respect params either
newAxios.defaults.params = {'c': 'd'};
newAxios.get('');

// this is the only way to pass get params
newAxios.get('', {params: {'e': 'f'}})

Live example here: https://jsfiddle.net/rmjuexz8/

Expected behavior

All the requests from the example should have GET parameters.

Environment:

Axios Version: 0.19.2

Issue 2:
Describe the bug

Specific request params do not get merged with the instance default params.

To Reproduce

const instance = axios.create({
baseURL: "http://www.example.com",
params: {
q: "question",
}
});

instance.get("/page",
{
params: {
page: 2
}
}
)

What happens is that the request param object overrides the instance default param object. The instance no longer has a query param of q.

Expected behavior

According to the docs, all configuration options are merged. https://github.com/axios/axios#instance-methods

I expected request to contain both q and page params. This is also how it was working in version 0.18.0, which is how I noticed.

Environment:

Axios Version: 0.19.0

OS: 10.14.5 (18F132)

Browser: Node Express, and Chrome

Browser: Node 10.15.0, Chrome Version 74.0.3729.169 (Official Build) (64-bit)
Issue 1:
The recent changes @bschussek made in the FormView class in d072f35 make it impossible to access the vars property in Twig without using the deprecated method get().

Now the FormView class implements the ArrayAccess interface, so by defaut, in Twig, when using form.vars.full_name it goes first to search within the array, and the array contains the form children, not the varsproperty. So now, we are forced to go through the deprecated method form.get('full_name') with no other option to access the public property.

Is this the expected behaviour? It's a Twig issue maybe?

Issue 2:
The twig syntax form.field.vars is broken since beta3. I have a simple form:

namespace Acme\DemoBundle\Model;

class Test
{
private $url;

public function getUrl()
{
return $this->url;
}
}

namespace Acme\DemoBundle\Form;

class TestType extends AbstractType
{
// etc
}

{% if form.url.vars.errors | length == 0 %}
{% endif %}

The above syntax generates the following error:

Notice: Undefined index: vars in symfony/src/Symfony/Component/Form/FormView.php line 308

I did some digging and it seems that FormView implements ArrayAccess which calls offsetGet, and that method returns $this->children[$name]. Is there another way to call FormView->vars in twig or is this a bug? I could of cource use form.url.get('errors') but that method is deprecated. The readme suggest using the public property vars but it's not possible to call it in a twig template?
Issue 1:
VSCode Version: 1.1.0-alpha

OS Version: Windows10

Steps to Reproduce:

Launch an app.

Follow the instructions to create and debug extension.

https://code.visualstudio.com/docs/extensions/example-word-count

Start debugging with F5 and verify new instance of VSCode launched or not.

From the main window (where debug options are available) perform search from action-bar and click on close debug button from debug-actions widget.

Actual: When user terminate the debug session after search operation then child window (Extension-development-host) is not closing.

Expected: Whenever user close the debug session then all the child processes and threads associated with that should be terminated.

I tried to perform below operations without search action and Child process is terminating properly.

Close debug session from main process and verify app behavior (new instance of VSCode closed when ending debug session).

Try to perform in either way, Close newly launched VSCode instance and verify app behavior (Debug session terminated)

Issue 2:
VSCode Version: 1.3.0 insiders

OS Version: Windows 10

Steps to Reproduce:

run mock-debug as an extension

terminate debug session

Observe: extension host window doesn't always disappear
Issue 1:
For Example:

<input type="number" onChange={this._onChange} />

In Chrome, you cannot type a non-number character, in Safari And Firefox, You can type non-number character ,but in this moment value of Change is empty string ""。How can solve this problem?

Issue 2:
A controlled number input, without a corresponding setState function, still allows e, - and . to be entered (and numbers can be inputted afterwards). I could be incorrect but I don't believe this is the desired behavior.

Here's a JSFiddle demonstrating the issue.
Issue 1:
With rust 0.6, the following code produces a segfault. Indeed, at the time of println, *y is no longer a managed pointer to a string, but an arbitrary value crafted by the closure.

enum A { B(@str), C(int) }
fn main() -> () {
let mut x = B(@"");
let f = || { x = C(0); };
match x {
B(ref y) => { f(); println(*y) },
C(*) => ()
}
}

Issue 2:
UPDATE:

This is a meta-bug now for tracking the work on completing closures. Now that #6801 has landed, the remaining pieces of work are:

Issue #3696: Define region hierarchy for closures

Issue #10553: We should not be accepting 'a || as syntax

Issue #8622: Unboxed closures -- for the purposes of #2202, just having a design and ensuring our treatment of closures is compatible with it is enough.

Issue #12224: Calling a closure is a kind of borrow.

Issue #13621: Explain closures much better in the tutorial

ORIGINAL FOLLOWS:

We need to revamp function types in light of regions. I think fn() (the "any" function) will go away, and fn@() and fn~() will be coercable to fn&(), just as with poiners/vectors/slices/etc. Also, fn&() becomes fn&r() (that is, r is a region), though the user won't typically need to write it. We can probably leave the representation as is, though we could also tweak fn&() to not have a ref count since there will be an explicit borrowing that occurs.
Issue 1:
Hello,

I have a mapping like this:

curl -XPUT 'http://localhost:9200/onesite/drupal/_mapping' -d '
{
"drupal" : {
"properties" : {
"id" : {"type" : "string", "store" : true, copy_to: "url" },
"title" : {"type" : "string", "store" : true },
"type" : {"type" : "string", "store" : true },
"changed" : {"type" : "date", "format" : "YYYY-MM-dd", "store" : true, copy_to : "date" },
"date" : {"type": "string"},
"url" : {"type" : "string", "store" : true },
"topic" : {"type" : "string", "store" : true },
"lang" : {"type" : "string", "store" : true },
"path_alias" : {"type" : "string", "store" : true },
"language" : {"type" : "string", "store" : true ,"copy_to" : "lang"},
"body": {
"type": "nested",
"properties": {
"und": {
"type": "nested",
"properties": {
"format": {"type": "string"},
"safe_value": {"type": "string"},
"value": {"type": "string", "copy_to": "content"}
}
}
}
},
"field_intro": {
"type": "nested",
"properties": {
"und": {
"type": "nested",
"properties": {
"format": {"type": "string"},
"safe_value": {"type": "string"},
"value": {"type": "string"}
}
}
}
},
"content" : {"type" : "string", "store" : true, index: "analyzed" }
}
}
}'

As you can see, I'm trying to get the value of "body.und.value" into "content".

I can query body.und.value but I cannot query on "content".

Can someone help in identifying what I'm doing wrong?

I'm using Elasticsearch 1.1.2

curl -XGET localhost:9200
{
"status" : 200,
"name" : "Eric Williams",
"version" : {
"number" : "1.1.2",
"build_hash" : "e511f7b28b77c4d99175905fac65bffbf4c80cf7",
"build_timestamp" : "2014-05-22T12:27:39Z",
"build_snapshot" : false,
"lucene_version" : "4.7"
},
"tagline" : "You Know, for Search"
}

Issue 2:
I have a nested field, containing some fields with the 'copy_to' attribute. I index a document. Then, I look at the mappings - these show the 'copy_to' field as appearing in the root object, not the nested objects.

(See https://gist.github.com/tstibbs/dc36483f96f8d1471385 for the necessary commands to reproduce.)

However, the fields appear to be copied into the 'copy_to' field in the nested object.

If the 'copied' field is created in the root object, the following query should return my document (but it doesn't):

{
"query": {
"bool": {
"must": [
{
"match" : {
"copied" : "rover"
}
},
{
"nested": {
"path": "children",
"score_mode": "avg",
"query": {
"match": {
"colour": "red"
}
}
}
}
]
}
}
}

If the 'copied' field is created in each child, then following query should match (it does):

{
"query": {
"nested": {
"path": "children",
"score_mode": "avg",
"query": {
"bool": {
"must": [
{
"match": {
"copied": "rover"
}
},
{
"match": {
"colour": "red"
}
}
]
}
}
}
}
}

To me, the current behaviour makes sense - the fields are copied to a field within the item itself. However, I think the issue is that the mapping doesn't match the behaviour, and the documentation doesn't specify which is correct.

So, I can't currently use this feature, because I don't know which issue is the bug!
Issue 1:
I often get the following display bug in the tree view, with some file names unreadable:

Using Atom 0.210 on OSX 10.10.3.

I can reproduce it pretty reliably the following way:

git clone --depth 1 https://github.com/CocoaPods/CocoaPods.git

atom --safe CocoaPods

ensure no folder is expanded. If some are, just close all of them, close the window and Atom, and reopen it with atom --safe CocoaPods.

expand lib → cocoapods → installer → target_installer

And I get the screenshot I posted above. Note that it seems to depend partly on the width of the tree view and window.

Issue 2:
Most noticeable in the tree view, resizing it, scrolling, etc. makes it redraw and go away.

/cc @zcbenz Any ideas on this one?