<commit_before><commit_msg>Create Rotate.java<commit_after>/*
 *  The MIT License (MIT)
 *
 *  View the full license at:
 *  https://github.com/hendrixjoseph/FamilyTree/blob/master/LICENSE.md
 *
 *  Copyright (c) 2015 <NAME>
 *
 *  Hosted on GitHub at https://github.com/hendrixjoseph/FamilyTree
 *
 */

package edu.wright.hendrix11.svg.transform;

/**
 * @author <NAME>
 */
public class Rotate extends XyTransform
{
    private Number degrees;

    public Rotate(Number degrees, Number x, Number y)
    {
        super(x,y);
        this.degrees = degrees;
    }
    
    public Rotate(Number degrees)
    {
        this.degrees = degrees;
    }

    public String toString()
    {
        StringBuilder sb = new StringBuilder("rotate(").append(degrees);
        
        if(x != null && y != null)
            sb.append(",").append(x).append(",").append(y);
        
        return .append(")").toString();
    }
}
{'fraction_non_alphanumeric': 0.14301310043668122, 'fraction_numerical': 0.006550218340611353, 'mean_word_length': 2.460377358490566, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6985773', 'n_tokens_mistral': 298, 'n_tokens_neox': 293, 'n_words': 62}