|
|
@ -327,7 +327,7 @@ of a given size.</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class="summary_desc"><div class='inline'>
|
|
|
|
<span class="summary_desc"><div class='inline'>
|
|
|
|
<p>Submits a ClassyFire query, which should be returned in a specific format.</p>
|
|
|
|
<p>Submits a ClassyFire query in a JSON format.</p>
|
|
|
|
</div></span>
|
|
|
|
</div></span>
|
|
|
|
|
|
|
|
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
@ -475,7 +475,6 @@ specified format.</p>
|
|
|
|
<pre class="lines">
|
|
|
|
<pre class="lines">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
|
62
|
|
|
|
62
|
|
|
|
63
|
|
|
|
63
|
|
|
|
64
|
|
|
|
64
|
|
|
@ -494,10 +493,11 @@ specified format.</p>
|
|
|
|
77
|
|
|
|
77
|
|
|
|
78
|
|
|
|
78
|
|
|
|
79
|
|
|
|
79
|
|
|
|
80</pre>
|
|
|
|
80
|
|
|
|
|
|
|
|
81</pre>
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<td>
|
|
|
|
<pre class="code"><span class="info file"># File 'lib/classyfire_api.rb', line 61</span>
|
|
|
|
<pre class="code"><span class="info file"># File 'lib/classyfire_api.rb', line 62</span>
|
|
|
|
|
|
|
|
|
|
|
|
<span class='kw'>def</span> <span class='const'>ClassyFireAPI</span><span class='period'>.</span><span class='id identifier rubyid_get_entity_classification'>get_entity_classification</span><span class='lparen'>(</span><span class='id identifier rubyid_inchikey'>inchikey</span><span class='comma'>,</span><span class='id identifier rubyid_format'>format</span><span class='op'>=</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>json</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
|
|
|
<span class='kw'>def</span> <span class='const'>ClassyFireAPI</span><span class='period'>.</span><span class='id identifier rubyid_get_entity_classification'>get_entity_classification</span><span class='lparen'>(</span><span class='id identifier rubyid_inchikey'>inchikey</span><span class='comma'>,</span><span class='id identifier rubyid_format'>format</span><span class='op'>=</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>json</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
|
|
|
<span class='id identifier rubyid_inchikey_id'>inchikey_id</span> <span class='op'>=</span> <span class='id identifier rubyid_inchikey'>inchikey</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='period'>.</span><span class='id identifier rubyid_gsub'>gsub</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>InChIKey=</span><span class='tstring_end'>'</span></span><span class='comma'>,</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
|
|
|
<span class='id identifier rubyid_inchikey_id'>inchikey_id</span> <span class='op'>=</span> <span class='id identifier rubyid_inchikey'>inchikey</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='period'>.</span><span class='id identifier rubyid_gsub'>gsub</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>InChIKey=</span><span class='tstring_end'>'</span></span><span class='comma'>,</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
|
|
@ -608,7 +608,6 @@ specified format.</p>
|
|
|
|
<pre class="lines">
|
|
|
|
<pre class="lines">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
|
37
|
|
|
|
37
|
|
|
|
38
|
|
|
|
38
|
|
|
|
39
|
|
|
|
39
|
|
|
@ -626,10 +625,11 @@ specified format.</p>
|
|
|
|
51
|
|
|
|
51
|
|
|
|
52
|
|
|
|
52
|
|
|
|
53
|
|
|
|
53
|
|
|
|
54</pre>
|
|
|
|
54
|
|
|
|
|
|
|
|
55</pre>
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<td>
|
|
|
|
<pre class="code"><span class="info file"># File 'lib/classyfire_api.rb', line 36</span>
|
|
|
|
<pre class="code"><span class="info file"># File 'lib/classyfire_api.rb', line 37</span>
|
|
|
|
|
|
|
|
|
|
|
|
<span class='kw'>def</span> <span class='const'>ClassyFireAPI</span><span class='period'>.</span><span class='id identifier rubyid_get_query'>get_query</span><span class='lparen'>(</span><span class='id identifier rubyid_query_id'>query_id</span><span class='comma'>,</span><span class='id identifier rubyid_format'>format</span><span class='op'>=</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>json</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
|
|
|
<span class='kw'>def</span> <span class='const'>ClassyFireAPI</span><span class='period'>.</span><span class='id identifier rubyid_get_query'>get_query</span><span class='lparen'>(</span><span class='id identifier rubyid_query_id'>query_id</span><span class='comma'>,</span><span class='id identifier rubyid_format'>format</span><span class='op'>=</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>json</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
|
|
|
<span class='kw'>begin</span>
|
|
|
|
<span class='kw'>begin</span>
|
|
|
@ -739,7 +739,6 @@ specified format.</p>
|
|
|
|
<pre class="lines">
|
|
|
|
<pre class="lines">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
|
88
|
|
|
|
88
|
|
|
|
89
|
|
|
|
89
|
|
|
|
90
|
|
|
|
90
|
|
|
@ -753,10 +752,11 @@ specified format.</p>
|
|
|
|
98
|
|
|
|
98
|
|
|
|
99
|
|
|
|
99
|
|
|
|
100
|
|
|
|
100
|
|
|
|
101</pre>
|
|
|
|
101
|
|
|
|
|
|
|
|
102</pre>
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<td>
|
|
|
|
<pre class="code"><span class="info file"># File 'lib/classyfire_api.rb', line 87</span>
|
|
|
|
<pre class="code"><span class="info file"># File 'lib/classyfire_api.rb', line 88</span>
|
|
|
|
|
|
|
|
|
|
|
|
<span class='kw'>def</span> <span class='const'>ClassyFireAPI</span><span class='period'>.</span><span class='id identifier rubyid_get_sequence_classification'>get_sequence_classification</span><span class='lparen'>(</span><span class='id identifier rubyid_fingerprint'>fingerprint</span><span class='comma'>,</span><span class='id identifier rubyid_format'>format</span><span class='op'>=</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>json</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
|
|
|
<span class='kw'>def</span> <span class='const'>ClassyFireAPI</span><span class='period'>.</span><span class='id identifier rubyid_get_sequence_classification'>get_sequence_classification</span><span class='lparen'>(</span><span class='id identifier rubyid_fingerprint'>fingerprint</span><span class='comma'>,</span><span class='id identifier rubyid_format'>format</span><span class='op'>=</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>json</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
|
|
|
<span class='kw'>begin</span>
|
|
|
|
<span class='kw'>begin</span>
|
|
|
@ -842,17 +842,17 @@ specified format.</p>
|
|
|
|
<pre class="lines">
|
|
|
|
<pre class="lines">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
|
129
|
|
|
|
129
|
|
|
|
130
|
|
|
|
130
|
|
|
|
131
|
|
|
|
131
|
|
|
|
132
|
|
|
|
132
|
|
|
|
133
|
|
|
|
133
|
|
|
|
134
|
|
|
|
134
|
|
|
|
135</pre>
|
|
|
|
135
|
|
|
|
|
|
|
|
136</pre>
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<td>
|
|
|
|
<pre class="code"><span class="info file"># File 'lib/classyfire_api.rb', line 128</span>
|
|
|
|
<pre class="code"><span class="info file"># File 'lib/classyfire_api.rb', line 129</span>
|
|
|
|
|
|
|
|
|
|
|
|
<span class='kw'>def</span> <span class='const'>ClassyFireAPI</span><span class='period'>.</span><span class='id identifier rubyid_query_status'>query_status</span><span class='lparen'>(</span><span class='id identifier rubyid_query_id'>query_id</span><span class='rparen'>)</span>
|
|
|
|
<span class='kw'>def</span> <span class='const'>ClassyFireAPI</span><span class='period'>.</span><span class='id identifier rubyid_query_status'>query_status</span><span class='lparen'>(</span><span class='id identifier rubyid_query_id'>query_id</span><span class='rparen'>)</span>
|
|
|
|
<span class='kw'>begin</span>
|
|
|
|
<span class='kw'>begin</span>
|
|
|
@ -932,8 +932,6 @@ retrieve the strutcure's classification from ClassyFire.</p>
|
|
|
|
<pre class="lines">
|
|
|
|
<pre class="lines">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
309
|
|
|
|
|
|
|
|
310
|
|
|
|
|
|
|
|
311
|
|
|
|
311
|
|
|
|
312
|
|
|
|
312
|
|
|
|
313
|
|
|
|
313
|
|
|
@ -994,10 +992,12 @@ retrieve the strutcure's classification from ClassyFire.</p>
|
|
|
|
368
|
|
|
|
368
|
|
|
|
369
|
|
|
|
369
|
|
|
|
370
|
|
|
|
370
|
|
|
|
371</pre>
|
|
|
|
371
|
|
|
|
|
|
|
|
372
|
|
|
|
|
|
|
|
373</pre>
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<td>
|
|
|
|
<pre class="code"><span class="info file"># File 'lib/classyfire_api.rb', line 309</span>
|
|
|
|
<pre class="code"><span class="info file"># File 'lib/classyfire_api.rb', line 311</span>
|
|
|
|
|
|
|
|
|
|
|
|
<span class='kw'>def</span> <span class='const'>ClassyFireAPI</span><span class='period'>.</span><span class='id identifier rubyid_retrieve_classification'>retrieve_classification</span><span class='lparen'>(</span><span class='id identifier rubyid_input'>input</span><span class='comma'>,</span><span class='id identifier rubyid_output'>output</span><span class='rparen'>)</span>
|
|
|
|
<span class='kw'>def</span> <span class='const'>ClassyFireAPI</span><span class='period'>.</span><span class='id identifier rubyid_retrieve_classification'>retrieve_classification</span><span class='lparen'>(</span><span class='id identifier rubyid_input'>input</span><span class='comma'>,</span><span class='id identifier rubyid_output'>output</span><span class='rparen'>)</span>
|
|
|
|
<span class='id identifier rubyid_absolute_path'>absolute_path</span> <span class='op'>=</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_expand_path'>expand_path</span><span class='lparen'>(</span><span class='id identifier rubyid_input'>input</span><span class='rparen'>)</span>
|
|
|
|
<span class='id identifier rubyid_absolute_path'>absolute_path</span> <span class='op'>=</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_expand_path'>expand_path</span><span class='lparen'>(</span><span class='id identifier rubyid_input'>input</span><span class='rparen'>)</span>
|
|
|
@ -1133,8 +1133,6 @@ format.</p>
|
|
|
|
<pre class="lines">
|
|
|
|
<pre class="lines">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
378
|
|
|
|
|
|
|
|
379
|
|
|
|
|
|
|
|
380
|
|
|
|
380
|
|
|
|
381
|
|
|
|
381
|
|
|
|
382
|
|
|
|
382
|
|
|
@ -1186,10 +1184,12 @@ format.</p>
|
|
|
|
428
|
|
|
|
428
|
|
|
|
429
|
|
|
|
429
|
|
|
|
430
|
|
|
|
430
|
|
|
|
431</pre>
|
|
|
|
431
|
|
|
|
|
|
|
|
432
|
|
|
|
|
|
|
|
433</pre>
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<td>
|
|
|
|
<pre class="code"><span class="info file"># File 'lib/classyfire_api.rb', line 378</span>
|
|
|
|
<pre class="code"><span class="info file"># File 'lib/classyfire_api.rb', line 380</span>
|
|
|
|
|
|
|
|
|
|
|
|
<span class='kw'>def</span> <span class='const'>ClassyFireAPI</span><span class='period'>.</span><span class='id identifier rubyid_retrieve_entities_json'>retrieve_entities_json</span><span class='lparen'>(</span><span class='id identifier rubyid_input'>input</span><span class='comma'>,</span><span class='id identifier rubyid_output'>output</span><span class='rparen'>)</span>
|
|
|
|
<span class='kw'>def</span> <span class='const'>ClassyFireAPI</span><span class='period'>.</span><span class='id identifier rubyid_retrieve_entities_json'>retrieve_entities_json</span><span class='lparen'>(</span><span class='id identifier rubyid_input'>input</span><span class='comma'>,</span><span class='id identifier rubyid_output'>output</span><span class='rparen'>)</span>
|
|
|
|
<span class='id identifier rubyid_absolute_path'>absolute_path</span> <span class='op'>=</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_expand_path'>expand_path</span><span class='lparen'>(</span><span class='id identifier rubyid_input'>input</span><span class='rparen'>)</span>
|
|
|
|
<span class='id identifier rubyid_absolute_path'>absolute_path</span> <span class='op'>=</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_expand_path'>expand_path</span><span class='lparen'>(</span><span class='id identifier rubyid_input'>input</span><span class='rparen'>)</span>
|
|
|
@ -1316,8 +1316,6 @@ format.</p>
|
|
|
|
<pre class="lines">
|
|
|
|
<pre class="lines">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
440
|
|
|
|
|
|
|
|
441
|
|
|
|
|
|
|
|
442
|
|
|
|
442
|
|
|
|
443
|
|
|
|
443
|
|
|
|
444
|
|
|
|
444
|
|
|
@ -1375,10 +1373,12 @@ format.</p>
|
|
|
|
496
|
|
|
|
496
|
|
|
|
497
|
|
|
|
497
|
|
|
|
498
|
|
|
|
498
|
|
|
|
499</pre>
|
|
|
|
499
|
|
|
|
|
|
|
|
500
|
|
|
|
|
|
|
|
501</pre>
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<td>
|
|
|
|
<pre class="code"><span class="info file"># File 'lib/classyfire_api.rb', line 440</span>
|
|
|
|
<pre class="code"><span class="info file"># File 'lib/classyfire_api.rb', line 442</span>
|
|
|
|
|
|
|
|
|
|
|
|
<span class='kw'>def</span> <span class='const'>ClassyFireAPI</span><span class='period'>.</span><span class='id identifier rubyid_retrieve_entities_sdf'>retrieve_entities_sdf</span><span class='lparen'>(</span><span class='id identifier rubyid_input'>input</span><span class='comma'>,</span><span class='id identifier rubyid_output'>output</span><span class='rparen'>)</span>
|
|
|
|
<span class='kw'>def</span> <span class='const'>ClassyFireAPI</span><span class='period'>.</span><span class='id identifier rubyid_retrieve_entities_sdf'>retrieve_entities_sdf</span><span class='lparen'>(</span><span class='id identifier rubyid_input'>input</span><span class='comma'>,</span><span class='id identifier rubyid_output'>output</span><span class='rparen'>)</span>
|
|
|
|
<span class='id identifier rubyid_absolute_path'>absolute_path</span> <span class='op'>=</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_expand_path'>expand_path</span><span class='lparen'>(</span><span class='id identifier rubyid_input'>input</span><span class='rparen'>)</span>
|
|
|
|
<span class='id identifier rubyid_absolute_path'>absolute_path</span> <span class='op'>=</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_expand_path'>expand_path</span><span class='lparen'>(</span><span class='id identifier rubyid_input'>input</span><span class='rparen'>)</span>
|
|
|
@ -1509,8 +1509,6 @@ slice_length [Integer] The maximum number of entries for each query input
|
|
|
|
<pre class="lines">
|
|
|
|
<pre class="lines">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
227
|
|
|
|
|
|
|
|
228
|
|
|
|
|
|
|
|
229
|
|
|
|
229
|
|
|
|
230
|
|
|
|
230
|
|
|
|
231
|
|
|
|
231
|
|
|
@ -1518,10 +1516,12 @@ slice_length [Integer] The maximum number of entries for each query input
|
|
|
|
233
|
|
|
|
233
|
|
|
|
234
|
|
|
|
234
|
|
|
|
235
|
|
|
|
235
|
|
|
|
236</pre>
|
|
|
|
236
|
|
|
|
|
|
|
|
237
|
|
|
|
|
|
|
|
238</pre>
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<td>
|
|
|
|
<pre class="code"><span class="info file"># File 'lib/classyfire_api.rb', line 227</span>
|
|
|
|
<pre class="code"><span class="info file"># File 'lib/classyfire_api.rb', line 229</span>
|
|
|
|
|
|
|
|
|
|
|
|
<span class='kw'>def</span> <span class='const'>ClassyFireAPI</span><span class='period'>.</span><span class='id identifier rubyid_submit_queries_from_directory'>submit_queries_from_directory</span><span class='lparen'>(</span><span class='id identifier rubyid_folder'>folder</span><span class='comma'>,</span><span class='id identifier rubyid_slice_length'>slice_length</span><span class='comma'>,</span><span class='id identifier rubyid_type'>type</span><span class='op'>=</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>STRUCTURE</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
|
|
|
<span class='kw'>def</span> <span class='const'>ClassyFireAPI</span><span class='period'>.</span><span class='id identifier rubyid_submit_queries_from_directory'>submit_queries_from_directory</span><span class='lparen'>(</span><span class='id identifier rubyid_folder'>folder</span><span class='comma'>,</span><span class='id identifier rubyid_slice_length'>slice_length</span><span class='comma'>,</span><span class='id identifier rubyid_type'>type</span><span class='op'>=</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>STRUCTURE</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
|
|
|
<span class='kw'>if</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_directory?'>directory?</span><span class='lparen'>(</span><span class='id identifier rubyid_folder'>folder</span><span class='rparen'>)</span>
|
|
|
|
<span class='kw'>if</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_directory?'>directory?</span><span class='lparen'>(</span><span class='id identifier rubyid_folder'>folder</span><span class='rparen'>)</span>
|
|
|
@ -1550,7 +1550,7 @@ slice_length [Integer] The maximum number of entries for each query input
|
|
|
|
</h3><div class="docstring">
|
|
|
|
</h3><div class="docstring">
|
|
|
|
<div class="discussion">
|
|
|
|
<div class="discussion">
|
|
|
|
|
|
|
|
|
|
|
|
<p>Submits a ClassyFire query, which should be returned in a specific format.</p>
|
|
|
|
<p>Submits a ClassyFire query in a JSON format.</p>
|
|
|
|
|
|
|
|
|
|
|
|
<p>if there is an error.</p>
|
|
|
|
<p>if there is an error.</p>
|
|
|
|
|
|
|
|
|
|
|
@ -1589,6 +1589,24 @@ slice_length [Integer] The maximum number of entries for each query input
|
|
|
|
—
|
|
|
|
—
|
|
|
|
<div class='inline'>
|
|
|
|
<div class='inline'>
|
|
|
|
<p>the input of the query.</p>
|
|
|
|
<p>the input of the query.</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class='name'>type</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class='type'>(<tt>String</tt>)</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<em class="default">(defaults to: <tt>'STRUCTURE'</tt>)</em>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
—
|
|
|
|
|
|
|
|
<div class='inline'>
|
|
|
|
|
|
|
|
<p>the type of the query.</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
@ -1620,7 +1638,6 @@ slice_length [Integer] The maximum number of entries for each query input
|
|
|
|
<pre class="lines">
|
|
|
|
<pre class="lines">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
14
|
|
|
|
15
|
|
|
|
15
|
|
|
|
16
|
|
|
|
16
|
|
|
@ -1635,10 +1652,11 @@ slice_length [Integer] The maximum number of entries for each query input
|
|
|
|
25
|
|
|
|
25
|
|
|
|
26
|
|
|
|
26
|
|
|
|
27
|
|
|
|
27
|
|
|
|
28</pre>
|
|
|
|
28
|
|
|
|
|
|
|
|
29</pre>
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<td>
|
|
|
|
<pre class="code"><span class="info file"># File 'lib/classyfire_api.rb', line 13</span>
|
|
|
|
<pre class="code"><span class="info file"># File 'lib/classyfire_api.rb', line 14</span>
|
|
|
|
|
|
|
|
|
|
|
|
<span class='kw'>def</span> <span class='const'>ClassyFireAPI</span><span class='period'>.</span><span class='id identifier rubyid_submit_query'>submit_query</span><span class='lparen'>(</span><span class='id identifier rubyid_label'>label</span><span class='comma'>,</span><span class='id identifier rubyid_input'>input</span><span class='comma'>,</span> <span class='id identifier rubyid_type'>type</span><span class='op'>=</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>STRUCTURE</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
|
|
|
<span class='kw'>def</span> <span class='const'>ClassyFireAPI</span><span class='period'>.</span><span class='id identifier rubyid_submit_query'>submit_query</span><span class='lparen'>(</span><span class='id identifier rubyid_label'>label</span><span class='comma'>,</span><span class='id identifier rubyid_input'>input</span><span class='comma'>,</span> <span class='id identifier rubyid_type'>type</span><span class='op'>=</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>STRUCTURE</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
|
|
|
<span class='kw'>begin</span>
|
|
|
|
<span class='kw'>begin</span>
|
|
|
@ -1722,7 +1740,6 @@ framgments from the index 'start'.</p>
|
|
|
|
<pre class="lines">
|
|
|
|
<pre class="lines">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
150
|
|
|
|
|
|
|
|
151
|
|
|
|
151
|
|
|
|
152
|
|
|
|
152
|
|
|
|
153
|
|
|
|
153
|
|
|
@ -1784,10 +1801,12 @@ framgments from the index 'start'.</p>
|
|
|
|
209
|
|
|
|
209
|
|
|
|
210
|
|
|
|
210
|
|
|
|
211
|
|
|
|
211
|
|
|
|
212</pre>
|
|
|
|
212
|
|
|
|
|
|
|
|
213
|
|
|
|
|
|
|
|
214</pre>
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<td>
|
|
|
|
<pre class="code"><span class="info file"># File 'lib/classyfire_api.rb', line 150</span>
|
|
|
|
<pre class="code"><span class="info file"># File 'lib/classyfire_api.rb', line 151</span>
|
|
|
|
|
|
|
|
|
|
|
|
<span class='kw'>def</span> <span class='const'>ClassyFireAPI</span><span class='period'>.</span><span class='id identifier rubyid_submit_query_input_in_chunks'>submit_query_input_in_chunks</span><span class='lparen'>(</span><span class='id identifier rubyid_input_file'>input_file</span><span class='comma'>,</span><span class='id identifier rubyid_slice_length'>slice_length</span><span class='comma'>,</span> <span class='id identifier rubyid_start'>start</span><span class='comma'>,</span> <span class='id identifier rubyid_type'>type</span><span class='op'>=</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>STRUCTURE</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
|
|
|
<span class='kw'>def</span> <span class='const'>ClassyFireAPI</span><span class='period'>.</span><span class='id identifier rubyid_submit_query_input_in_chunks'>submit_query_input_in_chunks</span><span class='lparen'>(</span><span class='id identifier rubyid_input_file'>input_file</span><span class='comma'>,</span><span class='id identifier rubyid_slice_length'>slice_length</span><span class='comma'>,</span> <span class='id identifier rubyid_start'>start</span><span class='comma'>,</span> <span class='id identifier rubyid_type'>type</span><span class='op'>=</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>STRUCTURE</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
|
|
|
<span class='ivar'>@start_time</span> <span class='op'>=</span> <span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_now'>now</span>
|
|
|
|
<span class='ivar'>@start_time</span> <span class='op'>=</span> <span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_now'>now</span>
|
|
|
@ -1802,7 +1821,7 @@ framgments from the index 'start'.</p>
|
|
|
|
<span class='kw'>if</span> <span class='id identifier rubyid_sline'>sline</span><span class='period'>.</span><span class='id identifier rubyid_length'>length</span> <span class='op'>==</span> <span class='int'>1</span>
|
|
|
|
<span class='kw'>if</span> <span class='id identifier rubyid_sline'>sline</span><span class='period'>.</span><span class='id identifier rubyid_length'>length</span> <span class='op'>==</span> <span class='int'>1</span>
|
|
|
|
<span class='id identifier rubyid_input'>input</span> <span class='op'><<</span><span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_sline'>sline</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
|
|
|
<span class='id identifier rubyid_input'>input</span> <span class='op'><<</span><span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_sline'>sline</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
|
|
|
<span class='kw'>elsif</span> <span class='id identifier rubyid_sline'>sline</span><span class='period'>.</span><span class='id identifier rubyid_length'>length</span> <span class='op'>>=</span> <span class='int'>2</span>
|
|
|
|
<span class='kw'>elsif</span> <span class='id identifier rubyid_sline'>sline</span><span class='period'>.</span><span class='id identifier rubyid_length'>length</span> <span class='op'>>=</span> <span class='int'>2</span>
|
|
|
|
<span class='id identifier rubyid_input'>input</span> <span class='op'><<</span><span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_sline'>sline</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='embexpr_end'>}</span><span class='tstring_content'>\t</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_sline'>sline</span><span class='lbracket'>[</span><span class='int'>2</span><span class='rbracket'>]</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
|
|
|
<span class='id identifier rubyid_input'>input</span> <span class='op'><<</span><span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_sline'>sline</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='embexpr_end'>}</span><span class='tstring_content'>\t</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_sline'>sline</span><span class='lbracket'>[</span><span class='int'>1</span><span class='rbracket'>]</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
|
|
|
<span class='kw'>end</span>
|
|
|
|
<span class='kw'>end</span>
|
|
|
|
<span class='kw'>end</span>
|
|
|
|
<span class='kw'>end</span>
|
|
|
|
|
|
|
|
|
|
|
@ -1817,6 +1836,7 @@ framgments from the index 'start'.</p>
|
|
|
|
<span class='kw'>while</span> <span class='id identifier rubyid_i'>i</span> <span class='op'><</span> <span class='id identifier rubyid_initial_nr_of_jobs'>initial_nr_of_jobs</span>
|
|
|
|
<span class='kw'>while</span> <span class='id identifier rubyid_i'>i</span> <span class='op'><</span> <span class='id identifier rubyid_initial_nr_of_jobs'>initial_nr_of_jobs</span>
|
|
|
|
<span class='id identifier rubyid_title'>title</span> <span class='op'>=</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_basename'>basename</span><span class='lparen'>(</span><span class='id identifier rubyid_absolute_path'>absolute_path</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_split'>split</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>.</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>_yannick</span><span class='tstring_end'>"</span></span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>_part_</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_i'>i</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
|
|
|
<span class='id identifier rubyid_title'>title</span> <span class='op'>=</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_basename'>basename</span><span class='lparen'>(</span><span class='id identifier rubyid_absolute_path'>absolute_path</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_split'>split</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>.</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>_yannick</span><span class='tstring_end'>"</span></span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>_part_</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_i'>i</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class='kw'>if</span> <span class='id identifier rubyid_i'>i</span> <span class='op'><=</span> <span class='id identifier rubyid_subdivised_groups'>subdivised_groups</span><span class='period'>.</span><span class='id identifier rubyid_length'>length</span>
|
|
|
|
<span class='kw'>begin</span>
|
|
|
|
<span class='kw'>begin</span>
|
|
|
|
<span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>submitting </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_title'>title</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
|
|
|
<span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>submitting </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_title'>title</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
|
|
|
<span class='id identifier rubyid_q'>q</span> <span class='op'>=</span> <span class='id identifier rubyid_submit_query'>submit_query</span><span class='lparen'>(</span><span class='id identifier rubyid_title'>title</span><span class='comma'>,</span><span class='id identifier rubyid_subdivised_groups'>subdivised_groups</span><span class='lbracket'>[</span><span class='id identifier rubyid_i'>i</span><span class='op'>-</span><span class='int'>1</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\n</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='comma'>,</span><span class='id identifier rubyid_type'>type</span><span class='rparen'>)</span>
|
|
|
|
<span class='id identifier rubyid_q'>q</span> <span class='op'>=</span> <span class='id identifier rubyid_submit_query'>submit_query</span><span class='lparen'>(</span><span class='id identifier rubyid_title'>title</span><span class='comma'>,</span><span class='id identifier rubyid_subdivised_groups'>subdivised_groups</span><span class='lbracket'>[</span><span class='id identifier rubyid_i'>i</span><span class='op'>-</span><span class='int'>1</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\n</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='comma'>,</span><span class='id identifier rubyid_type'>type</span><span class='rparen'>)</span>
|
|
|
@ -1827,6 +1847,7 @@ framgments from the index 'start'.</p>
|
|
|
|
<span class='kw'>end</span>
|
|
|
|
<span class='kw'>end</span>
|
|
|
|
<span class='id identifier rubyid_i'>i</span> <span class='op'>=</span> <span class='id identifier rubyid_i'>i</span> <span class='op'>+</span> <span class='int'>1</span>
|
|
|
|
<span class='id identifier rubyid_i'>i</span> <span class='op'>=</span> <span class='id identifier rubyid_i'>i</span> <span class='op'>+</span> <span class='int'>1</span>
|
|
|
|
<span class='kw'>end</span>
|
|
|
|
<span class='kw'>end</span>
|
|
|
|
|
|
|
|
<span class='kw'>end</span>
|
|
|
|
|
|
|
|
|
|
|
|
<span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Going to sleep at </span><span class='embexpr_beg'>#{</span><span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_now'>now</span> <span class='op'>-</span> <span class='ivar'>@start_time</span><span class='embexpr_end'>}</span><span class='tstring_content'> for </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_sleeping_time'>sleeping_time</span><span class='embexpr_end'>}</span><span class='tstring_content'> s.</span><span class='tstring_end'>"</span></span>
|
|
|
|
<span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Going to sleep at </span><span class='embexpr_beg'>#{</span><span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_now'>now</span> <span class='op'>-</span> <span class='ivar'>@start_time</span><span class='embexpr_end'>}</span><span class='tstring_content'> for </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_sleeping_time'>sleeping_time</span><span class='embexpr_end'>}</span><span class='tstring_content'> s.</span><span class='tstring_end'>"</span></span>
|
|
|
|
<span class='id identifier rubyid_sleep'>sleep</span><span class='lparen'>(</span><span class='id identifier rubyid_sleeping_time'>sleeping_time</span><span class='rparen'>)</span>
|
|
|
|
<span class='id identifier rubyid_sleep'>sleep</span><span class='lparen'>(</span><span class='id identifier rubyid_sleeping_time'>sleeping_time</span><span class='rparen'>)</span>
|
|
|
@ -1844,7 +1865,6 @@ framgments from the index 'start'.</p>
|
|
|
|
<span class='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_e'>e</span><span class='period'>.</span><span class='id identifier rubyid_message'>message</span>
|
|
|
|
<span class='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_e'>e</span><span class='period'>.</span><span class='id identifier rubyid_message'>message</span>
|
|
|
|
<span class='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_e'>e</span><span class='period'>.</span><span class='id identifier rubyid_backtrace'>backtrace</span><span class='period'>.</span><span class='id identifier rubyid_inspect'>inspect</span>
|
|
|
|
<span class='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_e'>e</span><span class='period'>.</span><span class='id identifier rubyid_backtrace'>backtrace</span><span class='period'>.</span><span class='id identifier rubyid_inspect'>inspect</span>
|
|
|
|
<span class='kw'>end</span>
|
|
|
|
<span class='kw'>end</span>
|
|
|
|
|
|
|
|
|
|
|
|
<span class='kw'>end</span>
|
|
|
|
<span class='kw'>end</span>
|
|
|
|
<span class='id identifier rubyid_i'>i</span> <span class='op'>=</span> <span class='id identifier rubyid_k'>k</span>
|
|
|
|
<span class='id identifier rubyid_i'>i</span> <span class='op'>=</span> <span class='id identifier rubyid_k'>k</span>
|
|
|
|
<span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Going to sleep at </span><span class='embexpr_beg'>#{</span><span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_now'>now</span> <span class='op'>-</span> <span class='ivar'>@start_time</span><span class='embexpr_end'>}</span><span class='tstring_content'> for </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_sleeping_time'>sleeping_time</span><span class='embexpr_end'>}</span><span class='tstring_content'> s.</span><span class='tstring_end'>"</span></span>
|
|
|
|
<span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Going to sleep at </span><span class='embexpr_beg'>#{</span><span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_now'>now</span> <span class='op'>-</span> <span class='ivar'>@start_time</span><span class='embexpr_end'>}</span><span class='tstring_content'> for </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_sleeping_time'>sleeping_time</span><span class='embexpr_end'>}</span><span class='tstring_content'> s.</span><span class='tstring_end'>"</span></span>
|
|
|
@ -1950,8 +1970,6 @@ text. is fragmented into n part of #slice_length entries each).</p>
|
|
|
|
<pre class="lines">
|
|
|
|
<pre class="lines">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
252
|
|
|
|
|
|
|
|
253
|
|
|
|
|
|
|
|
254
|
|
|
|
254
|
|
|
|
255
|
|
|
|
255
|
|
|
|
256
|
|
|
|
256
|
|
|
@ -2000,10 +2018,12 @@ text. is fragmented into n part of #slice_length entries each).</p>
|
|
|
|
299
|
|
|
|
299
|
|
|
|
300
|
|
|
|
300
|
|
|
|
301
|
|
|
|
301
|
|
|
|
302</pre>
|
|
|
|
302
|
|
|
|
|
|
|
|
303
|
|
|
|
|
|
|
|
304</pre>
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<td>
|
|
|
|
<pre class="code"><span class="info file"># File 'lib/classyfire_api.rb', line 252</span>
|
|
|
|
<pre class="code"><span class="info file"># File 'lib/classyfire_api.rb', line 254</span>
|
|
|
|
|
|
|
|
|
|
|
|
<span class='kw'>def</span> <span class='const'>ClassyFireAPI</span><span class='period'>.</span><span class='id identifier rubyid_submit_random_subset_of_query_input_in_chunks'>submit_random_subset_of_query_input_in_chunks</span><span class='lparen'>(</span><span class='id identifier rubyid_tab_separated_input_file'>tab_separated_input_file</span><span class='comma'>,</span><span class='id identifier rubyid_size'>size</span><span class='comma'>,</span> <span class='id identifier rubyid_type'>type</span><span class='op'>=</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>STRUCTURE</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
|
|
|
<span class='kw'>def</span> <span class='const'>ClassyFireAPI</span><span class='period'>.</span><span class='id identifier rubyid_submit_random_subset_of_query_input_in_chunks'>submit_random_subset_of_query_input_in_chunks</span><span class='lparen'>(</span><span class='id identifier rubyid_tab_separated_input_file'>tab_separated_input_file</span><span class='comma'>,</span><span class='id identifier rubyid_size'>size</span><span class='comma'>,</span> <span class='id identifier rubyid_type'>type</span><span class='op'>=</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>STRUCTURE</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
|
|
|
<span class='ivar'>@start_time</span> <span class='op'>=</span> <span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_now'>now</span>
|
|
|
|
<span class='ivar'>@start_time</span> <span class='op'>=</span> <span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_now'>now</span>
|
|
|
@ -2066,7 +2086,7 @@ text. is fragmented into n part of #slice_length entries each).</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div id="footer">
|
|
|
|
<div id="footer">
|
|
|
|
Generated on Wed Mar 9 19:55:20 2016 by
|
|
|
|
Generated on Thu Mar 10 15:54:06 2016 by
|
|
|
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
|
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
|
|
0.8.7.6 (ruby-2.3.0).
|
|
|
|
0.8.7.6 (ruby-2.3.0).
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|