<commit_before>import styled from "react-emotion";
import { css } from "emotion";

const leftLabel = css`
	flex-direction: row;
	align-items: center;
`;

const rightLabel = css`
	flex-direction: row-reverse;
	align-items: center;
`;

const topLabel = css`
	flex-direction: column;
	align-items: center;
`;

const bottomLabel = css`
	flex-direction: column-reverse;
	align-items: center;
`;

const border = css`
	border: 1px solid #ccc;
`;

const Flex = styled("div")`
	display: ${props => props.inline ? "inline-flex" : "flex"};
	${props => (props.labelPosition === "left" || props.iconPosition === "right") && leftLabel};
	${props => (props.labelPosition === "right" || props.iconPosition === "left") && rightLabel};
	${props => (props.labelPosition === "top") && topLabel};
	${props => (props.labelPosition === "bottom") && bottomLabel};
	${props => props.showBorder && border};

	${props => props.justifyContent && css`
		justify-content: ${props.justifyContent};
	`};
	${props => props.alignItems && css`
		align-items: ${props.alignItems};
	`};

	${props => props.flex && css`
		flex: ${props.flex};
	`};
	${props => props.direction && css`
		flex-direction: ${props.direction};
	`};
<commit_msg>:art: Add basis prop for Flex styled component<commit_after>import styled from "react-emotion";
import { css } from "emotion";

const leftLabel = css`
	flex-direction: row;
	align-items: center;
`;

const rightLabel = css`
	flex-direction: row-reverse;
	align-items: center;
`;

const topLabel = css`
	flex-direction: column;
	align-items: center;
`;

const bottomLabel = css`
	flex-direction: column-reverse;
	align-items: center;
`;

const border = css`
	border: 1px solid #ccc;
`;

const Flex = styled("div")`
	display: ${props => props.inline ? "inline-flex" : "flex"};
	${props => (props.labelPosition === "left" || props.iconPosition === "right") && leftLabel};
	${props => (props.labelPosition === "right" || props.iconPosition === "left") && rightLabel};
	${props => (props.labelPosition === "top") && topLabel};
	${props => (props.labelPosition === "bottom") && bottomLabel};
	${props => props.showBorder && border};

	${props => props.justifyContent && css`
		justify-content: ${props.justifyContent};
	`};
	${props => props.alignItems && css`
		align-items: ${props.alignItems};
	`};

	${props => props.flex && css`
		flex: ${props.flex};
	`};
	${props => props.direction && css`
		flex-direction: ${props.direction};
	`};
	${props => props.basis && css`
		flex-basis: ${props.basis};
	`};

{'fraction_non_alphanumeric': 0.2014388489208633, 'fraction_numerical': 0.0007993605115907274, 'mean_word_length': 4.650112866817156, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 24, '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': '3199029', 'n_tokens_mistral': 862, 'n_tokens_neox': 836, 'n_words': 200}