public  float getSpanPercent(ILexNameToken name)
	{
		int hits = 0;
		int misses = 0;
		ILexLocation span = null;

		synchronized (nameSpans)
		{
			span = nameSpans.get(name);
		}

		synchronized (allLocations)
		{
			for (ILexLocation l : allLocations)
			{
				if (l.getExecutable() && l.within(span))
				{
					if (l.getHits() > 0)
					{
						hits++;
					} else
					{
						misses++;
					}
				}
			}
		}

		int sum = hits + misses;
		return sum == 0 ? 0 : (float) (1000 * hits / sum) / 10; // NN.N%
	}
public float getSpanPercent ( ILexNameToken name ) { int hits = 0 ; int misses = 0 ; ILexLocation span = null ; synchronized ( nameSpans ) { span = nameSpans . get ( name ) ; } synchronized ( allLocations ) { for ( ILexLocation l : allLocations ) { if ( l . getExecutable ( ) && l . within ( span ) ) { if ( l . getHits ( ) > 0 ) { hits ++ ; } else { misses ++ ; } } } } int sum = hits + misses ; return sum == 0 ? 0 : ( float ) ( 1000 * hits / sum ) / 10 ; }
TODO: Comment