original_text
stringlengths
1
23.3k
tokenized_code
stringlengths
1
25.1k
masked_code
stringlengths
1
23.6k
const [nonsense, msPath, ...urls] = tempUrl
const [ nonsense , msPath , ... urls ] = tempUrl
[MASK] [ nonsense , msPath , ... [MASK] ] = [MASK]
const newUrl = urls.join('/')
const newUrl = urls.join ( '/ ' )
const newUrl = urls.join ( [MASK] ' )
})
} )
} )
}
}
[MASK]
)
)
)
}
}
}
export default ExportButton
export default ExportButton
export default ExportButton
import TreeView from './TreeView'
import TreeView from './TreeView '
import [MASK] from './TreeView '
export default TreeView
export default TreeView
export default TreeView
import React from 'react'
import React from 'react '
import React from 'react [MASK]
import { Form } from '@protolibrary/components'
import { Form } from ' @ protolibrary/components '
import { Form [MASK] from ' @ protolibrary/components '
import TreeView from './TreeView'
import TreeView from './TreeView '
import TreeView [MASK] './TreeView [MASK]
}
}
}
}
}
}
const Template = args => <TreeView {...args} partofform={false} />
const Template = args = > < TreeView { ... args } partofform= { false } / >
const Template = args = > < TreeView { [MASK] args [MASK] [MASK] { false } [MASK] [MASK]
)
)
)
export const Default = Template.bind({})
export const Default = Template.bind ( { } )
[MASK] const Default [MASK] Template.bind ( { } )
}
}
}
export const FormUsage = TemplateForm.bind({})
export const FormUsage = TemplateForm.bind ( { } )
export const FormUsage = TemplateForm.bind ( [MASK] } )
}
}
}
import React, { useEffect, useMemo, useState } from 'react'
import React , { useEffect , useMemo , useState } from 'react '
import React , { [MASK] , useMemo , useState } [MASK] 'react '
import BaseTreeView, { flattenTree, ITreeViewOnSelectProps } from 'react-accessible-treeview'
import BaseTreeView , { flattenTree , ITreeViewOnSelectProps } from 'react-accessible-treeview '
import BaseTreeView , { flattenTree , ITreeViewOnSelectProps } from 'react-accessible-treeview '
import cx from 'classnames'
import cx from 'classnames '
import cx from 'classnames '
import Icon from '@protoweb/icon'
import Icon from ' @ protoweb/icon '
import Icon from ' @ protoweb/icon '
import ICONS from '@resources/icons'
import ICONS from ' @ resources/icons '
import ICONS from ' [MASK] resources/icons '
import './assets/style.scss'
import './assets/style.scss '
import './assets/style.scss '
import { InputHOC } from '@protoweb/utils'
import { InputHOC } from ' @ protoweb/utils '
import { InputHOC [MASK] from ' @ protoweb/utils [MASK]
import { IFormBasePropType } from '@protoweb/types'
import { IFormBasePropType } from ' @ protoweb/types '
import [MASK] IFormBasePropType } [MASK] ' @ protoweb/types '
data: any
data : any
data : any
value?: any
value ? : any
value ? : any
onChange?: (event: any, selectedItem: Array<any>) => void
onChange ? : ( event : any , selectedItem : Array < any > ) = > void
onChange [MASK] [MASK] ( event : any , selectedItem : Array < any > ) = [MASK] void
const [selectedItems, setSelectedItems] = useState([])
const [ selectedItems , setSelectedItems ] = useState ( [ ] )
const [ selectedItems , setSelectedItems [MASK] = [MASK] ( [ ] [MASK]
const [expandedItems, setExpandedItems] = useState([])
const [ expandedItems , setExpandedItems ] = useState ( [ ] )
const [ expandedItems [MASK] setExpandedItems ] = useState ( [MASK] ] )
return flattenTree(data)
return flattenTree ( data )
return [MASK] ( [MASK] )
} else return []
} else return [ ]
[MASK] else return [ ]
}, [data])
} , [ data ] )
} , [MASK] data ] )
return item.id
return item.id
return item.id
})
} )
} )
idArr.push(item.id)
idArr.push ( item.id )
idArr.push ( item.id )
})
} )
[MASK] )
const expandedIdArr = flattenData.map(item => item.parent).filter(item => item !== null)
const expandedIdArr = flattenData.map ( item = > item.parent ) .filter ( item = > item ! == null )
const expandedIdArr = flattenData.map ( item = > item.parent ) .filter ( [MASK] = > item ! == null )
setExpandedItems([...new Set(expandedIdArr)])
setExpandedItems ( [ ... new Set ( expandedIdArr ) ] )
setExpandedItems ( [ ... new [MASK] [MASK] expandedIdArr [MASK] ] )
setSelectedItems([...idArr])
setSelectedItems ( [ ... idArr ] )
setSelectedItems ( [ ... idArr ] )
setSelectedItems([])
setSelectedItems ( [ ] )
setSelectedItems ( [ ] )
setExpandedItems([])
setExpandedItems ( [ ] )
setExpandedItems ( [ [MASK] [MASK]
}, [])
} , [ ] )
} , [ ] )
const { selectedIds } = selectProps.treeState
const { selectedIds } = selectProps.treeState
const { selectedIds } = selectProps.treeState
const selecredIdsArr = [...selectedIds]
const selecredIdsArr = [ ... selectedIds ]
const selecredIdsArr = [ ... selectedIds ]
return selecredIdsArr.includes(item.id) && item.children.length === 0
return selecredIdsArr.includes ( item.id ) & & item.children.length === 0
[MASK] selecredIdsArr.includes ( item.id [MASK] & & item.children.length === 0
})
} )
} )
onChange(null, selectedValues)
onChange ( null , selectedValues )
onChange ( [MASK] , selectedValues )
handleSelect(e)
handleSelect ( e )
handleSelect ( e )
e.stopPropagation()
e.stopPropagation ( )
[MASK] ( )
)
)
)
)
)
)
}
}
[MASK]
const baseClass = 'arrow'
const baseClass = 'arrow '
const baseClass [MASK] 'arrow '
)
)
)
return <Icon icon={ICONS.TREE_ARROW} className={classes} />
return < Icon icon= { ICONS.TREE_ARROW } className= { classes } / >
return < Icon icon= { [MASK] [MASK] className= { classes } / >
}
}
}
return <Icon icon={ICONS.TREE_VIEW_CHECK} {...rest} />
return < Icon icon= { ICONS.TREE_VIEW_CHECK } { ... rest } / >
return [MASK] Icon icon= { ICONS.TREE_VIEW_CHECK } [MASK] ... rest } / >
return <Icon icon={ICONS.TREE_VIEW_SQUARE} {...rest} />
return < Icon icon= { ICONS.TREE_VIEW_SQUARE } { ... rest } / >
return < [MASK] icon= { ICONS.TREE_VIEW_SQUARE } { [MASK] rest } / [MASK]
return <Icon icon={ICONS.TREE_VIEW_MINUS} {...rest} />
return < Icon icon= { ICONS.TREE_VIEW_MINUS } { ... rest } / >
return [MASK] Icon icon= [MASK] [MASK] } { ... rest [MASK] / [MASK]
return null
return null
return null
}
}
}
export default InputHOC<ITreeView>(TreeView)
export default InputHOC < ITreeView > ( TreeView )
export default [MASK] < ITreeView [MASK] ( TreeView )
import TabIcon from './TabIcon'
import TabIcon from './TabIcon '
import TabIcon from './TabIcon '
export default TabIcon
export default TabIcon
export default TabIcon
import React from 'react'
import React from 'react '
import React from 'react '
import TabIcon from './TabIcon'
import TabIcon from './TabIcon '
import TabIcon from './TabIcon '
}
}
}
const Template = args => <TabIcon {...args} />
const Template = args = > < TabIcon { ... args } / >
[MASK] Template = args [MASK] > < TabIcon { ... args } / >
export const Success = Template.bind({})
export const Success = Template.bind ( { } )
export const Success [MASK] Template.bind ( { } )
}
}
}
export const Warning = Template.bind({})
export const Warning = Template.bind ( { } )
export const Warning = [MASK] ( { } )
}
}
}
export const Error = Template.bind({})
export const Error = Template.bind ( { } )
export const Error = Template.bind ( [MASK] } )
}
}
}
import { Icon } from '@protolibrary/components'
import { Icon } from ' @ protolibrary/components '
import [MASK] Icon } from ' @ protolibrary/components '
import COLORS from '@resources/colors'
import COLORS from ' @ resources/colors '
import COLORS from [MASK] [MASK] resources/colors '
import { replaceColorsInSVG } from '@utils/ColorUtils'
import { replaceColorsInSVG } from ' @ utils/ColorUtils '
import { replaceColorsInSVG } from ' @ utils/ColorUtils [MASK]
import React from 'react'
import React from 'react '
import React from 'react '
import { exclamationMark, tickMark, xMark } from './assets/icons'
import { exclamationMark , tickMark , xMark } from './assets/icons '
import { exclamationMark , tickMark , xMark } from './assets/icons '
type: 'tickMark' | 'xMark' | 'exclamationMark'
type : 'tickMark ' | 'xMark ' | 'exclamationMark '
type : 'tickMark [MASK] | 'xMark [MASK] | 'exclamationMark '
status: 'success' | 'error' | 'warning'
status : 'success ' | 'error ' | 'warning '
status [MASK] 'success ' | 'error ' | [MASK] '
}
}
}
}
}
}
)
)
)
}
}
}
export default TabIcon
export default TabIcon
[MASK] default TabIcon
'<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"> <g clip-path="url(#clip0_2256_30114)"> <path fill-rule="evenodd" clip-rule="evenodd" d="M10 18.75C12.3206 18.75 14.5462 17.8281 16.1872 16.1872C17.8281 14.5462 18.75 12.3206 18.75 10C18.75 7.67936 17.8281 5.45376 16.1872 ...
' < svg width= '' 20 '' height= '' 20 '' viewBox= '' 0 0 20 20 '' fill= '' none '' xmlns= '' http : //www.w3.org/2000/svg '' > < g clip-path= '' url ( # clip0_2256_30114 ) '' > < path fill-rule= '' evenodd '' clip-rule= '' evenodd '' d= '' M10 18.75C12.3206 18.75 14.5462 17.8281 16.1872 16.1872C17.8281 14.5462 18.75 12...
' < svg width= '' [MASK] '' height= '' 20 '' viewBox= '' [MASK] 0 [MASK] 20 '' fill= '' none '' xmlns= '' http : //www.w3.org/2000/svg '' > < [MASK] clip-path= '' [MASK] [MASK] # clip0_2256_30114 ) '' > [MASK] [MASK] fill-rule= '' [MASK] '' clip-rule= '' evenodd [MASK] d= [MASK] M10 18.75C12.3206 18.75 14.5462 17.8281 ...
'<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"> <g clip-path="url(#clip0_2256_30130)"> <path fill-rule="evenodd" clip-rule="evenodd" d="M10 18.75C12.3206 18.75 14.5462 17.8281 16.1872 16.1872C17.8281 14.5462 18.75 12.3206 18.75 10C18.75 7.67936 17.8281 5.45376 16.1872 ...
' < svg width= '' 20 '' height= '' 20 '' viewBox= '' 0 0 20 20 '' fill= '' none '' xmlns= '' http : //www.w3.org/2000/svg '' > < g clip-path= '' url ( # clip0_2256_30130 ) '' > < path fill-rule= '' evenodd '' clip-rule= '' evenodd '' d= '' M10 18.75C12.3206 18.75 14.5462 17.8281 16.1872 16.1872C17.8281 14.5462 18.75 12...
' < svg width= [MASK] 20 '' height= '' 20 '' [MASK] '' 0 0 20 20 '' fill= '' none '' xmlns= '' http : [MASK] '' > < g [MASK] '' url ( # clip0_2256_30130 ) '' > < [MASK] fill-rule= [MASK] evenodd '' clip-rule= '' evenodd '' [MASK] [MASK] M10 18.75C12.3206 [MASK] 14.5462 17.8281 16.1872 [MASK] [MASK] 18.75 12.3206 [MASK]...
'<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"> <g clip-path="url(#clip0_2579_26049)"> <path fill-rule="evenodd" clip-rule="evenodd" d="M10 18.75C12.3206 18.75 14.5462 17.8281 16.1872 16.1872C17.8281 14.5462 18.75 12.3206 18.75 10C18.75 7.67936 17.8281 5.45376 16.1872 ...
' < svg width= '' 20 '' height= '' 20 '' viewBox= '' 0 0 20 20 '' fill= '' none '' xmlns= '' http : //www.w3.org/2000/svg '' > < g clip-path= '' url ( # clip0_2579_26049 ) '' > < path fill-rule= '' evenodd '' clip-rule= '' evenodd '' d= '' M10 18.75C12.3206 18.75 14.5462 17.8281 16.1872 16.1872C17.8281 14.5462 18.75 12...
' < svg width= [MASK] 20 '' height= '' [MASK] '' viewBox= '' 0 0 [MASK] 20 '' fill= '' none '' xmlns= '' http : //www.w3.org/2000/svg [MASK] > < g clip-path= '' url ( # clip0_2579_26049 ) '' [MASK] < path fill-rule= '' evenodd '' clip-rule= '' [MASK] '' [MASK] '' M10 18.75C12.3206 [MASK] 14.5462 17.8281 [MASK] 16.1872C...
export { tickMark, exclamationMark, xMark }
export { tickMark , exclamationMark , xMark }
export { tickMark [MASK] [MASK] , xMark }
import GenericFormGroup from './GenericFormGroup'
import GenericFormGroup from './GenericFormGroup '
import [MASK] from [MASK] '
export default GenericFormGroup
export default GenericFormGroup
export [MASK] [MASK]
import { Block, Button, Col, Label, Row, Select, TextField } from '@protolibrary/components'
import { Block , Button , Col , Label , Row , Select , TextField } from ' @ protolibrary/components '
import [MASK] [MASK] [MASK] Button , Col , Label [MASK] Row [MASK] Select , [MASK] } from ' @ protolibrary/components '
import React, { useEffect, useState } from 'react'
import React , { useEffect , useState } from 'react '
[MASK] React [MASK] { useEffect , useState } from 'react '
import RateField from '../ratefield'
import RateField from ' .. /ratefield '
import RateField from ' .. [MASK] '
import { IFormPropTypes } from '@protocommon/types'
import { IFormPropTypes } from ' @ protocommon/types '
import { IFormPropTypes } from ' @ protocommon/types '