This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[subbu@earth tests] cat /tmp/x.js | |
function foo() { | |
return | |
"works?" | |
} | |
console.warn("FOO: " + foo()); | |
[subbu@earth tests] node /tmp/x.js | |
FOO: undefined |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ERROR in itwiki:Discussione:Membri_della_Polonia_del_Parlamento_europeo_(2009-2014) | |
Error while fetching page source or original DOM! | |
-- | |
ERROR in enwiki:Wikipedia:WikiProject_Numismatics | |
Stack trace: AssertionError: Table isn't a sibling. Something's amiss! | |
-- | |
ERROR in hewiki:מבחני_התחלקות | |
Stack trace: TypeError: Cannot read property 'length' of null | |
-- | |
ERROR in dewiki:Diskussion:Peugeot_308 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<subbu> [subbu@earth tests] echo "<pre><</pre>" | node parse | |
<subbu> <body data-parsoid='{"dsr":[0,16,0,0]}'><pre data-parsoid='{"stx":"html","dsr":[0,15,5,6]}'><span typeof="mw:Entity" data-parsoid='{"src":"&lt;","srcContent":"<","dsr":[5,9,null,null]}'><</span></pre> | |
<subbu> </body> | |
<subbu> do we need a mw:Entity span for the entity inside a <pre>? | |
<subbu> it seems like it is unnecessary .. and potentially a problem for the serializer if we just serialize innerHTML for html-pres |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[subbu@earth tests] node debug parse --inputfile /tmp/foo --fetchConfig false | |
< debugger listening on port 5858 | |
connecting... ok | |
break in parse.js:7 | |
5 */ | |
6 | |
7 var ParserEnv = require('../lib/mediawiki.parser.environment.js').MWParserEnvironment, | |
8 ParsoidConfig = require( '../lib/mediawiki.ParsoidConfig.js' ).ParsoidConfig, | |
9 WikitextSerializer = require('../lib/mediawiki.WikitextSerializer.js').WikitextSerializer, | |
debug> c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[subbu@earth ~/jruby] cat test_it | |
#!/bin/tcsh | |
echo "--fib--" | |
time jruby --server $1 $2 local_benches/bench_fib_recursive.rb | |
time jruby --server $1 $2 local_benches/bench_fib_recursive.rb | |
echo "--bm1--" | |
time jruby --server $1 $2 local_benches/bm1.rb | |
time jruby --server $1 $2 local_benches/bm1.rb | |
echo "--gem list--" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[subbu@earth ~/jruby] cat ir.failing.specs | |
------------------------ | |
/home/subbu/jruby/spec/ruby/language/BEGIN_spec.rb F | |
/home/subbu/jruby/spec/ruby/language/file_spec.rb F | |
/home/subbu/jruby/spec/ruby/language/line_spec.rb F | |
/home/subbu/jruby/spec/ruby/language/return_spec.rb F | |
/home/subbu/jruby/spec/ruby/core/fiber/resume_spec.rb F | |
/home/subbu/jruby/spec/ruby/core/kernel/__callee___spec.rb F | |
/home/subbu/jruby/spec/ruby/core/kernel/__method___spec.rb F | |
/home/subbu/jruby/spec/ruby/core/kernel/load_spec.rb F |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[subbu@earth ~/jruby] find lib -name "*jar" | |
lib/ruby/shared/ripper.jar | |
lib/ruby/shared/kryptcore.jar | |
lib/ruby/shared/jopenssl.jar | |
lib/ruby/shared/kryptproviderjdk.jar | |
lib/ruby/shared/bcpkix-jdk15on-1.47.jar | |
lib/ruby/shared/original-jopenssl.jar | |
lib/ruby/shared/readline/original-readline.jar | |
lib/ruby/shared/readline/jline-2.11.jar | |
lib/ruby/shared/readline/readline.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--> A:<span about="#mwt121" class="reference" data-mw="{"name":"ref","body":{"html":"<span about=\"#mwt123\" typeof=\"mw:Transclusion\" data-mw='{\"parts\":[{\"template\":{\"target\":{\"wt\":\"cite web\",\"href\":\"./Template:Cite_web\"},\"params\":{\"url\":{\"wt\":\"http://www.zum.de/whkmla/region/germany/bra30.html\"},\"title\":{\"wt\":\"Brandenburg during the 30 Years War\"},\"work\":{\"wt\":\"WHKMLA\"},\"accessdate\":{\"wt\":\"18 August 2008\"}},\"i\":0}}]}' data-parsoid='{\"dsr\":[16336,16483,null,null],\"pi\":[[{\"k\":\"url\",\"named\":true,\"spc\":[\"\",\"\",\"\",\"\"]},{\"k\":\"title\",\"named\":true,\&q |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[subbu@earth tests] node parse --html2wt < /tmp/xyz.html | |
{| | |
<th>k6cetj5kudkuik9</th>!!''b'' | |
|''a''||''b'' | |
|} | |
[subbu@earth tests] cat /tmp/xyz.html | |
<body data-parsoid="{"dsr":[0,25,0,0]}"><table data-parsoid="{"dsr":[0,25,2,2]}"> | |
<tbody data-parsoid="{"dsr":[3,23,0,0]}"><tr data-parsoid="{"autoInsertedEnd":true,"autoInsertedStart":true,"stx":"html","dsr":[3,22,0,0]}"><th>k6cetj5kudkuik9</th><th data-parsoid="{"stx_v":"row","autoInsertedEnd":true,"dsr":[7,12,2,0]}"><i data-parsoid="{"autoInsertedEnd":1,"dsr":[9,12,2,0]}">b</i></th> | |
<td data-parsoid="{"autoInsertedEnd":true,"dsr":[13,17,1,0]}"><i data-parsoid="{"autoInsertedEnd":1,"dsr":[14,17,2,0]}" data-foobar="dg2oiz9jujev1jor">a</i></td><td data-parsoid="{"stx_v":"row","autoInsertedEnd":true,"dsr":[17,22,2,0]}"><i data-parsoid="{"autoIns |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[subbu@earth tests] ./sync-parserTests.js ../../../core/ pt-sync | |
Parsoid git HEAD is e7b19984370b734f058abdc3ecb47582e734f71d | |
>>> cd ../../../core/ | |
>>> git fetch origin | |
remote: Counting objects: 15665, done | |
remote: Finding sources: 100% (2594/2594) | |
remote: Getting sizes: 100% (677/677) | |
remote: Compressing objects: 99% (12696/12697) | |
remote: Total 2594 (delta 1671), reused 2239 (delta 1639) | |
Receiving objects: 100% (2594/2594), 14.75 MiB | 1.02 MiB/s, done. |