<!DOCTYPE html>
<html>
<head>
</head>
<body>
<dl style="line-height: 1.5; margin-left: 2em">
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Author</dt>
<dd style="margin-left: 8.5em">Kouhei Sutou <kou****@clear*****></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Date</dt>
<dd style="margin-left: 8.5em">2014-04-04 16:24:03 +0900 (Fri, 04 Apr 2014)</dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">New Revision</dt>
<dd style="margin-left: 8.5em"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9">7fd702d44b2aab43e0861b279ef5e7afc49e51e9</a></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Message</dt>
<dd style="margin-left: 8.5em"><pre style="border: 1px solid #aaa; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; padding: 0.5em; width: auto">Add --max-n-records option</pre></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Modified files</dt>
<dd style="margin-left: 8.5em">
<ul>
<li><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#diff-0">bin/wikipedia-to-groonga.rb</a></li>
<li><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#diff-1">lib/wikipedia-search/groonga-converter.rb</a></li>
<li><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#diff-2">test/test-groonga-converter.rb</a></li>
</ul>
</dd>
</dl>
<div class="diff-section" style="clear: both">
<table style="border-collapse: collapse; border: 1px solid #aaa">
<thead>
<tr class="diff-header" style="border: 1px solid #aaa">
<td colspan="3">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre"> Modified: bin/wikipedia-to-groonga.rb (+13 -1)</span>
<span class="diff-header-mark" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">===================================================================</span>
</pre>
</td>
</tr>
</thead>
<tbody>
<tr>
<th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L0L0">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L0L1">1</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L0L2">2</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L0L3">3</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L0L4">4</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L0L5">5</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L0L6">6</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L0L8">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L0L9">9</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L0L10">10</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L0L11">11</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L0L12">12</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L0L13">13</a></span>
</pre>
</th>
<th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L0R0">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L0R1">1</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L0R2">2</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L0R3">3</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L0R4">4</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L0R5">5</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L0R6">6</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L0R7">7</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L0R9">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L0R10">10</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L0R11">11</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L0R12">12</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L0R13">13</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L0R14">14</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L0R15">15</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L0R16">16</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L0R17">17</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L0R18">18</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L0R19">19</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L0R20">20</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L0R21">21</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L0R22">22</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L0R23">23</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L0R24">24</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L0R25">25</a></span>
</pre>
</th>
<td class="diff-content" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -1,6 +1,7 @@</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> #!/usr/bin/env ruby</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-not-changed" style="display: block; white-space: pre"> require "pathname"</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+require "optparse"</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-not-changed" style="display: block; white-space: pre"> base_dir_path = Pathname.new(__FILE__).dirname</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> lib_dir_path = base_dir_path + "lib"</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -9,5 +10,16 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">$LOAD_PATH.unshift(lib_dir_path.to_s)</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-not-changed" style="display: block; white-space: pre"> require "wikipedia-search/groonga-converter"</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-converter = WikipediaSearch::GroongaConverter.new(ARGF)</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+options = {</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ :max_n_records => -1,</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+}</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+parser = OptionParser.new</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+parser.on("--max-n-records=N", Integer,</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ "The number of maximum records. -1 means unlimited.",</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ "(#{options[:max_n_records]})") do |n|</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ options[:max_n_records] = n</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+end</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+parser.parse!(ARGV)</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+converter = WikipediaSearch::GroongaConverter.new(ARGF, options)</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> converter.convert($stdout)</span>
</pre>
</td>
</tr>
</tbody>
</table>
<table style="border-collapse: collapse; border: 1px solid #aaa">
<thead>
<tr class="diff-header" style="border: 1px solid #aaa">
<td colspan="3">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre"> Modified: lib/wikipedia-search/groonga-converter.rb (+20 -5)</span>
<span class="diff-header-mark" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">===================================================================</span>
</pre>
</td>
</tr>
</thead>
<tbody>
<tr>
<th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1L4">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1L5">5</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1L6">6</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1L7">7</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1L8">8</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1L9">9</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1L10">10</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1L11">11</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1L12">12</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1L13">13</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1L14">14</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1L15">15</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1L16">16</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1L17">17</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1L18">18</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1L19">19</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1L20">20</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1L21">21</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1L22">22</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1L23">23</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1L24">24</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1L25">25</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1L26">26</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1L27">27</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1L28">28</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1L44">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1L45">45</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1L46">46</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1L47">47</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1L48">48</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1L49">49</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1L50">50</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1L55">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1L56">56</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1L57">57</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1L58">58</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1L59">59</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1L60">60</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1L61">61</a></span>
</pre>
</th>
<th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1R4">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1R5">5</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1R6">6</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1R7">7</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1R8">8</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1R9">9</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1R10">10</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1R11">11</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1R12">12</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1R13">13</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1R14">14</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1R15">15</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1R16">16</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1R17">17</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1R18">18</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1R19">19</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1R20">20</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1R21">21</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1R22">22</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1R23">23</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1R24">24</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1R25">25</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1R26">26</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1R27">27</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1R28">28</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1R29">29</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1R30">30</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1R31">31</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1R32">32</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1R33">33</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1R34">34</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1R35">35</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1R36">36</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1R37">37</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1R38">38</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1R39">39</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1R55">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1R56">56</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1R57">57</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1R58">58</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1R59">59</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1R60">60</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1R61">61</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1R62">62</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1R63">63</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1R64">64</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1R69">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1R70">70</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1R71">71</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1R72">72</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1R73">73</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1R74">74</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1R75">75</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L1R76">76</a></span>
</pre>
</th>
<td class="diff-content" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -5,24 +5,35 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">require "rexml/parsers/streamparser"</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-not-changed" style="display: block; white-space: pre"> module WikipediaSearch</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> class GroongaConverter</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- def initialize(input)</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ def initialize(input, options={})</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> @input = input</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ @options = options</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> end</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-not-changed" style="display: block; white-space: pre"> def convert(output)</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- listener = Listener.new(output)</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- parser = REXML::Parsers::StreamParser.new(@input, listener)</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- parser.parse</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ listener = Listener.new(output, @options)</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ catch do |tag|</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ parser = REXML::Parsers::StreamParser.new(@input, listener)</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ listener.start(tag)</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ parser.parse</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ end</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> listener.finish</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> end</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-not-changed" style="display: block; white-space: pre"> class Listener</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> include REXML::StreamListener</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- def initialize(output)</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ def initialize(output, options)</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> @output = output</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ @options = options</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> @text_stack = [""]</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> @first_page = true</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ @n_records = 0</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ @max_n_records = @options[:max_n_records]</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ end</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ def start(abort_tag)</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ @abort_tag = abort_tag</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> @output.puts("load --table Pages")</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> @output.puts("[")</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> end</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -45,6 +56,9 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">module WikipediaSearch</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> def tag_end(name)</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> case name</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> when "page"</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ if @max_n_records and @n_records >= @max_n_records</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ throw(@abort_tag)</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ end</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> if @first_page</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> @first_page = false</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> else</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -56,6 +70,7 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">module WikipediaSearch</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> "text" => @text,</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> }</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> @output.print(JSON.generate(page))</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ @n_records += 1</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> when "title"</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> @title = @text_stack.last</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> when "id"</span>
</pre>
</td>
</tr>
</tbody>
</table>
<table style="border-collapse: collapse; border: 1px solid #aaa">
<thead>
<tr class="diff-header" style="border: 1px solid #aaa">
<td colspan="3">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre"> Modified: test/test-groonga-converter.rb (+31 -2)</span>
<span class="diff-header-mark" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">===================================================================</span>
</pre>
</td>
</tr>
</thead>
<tbody>
<tr>
<th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2L1">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2L2">2</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2L3">3</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2L4">4</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2L5">5</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2L6">6</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2L7">7</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2L8">8</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2L9">9</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2L10">10</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2L11">11</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2L41">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2L42">42</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2L43">43</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2L44">44</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2L45">45</a></span>
</pre>
</th>
<th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2R1">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2R2">2</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2R3">3</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2R4">4</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2R5">5</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2R6">6</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2R7">7</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2R8">8</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2R9">9</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2R10">10</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2R11">11</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2R41">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2R42">42</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2R43">43</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2R44">44</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2R45">45</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2R46">46</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2R47">47</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2R48">48</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2R49">49</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2R50">50</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2R51">51</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2R52">52</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2R53">53</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2R54">54</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2R55">55</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2R56">56</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2R57">57</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2R58">58</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2R59">59</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2R60">60</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2R61">61</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2R62">62</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2R63">63</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2R64">64</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2R65">65</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2R66">66</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2R67">67</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2R68">68</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2R69">69</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2R70">70</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2R71">71</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2R72">72</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2R73">73</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/wikipedia-search/commit/7fd702d44b2aab43e0861b279ef5e7afc49e51e9#L2R74">74</a></span>
</pre>
</th>
<td class="diff-content" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -2,10 +2,10 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">require "stringio"</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> require "wikipedia-search/groonga-converter"</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-not-changed" style="display: block; white-space: pre"> class TestGroongaConverter < Test::Unit::TestCase</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- def convert(xml)</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ def convert(xml, options={})</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> input = StringIO.new(xml)</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> output = StringIO.new</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- converter = WikipediaSearch::GroongaConverter.new(input)</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ converter = WikipediaSearch::GroongaConverter.new(input, options)</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> converter.convert(output)</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> output.string</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> end</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -42,4 +42,33 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">load --table Pages</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> ]</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> GROONGA</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> end</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ def test_max_n_records</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ xml = <<-XML</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+<mediawiki xmlns="http://www.mediawiki.org/xml/export-0.8/"></span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ <page></span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ <title>Title1</title></span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ <id>1</id></span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ <revision></span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ <id>1001</id></span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ <text>Text1</text></span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ </revision></span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ </page></span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ <page></span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ <title>Title2</title></span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ <id>2</id></span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ <revision></span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ <id>1002</id></span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ <text>Text2</text></span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ </revision></span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ </page></span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+</mediawiki></span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ XML</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ assert_equal(<<-GROONGA, convert(xml, :max_n_records => 1))</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+load --table Pages</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+[</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+{"_key":1,"title":"Title1","text":"Text1"}</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+]</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ GROONGA</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ end</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> end</span>
</pre>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>