<commit_before>import React from 'react'
import PropTypes from 'prop-types'
import styled from 'styled-components'

import {openLoginWindow} from '../../utils/loginWindow'
import ProviderButton from '../ProviderButton/ProviderButton'

const StyledButtonContainer = styled.div`
  width: 100%;
  display: grid;
  grid-gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr) )
`

class LoginBox extends React.Component {
  constructor(props) {
    super(props)
    props.loadProviders()
  }

  componentDidUpdate(prevProps, prevState, snapshot) {
    if (this.props.autoLogin && prevProps.providers.length === 0 && this.props.providers.length > 0) {
      const autoLoginProvider = this.props.providers.find(entity => entity.unique_id === this.props.autoLogin)
      if (autoLoginProvider) {<commit_msg>refactor(sso-login): button adjustment for mobile<commit_after>import React from 'react'
import PropTypes from 'prop-types'
import styled from 'styled-components'

import {openLoginWindow} from '../../utils/loginWindow'
import ProviderButton from '../ProviderButton/ProviderButton'

const StyledButtonContainer = styled.div`
  width: 100%;
  display: grid;
  grid-gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
`

class LoginBox extends React.Component {
  constructor(props) {
    super(props)
    props.loadProviders()
  }

  componentDidUpdate(prevProps, prevState, snapshot) {
    if (this.props.autoLogin && prevProps.providers.length === 0 && this.props.providers.length > 0) {
      const autoLoginProvider = this.props.providers.find(entity => entity.unique_id === this.props.autoLogin)
      if (autoLoginProvider) {
{'fraction_non_alphanumeric': 0.12410071942446044, 'fraction_numerical': 0.011990407673860911, 'mean_word_length': 4.619528619528619, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '5896540', 'n_tokens_mistral': 520, 'n_tokens_neox': 496, 'n_words': 116}