<commit_before>'use strict'
import React from 'react'

let RotateControl = React.createClass({
  onMouseDown: function (ev) {
    this.props.onRotateMouseDown(ev, this.props.idx, this.props.axis)
  },
  render: function () {
    return <span
      className={"rotate-"+this.props.axis}
      onMouseDown={this.onMouseDown}
    >↻</span>
  }
})
module.exports = RotateControl
<commit_msg>use svg to indicate rotation axis.<commit_after>'use strict'
import React from 'react'

let RotateControl = React.createClass({
  onMouseDown: function (ev) {
    this.props.onRotateMouseDown(ev, this.props.idx, this.props.axis)
  },
  render: function () {
    return <span
      className={"rotate-" + this.props.axis}
      onMouseDown={this.onMouseDown}
    >
      <svg width="28" height="28" viewBox="0 0 512 512" cursor="pointer" xmlns="http://www.w3.org/2000/svg">
        <path fill="#000000" id="path3036"
              d="m255.65625,40.15625c-14.32936,0.027 -28.86966,1.48315 -43.4375,4.5c-116.54269,24.13483 -191.69733,138.58231 -167.5625,255.125c24.13483,116.54269 138.55106,191.6973 255.09375,167.5625l-6.09375,-29.375c-100.66636,20.847 -198.778,-43.61489 -219.625,-144.28125c-20.847,-100.66636 43.6149,-198.80925 144.28125,-219.65625c100.66636,-20.847 198.778,43.61489 219.625,144.28125c8.71412,42.0789 2.57441,85.83876 -17.3125,123.84375l-20.53125,-11.875l-10.1875,98.6875l80.375,-58.15625l-23.65625,-13.65625c23.55886,-44.3912 30.89226,-95.6293 20.6875,-144.90625c-21.11798,-101.97486 -111.35071,-172.28253 -211.65625,-172.09375z"/>
        <text stroke="#000000"
              transform="matrix(15.242178297456174,0,0,13.868955406438625,-2928.0934502277482,-2659.923450317868) "
              xmlSpace="preserve" textAnchor="middle" fontFamily="serif" fontSize="24" id="svg_1" y="218.326696"
              x="208.913934" strokeWidth="0" fill="#000000">{this.props.axis.toUpperCase()}</text>
      </svg>
    </span>
  }
})
module.exports = RotateControl

{'fraction_non_alphanumeric': 0.17611026033690658, 'fraction_numerical': 0.29402756508422667, 'mean_word_length': 3.6778042959427206, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, 'xml': 2}, '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': '7237310', 'n_tokens_mistral': 1126, 'n_tokens_neox': 774, 'n_words': 98}