Revision 2167 tmp/org.txm.analec.rcp/src/org/txm/macro/urs/exploit/UnitsSummaryMacro.groovy

UnitsSummaryMacro.groovy (revision 2167)
72 72
	def selectedUnits = AnalecUtils.selectUnitsInSchema(debug, analecCorpus, corpus, schema_ursql, minimum_schema_size, maximum_schema_size, 
73 73
	unit_ursql, position_in_schema, cql_limit, strict_inclusion, position_in_matches);
74 74

  
75
	if (debug) println "found ${selectedUnits.size()} units in $corpus}"
75 76
	allresults[corpus] = selectedUnits;
76 77
}
77 78

  
......
91 92
		for (def u : allresults[k]) {
92 93
			propsvalues.add(u.getProp(p))
93 94
		}
94
		if (debug) println "k @p values="+propsvalues
95 95
		print "\t"+propsvalues.size();
96
		def values = []
97
		values.addAll(propsvalues)
98
		values = values.sort()
99
		if (debug) print "\t\""+values.join("\", \"")+"\"";
96 100
	}
97 101
	println ""
98 102
}

Also available in: Unified diff