<commit_before>// TODO: Enable flow type checking

import {
    React,
    Component,
    View,
    TouchableOpacity,
    PureComponent,
    Img,
    StyleSheet,
    T,
    Icon,
    EvilIcon,
} from '../Component.js'
import { observable, computed, transaction, autorun, action } from 'mobx'
import { observer } from 'mobx-react/native'

import { MenuItemCard } from './MenuItemCard.js'
import { LazyComponent, lazyWrap } from '../LazyComponent.js'
import { Price, sumPrices } from '../Price.js'
import { PickerCollection, PickerItem } from '../Pickers.js'
import { store, orderStore } from '../Store.js'
import { analytics } from '../Analytics.js'
import { getMenuItemImage } from './MenuItemImage.js'
import * as _ from '../Curry.js'
import { config } from '../Config.js'

const { log, assert } = _.utils('./Menu/MenuItemOrderList.js')

@observer
export class MenuItemOrderList extends PureComponent {
    /* properties:

    Render the order selection, e.g. "1x pint + shandy"
        menuItem: MenuItem
        showModalFor: ?OrderItem
            order item that we should show a modal for (just once)
        onModalClose: () => void
        orderStore: OrderStore
    */

    @computed get orderItems() : Array<OrderItem> {
        return this.props.orderStore.getOrderList(this.props.menuItem.id)
    }

    styles = StyleSheet.create({
        view: {
            borderWidth: 0.5,
            borderLeftWidth: 0.5,
            borderRightWidth: 0.5,
            borderBottomWidth: 0.5,
            borderColor: '#000',
            // borderRadius: 10,
            marginLeft: 5,<commit_msg>Add border radius around menu item order list<commit_after>// TODO: Enable flow type checking

import {
    React,
    Component,
    View,
    TouchableOpacity,
    PureComponent,
    Img,
    StyleSheet,
    T,
    Icon,
    EvilIcon,
} from '../Component.js'
import { observable, computed, transaction, autorun, action } from 'mobx'
import { observer } from 'mobx-react/native'

import { MenuItemCard } from './MenuItemCard.js'
import { LazyComponent, lazyWrap } from '../LazyComponent.js'
import { Price, sumPrices } from '../Price.js'
import { PickerCollection, PickerItem } from '../Pickers.js'
import { store, orderStore } from '../Store.js'
import { analytics } from '../Analytics.js'
import { getMenuItemImage } from './MenuItemImage.js'
import * as _ from '../Curry.js'
import { config } from '../Config.js'

const { log, assert } = _.utils('./Menu/MenuItemOrderList.js')

@observer
export class MenuItemOrderList extends PureComponent {
    /* properties:

    Render the order selection, e.g. "1x pint + shandy"
        menuItem: MenuItem
        showModalFor: ?OrderItem
            order item that we should show a modal for (just once)
        onModalClose: () => void
        orderStore: OrderStore
    */

    @computed get orderItems() : Array<OrderItem> {
        return this.props.orderStore.getOrderList(this.props.menuItem.id)
    }

    styles = StyleSheet.create({
        view: {
            borderWidth: 0.5,
            borderLeftWidth: 0.5,
            borderRightWidth: 0.5,
            borderBottomWidth: 0.5,
            borderColor: '#000',
            borderBottomLeftRadius: 10,
            borderBottomRightRadius: 10,
            marginLeft: 5,
{'fraction_non_alphanumeric': 0.11768292682926829, 'fraction_numerical': 0.00975609756097561, 'mean_word_length': 2.577971646673937, 'pattern_counts': {'":': 0, '<': 5, '<?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': '324608', 'n_tokens_mistral': 982, 'n_tokens_neox': 947, 'n_words': 272}