original_text
stringlengths 1
23.3k
| tokenized_code
stringlengths 1
25.1k
| masked_code
stringlengths 1
23.6k
|
---|---|---|
) | ) | ) |
) | ) | ) |
} | } | } |
export default Dropdown | export default Dropdown | export [MASK] Dropdown |
import React from 'react' | import React from 'react ' | [MASK] React from 'react ' |
import Dropdown from './DropDown' | import Dropdown from './DropDown ' | import Dropdown from './DropDown ' |
} | } | } |
const Template = args => <Dropdown {...args} /> | const Template = args = > < Dropdown { ... args } / > | const Template = args [MASK] > [MASK] Dropdown { ... args } / > |
export const Default = Template.bind({}) | export const Default = Template.bind ( { } ) | export const Default [MASK] Template.bind [MASK] { } ) |
} | } | } |
import { Block, Icon, Label } from '@protolibrary/components' | import { Block , Icon , Label } from ' @ protolibrary/components ' | [MASK] { Block , Icon , Label } 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 'react ' |
import { useState } from 'react' | import { useState } from 'react ' | [MASK] { [MASK] } from [MASK] ' |
import { replaceColorsInSVG } from '@utils/ColorUtils' | import { replaceColorsInSVG } from ' @ utils/ColorUtils ' | import { replaceColorsInSVG } from ' @ utils/ColorUtils ' |
const [active, setActive] = useState(false) | const [ active , setActive ] = useState ( false ) | const [MASK] active , setActive ] = useState ( false ) |
setActive(true) | setActive ( true ) | [MASK] ( true ) |
} | } | } |
setActive(false) | setActive ( false ) | setActive ( false ) |
} | } | } |
) | ) | [MASK] |
} | } | } |
export default DropDownItem | export default DropDownItem | export [MASK] DropDownItem |
'<svg width="13" height="8" viewBox="0 0 13 8" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M12.8447 0.807018L12.6395 0.601858C12.5037 0.466047 12.2841 0.466047 12.1483 0.601858L6.50205 6.25098L0.852932 0.601858C0.717122 0.466047 0.497515 0.466047 0.361705 0.601858L0.156545 0.807018C0.020735 0.942828 0.020735 1.16244 0.156545 1.29825L6.25354 7.39814C6.38935 7.53395 6.60896 7.53395 6.74477 7.39814L12.8418 1.29825C12.9805 1.16244 12.9805 0.942828 12.8447 0.807018Z" fill="#444444"/> </svg>' | ' < svg width= '' 13 '' height= '' 8 '' viewBox= '' 0 0 13 8 '' fill= '' none '' xmlns= '' http : //www.w3.org/2000/svg '' > < path d= '' M12.8447 0.807018L12.6395 0.601858C12.5037 0.466047 12.2841 0.466047 12.1483 0.601858L6.50205 6.25098L0.852932 0.601858C0.717122 0.466047 0.497515 0.466047 0.361705 0.601858L0.156545 0.807018C0.020735 0.942828 0.020735 1.16244 0.156545 1.29825L6.25354 7.39814C6.38935 7.53395 6.60896 7.53395 6.74477 7.39814L12.8418 1.29825C12.9805 1.16244 12.9805 0.942828 12.8447 0.807018Z '' fill= '' # 444444 '' / > < /svg > ' | [MASK] < svg width= '' 13 '' [MASK] '' 8 '' viewBox= '' 0 0 13 8 '' fill= '' none '' xmlns= '' http : [MASK] '' [MASK] < path d= '' M12.8447 0.807018L12.6395 0.601858C12.5037 0.466047 12.2841 0.466047 12.1483 0.601858L6.50205 6.25098L0.852932 [MASK] [MASK] 0.497515 0.466047 [MASK] 0.601858L0.156545 0.807018C0.020735 0.942828 0.020735 1.16244 0.156545 1.29825L6.25354 [MASK] [MASK] 6.60896 7.53395 6.74477 7.39814L12.8418 1.29825C12.9805 1.16244 12.9805 0.942828 12.8447 0.807018Z '' [MASK] '' # [MASK] '' / > < /svg [MASK] ' |
export { DROPDOWN_ICON } | export { DROPDOWN_ICON } | export { DROPDOWN_ICON } |
import React, { useEffect, useRef, useState } from 'react' | import React , { useEffect , useRef , useState } from 'react ' | import React , { useEffect [MASK] useRef , useState } from 'react ' |
import ProtoTable from 'prototable' | import ProtoTable from 'prototable ' | import ProtoTable from 'prototable ' |
import ICONS from '@resources/icons' | import ICONS from ' @ resources/icons ' | import ICONS from ' @ resources/icons ' |
import Icon from '@protoweb/icon' | import Icon from ' @ protoweb/icon ' | import [MASK] from ' @ protoweb/icon ' |
import toastManager from '@common/toast/ToastManager' | import toastManager from ' @ common/toast/ToastManager ' | import [MASK] from ' @ common/toast/ToastManager ' |
import { NUMERIC_REGEX } from '@utils/RegexUtils' | import { NUMERIC_REGEX } from ' @ utils/RegexUtils ' | import { NUMERIC_REGEX } from ' @ utils/RegexUtils ' |
import useLocalization from '@hooks/useLocalization' | import useLocalization from ' @ hooks/useLocalization ' | import useLocalization [MASK] ' @ [MASK] ' |
import { defaultGridOptions } from '@utils/DataTableUtils' | import { defaultGridOptions } from ' @ utils/DataTableUtils ' | [MASK] { defaultGridOptions } [MASK] ' @ utils/DataTableUtils ' |
import Col from '@protoweb/col' | import Col from ' @ protoweb/col ' | import [MASK] from ' @ [MASK] ' |
import Element from '@protoweb/element' | import Element from ' @ protoweb/element ' | import Element from [MASK] @ protoweb/element [MASK] |
import tariffIndividualStateManager from '@modules/TariffManagement/TariffIndividualManagement/TariffIndividualStateManager' | import tariffIndividualStateManager from ' @ modules/TariffManagement/TariffIndividualManagement/TariffIndividualStateManager ' | import tariffIndividualStateManager from ' @ modules/TariffManagement/TariffIndividualManagement/TariffIndividualStateManager ' |
data: any | data : any | data [MASK] any |
columnField: string | columnField : string | columnField : string |
matrixField: string | matrixField : string | matrixField : string |
setData: any | setData : any | [MASK] : any |
status: string | status : string | status : [MASK] |
tariffType?: string | tariffType ? : string | tariffType [MASK] : string |
foundIndex?: number | foundIndex ? : number | foundIndex ? : number |
hidden?: boolean | hidden ? : boolean | hidden ? : boolean |
type?: string | type ? : string | type ? : string |
let dataTable = useRef(null) | let dataTable = useRef ( null ) | let dataTable [MASK] useRef ( null ) |
const [tableColumns, setTableColumns] = useState([{}]) | const [ tableColumns , setTableColumns ] = useState ( [ { } ] ) | const [ tableColumns [MASK] setTableColumns ] = useState ( [ { } ] ) |
const [tableRows, setTableRows] = useState<any[]>() | const [ tableRows , setTableRows ] = useState < any [ ] > ( ) | [MASK] [ tableRows , setTableRows ] = useState < any [ ] > ( ) |
const { t, language } = useLocalization() | const { t , language } = useLocalization ( ) | const { t , language } [MASK] useLocalization ( ) |
} | } | } |
}) | } ) | } ) |
setTableColumns(_tableColumns) | setTableColumns ( _tableColumns ) | [MASK] ( _tableColumns ) |
const tempData = [] | const tempData = [ ] | const [MASK] = [ [MASK] |
let tempDataCell = {} | let tempDataCell = { } | [MASK] tempDataCell = { } |
} | } | } |
} | } | [MASK] |
}) | } ) | [MASK] ) |
tempData.push(tempDataCell) | tempData.push ( tempDataCell ) | [MASK] ( tempDataCell ) |
}) | } ) | [MASK] ) |
setTableRows(tempData) | setTableRows ( tempData ) | [MASK] [MASK] tempData ) |
dataTable.current.loadWithDataArray(tempData) | dataTable.current.loadWithDataArray ( tempData ) | dataTable.current.loadWithDataArray ( tempData [MASK] |
}, [data]) | } , [ data ] ) | } [MASK] [ data ] ) |
return true | return true | return true |
let matrixLength = e?.length | let matrixLength = e ? .length | let matrixLength = e [MASK] .length |
return { ...c, value: Number(row?.prm) } | return { ... c , value : Number ( row ? .prm ) } | return { ... c , value : Number ( row ? .prm ) } |
return { ...c, value: Number(row?.fiat) } | return { ... c , value : Number ( row ? .fiat ) } | return [MASK] ... c , value : Number ( row ? [MASK] ) } |
return c | return c | return c |
}) | } ) | } ) |
return temp | return temp | return temp |
return e | return e | return [MASK] |
} | } | } |
setData(excelData) | setData ( excelData ) | setData ( excelData ) |
tariffIndividualStateManager.setExcelMatrix(excelData, foundIndex) | tariffIndividualStateManager.setExcelMatrix ( excelData , foundIndex ) | tariffIndividualStateManager.setExcelMatrix ( excelData , foundIndex ) |
} | } | } |
setMainData(row) | setMainData ( row ) | setMainData ( [MASK] ) |
resolve(true) | resolve ( true ) | resolve [MASK] true ) |
toastManager.show('error', t('general.only.numbers')) | toastManager.show ( 'error ' , t ( 'general.only.numbers ' ) ) | toastManager.show ( 'error ' [MASK] t ( 'general.only.numbers ' ) ) |
}) | } ) | } ) |
resolve(true) | resolve ( true ) | resolve ( true [MASK] |
} | } | [MASK] |
) | ) | ) |
} | } | } |
export default DynamicTable | export default DynamicTable | export default DynamicTable |
import ToolTip from './ToolTip' | import ToolTip from './ToolTip ' | import ToolTip from [MASK] [MASK] |
export default ToolTip | export default ToolTip | export default ToolTip |
import { Block } from '@protolibrary/components' | import { Block } from ' @ protolibrary/components ' | [MASK] { Block } [MASK] ' @ protolibrary/components ' |
import React, { CSSProperties } from 'react' | import React , { CSSProperties } from 'react ' | import React , { CSSProperties } from 'react [MASK] |
import { Tooltip as ReactToolTip } from 'react-tippy' | import { Tooltip as ReactToolTip } from 'react-tippy ' | import { Tooltip as ReactToolTip [MASK] from 'react-tippy ' |
import './assets/style.scss' | import './assets/style.scss ' | [MASK] './assets/style.scss ' |
import cs from 'classnames' | import cs from 'classnames ' | [MASK] cs [MASK] 'classnames ' |
content: any | content : any | content : [MASK] |
children: any | children : any | children : any |
mode?: 'hover' | 'click' | 'focus' | mode ? : 'hover ' | 'click ' | 'focus ' | [MASK] [MASK] : 'hover [MASK] [MASK] 'click ' [MASK] 'focus ' |
style?: CSSProperties | style ? : CSSProperties | style ? : CSSProperties |
distance?: number | distance ? : number | distance ? : number |
offset?: number | offset ? : number | offset ? : number |
arrow?: boolean | arrow ? : boolean | arrow ? : boolean |
position?: 'top' | 'bottom' | 'left' | 'right' | position ? : 'top ' | 'bottom ' | 'left ' | 'right ' | position ? : 'top [MASK] [MASK] 'bottom ' | 'left ' | 'right ' |
className?: string | className ? : string | className ? : string |
) | ) | ) |
Subsets and Splits