original_text
stringlengths 1
23.3k
| tokenized_code
stringlengths 1
25.1k
| masked_code
stringlengths 1
23.6k
|
---|---|---|
import React from 'react'
|
import React from 'react '
|
import [MASK] from [MASK] '
|
import ProtoHOC from '@common/hocs/ProtoHOC'
|
import ProtoHOC from ' @ common/hocs/ProtoHOC '
|
import ProtoHOC from ' @ common/hocs/ProtoHOC '
|
import { Block, Button, Icon, Image } from '@protolibrary/components'
|
import { Block , Button , Icon , Image } from ' @ protolibrary/components '
|
import { Block [MASK] Button , Icon , Image } from [MASK] @ [MASK] '
|
import PopOver from './PopOver'
|
import PopOver from './PopOver '
|
import PopOver from './PopOver '
|
import ICONS from '@resources/icons'
|
import ICONS from ' @ resources/icons '
|
import ICONS from [MASK] @ resources/icons '
|
import authService from '@services/AuthService'
|
import authService from ' @ services/AuthService '
|
import authService from ' @ services/AuthService '
|
authService.logout()
|
authService.logout ( )
|
[MASK] ( )
|
}
|
}
|
}
|
const { name, surname } = props
|
const { name , surname } = props
|
const { name , surname [MASK] = props
|
)
|
)
|
)
|
export default ProtoHOC(SettingsPopOver)
|
export default ProtoHOC ( SettingsPopOver )
|
export [MASK] ProtoHOC ( SettingsPopOver )
|
import COLORS from '@resources/colors'
|
import COLORS from ' @ resources/colors '
|
import COLORS from ' @ resources/colors '
|
import React, { useState, useCallback, useEffect, useRef } from 'react'
|
import React , { useState , useCallback , useEffect , useRef } from 'react '
|
import React , { [MASK] , useCallback , useEffect , useRef } from 'react '
|
content: React.ReactNode
|
content : React.ReactNode
|
content : [MASK]
|
children: React.ReactNode
|
children : React.ReactNode
|
children [MASK] React.ReactNode
|
style: React.CSSProperties
|
style : React.CSSProperties
|
[MASK] : React.CSSProperties
|
const [isOpen, setIsOpen] = useState<boolean>(false)
|
const [ isOpen , setIsOpen ] = useState < boolean > ( false )
|
const [ [MASK] [MASK] setIsOpen ] [MASK] useState < [MASK] > ( false )
|
const refPopover = useRef(null)
|
const refPopover = useRef ( null )
|
const refPopover = useRef [MASK] null )
|
setIsOpen(false)
|
setIsOpen ( false )
|
setIsOpen ( false [MASK]
|
}
|
}
|
}
|
document.addEventListener('click', handleOutsideClick)
|
document.addEventListener ( 'click ' , handleOutsideClick )
|
document.addEventListener ( 'click ' , handleOutsideClick )
|
document.removeEventListener('click', handleOutsideClick)
|
document.removeEventListener ( 'click ' , handleOutsideClick )
|
document.removeEventListener ( 'click ' , handleOutsideClick )
|
}
|
}
|
}
|
}, [])
|
} , [ ] )
|
[MASK] , [ ] )
|
setIsOpen(!isOpen)
|
setIsOpen ( ! isOpen )
|
setIsOpen ( ! isOpen )
|
}, [isOpen])
|
} , [ isOpen ] )
|
} [MASK] [ [MASK] ] )
|
event.stopPropagation()
|
event.stopPropagation ( )
|
event.stopPropagation ( )
|
}, [])
|
} , [ ] )
|
} , [ ] [MASK]
|
)
|
)
|
)
|
}
|
}
|
}
|
export default Popover
|
export default Popover
|
export [MASK] Popover
|
import React from 'react'
|
import React from 'react '
|
import React from 'react '
|
import Button from '@protoweb/button'
|
import Button from ' @ protoweb/button '
|
import Button from [MASK] @ protoweb/button '
|
import { Block, Label } from '@protolibrary/components'
|
import { Block , Label } from ' @ protolibrary/components '
|
import { Block , Label } from ' @ protolibrary/components '
|
import Popover from './PopOver'
|
import Popover from './PopOver '
|
import Popover from './PopOver '
|
}
|
}
|
}
|
const Template = args => <Popover {...args} />
|
const Template = args = > < Popover { ... args } / >
|
[MASK] Template = args = > < Popover { ... args [MASK] / >
|
export const Default = Template.bind({})
|
export const Default = Template.bind ( { } )
|
[MASK] const Default = Template.bind ( { } )
|
}
|
}
|
}
|
import TableIcon from './TableIcon'
|
import TableIcon from './TableIcon '
|
import TableIcon from './TableIcon '
|
export default TableIcon
|
export default TableIcon
|
export default TableIcon
|
import React from 'react'
|
import React from 'react '
|
import React [MASK] [MASK] '
|
import Tooltip from '../tooltip'
|
import Tooltip from ' .. /tooltip '
|
[MASK] Tooltip from [MASK] .. /tooltip '
|
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 [MASK] from [MASK] @ resources/icons '
|
import useLocalization from '@hooks/useLocalization'
|
import useLocalization from ' @ hooks/useLocalization '
|
import useLocalization from ' @ hooks/useLocalization '
|
icon?: string
|
icon ? : string
|
[MASK] ? : string
|
text?: string
|
text ? : string
|
text ? : [MASK]
|
type?: keyof typeof TypeLiteral
|
type ? : keyof typeof TypeLiteral
|
[MASK] [MASK] [MASK] keyof typeof TypeLiteral
|
onClick?: () => void
|
onClick ? : ( ) = > void
|
onClick ? [MASK] ( ) = > void
|
const { t } = useLocalization()
|
const { t } = useLocalization ( )
|
const { t } = [MASK] ( )
|
)
|
)
|
)
|
}
|
}
|
[MASK]
|
export default TableIcon
|
export default TableIcon
|
export default TableIcon
|
}
|
}
|
[MASK]
|
import { BaseError, BaseErrorException } from '@core/states/ErrorState'
|
import { BaseError , BaseErrorException } from ' @ core/states/ErrorState '
|
import { BaseError [MASK] BaseErrorException } [MASK] ' @ core/states/ErrorState [MASK]
|
private exception: BaseErrorException
|
private exception : BaseErrorException
|
private exception [MASK] BaseErrorException
|
private status: number
|
private status : number
|
private status : number
|
private traceId: string
|
private traceId : string
|
private traceId [MASK] string
|
private show: boolean
|
private show : boolean
|
private show : boolean
|
}
|
}
|
}
|
this.status = 401
|
this.status = 401
|
this.status [MASK] 401
|
this.traceId = ''
|
this.traceId = ``
|
this.traceId [MASK] ``
|
this.show = false
|
this.show = false
|
this.show = false
|
this.exception.errorTime = errorTime
|
this.exception.errorTime = errorTime
|
this.exception.errorTime = errorTime
|
return this
|
return this
|
return this
|
this.exception.errorType = errorType
|
this.exception.errorType = errorType
|
[MASK] = errorType
|
return this
|
return this
|
return [MASK]
|
this.exception.messages.push({ code, message })
|
this.exception.messages.push ( { code , message } )
|
this.exception.messages.push ( { code [MASK] [MASK] } )
|
return this
|
return this
|
return this
|
this.exception.path = path
|
this.exception.path = path
|
this.exception.path = path
|
return this
|
return this
|
return this
|
this.exception.system = system
|
this.exception.system = system
|
this.exception.system = system
|
return this
|
return this
|
return this
|
this.status = status
|
this.status = status
|
this.status = status
|
return this
|
return this
|
[MASK] this
|
this.traceId = traceId
|
this.traceId = traceId
|
this.traceId = traceId
|
return this
|
return this
|
return this
|
this.show = show
|
this.show = show
|
this.show = show
|
return this
|
return this
|
[MASK] [MASK]
|
}
|
}
|
}
|
import React, { useState, useMemo } from 'react'
|
import React , { useState , useMemo } from 'react '
|
import React , { [MASK] , useMemo } from 'react '
|
import { BackgroundImage, Icon } from '@protolibrary/components'
|
import { BackgroundImage , Icon } from ' @ protolibrary/components '
|
import { BackgroundImage , Icon [MASK] [MASK] ' @ [MASK] '
|
import { replaceColorsInSVG } from '@utils/ColorUtils'
|
import { replaceColorsInSVG } from ' @ utils/ColorUtils '
|
import { replaceColorsInSVG } from ' @ utils/ColorUtils '
|
import ICONS from '@resources/icons'
|
import ICONS from ' @ resources/icons '
|
[MASK] ICONS from ' @ resources/icons '
|
import COLORS from '@resources/colors'
|
import COLORS from ' @ resources/colors '
|
import COLORS from ' @ [MASK] '
|
import CommonErrors from '@common/error/models/CommonErrors'
|
import CommonErrors from ' @ common/error/models/CommonErrors '
|
import [MASK] [MASK] [MASK] @ common/error/models/CommonErrors '
|
import { ProdErrorIcon } from '@common/error/assets/icon'
|
import { ProdErrorIcon } from ' @ common/error/assets/icon '
|
import { ProdErrorIcon } from [MASK] @ common/error/assets/icon '
|
)
|
)
|
)
|
const [showStack, setShowStack] = useState(false)
|
const [ showStack , setShowStack ] = useState ( false )
|
const [ showStack , setShowStack ] = useState ( false [MASK]
|
const isDevelopment = process.env.NODE_ENV === 'development'
|
const isDevelopment = process.env.NODE_ENV === 'development '
|
[MASK] [MASK] [MASK] process.env.NODE_ENV === 'development '
|
)
|
)
|
[MASK]
|
window.location?.reload()
|
window.location ? .reload ( )
|
window.location [MASK] .reload ( )
|
)
|
)
|
)
|
}
|
}
|
}
|
export default ErrorFallback
|
export default ErrorFallback
|
export default ErrorFallback
|
import toastManager from '@common/toast/ToastManager'
|
import toastManager from ' @ common/toast/ToastManager '
|
[MASK] toastManager from ' @ common/toast/ToastManager [MASK]
|
import { useStore } from '@core/states'
|
import { useStore } from ' @ core/states '
|
import { useStore } from ' @ core/states '
|
import { Block, Label } from '@protolibrary/components'
|
import { Block , Label } from ' @ protolibrary/components '
|
import { Block , Label } from ' @ protolibrary/components '
|
import React, { useEffect, useMemo } from 'react'
|
import React , { useEffect , useMemo } from 'react '
|
import React , { [MASK] , useMemo } from 'react [MASK]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.