original_text
stringlengths 1
23.3k
| tokenized_code
stringlengths 1
25.1k
| masked_code
stringlengths 1
23.6k
|
|---|---|---|
return ''
|
return ``
|
[MASK] ``
|
}
|
}
|
}
|
let dateFormat = withTime ? `dd.MM.yyyy HH:mm:ss` : 'dd.MM.yyyy'
|
let dateFormat = withTime ? ` dd.MM.yyyy HH : mm : ss ` : 'dd.MM.yyyy '
|
let dateFormat = withTime ? ` [MASK] HH : mm : ss ` : 'dd.MM.yyyy '
|
return format(new Date(date), dateFormat)
|
return format ( new Date ( date ) , dateFormat )
|
return format ( new Date [MASK] date ) , dateFormat )
|
return ''
|
return ``
|
return ``
|
}
|
}
|
}
|
var utc_days = Math.floor(serial - 25569)
|
var utc_days = Math.floor ( serial - 25569 )
|
var utc_days = Math.floor ( serial - 25569 )
|
var utc_value = utc_days * 86400
|
var utc_value = utc_days * 86400
|
var utc_value = utc_days * 86400
|
var date_info = new Date(utc_value * 1000)
|
var date_info = new Date ( utc_value * 1000 )
|
var date_info = new Date [MASK] utc_value * 1000 )
|
return new Date(date_info.getFullYear(), date_info.getMonth(), date_info.getDate())
|
return new Date ( date_info.getFullYear ( ) , date_info.getMonth ( ) , date_info.getDate ( ) )
|
return new Date ( date_info.getFullYear ( ) , date_info.getMonth [MASK] ) , date_info.getDate ( ) )
|
return null
|
return null
|
return [MASK]
|
}
|
}
|
}
|
const date = excelDate(serial)
|
const date = excelDate ( serial )
|
const [MASK] = [MASK] ( [MASK] )
|
let dateFormat = withTime ? `yyyy-MM-dd'T'HH:mm:ss.SSSxxx` : 'yyyy-MM-dd'
|
let dateFormat = withTime ? ` yyyy-MM-dd'T'HH : mm : ss.SSSxxx ` : 'yyyy-MM-dd '
|
let dateFormat = withTime ? [MASK] yyyy-MM-dd'T'HH [MASK] mm : ss.SSSxxx ` : 'yyyy-MM-dd '
|
return format(date, dateFormat)
|
return format ( date , dateFormat )
|
return format ( date , dateFormat )
|
}
|
}
|
}
|
const date = excelDate(serial)
|
const date = excelDate ( serial )
|
[MASK] date = excelDate ( [MASK] )
|
return format(date, 'dd.MM.yyyy')
|
return format ( date , 'dd.MM.yyyy ' )
|
return format ( date [MASK] 'dd.MM.yyyy ' [MASK]
|
}
|
}
|
}
|
const currentDate = new Date()
|
const currentDate = new Date ( )
|
const currentDate = new Date ( )
|
const birthDateObj = new Date(birthDate)
|
const birthDateObj = new Date ( birthDate )
|
const [MASK] = [MASK] Date ( [MASK] )
|
let age = currentDate.getFullYear() - birthDateObj.getFullYear()
|
let age = currentDate.getFullYear ( ) - birthDateObj.getFullYear ( )
|
let age = currentDate.getFullYear ( ) - birthDateObj.getFullYear [MASK] )
|
age--
|
age --
|
[MASK] --
|
return age
|
return age
|
return age
|
}
|
}
|
}
|
const first = moment([firstDate.getFullYear(), firstDate.getMonth(), firstDate.getDate()])
|
const first = moment ( [ firstDate.getFullYear ( ) , firstDate.getMonth ( ) , firstDate.getDate ( ) ] )
|
const [MASK] = [MASK] ( [ firstDate.getFullYear ( ) , firstDate.getMonth ( ) , firstDate.getDate ( ) [MASK] )
|
const second = moment([secondDate.getFullYear(), secondDate.getMonth(), secondDate.getDate()])
|
const second = moment ( [ secondDate.getFullYear ( ) , secondDate.getMonth ( ) , secondDate.getDate ( ) ] )
|
const second = moment ( [ secondDate.getFullYear ( ) , secondDate.getMonth ( ) [MASK] [MASK] ( ) ] )
|
return first.diff(second, 'days')
|
return first.diff ( second , 'days ' )
|
return first.diff ( second , 'days ' )
|
}
|
}
|
}
|
}
|
}
|
[MASK]
|
import { currencyFormat } from './AmountUtils'
|
import { currencyFormat } from './AmountUtils '
|
import { currencyFormat } from './AmountUtils '
|
return array.find((c: any) => String(c?.clauseId) === String(object?.id))
|
return array.find ( ( c : any ) = > String ( c ? .clauseId ) === String ( object ? .id ) )
|
return array.find ( ( c : any ) = > String ( c [MASK] .clauseId [MASK] === String ( object ? .id ) )
|
}
|
}
|
}
|
const total = array.reduce((sum, item) => sum + Number(item[valueField]), 0)
|
const total = array.reduce ( ( sum , item ) = > sum + Number ( item [ valueField ] ) , 0 )
|
const total = array.reduce ( ( [MASK] , item ) = > sum + Number ( item [ [MASK] [MASK] [MASK] , 0 )
|
return shouldFormat ? currencyFormat(total) : total
|
return shouldFormat ? currencyFormat ( total ) : total
|
return shouldFormat ? currencyFormat [MASK] total ) : total
|
}
|
}
|
}
|
import applicationProperties from '@resources/properties/ApplicationProperties'
|
import applicationProperties from ' @ resources/properties/ApplicationProperties '
|
import [MASK] from ' @ resources/properties/ApplicationProperties '
|
static isAndroid = (): boolean => false
|
static isAndroid = ( ) : boolean = > false
|
static isAndroid = ( ) : [MASK] [MASK] > [MASK]
|
static isIOS = (): boolean => false
|
static isIOS = ( ) : boolean = > false
|
static isIOS = ( ) : [MASK] = > false
|
static screenHeight = () => window.screen.height
|
static screenHeight = ( ) = > window.screen.height
|
static screenHeight = [MASK] ) = > window.screen.height
|
static screenWidth = () => window.screen.width
|
static screenWidth = ( ) = > window.screen.width
|
[MASK] screenWidth = ( ) = > window.screen.width
|
static isMobile = (): boolean => applicationProperties.platform === 'mobile'
|
static isMobile = ( ) : boolean = > applicationProperties.platform === 'mobile '
|
static [MASK] = ( [MASK] : boolean = > applicationProperties.platform === 'mobile '
|
var RateRegex = /^(?:100|\d{1,2})$/
|
var RateRegex = /^ ( ? :100|\d { 1,2 } ) $ /
|
var RateRegex = /^ ( ? :100|\d { 1,2 [MASK] ) $ /
|
var NUMERIC_REGEX = /^(([0-9]*)|(([0-9]*)\.([0-9]*)))$/
|
var NUMERIC_REGEX = /^ ( ( [ 0-9 ] * ) | ( ( [ 0-9 ] * ) \ . ( [ 0-9 ] * ) ) ) $ /
|
var NUMERIC_REGEX [MASK] [MASK] ( [MASK] [MASK] 0-9 ] * ) [MASK] ( ( [ 0-9 ] * [MASK] [MASK] . ( [ 0-9 ] [MASK] [MASK] ) ) $ /
|
var NO_DOT_NUMERIC_REGEX = /^[0-9]+$/
|
var NO_DOT_NUMERIC_REGEX = /^ [ 0-9 ] + $ /
|
var NO_DOT_NUMERIC_REGEX = /^ [ 0-9 ] + $ /
|
var NO_SPACE_REGEX = /^\S*$/
|
var NO_SPACE_REGEX = /^\S * $ /
|
var NO_SPACE_REGEX = [MASK] * $ [MASK]
|
var STRING_REGEX = /.*/
|
var STRING_REGEX = / . * /
|
var STRING_REGEX = / [MASK] [MASK] /
|
/^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$/gi
|
/^ ( ( [ 0-9 ] | [ 1-9 ] [ 0-9 ] |1 [ 0-9 ] { 2 } |2 [ 0-4 ] [ 0-9 ] |25 [ 0-5 ] ) \ . ) { 3 } ( [ 0-9 ] | [ 1-9 ] [ 0-9 ] |1 [ 0-9 ] { 2 } |2 [ 0-4 ] [ 0-9 ] |25 [ 0-5 ] ) $ /gi
|
/^ ( ( [ 0-9 ] | [ 1-9 ] [ 0-9 [MASK] |1 [ 0-9 [MASK] { 2 } |2 [ [MASK] ] [MASK] 0-9 [MASK] |25 [MASK] 0-5 ] ) [MASK] . ) { 3 } [MASK] [ 0-9 ] | [ 1-9 ] [ 0-9 [MASK] |1 [MASK] 0-9 ] [MASK] 2 } [MASK] [ [MASK] ] [ 0-9 ] |25 [MASK] 0-5 [MASK] [MASK] [MASK] /gi
|
var MAIL_REGEX = /.+@.+\.[A-Za-z]+$/
|
var MAIL_REGEX = /.+ @ .+\ . [ A-Za-z ] + $ /
|
var MAIL_REGEX = /.+ @ .+\ . [ [MASK] ] + $ /
|
var MaxValidSecond = /^(?:[1-9]|1[01])$/
|
var MaxValidSecond = /^ ( ? : [ 1-9 ] |1 [ 01 ] ) $ /
|
var MaxValidSecond [MASK] /^ [MASK] ? : [ 1-9 ] |1 [ 01 ] ) $ /
|
var ParameterCount = /^[0-9]$/
|
var ParameterCount = /^ [ 0-9 ] $ /
|
[MASK] [MASK] [MASK] /^ [ 0-9 [MASK] $ /
|
var COVER_AGE = /^(100|[1-9][0-9]?|0)$/
|
var COVER_AGE = /^ ( 100| [ 1-9 ] [ 0-9 ] ? |0 ) $ /
|
var COVER_AGE [MASK] /^ ( 100| [ [MASK] ] [ 0-9 ] ? |0 ) $ [MASK]
|
var ONLY_INTEGER_REGEX = /^\d+$/
|
var ONLY_INTEGER_REGEX = /^\d+ $ /
|
var ONLY_INTEGER_REGEX = /^\d+ [MASK] /
|
var ONLY_DASHES = /^[a-zA-Z0-9-]*$/
|
var ONLY_DASHES = /^ [ a-zA-Z0-9- ] * $ /
|
var ONLY_DASHES = /^ [ a-zA-Z0-9- ] * $ /
|
}
|
}
|
}
|
let newUrl = baseUrl
|
let newUrl = baseUrl
|
let newUrl = baseUrl
|
newUrl = newUrl + '/' + param
|
newUrl = newUrl + '/ ' + param
|
newUrl = newUrl + '/ ' [MASK] param
|
})
|
} )
|
} )
|
return newUrl
|
return newUrl
|
return newUrl
|
}
|
}
|
}
|
export { requestPathParams }
|
export { requestPathParams }
|
export { requestPathParams [MASK]
|
var link = document.createElement('a')
|
var link = document.createElement ( ' a ' )
|
var link = document.createElement ( ' a ' [MASK]
|
'data:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
|
'data : application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
|
'data [MASK] application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
|
encodeURIComponent(data)
|
encodeURIComponent ( data )
|
encodeURIComponent ( [MASK] [MASK]
|
link.setAttribute('download', filename)
|
link.setAttribute ( 'download ' , filename )
|
link.setAttribute ( 'download ' , filename )
|
link.style.display = 'none'
|
link.style.display = 'none '
|
link.style.display = 'none '
|
document.body.appendChild(link)
|
document.body.appendChild ( link )
|
document.body.appendChild ( [MASK] )
|
link.click()
|
link.click ( )
|
link.click ( )
|
document.body.removeChild(link)
|
document.body.removeChild ( link )
|
[MASK] [MASK] link )
|
}
|
}
|
}
|
var link = document.createElement('a')
|
var link = document.createElement ( ' a ' )
|
var link [MASK] document.createElement ( [MASK] a ' [MASK]
|
link.href = 'data:application/pdf
|
link.href = 'data : application/pdf
|
link.href = 'data : application/pdf
|
base64,' + encodeURIComponent(data)
|
base64 , ' + encodeURIComponent ( data )
|
[MASK] , ' + encodeURIComponent [MASK] data )
|
link.setAttribute('download', filename)
|
link.setAttribute ( 'download ' , filename )
|
link.setAttribute ( 'download ' , filename )
|
link.style.display = 'none'
|
link.style.display = 'none '
|
[MASK] = 'none '
|
document.body.appendChild(link)
|
document.body.appendChild ( link )
|
document.body.appendChild ( link )
|
link.click()
|
link.click ( )
|
link.click ( )
|
document.body.removeChild(link)
|
document.body.removeChild ( link )
|
document.body.removeChild ( link [MASK]
|
}
|
}
|
}
|
var link = document.createElement('a')
|
var link = document.createElement ( ' a ' )
|
[MASK] link [MASK] document.createElement ( ' a ' )
|
link.href = `data:application/${fileType}
|
link.href = ` data : application/ $ { fileType }
|
link.href = ` data : application/ $ [MASK] fileType }
|
base64,` + data
|
base64 , ` + data
|
base64 , ` + data
|
link.setAttribute('download', filename)
|
link.setAttribute ( 'download ' , filename )
|
link.setAttribute ( 'download ' , [MASK] )
|
link.style.display = 'none'
|
link.style.display = 'none '
|
link.style.display = 'none '
|
document.body.appendChild(link)
|
document.body.appendChild ( link )
|
[MASK] [MASK] link )
|
link.click()
|
link.click ( )
|
link.click [MASK] )
|
document.body.removeChild(link)
|
document.body.removeChild ( link )
|
document.body.removeChild ( link )
|
}
|
}
|
[MASK]
|
const fileReader = new FileReader()
|
const fileReader = new FileReader ( )
|
const fileReader = new FileReader ( )
|
fileReader.readAsDataURL(file)
|
fileReader.readAsDataURL ( file )
|
fileReader.readAsDataURL ( file )
|
resolve((fileReader.result as string).split(',')[1])
|
resolve ( ( fileReader.result as string ) .split ( ' , ' ) [ 1 ] )
|
resolve ( ( fileReader.result as string ) .split ( ' [MASK] [MASK] ) [ 1 ] )
|
}
|
}
|
}
|
reject(error)
|
reject ( error )
|
reject ( error )
|
}
|
}
|
}
|
})
|
} )
|
} )
|
}
|
}
|
}
|
export { DownloadExcelTemplate, DownloadPdfFile, convertToBase64, downloadFile }
|
export { DownloadExcelTemplate , DownloadPdfFile , convertToBase64 , downloadFile }
|
export { DownloadExcelTemplate , DownloadPdfFile , [MASK] , downloadFile }
|
svgString = svgString.replace(/fill=["'](?!none)(.*?)["']/g, 'fill="' + newColor + '"')
|
svgString = svgString.replace ( /fill= [ `` ' ] ( ? ! none ) ( . * ? ) [ `` ' ] /g , 'fill= '' ' + newColor + ' '' ' )
|
svgString = svgString.replace ( /fill= [ `` ' ] ( ? ! none ) ( . * ? ) [MASK] `` ' ] [MASK] [MASK] 'fill= '' [MASK] + newColor + ' '' [MASK] )
|
svgString = svgString.replace(/stroke=["'](?!none)(.*?)["']/g, 'stroke="' + newColor + '"')
|
svgString = svgString.replace ( /stroke= [ `` ' ] ( ? ! none ) ( . * ? ) [ `` ' ] /g , 'stroke= '' ' + newColor + ' '' ' )
|
svgString = svgString.replace ( /stroke= [ `` ' ] ( ? ! none ) ( . * [MASK] ) [ `` ' ] /g [MASK] 'stroke= '' ' + newColor + ' '' ' )
|
return svgString
|
return svgString
|
return svgString
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.