Skip to content

Instantly share code, notes, and snippets.

View jasonbaker's full-sized avatar

Jason Baker jasonbaker

View GitHub Profile
while True:
topicData = rpc.dataFor(topic)
if 'redirect' not in topicData:
break
pending tasks: 13
compaction type keyspace column family bytes compacted bytes total progress
Minor Apture MagicLinks 58962258773 102148078495 57.72%
Minor Apture MagicLinks 3128692741 8275728725 37.81%
Minor Apture ArchivedLinks 1283830104 4457155529 28.80%
Validation Apture MagicLinks 122039436794 243399582751 50.14%
Validation Apture MagicLinks 126249220877 173241646239 72.87%
Minor Apture MagicLinks 3050303777 21489940644 14.19%
Minor Apture MagicLinks 3704969481 37401580118 9.91%
Minor Apture MagicLinks 9835444588 32286703881 30.46%
/**
* @override
*/
_getTextContainerContent: function()
{
return A.Div({innerHTML: '<div class="fb-like" data-href="http://192.168.42.182:8000/searchurl/?q=java" data-send="false" data-layout="box_count" data-width="450" data-show-faces="false"></div>'});
}
<div class="aptureClass-ResultBucketView">
<div class="aptureTMMResult aptureClass-FbLikeItem" style="cursor: pointer; display: table; position: relative; overflow-x: hidden; overflow-y: hidden; width: 100%; padding-top: 10px; padding-bottom: 10px; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(243, 243, 243); -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; border-collapse: separate; ">
<div style="cursor: pointer; padding-left: 11px; display: table-cell; " class="aptureClass-Div">
<div class="aptureClass-Div">
<div class="fb-like" data-href="http://192.168.42.182:8000/searchurl/?q=java" data-send="false" data-layout="box_count" data-width="450" data-show-faces="false"></div>
</div>
</div>
</div>
</div>
Traceback (most recent call last):
File "/usr/local/lib/python2.6/site-packages/eventlet/hubs/poll.py", line 97, in wait
readers.get(fileno, noop).cb(fileno)
File "/usr/local/lib/python2.6/site-packages/eventlet/greenthread.py", line 192, in main
result = function(*args, **kwargs)
File "/home/csar/current/apture/main/services/search/statefulquery.py", line 275, in searchWithProvider
elif item.shouldPromote():
AttributeError: 'list' object has no attribute 'shouldPromote'
media/app.ie7.orig.js:4625: WARNING - Suspicious code. This code lacks side-effects. Is there a bug?
if (Request.SUPPORT_XMLHTTPREQUEST)
^
media/core.ie7.orig.js:4948: WARNING - Suspicious code. This code lacks side-effects. Is there a bug?
if (Request.SUPPORT_XMLHTTPREQUEST)
^
# If we don't have any items or deferredResults, we'll delay ourselves
# a bit to prevent the client from beating us up too hard.
if len(items) == 0 and len(self.deferredResults) == 0:
eventlet.sleep(0.2)
if re.match(r'^/wiki/', link.get("href")) is not None:
wikiArticleName = re.sub(r'^/wiki/', '', link.get("href"))
css = link.get("class", "")
css += " aptureWikiInternal"
link.set("class", css)
link.set("articleName", wikiArticleName)
wikiArticle = WikipediaArticle()
wikiArticle.title = urllib.unquote(wikiArticleName)
link.set("mediaitem", json.jsonSerialize(wikiArticle.jsProperties()))
Average search time: 709.098315467
Standard Deviation: 1504.07281576
Number of searches: 653
1.77335375191 roundtrips per search
Max roundtrips: 26
Average search time: 26.013374808
Standard Deviation: 179.591867376
Number of searches: 651
1.00307219662 roundtrips per search
Max roundtrips: 2