original_text
stringlengths
1
23.3k
tokenized_code
stringlengths
1
25.1k
masked_code
stringlengths
1
23.6k
import CustomerCreateUpdate from './pages/authenticated/customer-management/pages/CustomerCreateUpdate'
import CustomerCreateUpdate from './pages/authenticated/customer-management/pages/CustomerCreateUpdate '
import CustomerCreateUpdate from './pages/authenticated/customer-management/pages/CustomerCreateUpdate '
import ProjectManagement from './pages/authenticated/project-management'
import ProjectManagement from './pages/authenticated/project-management '
import ProjectManagement from './pages/authenticated/project-management [MASK]
import ProjectCreateUpdate from './pages/authenticated/project-management/pages/ProjectCreateUpdate'
import ProjectCreateUpdate from './pages/authenticated/project-management/pages/ProjectCreateUpdate '
import ProjectCreateUpdate from './pages/authenticated/project-management/pages/ProjectCreateUpdate '
authenticated: boolean
authenticated : boolean
authenticated : boolean
isLoading: boolean
isLoading : boolean
[MASK] : boolean
location: any
location : any
[MASK] : any
const isAuthenticated = useSelector<any, string>(state => state.authState.authenticated)
const isAuthenticated = useSelector < any , string > ( state = > state.authState.authenticated )
const isAuthenticated = useSelector < any , string > ( state = > state.authState.authenticated )
const modalStore = useStore('modalState')
const modalStore = useStore ( 'modalState ' )
const modalStore = useStore ( [MASK] ' )
const { open, type, closeAction, confirmAction } = modalStore
const { open , type , closeAction , confirmAction } = modalStore
const { open [MASK] type , closeAction , confirmAction } = modalStore
const { open: loaderOpen } = useStore('loaderState')
const { open : loaderOpen } = useStore ( 'loaderState ' )
const [MASK] open : loaderOpen } = useStore ( 'loaderState ' )
const lastRoute = sessionStorage.getItem('routePath')
const lastRoute = sessionStorage.getItem ( 'routePath ' )
[MASK] lastRoute = sessionStorage.getItem ( 'routePath ' )
authState.update({ authenticated: true, roles: res.roles, fullName: res.fullName })
authState.update ( { authenticated : true , roles : res.roles , fullName : res.fullName } )
authState.update ( [MASK] [MASK] : true , roles : res.roles , fullName : res.fullName } )
let routeParameters = sessionStorage.getItem('routeParameters')
let routeParameters = sessionStorage.getItem ( 'routeParameters ' )
let routeParameters = sessionStorage.getItem [MASK] 'routeParameters ' )
routeParameters = JSON.parse(routeParameters)
routeParameters = JSON.parse ( routeParameters )
routeParameters = JSON.parse ( routeParameters )
)
)
)
})
} )
} )
}, [isAuthenticated])
} , [ isAuthenticated ] )
} , [ isAuthenticated ] )
new LocalizedStrings({ EN: en, TR: tr })
new LocalizedStrings ( { EN : en , TR : tr } )
[MASK] LocalizedStrings ( { EN [MASK] en , TR : tr } )
}, [])
} , [ ] )
} , [ [MASK] )
)
)
)
export default AppMain
export default AppMain
export [MASK] AppMain
import { ErrorResponse } from '@common/error/models/ErrorResponse'
import { ErrorResponse } from ' @ common/error/models/ErrorResponse '
[MASK] { ErrorResponse } from ' [MASK] common/error/models/ErrorResponse '
import { ApiCallResponse } from '@common/models/ApiCallResponse'
import { ApiCallResponse } from ' @ common/models/ApiCallResponse '
import { ApiCallResponse } [MASK] ' @ common/models/ApiCallResponse [MASK]
let errorMessage = ''
let errorMessage = ``
let errorMessage = [MASK]
let errorFlag = false
let errorFlag = false
let errorFlag = false
errorFlag = true
errorFlag = true
errorFlag = true
errorMessage = response.data.errorDescription
errorMessage = response.data.errorDescription
errorMessage = response.data.errorDescription
return errorFlag
return errorFlag
return errorFlag
}
}
}
}
}
[MASK]
return { error: errorResp }
return { error : errorResp }
return { error : errorResp }
return { data: response ? response.data : {} }
return { data : response ? response.data : { } }
return { [MASK] : response [MASK] [MASK] : { } }
return error
return error
[MASK] error
}
}
}
export default ajaxEnricher
export default ajaxEnricher
export default ajaxEnricher
import axios, { AxiosError, AxiosRequestConfig, AxiosResponse } from 'axios'
import axios , { AxiosError , AxiosRequestConfig , AxiosResponse } from 'axios '
import axios , { AxiosError , AxiosRequestConfig , AxiosResponse } from [MASK] '
import applicationProperties from '@resources/properties/ApplicationProperties'
import applicationProperties from ' @ resources/properties/ApplicationProperties '
import applicationProperties from ' @ resources/properties/ApplicationProperties '
import loaderState from '../../states/LoaderState'
import loaderState from ' .. / .. /states/LoaderState '
[MASK] loaderState from ' .. / [MASK] [MASK] [MASK]
import Cookies from 'js-cookie'
import Cookies from 'js-cookie '
import Cookies from 'js-cookie '
import { errorState } from '@core/states'
import { errorState } from ' @ core/states '
import { errorState } from [MASK] @ core/states '
import authService from '@services/AuthService'
import authService from ' @ services/AuthService '
import authService from ' [MASK] [MASK] '
import LocalStorage from '@common/storage/Storage'
import LocalStorage from ' @ common/storage/Storage '
import LocalStorage from ' @ [MASK] '
import appState from '@core/states/AppState'
import appState from ' @ core/states/AppState '
import appState [MASK] ' @ core/states/AppState [MASK]
import SessionStorage from '@common/storage/SessionStorage'
import SessionStorage from ' @ common/storage/SessionStorage '
import SessionStorage from ' @ common/storage/SessionStorage '
import userService from '@services/UserService'
import userService from ' @ services/UserService '
import userService from ' @ services/UserService [MASK]
const HTTP_AUTHORIZATION_ERROR_CODE = 401
const HTTP_AUTHORIZATION_ERROR_CODE = 401
const HTTP_AUTHORIZATION_ERROR_CODE = 401
const HTTP_FORBIDDEN_ERROR_CODE = 403
const HTTP_FORBIDDEN_ERROR_CODE = 403
[MASK] HTTP_FORBIDDEN_ERROR_CODE = 403
const HTTP_BAD_REQUEST_ERROR_CODE = 400
const HTTP_BAD_REQUEST_ERROR_CODE = 400
const HTTP_BAD_REQUEST_ERROR_CODE = [MASK]
const LOGIN_URL = 'bundles-version'
const LOGIN_URL = 'bundles-version '
const [MASK] = 'bundles-version '
errorTime: string
errorTime : string
errorTime : string
errorType: string
errorType : string
[MASK] : string
messages: Array<{ code: string
messages : Array < { code : string
messages : Array < { code : string
message: string }>
message : string } >
message : string } >
path: string
path : string
path : string
system: string
system : string
system : string
}
}
}
status: number
status : number
status : number
traceId: string
traceId : string
traceId : string
show: boolean
show : boolean
[MASK] : boolean
})
} )
} )
window.location.reload()
window.location.reload ( )
[MASK] ( )
SessionStorage.save('routePath', '/')
SessionStorage.save ( 'routePath ' , '/ ' )
SessionStorage.save [MASK] [MASK] [MASK] , '/ [MASK] )
appState.update({ newVersion: true })
appState.update ( { newVersion : true } )
appState.update ( { newVersion [MASK] true [MASK] )
LocalStorage.save('x-app-version', newVersion)
LocalStorage.save ( ' x-app-version ' , newVersion )
LocalStorage.save ( ' x-app-version ' , newVersion )
})
} )
} )
}
}
}
config.withCredentials = true
config.withCredentials = true
[MASK] = true
config.url = `${applicationProperties.api.url}${config.url}`
config.url = ` $ { applicationProperties.api.url } $ { config.url } `
config.url = ` $ { applicationProperties.api.url } [MASK] { config.url [MASK] `
config.headers.Authorization = Cookies.get('token')
config.headers.Authorization = Cookies.get ( 'token ' )
config.headers.Authorization = Cookies.get ( 'token ' )
loaderState.increaseCallCount()
loaderState.increaseCallCount ( )
loaderState.increaseCallCount ( )
config.headers['Content-Type'] = 'application/json'
config.headers [ 'Content-Type ' ] = 'application/json '
config.headers [MASK] 'Content-Type [MASK] ] = 'application/json [MASK]
config.headers = { 'Content-Type': 'application/json' }
config.headers = { 'Content-Type ' : 'application/json ' }
config.headers = { 'Content-Type ' [MASK] 'application/json ' }
config.timeout = applicationProperties.api.timeout
config.timeout = applicationProperties.api.timeout
[MASK] = applicationProperties.api.timeout
config.headers['Accept'] = 'application/json'
config.headers [ 'Accept ' ] = 'application/json '
config.headers [ 'Accept [MASK] [MASK] = [MASK] '
document.body.style.overflow = 'hidden'
document.body.style.overflow = 'hidden '
document.body.style.overflow = 'hidden '
loaderState.open()
loaderState.open ( )
loaderState.open ( )
delete config.headers?.noLoader
delete config.headers ? .noLoader
delete [MASK] ? .noLoader
return config
return config
return config
}
}
}
loaderState.decreaseCallCount()
loaderState.decreaseCallCount ( )
loaderState.decreaseCallCount ( [MASK]
)
)
[MASK]
loaderState.close()
loaderState.close ( )
[MASK] ( )
document.body.style.overflow = 'scroll'
document.body.style.overflow = 'scroll '
document.body.style.overflow = [MASK] '
return response
return response
[MASK] response
}
}
}
authService.logoutResolver(true)
authService.logoutResolver ( true )
authService.logoutResolver [MASK] true )
}
}
}
errorState.setError(error?.response?.data || errorData)
errorState.setError ( error ? .response ? .data || errorData )
errorState.setError ( error ? [MASK] ? [MASK] || errorData )
loaderState.decreaseCallCount()
loaderState.decreaseCallCount ( )
loaderState.decreaseCallCount ( )
loaderState.close()
loaderState.close ( )
loaderState.close ( )
document.body.style.overflow = 'scroll'
document.body.style.overflow = 'scroll '
document.body.style.overflow [MASK] 'scroll '
return Promise.reject(error.response ? error.response.data : error.response || error)
return Promise.reject ( error.response ? error.response.data : error.response || error )
return Promise.reject ( error.response [MASK] error.response.data : error.response || error )
}
}
}
axios.interceptors.request.use(onRequestSuccess)
axios.interceptors.request.use ( onRequestSuccess )
axios.interceptors.request.use ( onRequestSuccess )
axios.interceptors.response.use(onResponseSuccess, onResponseError)
axios.interceptors.response.use ( onResponseSuccess , onResponseError )
[MASK] ( onResponseSuccess [MASK] onResponseError )
}
}
[MASK]
export default setupAxiosInterceptors
export default setupAxiosInterceptors
export default setupAxiosInterceptors
import filtersStateManager from '@common/components/filters/state_manager'
import filtersStateManager from ' @ common/components/filters/state_manager '
import filtersStateManager from [MASK] @ common/components/filters/state_manager '
import { IFiltersStateModel } from '@common/components/filters/models'
import { IFiltersStateModel } from ' @ common/components/filters/models '
import { [MASK] } from ' [MASK] common/components/filters/models '
import { useSelector } from 'react-redux'
import { useSelector } from 'react-redux '
import { useSelector } [MASK] 'react-redux '