type
stringclasses
7 values
content
stringlengths
4
9.55k
repo
stringlengths
7
96
path
stringlengths
4
178
language
stringclasses
1 value
ArrowFunction
() => { maxTaskDurationInMinutes = 5; batchConfigStub = { accountName: 'accountName', accountUrl: 'accountUrl', poolId: 'poolId', jobId: 'jobId', }; serviceConfigMock = Mock.ofType(ServiceConfiguration); serviceConfigMock ...
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
ArrowFunction
async (s) => s.getConfigValue('taskConfig')
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
ArrowFunction
async () => { return { taskTimeoutInMinutes: maxTaskDurationInMinutes, } as TaskRuntimeConfig; }
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
ArrowFunction
async () => batchClientStub
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
ArrowFunction
async (c) => c.generateSASUrl(It.isAny())
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
ArrowFunction
async () => { return containerSASUrl; }
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
ArrowFunction
() => { it('get succeeded tasks', async () => { const timestamp = new Date(); const taskArguments = { arg1: 'arg-1-value', arg2: 'arg-2-value', }; const tasks = [ { id: 'id-1_correlationId-1_ tas...
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
ArrowFunction
async () => { const timestamp = new Date(); const taskArguments = { arg1: 'arg-1-value', arg2: 'arg-2-value', }; const tasks = [ { id: 'id-1_correlationId-1_ task info', environmentSe...
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
ArrowFunction
async (o) => o.list(batchConfigStub.jobId, options)
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
ArrowFunction
async () => Promise.resolve(<TaskListResponse>(<unknown>items1))
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
ArrowFunction
async (o) => o.listNext(items1.odatanextLink, options)
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
ArrowFunction
async () => Promise.resolve(<TaskListResponse>(<unknown>items2))
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
ArrowFunction
() => { it('get failed tasks', async () => { const timestamp = new Date(); const taskArguments = { arg1: 'arg-1-value', arg2: 'arg-2-value', }; const tasks = [ { id: 'id-1_correlationId-1_ task w...
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
ArrowFunction
async () => { const timestamp = new Date(); const taskArguments = { arg1: 'arg-1-value', arg2: 'arg-2-value', }; const tasks = [ { id: 'id-1_correlationId-1_ task with full failure info', ...
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
ArrowFunction
() => { it('get pool metrics info', async () => { const poolMetricsInfoExpected = { id: 'poolId', maxTasksPerPool: 32, load: { activeTasks: 4, runningTasks: 2, }, }; poolM...
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
ArrowFunction
async () => { const poolMetricsInfoExpected = { id: 'poolId', maxTasksPerPool: 32, load: { activeTasks: 4, runningTasks: 2, }, }; poolMock .setup(async (o) => o.ge...
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
ArrowFunction
async (o) => o.get(batchConfigStub.poolId)
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
ArrowFunction
async () => Promise.resolve(<PoolGetResponse>(<unknown>{ maxTasksPerNode: 8, currentDedicatedNodes: 3, currentLowPriorityNodes: 1, }))
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
ArrowFunction
async (o) => o.list(jobOptions)
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
ArrowFunction
async () => Promise.resolve(<JobListResponse>(<unknown>jobListItems1))
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
ArrowFunction
async (o) => o.listNext(jobListItems1.odatanextLink, jobOptions)
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
ArrowFunction
async () => Promise.resolve(<JobListResponse>(<unknown>jobListItems2))
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
ArrowFunction
async (o) => o.list(jobListItems1.items[0].id, taskOptions)
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
ArrowFunction
async () => Promise.resolve(<TaskListResponse>(<unknown>taskListItems1))
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
ArrowFunction
async (o) => o.listNext(taskListItems1.odatanextLink, taskOptions)
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
ArrowFunction
async () => Promise.resolve(<TaskListResponse>(<unknown>taskListItems2))
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
ArrowFunction
async (o) => o.list(jobListItems2.items[0].id, taskOptions)
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
ArrowFunction
async () => { const messages: Message[] = []; const tasksActual = await batch.createTasks(jobId1, messages); expect(tasksActual.length).toBe(0); }
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
ArrowFunction
async () => { const messagesCount = maxTasks + 3; const messages = []; const tasksAddedBatchCount: number[] = []; const taskAddParameters: BatchServiceModels.TaskAddParameter[] = []; let taskAddCollectionResponse: BatchServiceModels.TaskAddCollectionResponse;...
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
ArrowFunction
async (o) => o.getTaskConfigWithImageSupport( batchConfigStub.accountName, It.is((actualId) => isExpectedId(actualId, message.messageId)), message.messageText, )
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
ArrowFunction
(actualId) => isExpectedId(actualId, message.messageId)
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
ArrowFunction
(accountName, taskId, messageText) => (taskAddParameters[i].id = taskId)
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
ArrowFunction
async () => Promise.resolve(taskAddParameters[i])
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
ArrowFunction
async (o) => o.addCollection(jobId1, It.isAny())
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
ArrowFunction
(id, taskParameters) => { tasksAddedBatchCount.push(taskParameters.length); taskAddCollectionResponse = <BatchServiceModels.TaskAddCollectionResponse>(<unknown>{ value: [] }); taskParameters.forEach((taskAddParameter: BatchServiceModels.TaskAddParameter) => {...
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
ArrowFunction
(taskAddParameter: BatchServiceModels.TaskAddParameter) => { taskAddCollectionResponse.value.push({ taskId: taskAddParameter.id, status: 'success' }); }
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
ArrowFunction
async () => Promise.resolve(<BatchServiceModels.TaskAddCollectionResponse>(<unknown>taskAddCollectionResponse))
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
ArrowFunction
async () => { const messages = [ { messageText: '{}', messageId: 'messageId-1', }, { messageText: '{}', messageId: 'messageId-2', }, ]; con...
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
ArrowFunction
(id, taskAddParameters) => taskAddParameters.forEach((taskAddParameter: BatchServiceModels.TaskAddParameter) => { taskAddCollectionResult.value[i].taskId = taskAddParameter.id; expectedTaskAddParameters[i].id = taskAddParameter.id; ...
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
ArrowFunction
(taskAddParameter: BatchServiceModels.TaskAddParameter) => { taskAddCollectionResult.value[i].taskId = taskAddParameter.id; expectedTaskAddParameters[i].id = taskAddParameter.id; jobTasksExpected[i++].id = taskAddParameter.id; ...
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
ArrowFunction
async () => Promise.resolve(taskAddCollectionResult)
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
ArrowFunction
async (o) => o.getTaskConfigWithImageSupport( batchConfigStub.accountName, It.is((actualId) => isExpectedId(actualId, messages[k].messageId)), messages[k].messageText, )
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
ArrowFunction
(actualId) => isExpectedId(actualId, messages[k].messageId)
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
ArrowFunction
(accountName, taskId, messageText) => (expectedTaskAddParameters[k].id = taskId)
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
ArrowFunction
async () => Promise.resolve(expectedTaskAddParameters[k])
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
ArrowFunction
async () => { const messages = [ { messageId: 'messageId-1', messageText: JSON.stringify({ msg: 'message 1 text' }), }, { messageId: 'messageId-2', messageText: JSON.stringify({ m...
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
ArrowFunction
(id, taskParameters) => { actualTaskAddParameters = taskParameters; }
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
ArrowFunction
async () => Promise.resolve({ value: [] } as BatchServiceModels.TaskAddCollectionResponse)
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
ArrowFunction
() => { it('create new job if not found', async () => { let jobAddParameter: any; const error = { code: 'JobNotFound', }; jobMock .setup(async (o) => o.get(jobId1)) .returns(async () => Promise.reject(error)) ...
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
ArrowFunction
async () => { let jobAddParameter: any; const error = { code: 'JobNotFound', }; jobMock .setup(async (o) => o.get(jobId1)) .returns(async () => Promise.reject(error)) .verifiable(); jobMock ...
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
ArrowFunction
async (o) => o.get(jobId1)
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
ArrowFunction
async () => Promise.reject(error)
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
ArrowFunction
async (o) => o.add(It.isAny())
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
ArrowFunction
(parameter) => (jobAddParameter = parameter)
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
ArrowFunction
async () => { const error = { code: 'requestFailed', }; jobMock .setup(async (o) => o.get(jobId1)) .returns(async () => Promise.reject(error)) .verifiable(); await expect(batch.createJobIfNotExists(jobId1))...
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
ArrowFunction
async () => { const cloudJob = { state: 'active', } as BatchServiceModels.JobGetResponse; jobMock .setup(async (o) => o.get(jobId1)) .returns(async () => Promise.resolve(cloudJob)) .verifiable(); await expe...
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
ArrowFunction
async () => Promise.resolve(cloudJob)
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
ArrowFunction
async () => { const cloudJob = { state: 'completed', } as BatchServiceModels.JobGetResponse; jobMock .setup(async (o) => o.get(jobId1)) .returns(async () => Promise.resolve(cloudJob)) .verifiable(); await e...
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
ClassDeclaration
export class JobListStub { public odatanextLink: string; public constructor(public items: JobListItemStub[]) {} public values(): JobListItemStub[] { return this.items; } }
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
ClassDeclaration
export class TaskListStub { public odatanextLink: string; public constructor(public items: any[]) {} public values(): any[] { return this.items; } }
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
InterfaceDeclaration
export interface JobListItemStub { id: string; }
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
MethodDeclaration
public values(): JobListItemStub[] { return this.items; }
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
MethodDeclaration
public values(): any[] { return this.items; }
JGibson2019/accessibility-insights-service
packages/azure-services/src/azure-batch/batch.spec.ts
TypeScript
FunctionDeclaration
export async function init() { console.log('🎧 Initializing listeners for hooks...'); for (const event of Object.values(HookEvent)) { pubsub.on(event, handleHookEvent(event)); } }
Administrate/sorry-cypress
packages/director/src/lib/hooks/init.ts
TypeScript
ArrowFunction
(eventType: HookEvent) => async ({ runId, }: PubSubHookEventPayload) => { const executionDriver = await getExecutionDriver(); const run = await executionDriver.getRunWithSpecs(runId); const project = await executionDriver.getProjectById(run.meta.projectId); console.log(`Reporting ${eventType} for ${runId}......
Administrate/sorry-cypress
packages/director/src/lib/hooks/init.ts
TypeScript
ArrowFunction
async ({ runId, }: PubSubHookEventPayload) => { const executionDriver = await getExecutionDriver(); const run = await executionDriver.getRunWithSpecs(runId); const project = await executionDriver.getProjectById(run.meta.projectId); console.log(`Reporting ${eventType} for ${runId}...`); reportToHook({ h...
Administrate/sorry-cypress
packages/director/src/lib/hooks/init.ts
TypeScript
FunctionDeclaration
function* signInSaga({payload: {email}}: {payload: ISignInAction}): Generator { yield put( didSignInAction({ email, accessToken: 'mock', refreshToken: 'mock', firstName: 'Test', lastName: 'Test', }), ); }
werstak/food_order_aplication_ts
src/store/sagas/auth.ts
TypeScript
FunctionDeclaration
export default function* authSaga(): Generator { yield all([takeLatest(signInAction, signInSaga)]); }
werstak/food_order_aplication_ts
src/store/sagas/auth.ts
TypeScript
ArrowFunction
(value: string) => console.log(value)
HereSinceres/atlaskit-mk-2
packages/core/datetime-picker/examples/110-timezone-compat.tsx
TypeScript
ArrowFunction
( value: string, date: string, time: string, timezone: string, ) => { const parsed = moment(value).parseZone(); const returnObject = { dateValue: parsed.isValid() ? parsed.format('YYYY-MM-DD') : date, timeValue: parsed.isValid() ? parsed.format('HH:mm') : time, zoneValue: parsed.isValid() ? par...
HereSinceres/atlaskit-mk-2
packages/core/datetime-picker/examples/110-timezone-compat.tsx
TypeScript
ArrowFunction
() => ( <DateTimePicker onChange={logValue}
HereSinceres/atlaskit-mk-2
packages/core/datetime-picker/examples/110-timezone-compat.tsx
TypeScript
ArrowFunction
({ onSubmit, disabled, formTitle, initialValues = { title: '', slug: '', body: '', }, }) => { const handleSubmit = ( values: FormValues, { resetForm }: FormikHelpers<FormValues> ) => { onSubmit({ title: values.title, slug: values.slug, body: values.body, cr...
andrestejada/equipments
src/app/feature/Producto/components/FormCrearProducto/index.tsx
TypeScript
ArrowFunction
( values: FormValues, { resetForm }: FormikHelpers<FormValues> ) => { onSubmit({ title: values.title, slug: values.slug, body: values.body, createdAt: new Date().toISOString(), updatedAt: new Date().toISOString(), }); resetForm(); }
andrestejada/equipments
src/app/feature/Producto/components/FormCrearProducto/index.tsx
TypeScript
InterfaceDeclaration
interface FormValues { title: string; slug: string; body: string; }
andrestejada/equipments
src/app/feature/Producto/components/FormCrearProducto/index.tsx
TypeScript
InterfaceDeclaration
interface FormCrearProductoProp { onSubmit: (payload: Producto) => any; disabled?: boolean; formTitle: string; initialValues?: FormValues; }
andrestejada/equipments
src/app/feature/Producto/components/FormCrearProducto/index.tsx
TypeScript
ClassDeclaration
@Component({ selector: 'p-settings', templateUrl: './settings.component.html', styleUrls: ['./settings.component.scss'], }) export class SettingsComponent implements OnInit { constructor() {} ngOnInit(): void {} }
polaronjs/client
src/app/pages/main/pages/settings/settings.component.ts
TypeScript
FunctionDeclaration
export default function App({ children }: { children?: React.ReactNode }) { useEffect(() => { return Duomo.init(process.env.NODE_ENV) }, []) const router = useRouter() useEffect(() => { const handleRouteChange = (url: string) => { if (url === "/") { return } requestAnimationFrame(() => { con...
feathericons/feathericons.com-wip
src/components/App/index.tsx
TypeScript
ArrowFunction
() => { return Duomo.init(process.env.NODE_ENV) }
feathericons/feathericons.com-wip
src/components/App/index.tsx
TypeScript
ArrowFunction
() => { const handleRouteChange = (url: string) => { if (url === "/") { return } requestAnimationFrame(() => { const obscureEffect = document.getElementById("obscure-effect")! window.scrollTo(0, obscureEffect.getBoundingClientRect().y) }) } router.events.on("routeChangeComplete", handleRo...
feathericons/feathericons.com-wip
src/components/App/index.tsx
TypeScript
ArrowFunction
(url: string) => { if (url === "/") { return } requestAnimationFrame(() => { const obscureEffect = document.getElementById("obscure-effect")! window.scrollTo(0, obscureEffect.getBoundingClientRect().y) }) }
feathericons/feathericons.com-wip
src/components/App/index.tsx
TypeScript
ArrowFunction
() => { const obscureEffect = document.getElementById("obscure-effect")! window.scrollTo(0, obscureEffect.getBoundingClientRect().y) }
feathericons/feathericons.com-wip
src/components/App/index.tsx
TypeScript
ArrowFunction
() => { router.events.off("routeChangeComplete", handleRouteChange) }
feathericons/feathericons.com-wip
src/components/App/index.tsx
TypeScript
ArrowFunction
key => ( <div key={key}
feathericons/feathericons.com-wip
src/components/App/index.tsx
TypeScript
InterfaceDeclaration
/** * GetLogGroupFieldsInput shape */ export interface GetLogGroupFieldsInput { /** * <p>The name of the log group to search.</p> */ logGroupName: string; /** * <p>The time to set as the center of the query. If you specify <code>time</code>, the 8 minutes before and 8 minutes after this time are searc...
Dylan0916/aws-sdk-js-v3
clients/node/client-cloudwatch-logs-node/types/GetLogGroupFieldsInput.ts
TypeScript
ClassDeclaration
/** * @variants container */ export class TransformRetentionPolicyContainer { /** Specifies that the transform uses a time field to set the retention policy. */ time: TransformRetentionPolicy }
delvedor/elastic-client-generator
specification/transform/_types/TransformRetentionPolicy.ts
TypeScript
ClassDeclaration
export class TransformRetentionPolicy { /** The date field that is used to calculate the age of the document. */ field: Field /** Specifies the maximum age of a document in the destination index. Documents that are older than the configured value are removed from the destination index. */ max_age: Time }
delvedor/elastic-client-generator
specification/transform/_types/TransformRetentionPolicy.ts
TypeScript
InterfaceDeclaration
export interface IAnnotation<T = IShapeData> { comment?: string; id: string; mark: T; page?: number; status?: "unhandled" | "deleted" | "approved"; disableClick?: boolean; }
cognitedata/react-picture-annotation
src/Annotation.ts
TypeScript
ArrowFunction
( props: ApplicationListItemProps ): JSX.Element => { const { app, onAppNavigate, showFavouriteIcon, ["data-testid"]: testId } = props; return ( <Item.Group unstackable onClick={ ()
AhmedAssaf/identity-apps
apps/myaccount/src/components/applications/application-list-item.tsx
TypeScript
ArrowFunction
(tag, index) => { if (index === 0) { return <span className="tag" key={ index }>{ " " }{ tag }</span>; } return <span class...
AhmedAssaf/identity-apps
apps/myaccount/src/components/applications/application-list-item.tsx
TypeScript
InterfaceDeclaration
/** * Proptypes for the application list item component. * Also see {@link ApplicationListItem.defaultProps} */ interface ApplicationListItemProps extends TestableComponentInterface { app: Application; onAppNavigate: (id: string, url: string) => void; showFavouriteIcon: boolean; }
AhmedAssaf/identity-apps
apps/myaccount/src/components/applications/application-list-item.tsx
TypeScript
ArrowFunction
(key: string) => { return { viewModel: TextCustomElement, panel:PLATFORM.moduleName('components/editor/panels/text.html'), model: key, } as EditorComponentConfig; }
samizdatjs/stellarsonic
src/client/components/editor/panels/text.ts
TypeScript
ClassDeclaration
@inject(Editor) export class TextCustomElement extends ContentEditorComponent { key!: string; activate(key: string) { this.key = key; } }
samizdatjs/stellarsonic
src/client/components/editor/panels/text.ts
TypeScript
MethodDeclaration
activate(key: string) { this.key = key; }
samizdatjs/stellarsonic
src/client/components/editor/panels/text.ts
TypeScript
FunctionDeclaration
function isURL(annotation: URLAnnotation): annotation is URLAnnotation { return annotation.type === "url"; }
CondeNast-Copilot/atjson
packages/@atjson/source-url/src/converter.ts
TypeScript
ArrowFunction
(doc) => { doc .where(isURL) .update(function identifyAndReplaceSocialURLs(annotation: URLAnnotation) { let canonicalURL = SocialURLs.identify(annotation.attributes); if (canonicalURL) { let { attributes, Class } = canonicalURL; doc.replaceAnnotation( annotation, ...
CondeNast-Copilot/atjson
packages/@atjson/source-url/src/converter.ts
TypeScript
ClassDeclaration
@Component({ selector: 'app-contract-call-row', templateUrl: './contract-call-row.component.html', styleUrls: ['./contract-call-row.component.scss'] }) export class ContractCallRowComponent extends DefaultRowComponent implements OnInit { constructor() { super(); } ngOnInit(): void { } }
UatX-Project/smartbch-explorer
src/app/components/zDiscard/address-transactions-list/row/contract-call-row/contract-call-row.component.ts
TypeScript
ArrowFunction
() => { beforeEach(() => { loginAndWaitForPage(HOSTS_PAGE); clickEventsTab(); }); it('renders the fields browser with the expected title when the Events Viewer Fields Browser button is clicked', () => { openEventsViewerFieldsBrowser(); cy.get(FIELDS_BROWSER_TITLE) .invoke('text') ....
trengrj/kibana
x-pack/legacy/plugins/siem/cypress/integration/smoke_tests/events_viewer/events_viewer.spec.ts
TypeScript
ArrowFunction
() => { loginAndWaitForPage(HOSTS_PAGE); clickEventsTab(); }
trengrj/kibana
x-pack/legacy/plugins/siem/cypress/integration/smoke_tests/events_viewer/events_viewer.spec.ts
TypeScript
ArrowFunction
() => { openEventsViewerFieldsBrowser(); cy.get(FIELDS_BROWSER_TITLE) .invoke('text') .should('eq', 'Customize Columns'); }
trengrj/kibana
x-pack/legacy/plugins/siem/cypress/integration/smoke_tests/events_viewer/events_viewer.spec.ts
TypeScript
ArrowFunction
() => { openEventsViewerFieldsBrowser(); clickOutsideFieldsBrowser(); cy.get(FIELDS_BROWSER_CONTAINER).should('not.exist'); }
trengrj/kibana
x-pack/legacy/plugins/siem/cypress/integration/smoke_tests/events_viewer/events_viewer.spec.ts
TypeScript