Skip to content
Snippets Groups Projects
Commit 8ae1e1e5 authored by Bertrand  NÉRON's avatar Bertrand NÉRON
Browse files

fix space to improve readibility

parent 38f1aace
No related branches found
Tags v1.1.181205ac
No related merge requests found
function(doc) { function(doc) {
var strain = doc.replicon.strain.toLowerCase(); var strain = doc.replicon.strain.toLowerCase();
for( var wl=3 ; wl<=strain.length ; wl++){ for(var wl = 3 ; wl <= strain.length; wl++){
for( var i=0; i<= strain.length-wl ; i++ ){ for(var i = 0; i<= strain.length-wl; i++ ){
emit( strain.substring(i, i+wl), doc.replicon.strain); emit( strain.substring(i, i+wl), doc.replicon.strain);
} }
} }
......
function(doc) { function(doc) {
taxonomy = doc.replicon.taxonomy; taxonomy = doc.replicon.taxonomy;
for( var j=0; j< taxonomy.length ; j++ ){ for(var j = 0; j < taxonomy.length; j++){
var term= taxonomy[j]; var term = taxonomy[j];
for( var syllabe_l = 3 ; syllabe_l <= term.length ; syllabe_l++){ for( var syllabe_l = 3; syllabe_l <= term.length; syllabe_l++){
for(var i=0; i<= term.length-syllabe_l; i++){ for(var i=0; i <= term.length-syllabe_l; i++){
var key = term.substring(i, i+syllabe_l); var key = term.substring(i, i + syllabe_l);
key = key.toLowerCase(); key = key.toLowerCase();
emit( [key, term] , 1 ); emit([key, term], 1);
} }
} }
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment