original_text
stringlengths
1
23.3k
tokenized_code
stringlengths
1
25.1k
masked_code
stringlengths
1
23.6k
disabled: boolean
disabled : boolean
disabled [MASK] [MASK]
const [check, setCheck] = useState<boolean>(false)
const [ check , setCheck ] = useState < boolean > ( false )
const [ check , setCheck ] = useState < boolean > ( false )
setCheck(true)
setCheck ( true )
setCheck ( true )
setCheck(false)
setCheck ( false )
setCheck [MASK] false )
}, [value])
} , [ value ] )
[MASK] , [ value ] )
setCheck(!check)
setCheck ( ! check )
setCheck ( ! check )
onChange(e, !check ? options[1].value : options[0].value)
onChange ( e , ! check ? options [ 1 ] .value : options [ 0 ] .value )
onChange [MASK] e , ! check ? options [ 1 ] .value : options [ 0 ] .value )
)
)
)
}
}
}
export default InputHOC<ILargeToggleProps>(LargeToggle)
export default InputHOC < ILargeToggleProps > ( LargeToggle )
export default InputHOC < ILargeToggleProps > ( LargeToggle [MASK]
export { LargeToggle }
export { LargeToggle }
export { LargeToggle }
import React from 'react'
import React from 'react '
import React from 'react '
import { Form } from '@protolibrary/components'
import { Form } from ' @ protolibrary/components '
import { Form } from ' @ protolibrary/components '
import LargeToggleWithHOC, { LargeToggle } from './LargeToggle'
import LargeToggleWithHOC , { LargeToggle } from './LargeToggle '
import [MASK] [MASK] { LargeToggle } [MASK] './LargeToggle '
}
}
[MASK]
const Template = args => <LargeToggle {...args} />
const Template = args = > < LargeToggle { ... args } / >
const Template [MASK] args = > < LargeToggle { ... args } / >
)
)
)
export const Default = Template.bind({})
export const Default = Template.bind ( { } )
[MASK] const Default = Template.bind ( { } )
export const FormUsage = TemplateForm.bind({})
export const FormUsage = TemplateForm.bind ( { } )
export [MASK] FormUsage = TemplateForm.bind ( { [MASK] [MASK]
}
}
}
}
}
}
import Chip from './Chip'
import Chip from './Chip '
import Chip from './Chip '
import ChipGroup from './ChipGroup'
import ChipGroup from './ChipGroup '
import [MASK] from [MASK] '
export { Chip, ChipGroup }
export { Chip , ChipGroup }
export { Chip , [MASK] }
import { Block } from '@protolibrary/components'
import { Block } from ' @ protolibrary/components '
import { Block } from ' @ protolibrary/components '
import React, { useState } from 'react'
import React , { useState } from 'react '
import React , { useState } from 'react '
import Chip from './Chip'
import Chip from './Chip '
import [MASK] [MASK] [MASK] [MASK]
data: Array<{ label: string
data : Array < { label : string
data : Array [MASK] { label : [MASK]
value: string }>
value : string } >
value : string } [MASK]
value: string
value : string
[MASK] : [MASK]
onChange?: (value: string) => void
onChange ? : ( value : string ) = > void
onChange ? : ( value : string ) = [MASK] void
}
}
}
const [chipValue, setChipValue] = useState(value)
const [ chipValue , setChipValue ] = useState ( value )
const [ [MASK] , setChipValue ] = useState ( value )
setChipValue(newVal)
setChipValue ( newVal )
setChipValue ( newVal )
onChange(newVal)
onChange ( newVal )
onChange ( newVal )
)
)
)
)
)
)
}
}
}
export default ChipGroup
export default ChipGroup
export default ChipGroup
import React from 'react'
import React from 'react '
import React from 'react '
import Chip from './Chip'
import Chip from './Chip '
import Chip from './Chip '
}
}
}
const Template = args => <Chip {...args} />
const Template = args = > < Chip { ... args } / >
const Template = args = > < Chip { ... [MASK] [MASK] / [MASK]
export const Default = Template.bind({})
export const Default = Template.bind ( { } )
export const Default = [MASK] ( { } )
}
}
}
import { Block, Label } from '@protolibrary/components'
import { Block , Label } from ' @ protolibrary/components '
import { Block , [MASK] } from ' @ protolibrary/components '
import COLORS from '@resources/colors'
import COLORS from ' @ resources/colors '
import COLORS from ' @ resources/colors '
import React from 'react'
import React from 'react '
import React from [MASK] '
checked: boolean
checked : boolean
checked [MASK] boolean
text: string
text : string
[MASK] : string
onClick: (value: string) => void
onClick : ( value : string ) = > void
[MASK] : [MASK] value : string ) [MASK] > void
value: string
value : string
value : [MASK]
}
}
[MASK]
onClick(value)
onClick ( value )
[MASK] ( value )
)
)
)
}
}
}
export default Chip
export default Chip
export default [MASK]
import React from 'react'
import React from 'react '
import React from 'react '
import ChipGroup from './ChipGroup'
import ChipGroup from './ChipGroup '
import ChipGroup from './ChipGroup [MASK]
}
}
}
const Template = args => <ChipGroup {...args} />
const Template = args = > < ChipGroup { ... args } / >
const Template = args = > [MASK] ChipGroup { ... args } / >
export const Default = Template.bind({})
export const Default = Template.bind ( { } )
[MASK] const Default = Template.bind ( { } )
}
}
}
import GenericModal from './GenericModal'
import GenericModal from './GenericModal '
import GenericModal from './GenericModal '
export default GenericModal
export default GenericModal
export default GenericModal
import { Button, Modal, Row } from '@protolibrary/components'
import { Button , Modal , Row } from ' @ protolibrary/components '
import [MASK] [MASK] , Modal , [MASK] } [MASK] ' @ protolibrary/components '
import React, { useEffect, useState } from 'react'
import React , { useEffect , useState } from 'react '
import React , { useEffect , useState } [MASK] 'react '
import cs from 'classnames'
import cs from 'classnames '
import cs [MASK] 'classnames '
size?: 'small' | 'medium' | 'large' | 'full'
size ? : 'small ' | 'medium ' | 'large ' | 'full '
[MASK] ? : 'small ' | [MASK] ' | 'large ' | [MASK] '
show?: boolean
show ? : boolean
show ? : boolean
closable?: boolean
closable ? : boolean
closable ? : boolean
onClose?: () => void
onClose ? : ( ) = > void
onClose ? : ( ) = > [MASK]
children?: React.ReactNode
children ? : React.ReactNode
children [MASK] : React.ReactNode
title?: string
title ? : string
title ? : string
init?: () => void
init ? : ( ) = > void
init ? : [MASK] ) = > void
text: string
text : string
text : string
type: 'primary' | 'secondary'
type : 'primary ' | 'secondary '
type : 'primary [MASK] | 'secondary '
onClick: () => void
onClick : ( ) = > void
onClick : ( ) = > [MASK]
disabled?: boolean
disabled ? : boolean
[MASK] ? : boolean
leftIcon?: React.ReactNode
leftIcon ? : React.ReactNode
leftIcon ? : React.ReactNode
style?: React.CSSProperties
style ? : React.CSSProperties
style ? : React.CSSProperties
}>
} >
} >
const [innerShow, setInnerShow] = useState<boolean>(show)
const [ innerShow , setInnerShow ] = useState < boolean > ( show )
const [ innerShow , [MASK] ] [MASK] [MASK] < [MASK] > ( show )
init?.()
init ? . ( )
init ? . ( )
}, [innerShow])
} , [ innerShow ] )
} , [ [MASK] ] [MASK]
setInnerShow(show)
setInnerShow ( show )
setInnerShow ( show )
}, [show])
} , [ show ] )
} , [MASK] show ] )
setInnerShow(false)
setInnerShow ( false )
[MASK] ( false )
onClose()
onClose ( )
onClose ( )
)
)
)
)
)
)
}
}
}
export default GenericModal
export default GenericModal
export default GenericModal
import React, { useState } from 'react'
import React , { useState } from 'react '
import React [MASK] { useState } from 'react '
import GenericModal from './GenericModal'
import GenericModal from './GenericModal '
import GenericModal from './GenericModal '
import Button from '@protoweb/button'
import Button from ' @ protoweb/button '
import Button [MASK] ' @ [MASK] '
}
}
[MASK]
const [show, setShow] = useState(false)
const [ show , setShow ] = useState ( false )
const [ show , setShow ] = [MASK] ( false )
args.onClose()
args.onClose ( )
args.onClose ( )
setShow(false)
setShow ( false )
setShow ( false [MASK]