original_text
stringlengths 1
23.3k
| tokenized_code
stringlengths 1
25.1k
| masked_code
stringlengths 1
23.6k
|
---|---|---|
return this.props.placeholder | return this.props.placeholder | [MASK] [MASK] |
} | } | } |
let sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB'] | let sizes = [ 'Bytes ' , 'KB ' , 'MB ' , 'GB ' , 'TB ' ] | let [MASK] = [ 'Bytes ' , [MASK] [MASK] , 'MB ' , 'GB ' [MASK] 'TB [MASK] [MASK] |
if (bytes == 0) return '0 Byte' | if ( bytes == 0 ) return ' 0 Byte ' | if [MASK] bytes == 0 [MASK] return ' 0 Byte ' |
let i = parseInt(String(Math.floor(Math.log(bytes) / Math.log(1024)))) | let i = parseInt ( String ( Math.floor ( Math.log ( bytes ) / Math.log ( 1024 ) ) ) ) | let i = parseInt ( String ( Math.floor [MASK] Math.log ( bytes [MASK] / Math.log ( 1024 ) ) ) ) |
return Math.round(bytes / Math.pow(1024, i), 2) + ' ' + sizes[i] | return Math.round ( bytes / Math.pow ( 1024 , i ) , 2 ) + ' ' + sizes [ i ] | return Math.round ( [MASK] / Math.pow ( 1024 , i ) [MASK] 2 ) + ' ' + sizes [ i ] |
} | } | } |
this.textInput = el | this.textInput = el | this.textInput = [MASK] |
Array.from(this.state.files).map((item: { name: string | Array.from ( this.state.files ) .map ( ( item : { name : string | Array.from ( this.state.files ) .map [MASK] ( item : { name : string |
const a = item | const a = item | [MASK] a = item |
this.handleDeleteClick(e, item) | this.handleDeleteClick ( e , item ) | this.handleDeleteClick ( e [MASK] [MASK] ) |
) | ) | ) |
) | ) | ) |
export default InputHOC<any>(FileUpload) | export default InputHOC < any > ( FileUpload ) | export [MASK] InputHOC < [MASK] > ( FileUpload ) |
import React from 'react' | import React from 'react ' | import React from 'react ' |
import FileUpload from './FileUpload' | import FileUpload from './FileUpload ' | [MASK] FileUpload from './FileUpload [MASK] |
import Form from '@protoweb/form' | import Form from ' @ protoweb/form ' | import Form [MASK] ' [MASK] [MASK] [MASK] |
} | } | [MASK] |
const Template = args => <FileUpload {...args} partofform={false} /> | const Template = args = > < FileUpload { ... args } partofform= { false } / > | const Template = args = [MASK] < FileUpload { [MASK] args } partofform= { false } / > |
export const Default = Template.bind({}) | export const Default = Template.bind ( { } ) | export const Default = Template.bind ( { } ) |
} | } | } |
) | ) | ) |
export const FormUsage = TemplateFormUsage.bind({}) | export const FormUsage = TemplateFormUsage.bind ( { } ) | export const FormUsage [MASK] TemplateFormUsage.bind ( { } ) |
} | } | } |
import React, { Component } from 'react' | import React , { Component } from 'react ' | import React , { Component } from [MASK] ' |
import PropTypes from 'prop-types' | import PropTypes from 'prop-types ' | import PropTypes [MASK] 'prop-types ' |
import Select from '@protoweb/select' | import Select from ' @ protoweb/select ' | import Select [MASK] ' @ protoweb/select ' |
import Label from '@protoweb/label' | import Label from ' @ protoweb/label ' | import Label from ' @ protoweb/label [MASK] |
import Button from '@protoweb/button' | import Button from ' @ protoweb/button ' | import Button from ' @ [MASK] ' |
import Col from '@protoweb/col' | import Col from ' @ protoweb/col ' | import [MASK] from ' @ protoweb/col ' |
import Row from '@protoweb/row' | import Row from ' @ protoweb/row ' | import Row from ' @ protoweb/row ' |
} | } | [MASK] |
super(props) | super ( props ) | super ( props ) |
} | } | } |
this.handleFileTypeOnChange = this.handleFileTypeOnChange.bind(this) | this.handleFileTypeOnChange = this.handleFileTypeOnChange.bind ( this ) | this.handleFileTypeOnChange = this.handleFileTypeOnChange.bind ( this ) |
this.handleOnFileDelete = this.handleOnFileDelete.bind(this) | this.handleOnFileDelete = this.handleOnFileDelete.bind ( this ) | this.handleOnFileDelete = this.handleOnFileDelete.bind ( this ) |
this.props.onFileTypeChange(value, this.props.fileName) | this.props.onFileTypeChange ( value , this.props.fileName ) | this.props.onFileTypeChange ( [MASK] , this.props.fileName ) |
}) | } ) | } ) |
this.props.onFileDelete(this.props.fileName) | this.props.onFileDelete ( this.props.fileName ) | this.props.onFileDelete [MASK] this.props.fileName ) |
) | ) | ) |
export default FileItem | export default FileItem | export default FileItem |
import ContentWrapper from './ContentWrapper' | import ContentWrapper from './ContentWrapper ' | import ContentWrapper from './ContentWrapper ' |
export default ContentWrapper | export default ContentWrapper | export default ContentWrapper |
import { Block } from '@protolibrary/components' | import { Block } from ' @ protolibrary/components ' | import { Block } from ' @ protolibrary/components ' |
import React from 'react' | import React from 'react ' | import React from 'react ' |
import './assets/style.scss' | import './assets/style.scss ' | import [MASK] ' |
children: any | children : any | children : any |
) | ) | ) |
} | } | } |
export default ContentWrapper | export default ContentWrapper | export default ContentWrapper |
import React from 'react' | import React from 'react ' | import React from 'react ' |
import { Block, Label } from '@protolibrary/components' | import { Block , Label } from ' @ protolibrary/components ' | import [MASK] Block , Label [MASK] from ' @ protolibrary/components [MASK] |
import ContentWrapper from './ContentWrapper' | import ContentWrapper from './ContentWrapper ' | import [MASK] [MASK] [MASK] ' |
import './assets/style.scss' | import './assets/style.scss ' | import './assets/style.scss ' |
} | } | } |
const Template = args => <ContentWrapper {...args} /> | const Template = args = > < ContentWrapper { ... args } / > | const Template = [MASK] = > < ContentWrapper { ... args [MASK] / > |
export const Default = Template.bind({}) | export const Default = Template.bind ( { } ) | export const [MASK] = Template.bind ( { } ) |
} | } | } |
import DropDown from './DropDown' | import DropDown from './DropDown ' | import DropDown from './DropDown ' |
import DropDownItem from './DropDownItem' | import DropDownItem from './DropDownItem ' | [MASK] DropDownItem from './DropDownItem ' |
export { DropDownItem } | export { DropDownItem } | export { DropDownItem } |
export default DropDown | export default DropDown | [MASK] default DropDown |
import React, { useEffect, useState } from 'react' | import React , { useEffect , useState } from 'react ' | import React , [MASK] useEffect , useState } from 'react ' |
import { usePopper } from 'react-popper' | import { usePopper } from 'react-popper ' | import [MASK] usePopper } from [MASK] ' |
import ReactDOM from 'react-dom' | import ReactDOM from 'react-dom ' | import ReactDOM from 'react-dom ' |
import { Block, Icon, Label } from '@protolibrary/components' | import { Block , Icon , Label } from ' @ protolibrary/components ' | import { Block , [MASK] , Label } from ' @ protolibrary/components [MASK] |
import COLORS from '@resources/colors' | import COLORS from ' @ resources/colors ' | import COLORS from ' @ resources/colors ' |
import DropDownItem from './DropDownItem' | import DropDownItem from './DropDownItem ' | import DropDownItem from [MASK] [MASK] |
import { DROPDOWN_ICON } from './assets/icon' | import { DROPDOWN_ICON } from './assets/icon ' | import { [MASK] } from './assets/icon ' |
text: string | text : string | text : string |
onClick: () => void | onClick : ( ) = > void | [MASK] : [MASK] ) = > void |
disabled?: boolean | disabled ? : boolean | disabled ? : boolean |
excluded?: boolean | excluded ? : boolean | excluded ? : boolean |
icon?: string | icon ? : string | icon ? : [MASK] |
} | } | } |
options: Array<DropDownValue> | options : Array < DropDownValue > | options : Array < DropDownValue > |
closeOnSelect?: boolean | closeOnSelect ? : boolean | closeOnSelect ? : boolean |
minWidth?: number | minWidth ? : number | minWidth ? [MASK] [MASK] |
icon?: string | icon ? : string | icon ? : string |
text?: string | text ? : string | text ? : string |
container?: React.CSSProperties | container ? : React.CSSProperties | container ? : React.CSSProperties |
} | } | } |
const [visible, setVisibility] = useState(false) | const [ visible , setVisibility ] = useState ( false ) | const [ visible , setVisibility ] = [MASK] ( false ) |
const [referenceRef, setReferenceRef] = useState(null) | const [ referenceRef , setReferenceRef ] = useState ( null ) | [MASK] [ referenceRef , setReferenceRef ] = useState ( null ) |
const [popperRef, setPopperRef] = useState(null) | const [ popperRef , setPopperRef ] = useState ( null ) | const [ popperRef , setPopperRef [MASK] = useState ( null ) |
return | return | [MASK] |
setVisibility(false) | setVisibility ( false ) | setVisibility [MASK] false ) |
document.addEventListener('click', handleClickOutside) | document.addEventListener ( 'click ' , handleClickOutside ) | document.addEventListener ( 'click ' , handleClickOutside ) |
document.addEventListener('focusin', handleClickOutside) | document.addEventListener ( 'focusin ' , handleClickOutside ) | document.addEventListener ( 'focusin ' , handleClickOutside ) |
document.removeEventListener('click', handleClickOutside) | document.removeEventListener ( 'click ' , handleClickOutside ) | document.removeEventListener ( 'click ' , handleClickOutside ) |
document.addEventListener('focusin', handleClickOutside) | document.addEventListener ( 'focusin ' , handleClickOutside ) | document.addEventListener ( 'focusin ' , [MASK] ) |
} | } | } |
}, [popperRef, referenceRef]) | } , [ popperRef , referenceRef ] ) | } , [ [MASK] , referenceRef ] ) |
}) | } ) | [MASK] ) |
setVisibility(!visible) | setVisibility ( ! visible ) | [MASK] [MASK] ! visible ) |
} | } | [MASK] |
setVisibility(!visible) | setVisibility ( ! visible ) | setVisibility ( [MASK] visible ) |
callback && callback() | callback & & callback ( ) | callback & & [MASK] ( [MASK] |
} | } | } |
!option?.disabled && handleItemClick(option.onClick) | ! option ? .disabled & & handleItemClick ( option.onClick ) | ! option ? .disabled & & handleItemClick ( [MASK] [MASK] |
Subsets and Splits