<commit_before>import React, { useState } from "react"
import Grid from "@material-ui/core/Grid"
import TextField from "../TextField"
import RequiredTextLabel from "../RequiredTextLabel"
import useStyles from "../formStyles"
import ShippingMethodPrepaidNotice from "./ShippingMethodPrepaidNotice"
import ShippingMethodRadioGroup from "./ShippingMethodRadioGroup"

/**
 * ShippingMethod contains radio buttons and a text field for listing courier information.
 */

const ShippingMethod = () => {
  const [shipAccountNum, setShipAccountNum] = useState(true)
  const [prepaidNotice, setPrepaidNotice] = useState(false)
  const classes = useStyles()

  return (
    <Grid
      container
      justify="center"
      alignItems="center"
      className={classes.innerForm}>
      <RequiredTextLabel title="Shipping Account" />
      <Grid item xs={12} md={8}>
        <ShippingMethodRadioGroup
          setShipAccountNum={setShipAccountNum}
          setPrepaidNotice={setPrepaidNotice}
        />
        {shipAccountNum && (
          <TextField
            name="shippingAccountNumber"
            placeholder="Shipping Account Number"
          />
        )}
        {prepaidNotice && <ShippingMethodPrepaidNotice />}
        <p>
          <em>Note: credit card is not allowed for shipment</em>
        </p>
      </Grid>
    </Grid>
  )
}

export default ShippingMethod<commit_msg>refactor: remove grid from shipping method<commit_after>import React, { useState } from "react"
import Typography from "@material-ui/core/Typography"
import Box from "@material-ui/core/Box"
import TextField from "../TextField"
import RequiredTextLabel from "../RequiredTextLabel"
import ShippingMethodPrepaidNotice from "./ShippingMethodPrepaidNotice"
import ShippingMethodRadioGroup from "./ShippingMethodRadioGroup"

/**
 * ShippingMethod contains radio buttons and a text field for listing courier information.
 */

const ShippingMethod = () => {
  const [shipAccountNum, setShipAccountNum] = useState(true)
  const [prepaidNotice, setPrepaidNotice] = useState(false)

  return (
    <Box mt={1} mb={2} p={2}>
      <RequiredTextLabel title="Shipping Account" variant="h3" />
      <Box mt={1} />
      <ShippingMethodRadioGroup
        setShipAccountNum={setShipAccountNum}
        setPrepaidNotice={setPrepaidNotice}
      />
      {shipAccountNum && (
        <TextField
          name="shippingAccountNumber"
          placeholder="Shipping Account Number"
        />
      )}
      {prepaidNotice && <ShippingMethodPrepaidNotice />}
      <Box mt={1} />
      <Typography component="p">
        <em>Note: credit card is not allowed for shipment</em>
      </Typography>
    </Box>
  )
}

export default ShippingMethod
{'fraction_non_alphanumeric': 0.10672082717872969, 'fraction_numerical': 0.0033234859675036928, 'mean_word_length': 3.3136942675159236, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 29, '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': '1455326', 'n_tokens_mistral': 753, 'n_tokens_neox': 734, 'n_words': 187}