<commit_before>
package chandu0101.scalajs.react.components.materialui

import chandu0101.macros.tojs.JSMacro
import japgolly.scalajs.react._
import scala.scalajs.js
import scala.scalajs.js.`|`
  
case class MuiAvatar(
	key:             js.UndefOr[String]          = js.undefined,
	ref:             js.UndefOr[String]          = js.undefined,
	/* default: grey400: The backgroundColor of the avatar. Does not apply to image avatars.*/
	backgroundColor: js.UndefOr[MuiColor]        = js.undefined,
	/* default: white: The icon or letter color.*/
	color:           js.UndefOr[MuiColor]        = js.undefined,
	/*  This is the SvgIcon or FontIcon to be used inside the avatar.*/
	icon:            js.UndefOr[ReactElement]    = js.undefined,
	/* default: 40: This is the size of the avatar in pixels*/
	size:            js.UndefOr[Int]             = js.undefined,
	/*  If passed in, this component will render an img element. Otherwise, a div will be rendered.*/
	src:             js.UndefOr[String]          = js.undefined,
	/*  Override the inline-styles of the root element.*/
	style:           js.UndefOr[CssProperties]   = js.undefined)
{

  def apply() = {
    val props = JSMacro[MuiAvatar](this)
    val f = React.asInstanceOf[js.Dynamic].createFactory(Mui.Avatar)
    f(props).asInstanceOf[ReactComponentU_]
  }
}
    <commit_msg>Allow MuiAvatar to display a character instead of an icon<commit_after>
package chandu0101.scalajs.react.components.materialui

import chandu0101.macros.tojs.JSMacro
import japgolly.scalajs.react._
import scala.scalajs.js
import scala.scalajs.js.`|`
  
case class MuiAvatar(
	key:             js.UndefOr[String]          = js.undefined,
	ref:             js.UndefOr[String]          = js.undefined,
	/* default: grey400: The backgroundColor of the avatar. Does not apply to image avatars.*/
	backgroundColor: js.UndefOr[MuiColor]        = js.undefined,
	/* default: white: The icon or letter color.*/
	color:           js.UndefOr[MuiColor]        = js.undefined,
	/*  This is the SvgIcon or FontIcon to be used inside the avatar.*/
	icon:            js.UndefOr[ReactElement]    = js.undefined,
	/* default: 40: This is the size of the avatar in pixels*/
	size:            js.UndefOr[Int]             = js.undefined,
	/*  If passed in, this component will render an img element. Otherwise, a div will be rendered.*/
	src:             js.UndefOr[String]          = js.undefined,
	/*  Override the inline-styles of the root element.*/
	style:           js.UndefOr[CssProperties]   = js.undefined)
{

  def apply(character: js.UndefOr[Char] = js.undefined) = {
    val props = JSMacro[MuiAvatar](this)
    val f = React.asInstanceOf[js.Dynamic].createFactory(Mui.Avatar)
    f(props, character.map(_.toString)).asInstanceOf[ReactComponentU_]
  }
}
{'fraction_non_alphanumeric': 0.10763138948884089, 'fraction_numerical': 0.009359251259899209, 'mean_word_length': 2.710280373831776, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '7154211', 'n_tokens_mistral': 937, 'n_tokens_neox': 912, 'n_words': 238}