<NME> WordSizer.java
<BEF> /*
Copyright 2010 Daniel Bernier

 * <p>
 * Some useful implementations are available in {@link Sizers}.
 *
 * @author Dan Bernier
 */
public interface WordSizer {

    /**
     * How big should this {@link Word} be rendered?
     * <p>
limitations under the License.
*/

package wordcram;

public interface WordSizer {
	public float sizeFor(Word word, int wordRank, int wordCount);
}

     * <p>
     * For example, given the text "I think I can I think", the words would look
     * like this:
     * <ul>
     * <li>"I", weight 1.0 (3/3), rank 1</li>
     * <li>"think", weight 0.667 (2/3), rank 2</li>
     * <li>"can", weight 0.333 (1/3), rank 3</li>
     * </ul>
     * ...and the WordSizer would be called with the following values:
     * <ul>
     * <li>Word "I" (weight 1.0), 1, 3</li>
     * <li>Word "think" (weight 0.667), 2, 3</li>
     * <li>Word "can" (weight 0.333), 3, 3</li>
     * </ul>
     *
     * @param word
     *            the Word to determine the size of
     * @param wordRank
     *            the rank of the Word
     * @param wordCount
     *            the total number of Words being rendered
     * @return the size to render the Word
     */
    public float sizeFor(Word word, int wordRank, int wordCount);
}

<MSG> Oops: forgot the package declaration has to come BEFORE the comments.

<DFF> @@ -1,3 +1,5 @@
+package wordcram;
+
 /*
 Copyright 2010 Daniel Bernier
 
@@ -14,9 +16,6 @@ See the License for the specific language governing permissions and
 limitations under the License.
 */
 
-package wordcram;
-
 public interface WordSizer {
 	public float sizeFor(Word word, int wordRank, int wordCount);
 }
-

{'addition_count': 2, 'commit_subject': 'Oops: forgot the package declaration has to come BEFORE the comments.', 'deletion_count': 3, 'file_extension': '.java', 'lang': 'java', 'license': 'apache-2.0', 'repo_name': 'danbernier/WordCram'}