original_text
stringlengths 1
23.3k
| tokenized_code
stringlengths 1
25.1k
| masked_code
stringlengths 1
23.6k
|
---|---|---|
import COLORS from '@resources/colors' | import COLORS from ' @ resources/colors ' | import COLORS from ' @ resources/colors ' |
import { getThemeColor } from '@utils/ColorUtils' | import { getThemeColor } from ' @ utils/ColorUtils ' | import [MASK] getThemeColor } from ' @ utils/ColorUtils ' |
marginTop: '0px !important | marginTop : '0px ! important | marginTop : [MASK] ! [MASK] |
'backdrop-filter': 'blur(4px) | 'backdrop-filter ' : 'blur ( 4px ) | 'backdrop-filter ' : 'blur ( 4px ) |
} | } | } |
export default DARK_THEME | export default DARK_THEME | export default DARK_THEME |
import COLORS from '@resources/colors' | import COLORS from ' @ resources/colors ' | import COLORS [MASK] ' @ resources/colors ' |
import { getThemeColor } from '@utils/ColorUtils' | import { getThemeColor } from ' @ utils/ColorUtils ' | [MASK] [MASK] getThemeColor } from [MASK] @ utils/ColorUtils ' |
marginTop: '0px !important | marginTop : '0px ! important | marginTop : '0px ! important |
'backdrop-filter': 'blur(4px) | 'backdrop-filter ' : 'blur ( 4px ) | [MASK] ' : 'blur ( [MASK] ) |
} | } | } |
export default LIGHT_THEME | export default LIGHT_THEME | export [MASK] LIGHT_THEME |
import Language from './Language' | import Language from './Language ' | import Language [MASK] './Language ' |
import localizationRegistry from './LocalizationRegistry' | import localizationRegistry from './LocalizationRegistry ' | import localizationRegistry [MASK] './LocalizationRegistry ' |
return localizationRegistry.getLanguageValues(language) | return localizationRegistry.getLanguageValues ( language ) | return localizationRegistry.getLanguageValues [MASK] language ) |
import { sprintf } from 'sprintf-js' | import { sprintf } from 'sprintf-js ' | [MASK] { sprintf [MASK] [MASK] 'sprintf-js ' |
import Language from './Language' | import Language from './Language ' | import Language from './Language [MASK] |
import useTranslation from './TranslationContext' | import useTranslation from './TranslationContext ' | import useTranslation from './TranslationContext ' |
return get(language, code, parameters) | return get ( language , code , parameters ) | return [MASK] [MASK] language , code , parameters ) |
const translation = useTranslation(language) | const translation = useTranslation ( language ) | const translation = useTranslation [MASK] language ) |
if(code === 'Sorgula') console.log('translation', translation) | if ( code === 'Sorgula ' ) console.log ( 'translation ' , translation ) | if ( code === [MASK] ' ) [MASK] ( 'translation ' , translation ) |
// console.log('translation', translation[code]) | // console.log ( 'translation ' , translation [ code ] ) | // console.log [MASK] 'translation ' , translation [MASK] code ] ) |
const value = translation[code] | const value = translation [ code ] | const [MASK] = [MASK] [ [MASK] ] |
return sprintf(value, parameters) | return sprintf ( value , parameters ) | return sprintf ( value , [MASK] ) |
return value | return value | return value |
return code | return code | return code |
} | } | [MASK] |
export default Language | export default Language | export [MASK] Language |
import Language from './Language' | import Language from './Language ' | [MASK] Language from './Language ' |
let LOCALIZED_MAP: Array<Language> = [] | let LOCALIZED_MAP : Array < Language > = [ ] | let LOCALIZED_MAP : [MASK] < Language > = [ ] |
LOCALIZED_MAP = { ...LOCALIZED_MAP, ...languageData } | LOCALIZED_MAP = { ... LOCALIZED_MAP , ... languageData } | LOCALIZED_MAP = { ... LOCALIZED_MAP , ... languageData } |
} | } | } |
getLanguageValues = (lang: Language) => LOCALIZED_MAP[lang] | getLanguageValues = ( lang : Language ) = > LOCALIZED_MAP [ lang ] | getLanguageValues = [MASK] lang [MASK] Language ) = > LOCALIZED_MAP [MASK] lang ] |
const registry = new LocalizationRegistry() | const registry = new LocalizationRegistry ( ) | const registry = new LocalizationRegistry ( ) |
export default registry | export default registry | export default [MASK] |
import Language from './Language' | import Language from './Language ' | import Language from './Language ' |
import localizationRegistry from './LocalizationRegistry' | import localizationRegistry from './LocalizationRegistry ' | import [MASK] from './LocalizationRegistry [MASK] |
[key: string]: string | [ key : string ] : string | [ key [MASK] string ] : string |
type ILanguage = { [key in Language]: LanguageKeyFields } | type ILanguage = { [ key in Language ] : LanguageKeyFields } | type ILanguage = [MASK] [MASK] key in [MASK] [MASK] [MASK] LanguageKeyFields } |
localizationRegistry.register(strings) | localizationRegistry.register ( strings ) | localizationRegistry.register ( strings ) |
} | } | } |
export default LocalizedStrings | export default LocalizedStrings | export [MASK] [MASK] |