original_text
stringlengths 1
23.3k
| tokenized_code
stringlengths 1
25.1k
| masked_code
stringlengths 1
23.6k
|
---|---|---|
import ICONS from '@resources/icons' | import ICONS from ' @ resources/icons ' | import [MASK] from [MASK] @ resources/icons ' |
import LargeRadioGroup from './LargeRadioGroup' | import LargeRadioGroup from './LargeRadioGroup ' | import LargeRadioGroup [MASK] './LargeRadioGroup ' |
import Form from '@protoweb/form' | import Form from ' @ protoweb/form ' | import Form from ' @ protoweb/form ' |
} | } | } |
) | ) | ) |
export const Default = TemplateDefault.bind({}) | export const Default = TemplateDefault.bind ( { } ) | export const Default = [MASK] ( { } ) |
} | } | } |
) | ) | ) |
export const WithInfo = TemplateDefault.bind({}) | export const WithInfo = TemplateDefault.bind ( { } ) | export const WithInfo = TemplateDefault.bind ( { } [MASK] |
} | } | } |
export const WithForm = TemplateWithForm.bind({}) | export const WithForm = TemplateWithForm.bind ( { } ) | export [MASK] WithForm = TemplateWithForm.bind ( { } ) |
} | } | [MASK] |
export const WithFormInfo = TemplateWithForm.bind({}) | export const WithFormInfo = TemplateWithForm.bind ( { } ) | export const [MASK] = TemplateWithForm.bind ( { } ) |
} | } | } |
import React from 'react' | import React from 'react ' | [MASK] React from 'react [MASK] |
import LargeRadioGroup from './LargeRadioGroup' | import LargeRadioGroup from './LargeRadioGroup ' | import LargeRadioGroup from [MASK] ' |
import LargeRadio from './LargeRadio' | import LargeRadio from './LargeRadio ' | import LargeRadio from './LargeRadio ' |
import Form from '@protoweb/form' | import Form from ' @ protoweb/form ' | import Form from ' @ protoweb/form ' |
} | } | } |
) | ) | ) |
export const Default = TemplateDefault.bind({}) | export const Default = TemplateDefault.bind ( { } ) | export const Default [MASK] TemplateDefault.bind ( { [MASK] ) |
} | } | } |
) | ) | [MASK] |
export const WithForm = TemplateWithForm.bind({}) | export const WithForm = TemplateWithForm.bind ( { } ) | export const WithForm = TemplateWithForm.bind ( [MASK] [MASK] ) |
} | } | } |
export const WithInfo = TemplateDefault.bind({}) | export const WithInfo = TemplateDefault.bind ( { } ) | export const WithInfo = [MASK] ( { } ) |
} | } | [MASK] |
export const WithFormAndInfo = TemplateWithForm.bind({}) | export const WithFormAndInfo = TemplateWithForm.bind ( { } ) | export const WithFormAndInfo = TemplateWithForm.bind ( { } ) |
} | } | } |
import React from 'react' | import React from 'react ' | import React from 'react ' |
import Card from './Card' | import Card from './Card ' | import Card from './Card ' |
import Row from '@protoweb/row' | import Row from ' @ protoweb/row ' | import Row from ' @ protoweb/row ' |
import Col from '@protoweb/col' | import Col from ' @ protoweb/col ' | import Col from ' @ protoweb/col ' |
import Label from '@protoweb/label' | import Label from ' @ protoweb/label ' | import Label from ' @ protoweb/label ' |
} | } | [MASK] |
const Template = args => <Card {...args} /> | const Template = args = > < Card { ... args } / > | const Template = args = > < Card { ... args } / > |
export const Default = Template.bind({}) | export const Default = Template.bind ( { } ) | export [MASK] [MASK] = Template.bind [MASK] { } ) |
} | } | } |
export const FullCard = Template.bind({}) | export const FullCard = Template.bind ( { } ) | export const FullCard = Template.bind ( { } ) |
console.log(`Checkbox changed: ${isChecked}, Title Number: ${titleNumber}`) | console.log ( ` Checkbox changed : $ { isChecked } , Title Number : $ { titleNumber } ` ) | console.log ( ` [MASK] changed : $ { isChecked } , Title Number : [MASK] { titleNumber } [MASK] ) |
} | } | } |
import Card from './Card' | import Card from './Card ' | import Card from './Card ' |
export default Card | export default Card | export default Card |
import { Block, Checkbox, Icon, Label, Row, Col } from '@protolibrary/components' | import { Block , Checkbox , Icon , Label , Row , Col } from ' @ protolibrary/components ' | import { Block , [MASK] , Icon , Label [MASK] Row [MASK] Col } from ' @ [MASK] ' |
import ICONS from '@resources/icons' | import ICONS from ' @ resources/icons ' | import ICONS from ' @ resources/icons ' |
import React, { useEffect, useMemo, useRef, useState } from 'react' | import React , { useEffect , useMemo , useRef , useState } from 'react ' | import React , [MASK] useEffect [MASK] useMemo , useRef , [MASK] } from 'react [MASK] |
import cs from 'classnames' | import cs from 'classnames ' | [MASK] cs [MASK] 'classnames ' |
import './assets/style.scss' | import './assets/style.scss ' | [MASK] './assets/style.scss ' |
import { IGenericStyleType } from '@protocommon/types' | import { IGenericStyleType } from ' @ protocommon/types ' | import { IGenericStyleType [MASK] [MASK] ' @ protocommon/types ' |
import useTheme from '@hooks/useTheme' | import useTheme from ' @ hooks/useTheme ' | import useTheme from [MASK] @ hooks/useTheme ' |
import ToolTip from '@common/components/tooltip' | import ToolTip from ' @ common/components/tooltip ' | import ToolTip from ' @ common/components/tooltip ' |
title?: string | title ? : string | title ? : string |
titleNumber?: string | number | titleNumber ? : string | number | titleNumber ? : string | number |
sortNumber?: string | sortNumber ? : string | sortNumber ? : string |
children?: any | children ? : any | children ? : [MASK] |
collapsible?: boolean | collapsible ? : boolean | collapsible ? : boolean |
open?: boolean | open ? : boolean | open ? : boolean |
checked?: boolean | checked ? : boolean | [MASK] [MASK] [MASK] boolean |
checkFilter?: boolean | checkFilter ? : boolean | checkFilter ? [MASK] boolean |
style?: { header?: IGenericStyleType | style ? : { header ? : IGenericStyleType | style ? : { [MASK] ? : [MASK] |
container?: IGenericStyleType } | container ? : IGenericStyleType } | container ? : IGenericStyleType } |
condition?: boolean | condition ? : boolean | condition ? : boolean |
onCollapse?: any | onCollapse ? : any | onCollapse ? : any |
showClose?: boolean | showClose ? : boolean | showClose ? : [MASK] |
rightItem?: any | rightItem ? : any | rightItem [MASK] : any |
scrollToTop?: any | scrollToTop ? : any | scrollToTop ? : any |
clear?: boolean | clear ? : boolean | clear [MASK] : [MASK] |
questionCard?: boolean | questionCard ? : boolean | [MASK] ? : boolean |
cardCheckboxDisabled?: boolean | cardCheckboxDisabled ? : boolean | [MASK] ? : boolean |
onCheckboxChange?: (isChecked: boolean, titleNumber: any) => void | onCheckboxChange ? : ( isChecked : boolean , titleNumber : any ) = > void | onCheckboxChange ? [MASK] ( [MASK] : boolean , titleNumber : any ) = > [MASK] |
className?: string | className ? : string | className ? : string |
disabled?: boolean | disabled ? : boolean | [MASK] ? : boolean |
const [isOpen, setIsOpen] = useState<boolean>(showClose || (collapsible ? open : true)) | const [ isOpen , setIsOpen ] = useState < boolean > ( showClose || ( collapsible ? open : true ) ) | const [ isOpen , setIsOpen ] = useState < boolean > ( showClose [MASK] ( collapsible ? open : true ) ) |
const [isChecked, setIsChecked] = useState<boolean>(checked === null ? null : Boolean(checked)) | const [ isChecked , setIsChecked ] = useState < boolean > ( checked === null ? null : Boolean ( checked ) ) | const [ isChecked [MASK] setIsChecked ] = useState < boolean > ( checked === [MASK] [MASK] null : Boolean ( checked ) ) |
const cardRef = useRef<any>(null) | const cardRef = useRef < any > ( null ) | const cardRef = useRef < [MASK] > ( null ) |
const { COLORS, theme, paintSVG } = useTheme() | const { COLORS , theme , paintSVG } = useTheme ( ) | [MASK] { COLORS , theme [MASK] paintSVG [MASK] = useTheme ( [MASK] |
setIsChecked(true) | setIsChecked ( true ) | setIsChecked ( true [MASK] |
setIsOpen(true) | setIsOpen ( true ) | setIsOpen ( true ) |
setIsChecked(false) | setIsChecked ( false ) | setIsChecked [MASK] [MASK] ) |
setIsOpen(false) | setIsOpen ( false ) | setIsOpen ( false ) |
setIsChecked(null) | setIsChecked ( null ) | setIsChecked [MASK] null ) |
}, [checked]) | } , [ checked ] ) | [MASK] , [ checked ] [MASK] |
setIsChecked(isChecked) | setIsChecked ( isChecked ) | setIsChecked [MASK] isChecked ) |
setIsOpen(true) | setIsOpen ( true ) | setIsOpen [MASK] true ) |
setIsOpen(name === titleNumber ? false : isOpen) | setIsOpen ( name === titleNumber ? false : isOpen ) | setIsOpen [MASK] name === [MASK] [MASK] false : [MASK] ) |
onCheckboxChange(isChecked, titleNumber || '') | onCheckboxChange ( isChecked , titleNumber || `` ) | onCheckboxChange ( isChecked [MASK] [MASK] || `` ) |
} | } | } |
setIsOpen(!isOpen) | setIsOpen ( ! isOpen ) | setIsOpen ( ! isOpen ) |
onCollapse(!isOpen) | onCollapse ( ! isOpen ) | onCollapse ( ! isOpen ) |
} | } | } |
} | } | } |
} | } | } |
}, [collapsible, isOpen, style?.container, condition, theme]) | } , [ collapsible , isOpen , style ? .container , condition , theme ] ) | } , [ collapsible , isOpen [MASK] style ? .container , [MASK] , theme ] ) |
cardRef.current.scrollIntoView({ behavior: 'smooth' }) | cardRef.current.scrollIntoView ( { behavior : 'smooth ' } ) | cardRef.current.scrollIntoView ( { behavior [MASK] 'smooth [MASK] } ) |
console.error('Reference is null') | console.error ( 'Reference is null ' ) | console.error ( 'Reference is null ' ) |
) | ) | [MASK] |
} | } | [MASK] |
export default Card | export default Card | export default Card |
import CreditCard from './CreditCard' | import CreditCard from './CreditCard ' | import CreditCard from [MASK] ' |
export default CreditCard | export default CreditCard | export default CreditCard |
Subsets and Splits