original_text
stringlengths
1
23.3k
tokenized_code
stringlengths
1
25.1k
masked_code
stringlengths
1
23.6k
style: object
style : object
style [MASK] object
close && close()
close & & close ( )
[MASK] & & close ( )
modalState.close()
modalState.close ( )
modalState.close ( )
}
}
}
close && close()
close & & close ( )
close & & close ( [MASK]
modalState.close()
modalState.close ( )
modalState.close ( )
}
}
}
close && close()
close & & close ( )
close & & close ( )
modalState.close()
modalState.close ( )
modalState.close ( )
}
}
[MASK]
close && close()
close & & close ( )
close & [MASK] close ( )
modalState.close()
modalState.close ( )
modalState.close ( )
confirmAction && confirmAction()
confirmAction & & confirmAction ( )
[MASK] & & confirmAction ( )
modalState.close()
modalState.close ( )
modalState.close [MASK] )
}
}
}
])
] )
] )
export type size = 'medium' | 'large' | 'small'
export type size = 'medium ' | 'large ' | 'small '
export type size [MASK] 'medium ' | 'large [MASK] | 'small '
| ModalTypeEnum.CONFIRMATION
| ModalTypeEnum.CONFIRMATION
| ModalTypeEnum.CONFIRMATION
type: GenericModalType
type : GenericModalType
[MASK] [MASK] GenericModalType
show: boolean
show : boolean
[MASK] : boolean
close: () => void
close : ( ) = > void
[MASK] [MASK] ( ) = > void
confirmAction?: () => void
confirmAction ? : ( ) = > void
confirmAction ? [MASK] ( ) = > void
const { windowSize, SizeEnum } = useWindowSize()
const { windowSize , SizeEnum } = useWindowSize ( )
const { windowSize , SizeEnum } = useWindowSize [MASK] )
const modalStore = useStore('modalState')
const modalStore = useStore ( 'modalState ' )
[MASK] modalStore = useStore ( 'modalState ' )
const storeSize = modalStore.size
const storeSize = modalStore.size
const storeSize = modalStore.size
let { title, body, footer, size, style } = modalMap.get(type)()
let { title , body , footer , size , style } = modalMap.get ( type ) ( )
let { title , body , footer , size [MASK] style [MASK] = modalMap.get ( type ) ( )
size = windowSize === SizeEnum.xs ? 'large' : windowSize === SizeEnum.md ? 'large' : size
size = windowSize === SizeEnum.xs ? 'large ' : windowSize === SizeEnum.md ? 'large ' : size
size = windowSize === SizeEnum.xs ? 'large ' : windowSize === SizeEnum.md ? 'large ' : size
)
)
)
GenericModal.defaultProps = defaultProps
GenericModal.defaultProps = defaultProps
GenericModal.defaultProps = defaultProps
)
)
)
)
)
)
)
)
)
export { ValidationModalBody }
export { ValidationModalBody }
export { ValidationModalBody }
export default GenericModal
export default GenericModal
export default GenericModal
import React from 'react'
import React from 'react '
import React from 'react '
import { Button } from '@protolibrary/components'
import { Button } from ' @ protolibrary/components '
import { Button } from [MASK] @ protolibrary/components '
static Primary = PrimaryButton
static Primary = PrimaryButton
static [MASK] = PrimaryButton
static Secondary = SecondaryButton
static Secondary = SecondaryButton
static Secondary = SecondaryButton
return <Button className="button--primary" {...props} />
return < Button className= '' button -- primary '' { ... props } / >
[MASK] [MASK] [MASK] [MASK] '' [MASK] [MASK] [MASK] '' { ... props } / >
return <Button className="button--secondary" {...props} />
return < Button className= '' button -- secondary '' { ... props } / >
return < Button className= '' button -- secondary '' [MASK] ... props } / >
export default GenericButton
export default GenericButton
export default GenericButton
import React from 'react'
import React from 'react '
import React from 'react '
import { required } from '@protolibrary/utils'
import { required } from ' @ protolibrary/utils '
[MASK] { required [MASK] from ' [MASK] protolibrary/utils '
import TextField from '@protoweb/textfield'
import TextField from ' @ protoweb/textfield '
import TextField [MASK] ' @ protoweb/textfield '
const re = /\S+@\S+\.\S+/
const re = /\S+ @ \S+\.\S+/
const re = /\S+ @ \S+\.\S+/
const valid = re.test(value)
const valid = re.test ( value )
const valid = re.test ( value )
return required('Hatalı email girdiniz')('')
return required ( 'Hatalı email girdiniz ' ) ( `` )
return required ( 'Hatalı email [MASK] [MASK] ) [MASK] [MASK] )
}
}
}
return <TextField maxLength={150} validations={[this.handleEmailValidation]} {...this.props} />
return < TextField maxLength= { 150 } validations= { [ this.handleEmailValidation ] } { ... this.props } / >
return [MASK] TextField maxLength= { 150 } validations= { [ [MASK] ] } { ... this.props } / [MASK]
}
}
}
export default Email
export default Email
export default Email
import React from 'react'
import React from 'react '
import React from 'react '
import Loader from 'react-loader-spinner'
import Loader from 'react-loader-spinner '
import Loader from 'react-loader-spinner '
import 'react-loader-spinner/dist/loader/css/react-spinner-loader.css'
import 'react-loader-spinner/dist/loader/css/react-spinner-loader.css '
import 'react-loader-spinner/dist/loader/css/react-spinner-loader.css '
import { Block } from '@protolibrary/components'
import { Block } from ' @ protolibrary/components '
[MASK] { Block } from ' @ [MASK] '
import COLORS from '@resources/colors'
import COLORS from ' @ resources/colors '
import COLORS from ' @ resources/colors '
)
)
)
export default Loading
export default Loading
[MASK] default Loading
import React from 'react'
import React from 'react '
import [MASK] from 'react '
import { InputHOC } from '@protoweb/utils'
import { InputHOC } from ' @ protoweb/utils '
import { InputHOC } from ' @ protoweb/utils '
import classNames from 'classnames'
import classNames from 'classnames '
import classNames from 'classnames '
import CurrencyInput from 'react-currency-input-field'
import CurrencyInput from 'react-currency-input-field '
import CurrencyInput from 'react-currency-input-field '
static displayName: string = 'currency'
static displayName : string = 'currency '
static displayName : string = 'currency '
}
}
[MASK]
if (this.props.onChange) this.props.onChange(null, item)
if ( this.props.onChange ) this.props.onChange ( null , item )
if ( this.props.onChange [MASK] this.props.onChange ( null , item )
}
}
}
this.props
this.props
this.props
)
)
)
export default InputHOC(Currency)
export default InputHOC ( Currency )
export default InputHOC ( Currency [MASK]
import React, { useState, useEffect } from 'react'
import React , { useState , useEffect } from 'react '
import [MASK] , { useState , useEffect } from 'react [MASK]
import moment from 'moment'
import moment from 'moment '
import moment from 'moment '
import './assets/style.scss'
import './assets/style.scss '
import './assets/style.scss '
import { mapNumber, SVGCircle } from './CountdownUtils'
import { mapNumber , SVGCircle } from './CountdownUtils '
import { mapNumber [MASK] [MASK] } from './CountdownUtils '
import Label from '@protoweb/label'
import Label from ' @ protoweb/label '
import Label from ' @ protoweb/label '
import { Block, Element } from '@protolibrary/components'
import { Block , Element } from ' @ protolibrary/components '
[MASK] { [MASK] , Element [MASK] from ' @ protolibrary/components '
})
} )
} )
const firstDate = moment(timeTillDate, 'YYYY-MM-DD HH:mm:ss')
const firstDate = moment ( timeTillDate , 'YYYY-MM-DD HH : mm : ss ' )
const firstDate = moment ( timeTillDate , 'YYYY-MM-DD HH : mm : ss ' )
const todayDate = moment()
const todayDate = moment ( )
const todayDate = moment ( )
const remainingDays = firstDate.diff(todayDate, 'days')
const remainingDays = firstDate.diff ( todayDate , 'days ' )
const remainingDays = firstDate.diff ( [MASK] , 'days [MASK] )
const remainingHours = firstDate.diff(todayDate, 'hours') % 24
const remainingHours = firstDate.diff ( todayDate , 'hours ' ) % 24
const remainingHours = firstDate.diff ( todayDate , 'hours ' ) [MASK] 24
const remainingMinutes = firstDate.diff(todayDate, 'minutes') % 60
const remainingMinutes = firstDate.diff ( todayDate , 'minutes ' ) % 60
const remainingMinutes = firstDate.diff ( [MASK] , 'minutes [MASK] ) % 60
const remainingSeconds = firstDate.diff(todayDate, 'seconds') % 60
const remainingSeconds = firstDate.diff ( todayDate , 'seconds ' ) % 60
const remainingSeconds = firstDate.diff ( todayDate , 'seconds ' ) % 60
})
} )
} )
}, 1000)
} , 1000 )
} [MASK] 1000 )
clearInterval(interval)
clearInterval ( interval )
[MASK] ( [MASK] [MASK]
}
}
}
}, [timeTillDate])
} , [ timeTillDate ] )
} [MASK] [ timeTillDate ] )
const { days, hours, minutes, seconds } = time
const { days , hours , minutes , seconds } = time
[MASK] { [MASK] , hours , minutes , seconds } = time
const daysRadius = mapNumber(days, 30, 0, 0, 360)
const daysRadius = mapNumber ( days , 30 , 0 , 0 , 360 )
const daysRadius = [MASK] ( days , 30 , 0 , 0 , 360 )
const hoursRadius = mapNumber(hours, 24, 0, 0, 360)
const hoursRadius = mapNumber ( hours , 24 , 0 , 0 , 360 )
const [MASK] [MASK] mapNumber ( hours , [MASK] , 0 [MASK] 0 , 360 )
const minutesRadius = mapNumber(minutes, 60, 0, 0, 360)
const minutesRadius = mapNumber ( minutes , 60 , 0 , 0 , 360 )
[MASK] minutesRadius = [MASK] ( minutes , 60 , [MASK] , 0 , 360 )
const secondsRadius = mapNumber(seconds, 60, 0, 0, 360)
const secondsRadius = mapNumber ( seconds , 60 , 0 , 0 , 360 )
const secondsRadius = mapNumber ( seconds , 60 [MASK] 0 , 0 , 360 )
)
)
)
}
}
}
export default Countdown
export default Countdown
export default Countdown
import React from 'react'
import React from 'react '
import React from 'react '
)
)
)
const angleInRadians = ((angleInDegrees - 90) * Math.PI) / 180.0
const angleInRadians = ( ( angleInDegrees - 90 ) * Math.PI ) / 180.0
const angleInRadians [MASK] ( ( angleInDegrees - 90 ) * Math.PI ) [MASK] 180.0
}
}
}
}
}
}