original_text
stringlengths
1
23.3k
tokenized_code
stringlengths
1
25.1k
masked_code
stringlengths
1
23.6k
const refBase = useRef<HTMLInputElement | null>(null)
const refBase = useRef < HTMLInputElement | null > ( null )
[MASK] refBase = useRef [MASK] HTMLInputElement | null > ( null [MASK]
const refDisplay = useRef<any | null>(null)
const refDisplay = useRef < any | null > ( null )
[MASK] [MASK] [MASK] [MASK] < any | null > [MASK] null )
const { theme } = useTheme()
const { theme } = useTheme ( )
const { theme } = useTheme ( [MASK]
setFile(value)
setFile ( value )
setFile [MASK] value )
setFile(null)
setFile ( null )
setFile ( null )
}, [value])
} , [ value ] )
} , [ value ] )
const chosenFile = event.target.files ? event.target.files[0] : null
const chosenFile = event.target.files ? event.target.files [ 0 ] : null
const [MASK] = event.target.files ? event.target.files [MASK] 0 ] : [MASK]
setFile(chosenFile)
setFile ( chosenFile )
setFile [MASK] chosenFile )
onChange?.(event, chosenFile)
onChange ? . ( event , chosenFile )
onChange ? . ( event , chosenFile )
event.target.value = ''
event.target.value = ``
event.target.value = ``
refDisplay.current?.blur()
refDisplay.current ? .blur ( )
refDisplay.current ? .blur ( )
}
}
}
setFile(null)
setFile ( null )
setFile ( null )
onChange?.(null, null)
onChange ? . ( null , null )
onChange ? . ( null , null )
}
}
}
refBase.current?.click()
refBase.current ? .click ( )
refBase.current ? .click ( )
onView?.(file)
onView ? . ( file )
onView ? . ( file )
)
)
[MASK]
}
}
}
let padding = 22
let padding = 22
[MASK] padding = 22
padding = padding + 20
padding = padding + 20
padding = padding + 20
padding = padding + 20
padding = padding + 20
padding = padding + 20
return padding
return padding
return padding
}, [viewMode, file, clearable])
} , [ viewMode , file , clearable ] )
} , [MASK] viewMode , file , clearable ] [MASK]
refBase.current?.click()
refBase.current ? .click ( )
[MASK] ? .click ( )
refDisplay.current?.blur()
refDisplay.current ? .blur ( )
refDisplay.current ? [MASK] ( )
handleClearFile()
handleClearFile ( )
handleClearFile [MASK] )
)
)
)
}
}
[MASK]
export default InputHOC<IUploadFieldProps>(UploadField)
export default InputHOC < IUploadFieldProps > ( UploadField )
export default [MASK] < IUploadFieldProps > ( UploadField )
export { UploadField }
export { UploadField }
export [MASK] UploadField }
import React from 'react'
import React from 'react '
import React [MASK] 'react '
import { Form } from '@protolibrary/components'
import { Form } from ' @ protolibrary/components '
import { Form [MASK] from ' @ protolibrary/components '
import UploadFieldWithHOC, { UploadField } from './UploadField'
import UploadFieldWithHOC , { UploadField } from './UploadField '
import UploadFieldWithHOC , { UploadField } from './UploadField '
}
}
}
const Template = args => <UploadField {...args} />
const Template = args = > < UploadField { ... args } / >
[MASK] Template = [MASK] [MASK] > < [MASK] { ... args } / >
)
)
)
export const Default = Template.bind({})
export const Default = Template.bind ( { } )
export const Default = [MASK] ( [MASK] } )
export const FormUsage = TemplateForm.bind({})
export const FormUsage = TemplateForm.bind ( { } )
export const FormUsage = TemplateForm.bind ( [MASK] } )
}
}
}
}
}
}
'<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12.285 5C11.291 4.99946 10.3378 4.60425 9.635 3.90125L8.5975 2.86625C8.36375 2.63242 8.04688 2.50073 7.71625 2.5H3.125C2.79755 2.49994 2.48316 2.62837 2.24941 2.85768C2.01566 3.08699 1.88122 3.39886 1.875 3.72625...
' < svg width= '' 20 '' height= '' 20 '' viewBox= '' 0 0 20 20 '' fill= '' none '' xmlns= '' http : //www.w3.org/2000/svg '' > < path d= '' M12.285 5C11.291 4.99946 10.3378 4.60425 9.635 3.90125L8.5975 2.86625C8.36375 2.63242 8.04688 2.50073 7.71625 2.5H3.125C2.79755 2.49994 2.48316 2.62837 2.24941 2.85768C2.01566 3.08...
' [MASK] svg width= '' 20 '' height= '' [MASK] '' viewBox= '' 0 0 20 [MASK] '' fill= '' [MASK] '' xmlns= '' http : //www.w3.org/2000/svg '' > < path d= [MASK] [MASK] 5C11.291 4.99946 10.3378 4.60425 9.635 3.90125L8.5975 2.86625C8.36375 [MASK] 8.04688 2.50073 7.71625 [MASK] 2.49994 2.48316 2.62837 2.24941 2.85768C2.0156...
'<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M20 10C20 10 16.25 3.125 10 3.125C3.75 3.125 0 10 0 10C0 10 3.75 16.875 10 16.875C16.25 16.875 20 10 20 10ZM1.46625 10C2.07065 10.9186 2.76581 11.7741 3.54125 12.5538C5.15 ...
' < svg width= '' 20 '' height= '' 20 '' viewBox= '' 0 0 20 20 '' fill= '' none '' xmlns= '' http : //www.w3.org/2000/svg '' > < path fill-rule= '' evenodd '' clip-rule= '' evenodd '' d= '' M20 10C20 10 16.25 3.125 10 3.125C3.75 3.125 0 10 0 10C0 10 3.75 16.875 10 16.875C16.25 16.875 20 10 20 10ZM1.46625 10C2.07065 10....
' < svg [MASK] '' 20 '' height= '' 20 '' viewBox= '' 0 [MASK] 20 20 [MASK] fill= '' [MASK] '' xmlns= [MASK] http : //www.w3.org/2000/svg '' > < path fill-rule= '' evenodd '' clip-rule= '' evenodd [MASK] [MASK] '' M20 10C20 10 16.25 3.125 10 3.125C3.75 3.125 0 10 0 10C0 10 [MASK] [MASK] 10 16.875C16.25 16.875 20 10 20 1...
export { FOLDER_ICON, EYE_ICON }
export { FOLDER_ICON , EYE_ICON }
export { FOLDER_ICON , EYE_ICON }
import PageHeader from './PageHeader'
import PageHeader from './PageHeader '
import PageHeader from './PageHeader '
export default PageHeader
export default PageHeader
export default PageHeader
import useLocalization from '@hooks/useLocalization'
import useLocalization from ' @ hooks/useLocalization '
import useLocalization from ' @ hooks/useLocalization '
import { Col, Row, Element, Button } from '@protolibrary/components'
import { Col , Row , Element , Button } from ' @ protolibrary/components '
import { Col , Row , Element , Button [MASK] [MASK] ' @ protolibrary/components '
import React, { useState } from 'react'
import React , { useState } from 'react '
import React , { useState } from 'react '
import ConfirmationModal from '../confirmation-modal/ConfirmationModal'
import ConfirmationModal from ' .. /confirmation-modal/ConfirmationModal '
[MASK] ConfirmationModal from [MASK] .. /confirmation-modal/ConfirmationModal '
import { ArrowLeftToLine } from 'lucide-react'
import { ArrowLeftToLine } from 'lucide-react '
import { ArrowLeftToLine } from 'lucide-react '
import navigationService from '@common/navigation/NavigationService'
import navigationService from ' @ common/navigation/NavigationService '
import [MASK] from ' @ common/navigation/NavigationService '
title?: string
title ? : string
title ? [MASK] string
titleList?: Array<any>
titleList ? : Array < any >
[MASK] ? : [MASK] [MASK] any [MASK]
backButton?: boolean
backButton ? : boolean
[MASK] ? [MASK] boolean
children?: React.ReactNode
children ? : React.ReactNode
[MASK] ? : React.ReactNode
confirmation?: boolean
confirmation ? : boolean
confirmation ? : boolean
onConfirm?: () => void
onConfirm ? : ( ) = > void
onConfirm [MASK] : [MASK] ) = > void
const { t } = useLocalization()
const { t } = useLocalization ( )
const [MASK] t } = useLocalization [MASK] )
const [confirmationModal, setConfirmationModal] = useState(false)
const [ confirmationModal , setConfirmationModal ] = useState ( false )
const [ confirmationModal , setConfirmationModal ] = useState ( [MASK] )
setConfirmationModal(false)
setConfirmationModal ( false )
setConfirmationModal ( [MASK] )
onConfirm && onConfirm()
onConfirm & & onConfirm ( )
onConfirm & & onConfirm ( )
navigationService.goBack()
navigationService.goBack ( )
navigationService.goBack ( )
)
)
[MASK]
}
}
}
export default PageHeader
export default PageHeader
export default [MASK]
import React from 'react'
import React from 'react '
import React from 'react '
import PageHeader from './PageHeader'
import PageHeader from './PageHeader '
import PageHeader from [MASK] '
import { PREVIOUS_ICON } from '@modules/IndividualProposal/steps/components/assets/icons'
import { PREVIOUS_ICON } from ' @ modules/IndividualProposal/steps/components/assets/icons '
import { [MASK] } from ' @ modules/IndividualProposal/steps/components/assets/icons '
}
}
}
const Template = args => <PageHeader {...args} />
const Template = args = > < PageHeader { ... args } / >
const [MASK] [MASK] args [MASK] > [MASK] PageHeader { ... args } / >
export const Default = Template.bind({})
export const Default = Template.bind ( { } )
export const Default [MASK] [MASK] ( { } )
}
}
}
export const WithBackButton = Template.bind({})
export const WithBackButton = Template.bind ( { } )
export const WithBackButton [MASK] Template.bind ( { } )
}
}
}
export const WithTitleList = Template.bind({})
export const WithTitleList = Template.bind ( { } )
export const WithTitleList = Template.bind ( { } )
}
}
}
import NoData from './NoData'
import NoData from './NoData '
[MASK] NoData from [MASK] '
export default NoData
export default NoData
export default NoData
import { Block, Icon, Element } from '@protolibrary/components'
import { Block , Icon , Element } from ' @ protolibrary/components '
import { Block [MASK] Icon , Element [MASK] from ' @ [MASK] '
import React from 'react'
import React from 'react '
import React from 'react '
import noDataIcon from './assets/icons'
import noDataIcon from './assets/icons '
import noDataIcon from './assets/icons [MASK]
import useLocalization from '@hooks/useLocalization'
import useLocalization from ' @ hooks/useLocalization '
import useLocalization from ' [MASK] hooks/useLocalization '
import { replaceColorsInSVG } from '@utils/ColorUtils'
import { replaceColorsInSVG } from ' @ utils/ColorUtils '
import { replaceColorsInSVG } from ' [MASK] utils/ColorUtils '
import useTheme from '@hooks/useTheme'
import useTheme from ' @ hooks/useTheme '
import useTheme from ' @ hooks/useTheme '
title?: string
title ? : string
title ? : string
const { t } = useLocalization()
const { t } = useLocalization ( )
const { t } = useLocalization ( )
const { theme } = useTheme()
const { theme } = useTheme ( )
const { theme } = useTheme ( )
)
)
)
}
}
}
export default NoData
export default NoData
export default NoData
import React from 'react'
import React from 'react '
import React from 'react '
import NoData from './NoData'
import NoData from './NoData '
[MASK] NoData from './NoData '
}
}
}
const Template = args => <NoData {...args} />
const Template = args = > < NoData { ... args } / >
const Template = args [MASK] > [MASK] NoData { ... args [MASK] / >
export const Default = Template.bind({})
export const Default = Template.bind ( { } )
export const Default = Template.bind ( [MASK] [MASK] )
}
}
[MASK]
`
`
`
export default noDataIcon
export default noDataIcon
export default noDataIcon
// '<svg width="1332px" height="1164px" viewBox="0 0 1332 1164" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Group 4</title> <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <g id="Group-4" transform="translate(0.000000,...
// ' < svg width= '' 1332px '' height= '' 1164px '' viewBox= '' 0 0 1332 1164 '' version= '' 1.1 '' xmlns= '' http : //www.w3.org/2000/svg '' xmlns : xlink= '' http : //www.w3.org/1999/xlink '' > < title > Group 4 < /title > < g id= '' Page-1 '' stroke= '' none '' stroke-width= '' 1 '' fill= '' none '' fill-rule= '' ev...
// ' < svg width= [MASK] 1332px '' height= '' 1164px '' [MASK] '' 0 0 1332 1164 '' version= '' 1.1 '' [MASK] '' http : //www.w3.org/2000/svg '' xmlns : xlink= [MASK] http : //www.w3.org/1999/xlink '' > [MASK] title [MASK] Group 4 < /title > < g id= [MASK] [MASK] '' [MASK] '' none [MASK] [MASK] [MASK] 1 '' fill= '' none...