original_text
stringlengths
1
23.3k
tokenized_code
stringlengths
1
25.1k
masked_code
stringlengths
1
23.6k
} as IProjectItemDetailProps)
} as IProjectItemDetailProps )
} as IProjectItemDetailProps [MASK]
return
return
return
const data = chartRef.current.chart.series[0].data
const data = chartRef.current.chart.series [ 0 ] .data
const data = chartRef.current.chart.series [ 0 ] .data
const point = data.find((item: any) => item.id === contextMenuItemId)
const point = data.find ( ( item : any ) = > item.id === contextMenuItemId )
[MASK] [MASK] = data.find ( ( [MASK] : any ) = > [MASK] === [MASK] )
}
}
}
element.vehicleId = getVehicleId(data, itemTypeId.id, itemTypeId.type)
element.vehicleId = getVehicleId ( data , itemTypeId.id , itemTypeId.type )
element.vehicleId = [MASK] ( data [MASK] [MASK] , itemTypeId.type )
element.parentTaskId = itemTypeId.id
element.parentTaskId = itemTypeId.id
[MASK] = itemTypeId.id
element.minStartDate = getMinStartDate(point, data)
element.minStartDate = getMinStartDate ( point , data )
element.minStartDate = getMinStartDate [MASK] point , data [MASK]
element.id = itemTypeId.id
element.id = itemTypeId.id
element.id = itemTypeId.id
const completeStatus = showIsComplete(point, data)
const completeStatus = showIsComplete ( point , data )
const completeStatus = showIsComplete ( point , data )
element.showIsComplete = completeStatus.show
element.showIsComplete = completeStatus.show
[MASK] = completeStatus.show
element.showCompleteMessage = completeStatus.message
element.showCompleteMessage = completeStatus.message
element.showCompleteMessage = completeStatus.message
element.showStartEndDates = !data.some((item: any) => item.parent === point.id)
element.showStartEndDates = ! data.some ( ( item : any ) = > item.parent === point.id )
element.showStartEndDates [MASK] ! data.some ( ( [MASK] : any ) = > item.parent === point.id )
element.minStartDate = getMinStartDate(point, data)
element.minStartDate = getMinStartDate ( point , data )
element.minStartDate = getMinStartDate ( point , [MASK] )
setTaskFormProps(element)
setTaskFormProps ( element )
setTaskFormProps ( element )
setShowCreateModal(true)
setShowCreateModal ( true )
setShowCreateModal ( [MASK] [MASK]
}
}
}
setModelElement(NavigationOperationType.CREATE)
setModelElement ( NavigationOperationType.CREATE )
setModelElement ( NavigationOperationType.CREATE )
setShowCreateModal(true)
setShowCreateModal ( true )
setShowCreateModal ( [MASK] )
setModelElement(NavigationOperationType.UPDATE)
setModelElement ( NavigationOperationType.UPDATE )
setModelElement ( NavigationOperationType.UPDATE )
setShowCreateModal(true)
setShowCreateModal ( true )
[MASK] ( true )
setModelElement()
setModelElement ( )
setModelElement ( )
setShowDetailModal(true)
setShowDetailModal ( true )
setShowDetailModal ( [MASK] )
]
]
]
)
)
)
callback()
callback ( )
callback ( )
}
}
[MASK]
return
return
return
setShowContextMenu(false)
setShowContextMenu ( false )
setShowContextMenu ( false )
document.addEventListener('click', handleClickOutside)
document.addEventListener ( 'click ' , handleClickOutside )
document.addEventListener ( 'click ' [MASK] handleClickOutside )
document.addEventListener('focusin', handleClickOutside)
document.addEventListener ( 'focusin ' , handleClickOutside )
document.addEventListener ( 'focusin ' , handleClickOutside [MASK]
document.removeEventListener('click', handleClickOutside)
document.removeEventListener ( 'click ' , handleClickOutside )
document.removeEventListener [MASK] [MASK] ' , handleClickOutside )
document.addEventListener('focusin', handleClickOutside)
document.addEventListener ( 'focusin ' , handleClickOutside )
document.addEventListener ( 'focusin ' , handleClickOutside )
}
}
}
}, [popperRef, chartRef])
} , [ popperRef , chartRef ] )
} , [ popperRef , [MASK] [MASK] )
setShowCreateModal(false)
setShowCreateModal ( false )
setShowCreateModal ( [MASK] )
updateChartData()
updateChartData ( )
updateChartData ( )
}
}
}
setShowDetailModal(false)
setShowDetailModal ( false )
setShowDetailModal ( false )
}
}
[MASK]
return <NoData />
return < NoData / >
return < NoData / >
)
)
)
)
)
[MASK]
}
}
}
handleItemClick(option?.onClick)
handleItemClick ( option ? .onClick )
handleItemClick ( option ? .onClick )
)
)
)
)
)
)
}
}
}
export default GanttChartTab
export default GanttChartTab
export default GanttChartTab
import React, { useEffect, useRef } from 'react'
import React , { useEffect , useRef } from 'react '
[MASK] React , { useEffect [MASK] useRef } from 'react '
import { DataTable, Container } from '@protolibrary/components'
import { DataTable , Container } from ' @ protolibrary/components '
import { DataTable , [MASK] } from ' @ protolibrary/components '
import '../assets/styles.scss'
import ' .. /assets/styles.scss '
[MASK] ' .. /assets/styles.scss '
import { defaultRemoteGridOptions, prepareFilter } from '@utils/DataTableUtils'
import { defaultRemoteGridOptions , prepareFilter } from ' @ utils/DataTableUtils '
import [MASK] defaultRemoteGridOptions , prepareFilter } from [MASK] @ utils/DataTableUtils '
import vehicleChangeLogService from '@services/VehicleChangeLogService'
import vehicleChangeLogService from ' @ services/VehicleChangeLogService '
import vehicleChangeLogService from ' [MASK] services/VehicleChangeLogService '
import { formatDatePickerToTable } from '@utils/DateUtils'
import { formatDatePickerToTable } from ' @ utils/DateUtils '
import { formatDatePickerToTable } [MASK] ' [MASK] utils/DateUtils [MASK]
import useLocalization from '@hooks/useLocalization'
import useLocalization from ' @ hooks/useLocalization '
import useLocalization from ' [MASK] hooks/useLocalization '
const refDataTable = useRef(null)
const refDataTable = useRef ( null )
const refDataTable = useRef [MASK] null [MASK]
const { vehicleId } = props
const { vehicleId } = props
const [MASK] vehicleId } = props
const { t } = useLocalization()
const { t } = useLocalization ( )
const { t } = useLocalization ( )
return formatDatePickerToTable(value)
return formatDatePickerToTable ( value )
return formatDatePickerToTable ( value [MASK]
}
}
[MASK]
refDataTable.current.loadData()
refDataTable.current.loadData ( )
refDataTable.current.loadData ( )
}
}
}
loadDataTable()
loadDataTable ( )
loadDataTable ( [MASK]
}, [])
} , [ ] )
} , [ ] [MASK]
)
)
)
}
}
}
export default VehicleHistoryTab
export default VehicleHistoryTab
export default VehicleHistoryTab
import React, { useEffect, useRef, useState } from 'react'
import React , { useEffect , useRef , useState } from 'react '
[MASK] [MASK] , [MASK] useEffect , useRef , useState } from 'react [MASK]
} from '@protolibrary/components'
} from ' @ protolibrary/components '
[MASK] from ' [MASK] protolibrary/components [MASK]
import InputLayout from '@common/components/input-layout'
import InputLayout from ' @ common/components/input-layout '
import InputLayout from [MASK] @ common/components/input-layout '
import NoData from '@common/components/noData'
import NoData from ' @ common/components/noData '
import NoData from ' @ common/components/noData '
import TableIcon from '@common/components/table-icon'
import TableIcon from ' @ common/components/table-icon '
import TableIcon from ' @ [MASK] [MASK]
import { defaultRemoteGridOptions, prepareFilter } from '@utils/DataTableUtils'
import { defaultRemoteGridOptions , prepareFilter } from ' @ utils/DataTableUtils '
import [MASK] defaultRemoteGridOptions , prepareFilter } from ' @ utils/DataTableUtils '
import orderService, { Order } from '@services/OrderService'
import orderService , { Order } from ' @ services/OrderService '
[MASK] orderService , { Order } from ' @ services/OrderService '
import ConfirmationModal from '@common/components/confirmation-modal/ConfirmationModal'
import ConfirmationModal from ' @ common/components/confirmation-modal/ConfirmationModal '
import ConfirmationModal [MASK] ' @ common/components/confirmation-modal/ConfirmationModal '
import navigationService from '@common/navigation/NavigationService'
import navigationService from ' @ common/navigation/NavigationService '
import navigationService from ' @ common/navigation/NavigationService [MASK]
import NAVIGATION_PATHS from '@common/navigation/NavigationPaths'
import NAVIGATION_PATHS from ' @ common/navigation/NavigationPaths '
[MASK] [MASK] from ' [MASK] common/navigation/NavigationPaths '
import mockService from '@services/MockService'
import mockService from ' @ services/MockService '
import mockService from [MASK] @ services/MockService '
import { DateRangePicker } from '@common/components/datepicker'
import { DateRangePicker } from ' @ common/components/datepicker '
[MASK] { DateRangePicker } [MASK] ' @ common/components/datepicker '
import { formatDatePickerToApi } from '@utils/DateUtils'
import { formatDatePickerToApi } from ' @ utils/DateUtils '
import { formatDatePickerToApi } from [MASK] @ utils/DateUtils '
import RemoteSelect from '@common/components/remote-select'
import RemoteSelect from ' @ common/components/remote-select '
import RemoteSelect from ' @ [MASK] [MASK]
import customerService from '@services/CustomerService'
import customerService from ' @ services/CustomerService '
import customerService from ' @ services/CustomerService [MASK]
import projectService from '@services/ProjectService'
import projectService from ' @ services/ProjectService '
import [MASK] from ' @ services/ProjectService '
import useLocalization from '@hooks/useLocalization'
import useLocalization from ' @ hooks/useLocalization '
[MASK] useLocalization [MASK] ' @ hooks/useLocalization '
const refForm = useRef(null)
const refForm = useRef ( null )
const refForm [MASK] useRef ( null )
const refDataTable = useRef(null)
const refDataTable = useRef ( null )
const [MASK] = useRef [MASK] null )
const [showConfirmModal, setShowConfirmModal] = useState(false)
const [ showConfirmModal , setShowConfirmModal ] = useState ( false )
const [ showConfirmModal , setShowConfirmModal ] = useState ( false )
const [deleteData, setDeleteData] = useState<Order>(null)
const [ deleteData , setDeleteData ] = useState < Order > ( null )
const [ [MASK] , setDeleteData ] = useState < Order > ( null [MASK]
const { t } = useLocalization()
const { t } = useLocalization ( )
[MASK] { t } = useLocalization ( [MASK]
loadData()
loadData ( )
loadData ( )
}
}
}
})
} )
} [MASK]
}
}
}
const vehicles = data as any[]
const vehicles = data as any [ ]
const [MASK] = data as any [ ]
)
)
)
)
)
)
const vehicles = data as any[]
const vehicles = data as any [ ]
const vehicles = data as any [MASK] ]
)
)
)
)
)
)