messages
listlengths
2
2
language
stringclasses
8 values
prompt_type
stringclasses
2 values
lint_errors
int64
0
129
⌀
cyclomatic_complexity
int64
0
32
⌀
license
stringclasses
7 values
commit
stringlengths
40
40
repos
stringlengths
5
116k
new_file
stringlengths
4
220
status
stringclasses
6 values
error
stringlengths
26
74
⌀
is_valid_syntax
bool
2 classes
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Controller, Get } from 'routing-controllers';\n\n@Controller()\nexport default class IndexController {\n @Get('/health')\n public health() {\n return { status: 'OK' };\n }\n}\n\n```\n\nApply this change: Add Loader IO rou...
typescript
edit
0
1
mit
f72634441cde10626729ecbc6e93ebaa77c10af3
rafaell-lycan/sabesp-mananciais-api,rafaell-lycan/sabesp-mananciais-api
src/api/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\ndeclare const _fetch: typeof fetch;\n\ndeclare module 'fetch-retry' {\n type RequestDelayFunction = ((\n attempt: number,\n error: Error | null,\n response: Response | null\n ) => number);\n\n type RequestRetryOnFunction = (...
typescript
edit
0
1
mit
7290d82d052af5187c3d7accd423da74804e63ee
jonbern/fetch-retry,jonbern/fetch-retry
index.d.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * Created by wiekonek on 13.12.16.\n */\nimport {Http, RequestOptions, URLSearchParams} from \"@angular/http\";\nimport {Observable} from \"rxjs\";\nimport {AppAuthenticationService} from \"../../app-authentication.service\";\nimp...
typescript
edit
0
2
mit
60d39ef5769e0b07de918dc958e38d557855c2b1
JiraGoggles/jiragoggles-frontend,JiraGoggles/jiragoggles-frontend,JiraGoggles/jiragoggles-frontend,JiraGoggles/jiragoggles-frontend
src/app/cardsView/services/base-card.service.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {remove, includedIn, flow, map, forEach, cond, identity, isNot, empty} from 'tsfun';\n\n/**\n * TypeDefinition, as used in TypeRegistry\n *\n * @author Daniel de Oliveira\n */\nexport interface RegisteredTypeDefinition {\n\n c...
typescript
edit
0
2
apache-2.0
f2eecc84dc64051ecf78ebc2395b4e652c1ece2e
dainst/idai-components-2,dainst/idai-components-2,dainst/idai-components-2
src/configuration/registered-type-definition.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// @ts-ignore\nimport { cancelTimers, end, getCurrentRunLoop, hasScheduledTimers } from '@ember/runloop';\n\nexport function setupRunLoopCheck(hooks: NestedHooks) {\n hooks.afterEach(function() {\n let { assert } = QUnit.config.curr...
typescript
edit
0
3
mit
0d4b857999f676ffea9f8de29b10d7a6ecb72a62
sly7-7/ember.js,GavinJoyce/ember.js,givanse/ember.js,kellyselden/ember.js,sandstrom/ember.js,emberjs/ember.js,miguelcobain/ember.js,sandstrom/ember.js,mixonic/ember.js,mfeckie/ember.js,sly7-7/ember.js,knownasilya/ember.js,givanse/ember.js,intercom/ember.js,cibernox/ember.js,intercom/ember.js,cibernox/ember.js,miguelcob...
packages/internal-test-helpers/lib/ember-dev/run-loop.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { ModelFactory } from './model-service';\nexport { Model } from './model-service';\n\nexport const ModelModule = angular.module( 'gj.Model', [] )\n.factory( 'Model', ModelFactory )\n.name\n;\n\n```\n\nApply this change: Update Mo...
typescript
edit
0
0
mit
d13cbba50f9c1f043e003a1988b0d4458b268a81
gamejolt/frontend-lib,gamejolt/frontend-lib,gamejolt/frontend-lib,gamejolt/frontend-lib
components/model/model.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/*\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License.\n */\n\n/**\n * This is a dedicated redirect component to be added to Angular apps to \n * handle redirects when using @azure/msal-angu...
typescript
edit
0
1
mit
5b4981f2339665a01c37826b7aab80757422f0ed
AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication...
lib/msal-angular/src/msal.redirect.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport Route from '@ember/routing/route';\nimport '../../css/card-pay/balances.css';\nimport * as short from 'short-uuid';\n\nexport default class CardPayTabBaseRoute extends Route {\n queryParams = {\n flow: {\n refreshModel: ...
typescript
edit
0
6
mit
2ed692e8701bc3365096fe8afc89d43fbb65b3f7
cardstack/cardstack,cardstack/cardstack,cardstack/cardstack,cardstack/cardstack,cardstack/cardstack,cardstack/cardstack
packages/web-client/app/routes/card-pay/base.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Fragment } from \"react\"\n\nconst HorizontalRule = () => (\n <Fragment>\n <hr></hr>\n <style jsx>{`\n hr {\n margin: 8px 0;\n height: 1px;\n border: 0;\n background-image: linear-gradien...
typescript
edit
null
null
mit
cc0389f69d0331eb92baca5133baea32eb96eb97
JosephDuffy/josephduffy.co.uk,JosephDuffy/josephduffy.co.uk,JosephDuffy/josephduffy.co.uk
components/HorizontalRule.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { buildCapabilities } from '../util/capabilities';\n\nimport type { CapturedArguments as Arguments, HelperCapabilities } from '@glimmer/interfaces';\n\ntype FnArgs<Args extends Arguments = Arguments> =\n | [...Args['positional']...
typescript
edit
0
2
mit
2f1f9f0513a3d7206d71f478a1671be31eb5099b
glimmerjs/glimmer-vm,glimmerjs/glimmer-vm,tildeio/glimmer,tildeio/glimmer,glimmerjs/glimmer-vm,tildeio/glimmer
packages/@glimmer/manager/lib/internal/defaults.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Orbit } from '@orbit/core';\n\nexport function jsonapiResponse(\n _options: any,\n body?: any,\n timeout?: number\n): Promise<Response> {\n let options: any;\n let response: Response;\n\n if (typeof _options === 'number')...
typescript
edit
0
8
mit
8d3c2715db74cae24bff16ff9a068b0af8d194f3
orbitjs/orbit.js,orbitjs/orbit.js
packages/@orbit/integration-tests/test/support/jsonapi.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// Show appropriate pill based on #anchor in URL\nimport {Tab} from 'bootstrap';\n\nfunction navigateToAnchorTab() {\n const hash = window.location.hash;\n\n if (hash) {\n const element: Element | null = document.querySelec...
typescript
edit
0
3
apache-2.0
365a9ecd1a15977ac66ecd9ca6c35529ba7cff5d
agdsn/pycroft,agdsn/pycroft,agdsn/pycroft,agdsn/pycroft,agdsn/pycroft
web/resources/js/tab-anchor.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport default interface CategoryState {\n order: any,\n personalDetails: {\n firstName: string,\n lastName: string,\n emailAddress: string,\n password: string,\n createAccount: boolean\n },\n shippingDetails: {\n ...
typescript
edit
0
0
mit
1bc4fca216d199ab42855f6f4ef6991bad4dafdf
pkarw/vue-storefront,pkarw/vue-storefront,DivanteLtd/vue-storefront,pkarw/vue-storefront,DivanteLtd/vue-storefront,DivanteLtd/vue-storefront,pkarw/vue-storefront,DivanteLtd/vue-storefront
core/store/modules/checkout/types/CheckoutState.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component, OnInit } from '@angular/core';\nimport { ActivatedRoute } from '@angular/router';\n\nimport { LocalesService } from './../services/locales.service';\n\n@Component({\n selector: 'locales-list',\n templateUrl: '....
typescript
edit
0
1
mit
e3f41705f5ed9aad93c9f0aec2d03af56c2a78da
anthonynsimon/parrot,anthonynsimon/parrot,anthonynsimon/parrot,anthonynsimon/parrot,todes1/parrot,todes1/parrot,todes1/parrot,todes1/parrot,todes1/parrot,todes1/parrot,anthonynsimon/parrot,anthonynsimon/parrot
app/src/app/locales/locales-list/locales-list.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { CONNECT_ACCOUNT_REQUEST, CONNECT_ACCOUNT_SUCCESS } from '../constants';\nimport { AccountInfo } from '../types';\n\nexport interface ConnectAccountRequest {\n type: CONNECT_ACCOUNT_REQUEST;\n}\n\nexport interface ConnectAccoun...
typescript
edit
0
1
mit
4e7f67c48475148fdb4ae20aefbe83f895739ee4
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
src/actions/connectAccount.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport class HttpException extends Error {\n public readonly message: any;\n\n /**\n * Base Nest application exception, which is handled by the default Exceptions Handler.\n * If you throw an exception from your HTTP route handler...
typescript
edit
0
2
mit
8a80de30174351df3ce8e6d0ce8657a2694eb0f1
kamilmysliwiec/nest,kamilmysliwiec/nest
packages/common/exceptions/http.exception.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n#!/usr/bin/env node\n\nimport * as path from 'path';\nimport {Minifier} from 'ionic-minify';\n\nlet config: IMConfig = require(\"../minify-conf.json\");\nlet cmd: string = process.env.CORDOVA_CMDLINE;\nlet rootDir: string = ...
typescript
edit
0
0
mit
abc0354a20d9c351684ce330a74a3ae7e7ab6f33
Kurtz1993/ionic-minify,Kurtz1993/ionic-minify
after_prepare/ionic-minify.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from 'react';\nimport {shallow} from 'enzyme';\n\nimport {Footer} from './footer';\n\ndescribe('Footer', () => {\n it('should be a footer', () => {\n expect(shallow(<Footer/>).is('footer')).toBe(true);\n });\n});\n\n``...
typescript
edit
null
null
mit
f53890943f8c1497aab089f6b57079710e6236a2
FountainJS/generator-fountain-react,FountainJS/generator-fountain-react,FountainJS/generator-fountain-react
generators/techs/templates/src/app/footer.spec.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/// <reference path=\"../typings/node/node.d.ts\" />\n\nimport * as fs from 'fs';\n\nexport class Dependument {\n private source: string;\n private output: string;\n\n constructor(options: any) {\n if (!options) {\n throw new...
typescript
edit
0
4
unlicense
a51d3b3fc99bb7e41a021979eb5e958bf0c8fcbd
Jameskmonger/dependument,dependument/dependument,Jameskmonger/dependument,dependument/dependument
src/dependument.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { PromptQueue } from \"../Commands/Prompts/PromptQueue\";\nimport { Encounter } from \"../Encounter/Encounter\";\nimport { DefaultRules, IRules } from \"../Rules/Rules\";\nimport { StatBlockTextEnricher } from \"../StatBlock/Stat...
typescript
edit
0
1
mit
847d01925cd01bd65fba99800cdd225ce0f76e12
cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative
client/test/buildEncounter.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport './chaiMoment';\n\nexport * from './mockPromise';\nexport * from './angularFixture';\n\n```\n\nApply this change: Make sure that async is exported as async\n\nThe async function is the default export of the async module, so we ne...
typescript
edit
0
0
mit
32fa0e0fc5eab2d496e06e6d68a0a96765de0446
RenovoSolutions/TypeScript-Angular-Utilities,RenovoSolutions/TypeScript-Angular-Utilities,SamGraber/TypeScript-Angular-Utilities,SamGraber/TypeScript-Angular-Utilities
source/services/test/test.module.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { expect } from \"chai\";\n\nimport { ImportDotx } from \"./import-dotx\";\n\ndescribe(\"ImportDotx\", () => {\n describe(\"#constructor\", () => {\n it(\"should create\", () => {\n const file = new ImportDot...
typescript
edit
0
1
mit
d67452313913b0cf34d49c902e4c05237c3685fb
dolanmiu/docx,dolanmiu/docx,dolanmiu/docx
src/import-dotx/import-dotx.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { storiesOf } from \"@storybook/react-native\"\nimport WorksForYou from \"lib/Containers/WorksForYou\"\nimport { ForYouRenderer, WorksForYouRenderer } from \"lib/relay/QueryRenderers\"\nimport renderWithLoadProgress from \"lib/ut...
typescript
edit
null
null
mit
d019ddac68fe106dd1e3f6893c87039a5cb80351
artsy/eigen,artsy/emission,artsy/emission,artsy/emission,artsy/emission,artsy/eigen,artsy/emission,artsy/eigen,artsy/emission,artsy/emission,artsy/eigen,artsy/eigen,artsy/eigen,artsy/eigen
src/lib/Scenes/Home/__stories__/Home.story.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as MathJax from \"@nteract/mathjax\";\nimport { Source } from \"@nteract/presentational-components\";\nimport React from \"react\";\nimport ReactMarkdown from \"react-markdown\";\n\nimport RemarkMathPlugin from \"./remark-math\...
typescript
edit
null
null
bsd-3-clause
51a837247c58ed460408f40fd385018c14fcd50a
nteract/nteract,nteract/nteract,nteract/composition,nteract/composition,nteract/nteract,nteract/composition,nteract/nteract,nteract/nteract
packages/markdown/src/index.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\ndeclare module \"es6-template-string\"\n{\n /**\n * Provides the functionality to process es6 template-strings.\n */\n interface IES6Template\n {\n /**\n * Renders an es6 template-string.\n *\n ...
typescript
edit
0
1
mit
76306b854c1584ae348f0ff3d0c0de9c3d5d5d63
manuth/MarkdownConverter,manuth/MarkdownConverter,manuth/MarkdownConverter
src/System/es6-template-string.d.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport 'materialize-css';\nimport 'angular2-materialize';\nimport { AnimationBuilder } from 'css-animator/builder';\n\nAnimationBuilder.defaults.fixed = true;\n\n```\n\nApply this change: Resolve missing hammerjs for materialize." }, ...
typescript
edit
0
0
mit
cd13a6da67a8fa2ee8605a4c718de812f8322292
fabianweb/hue,fabiandev/angular2-quiz-app,fabiandev/angular2-quiz-app,fabiandev/angular2-quiz-app,fabianweb/hue,fabianweb/hue
src/js/bootstrap.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {IdaiFieldDocument} from '../model/idai-field-document';\n\nexport var DOCS: IdaiFieldDocument[] = [\n {\n \"id\" : \"o1\", \"resource\" : { \"id\": \"o1\",\n \"identifier\": \"ob1\",\n \"title\": ...
typescript
edit
0
0
apache-2.0
8f696734ee407ac375d377b8ee15c758c3079f7f
codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client
app/datastore/sample-objects.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {\n TimeEntriesPagenationParameters,\n TimeEntry\n} from '../models/timeEntries.models';\n\n// Admin permissions required.\nexport class TimeEntriesAPI {\n harvest;\n baseUrl: string;\n\n constructor(harvest) {\n this.bas...
typescript
edit
0
1
mit
0283879bc6ab00875c620c3020d8a773854169af
log0ymxm/node-harvest
src/api/timeEntries.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n\nexport class Camera {\n\n // Values, the actual matrix is the transposed of that one\n private values: Array<number> = [\n 1, 0, 0,\n 0, 1, 0,\n 0, 0, 0\n ];\n\n // Object space coordinates should map ...
typescript
edit
0
1
mit
d90fb8f346f3c2a290d0459a5240bc28ceb0144c
GreenPix/dilia,Nemikolh/dilia,GreenPix/dilia,Nemikolh/dilia,GreenPix/editor,GreenPix/editor,GreenPix/dilia,Nemikolh/dilia,GreenPix/editor,Nemikolh/dilia,GreenPix/dilia,GreenPix/editor
editor/rendering/camera.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from 'react';\nimport Store from '../../store';\n\nimport Item from './Item';\nimport { Root, ForwardIcon } from './styles';\n\nexport default class TreeBar extends React.Component {\n public render() {\n return (\n ...
typescript
edit
null
null
apache-2.0
0668458e989e622481e18a9ef3bf6fb313c1a8af
Nersent/Wexond,Nersent/Wexond
src/menu/bookmarks/components/TreeBar/index.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Flex } from \"@artsy/palette\"\nimport { ArtistSeriesHeader_artistSeries } from \"__generated__/ArtistSeriesHeader_artistSeries.graphql\"\nimport OpaqueImageView from \"lib/Components/OpaqueImageView/OpaqueImageView\"\nimport R...
typescript
edit
null
null
mit
d49c7826387f9c442c36f14835f9bff2950b92bb
artsy/eigen,artsy/eigen,artsy/eigen,artsy/eigen,artsy/eigen,artsy/eigen,artsy/eigen
src/lib/Scenes/ArtistSeries/ArtistSeriesHeader.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Config, LoadBalancingStrategy } from \"../connection\";\n\nconst ARANGO_URL = process.env.TEST_ARANGODB_URL || \"http://localhost:8529\";\nconst ARANGO_VERSION = Number(\n process.env.ARANGO_VERSION || process.env.ARANGOJS_DEV...
typescript
edit
0
1
apache-2.0
df156adb1fd9f27fbe243a5a143cdead981adb8a
arangodb/arangojs,arangodb/arangojs
src/test/_config.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n\nimport express = require('express');\nimport cors = require('cors');\n\nconst app = express();\napp.use(cors());\napp.use(cors({\n maxAge: 100,\n credentials: true,\n optionsSuccessStatus: 200\n}));\napp.use(cors({\n metho...
typescript
edit
0
2
mit
b772907b2d527ea471dcaaab3a078ae81ad3ba3e
zuzusik/DefinitelyTyped,aciccarello/DefinitelyTyped,zuzusik/DefinitelyTyped,AgentME/DefinitelyTyped,georgemarshall/DefinitelyTyped,AbraaoAlves/DefinitelyTyped,arusakov/DefinitelyTyped,borisyankov/DefinitelyTyped,aciccarello/DefinitelyTyped,dsebastien/DefinitelyTyped,benliddicott/DefinitelyTyped,rolandzwaga/DefinitelyTy...
types/cors/cors-tests.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// Copyright (C) 2016 Sergey Akopkokhyants\n// This project is licensed under the terms of the MIT license.\n// https://github.com/akserg/ng2-toasty\n\nimport { NgModule, ModuleWithProviders } from \"@angular/core\";\n\nexport * from '....
typescript
edit
0
1
mit
883bc29a92d52646a0c10739bbeb9074610a6941
akserg/ng2-toasty,akserg/ng2-toasty
index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { isSameDay } from 'date-fns';\nimport * as React from 'react';\nimport { DayProps } from '../../types';\n\nimport { getDayComponent } from './getDayComponent';\n\nexport function Day(props: DayProps): JSX.Element | null {\n con...
typescript
edit
null
null
mit
d33d1720d64c62bc1dd4d26d5646d0016a192290
gpbl/react-day-picker,gpbl/react-day-picker,gpbl/react-day-picker
packages/react-day-picker/src/components/Day/Day.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component } from '@angular/core';\n\nimport {\n ListState,\n ListStateDispatcher,\n ListItemsLoadAction,\n ListItemModel\n} from '../../../core';\n\n@Component({\n selector: 'sky-list-paging-demo',\n templateUrl: './list-...
typescript
edit
0
1
mit
ab9f052f5ed73833e2bca4ca18657345d76ee66d
blackbaud/skyux2,blackbaud/skyux2,blackbaud-joshgerdes/skyux2,blackbaud-joshgerdes/skyux2,blackbaud/skyux2,blackbaud-joshgerdes/skyux2,blackbaud/skyux2,blackbaud-joshgerdes/skyux2
src/app/components/list-paging/list-paging-demo.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nclass A<T> {\r\n genericVar: T\r\n}\r\nfunction B<T>() {\r\n // class expression can use T\r\n return class extends A<T> { }\r\n}\r\n// extends can call B\r\nclass K extends B<number>() {\r\n name: string;\r\n}\r\nvar c = n...
typescript
edit
0
0
apache-2.0
9223b02136f0ede6ebeacf0404a7c8c9a2851486
Microsoft/TypeScript,chuckjaz/TypeScript,minestarks/TypeScript,evgrud/TypeScript,synaptek/TypeScript,basarat/TypeScript,SaschaNaz/TypeScript,blakeembrey/TypeScript,nojvek/TypeScript,microsoft/TypeScript,Eyas/TypeScript,blakeembrey/TypeScript,vilic/TypeScript,ionux/TypeScript,basarat/TypeScript,TukekeSoft/TypeScript,mmo...
tests/cases/conformance/classes/classExpressions/genericClassExpressionInFunction.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Tag } from './tag';\nimport { Sport } from './sport';\nimport { Address } from './address';\nimport { Image } from './image';\n\nexport class Workout {\n public id: number;\n public startdate: Date;\n public enddate: D...
typescript
edit
0
1
mit
0c281242718d18ce5ea26a5ec972b7022854685a
XavierGuichet/bemoove-front,XavierGuichet/bemoove-front,XavierGuichet/bemoove-front
src/app/models/workout.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from 'react'\nimport {shallow} from 'enzyme'\n\nimport {isUUIDv4} from 'src/utils/stringValidators'\n\nimport KapacitorRulesTable from 'src/kapacitor/components/KapacitorRulesTable'\n\nimport {source, kapacitorRules} from '...
typescript
edit
null
null
mit
54266c094adea7a3ea4449e1e223fa74ac5fabed
influxdata/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,mark-rushakoff/influxdb,nooproblem/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,li-ang/influxdb,mark-rushakoff/influxdb,nooproblem/influxdb,li-ang/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,influxdata/influxd...
ui/test/kapacitor/components/KapacitorRulesTable.test.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as vscode from 'vscode';\n\nimport * as functionParser from './functionParser';\n\nexport function activate() {\n\n\n\tconsole.log('Congratulations, your extension \"addDocComments\" is now active!');\n\n\tvscode.commands.regis...
typescript
edit
0
2
mit
dabd611f7f5adbcd2c51feae30fc20a096ab8d66
Microsoft/vscode-comment
extension.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { _rateLimiterMiddleware, BURST_LIMIT_MESSAGE } from \"../rateLimiting\"\n\ndescribe(\"rate limiting\", () => {\n let rateLimiter\n let burstLimiter\n let next\n let res\n let status\n let send\n let middleware\n\n before...
typescript
edit
0
1
mit
228307f9f2288a3ff3aa9865f682f4fa5a1f95f8
yuki24/force,anandaroop/force,mzikherman/force,mzikherman/force,oxaudo/force,eessex/force,oxaudo/force,joeyAghion/force,cavvia/force-1,eessex/force,eessex/force,joeyAghion/force,artsy/force-public,xtina-starr/force,izakp/force,eessex/force,erikdstock/force,artsy/force,oxaudo/force,damassi/force,anandaroop/force,cavvia/...
src/lib/middleware/__tests__/rateLimiting.jest.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport url from 'url';\nimport { PLATFORM } from './utils';\n\nexport const serverPort = PLATFORM === 'server' && (process.env.PORT || __SERVER_PORT__);\nexport const isApiExternal = !!url.parse(__API_URL__).protocol;\n\nconst clientApi...
typescript
edit
0
0
mit
7431bb83209e8b8cb337a246eb815d10ce377f14
sysgears/apollo-universal-starter-kit,sysgears/apollo-fullstack-starter-kit,sysgears/apollo-universal-starter-kit,sysgears/apollo-universal-starter-kit,sysgears/apollo-universal-starter-kit
modules/core/common/net.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/// <reference path=\"../../../typings/mocha/mocha.d.ts\" />\n/// <reference path=\"../../../typings/chai/chai.d.ts\" />\n\nimport { expect } from 'chai'\nimport * as Up from '../../index'\nimport { SyntaxNode } from '../../SyntaxNodes/...
typescript
edit
0
1
mit
15c8360e5356a6d1b4954176b3f0146c42b817e8
start/up,start/up
src/Test/Ast/CodeBlock.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Directive, Input, OnInit, Optional } from '@angular/core';\nimport { DialogRef } from './dialog-ref';\n\n\nlet uniqueId = 0;\n\n\n@Directive({\n selector: '[gdDialogTitle]',\n host: {\n 'class': 'DialogTitle',\n ...
typescript
edit
0
3
mit
c82c81856bf5038c2f5b348545aa8059ac22e483
seokju-na/geeks-diary,seokju-na/geeks-diary,seokju-na/geeks-diary
src/browser/ui/dialog/dialog-title.directive.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as encryption from './encryption';\n\nexport const hashPassword = encryption.hashPassword;\nexport const comparePasswordWithHash = encryption.comparePasswordWithHash;\n\nmodule.exports = encryption;\n\n```\n\nApply this change:...
typescript
edit
0
0
mit
283907a20e5de2a156703aac37c80d2358d485e0
treylon/node-secure-password
lib/main.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from 'react'\nimport PageCreateModal from './PageCreateModal'\nimport Crowi from '../../util/Crowi'\nimport i18n from '../../i18n'\n\ni18n()\n\nconst crowi = new Crowi({ user: {}, csrfToken: '' }, window)\n\nexport default ...
typescript
edit
null
null
mit
3353e7005e5de3913dc960e1cbeefac48f5da0cc
crowi/crowi,crowi/crowi,crowi/crowi
client/components/Modal/PageCreateModal.stories.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component, OnInit } from '@angular/core';\nimport { PLAYLIST_DATA } from './playlist';\n\n@Component({\n selector: 'app-root',\n templateUrl: './app.component.html',\n styleUrls: ['./app.component.css']\n})\nexport class App...
typescript
edit
0
2
apache-2.0
4d6e593c27e2bfb9d82b3a1f326f23c7f50403fd
shioyang/StatsBar,shioyang/StatsBar,shioyang/StatsBar
src/app/app.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport matter from \"gray-matter\"\nimport glob from \"glob\"\nimport path from \"path\"\nimport fs from \"fs\"\nimport BlogPost from \"../../models/BlogPost\"\nimport { EntryType } from \"./Entry\"\n\nexport class PostsLoader {\n priv...
typescript
edit
0
0
mit
18408e773946923925bfbb719b37ea1875e8ac8a
JosephDuffy/josephduffy.co.uk,JosephDuffy/josephduffy.co.uk,JosephDuffy/josephduffy.co.uk
data/loaders/PostsLoader.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for ...
typescript
edit
0
0
mit
a2d4a292d4acd455c26fb8f153578970ed888453
microsoft/vscode,williamcspace/vscode,stringham/vscode,hoovercj/vscode,hungys/vscode,Zalastax/vscode,the-ress/vscode,Microsoft/vscode,stringham/vscode,Krzysztof-Cieslak/vscode,hashhar/vscode,hashhar/vscode,0xmohit/vscode,radshit/vscode,eklavyamirani/vscode,ups216/vscode,hungys/vscode,landonepps/vscode,hoovercj/vscode,r...
src/vs/workbench/parts/terminal/common/terminal.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nconst DELAY = 500;\n\ncontext(\"Mentions\", () => {\n beforeEach(() => {\n cy.visit(\"http://localhost:4000\");\n });\n it(\"'@ + Enter' should select the first suggestion\", () => {\n cy.get(\".mde-text\")\n .type(\"{sele...
typescript
edit
0
1
mit
58c37d761a62100016a92786ae8620006143cf3d
andrerpena/react-mde,andrerpena/react-mde,andrerpena/react-mde
cypress/integration/mentions.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from 'react';\n\nimport { format } from 'date-fns';\nimport { DayPicker } from 'react-day-picker';\nimport 'react-day-picker/dist/style.css';\n\nexport default function Example() {\n const [selected, setSelected] = React.u...
typescript
edit
null
null
mit
5764e028b4e56421868a896554f5f1bfaca0fc6c
gpbl/react-day-picker,gpbl/react-day-picker,gpbl/react-day-picker
website/examples/start.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as CleanWebpackPlugin from 'clean-webpack-plugin';\n\nconst paths = [\n\t'path',\n\t'glob/**/*.js',\n];\n\nnew CleanWebpackPlugin(paths);\nnew CleanWebpackPlugin(paths, 'root-directory');\nnew CleanWebpackPlugin(paths, {});\nne...
typescript
edit
0
0
mit
c01435e9df80be04636b3e114e823bfa7a85be4f
AgentME/DefinitelyTyped,borisyankov/DefinitelyTyped,one-pieces/DefinitelyTyped,georgemarshall/DefinitelyTyped,aciccarello/DefinitelyTyped,magny/DefinitelyTyped,chrootsu/DefinitelyTyped,aciccarello/DefinitelyTyped,AbraaoAlves/DefinitelyTyped,alexdresko/DefinitelyTyped,borisyankov/DefinitelyTyped,magny/DefinitelyTyped,ge...
types/clean-webpack-plugin/clean-webpack-plugin-tests.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {bootstrap} from '@angular/platform-browser-dynamic';\nimport {AppComponent} from './app.component';\n\nbootstrap(AppComponent);\n\n```\n\nApply this change: Enable Angular 2 prod mode on website to increase performance." },...
typescript
edit
0
0
mit
c39138e6a7bc51261600eee2c578011247f6c282
DTU-R3/ArloBot,chrisl8/ArloBot,chrisl8/ArloBot,DTU-R3/ArloBot,DTU-R3/ArloBot,remarvel/ArloBot,remarvel/ArloBot,remarvel/ArloBot,chrisl8/ArloBot,remarvel/ArloBot,chrisl8/ArloBot,DTU-R3/ArloBot,chrisl8/ArloBot,chrisl8/ArloBot,remarvel/ArloBot,DTU-R3/ArloBot,DTU-R3/ArloBot,remarvel/ArloBot
website/app/main.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { createContext } from 'react';\n\nexport type FeatureType = 'boolean' | 'integer' | 'float' | 'string' | 'enumeration' | 'mixed';\n\nexport interface Feature<V = any> {\n Code: string;\n Type: FeatureType;\n DefaultValu...
typescript
edit
0
0
mit
3bb15c9278d672c4181c1cc36db1e67c0265da35
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
packages/components/containers/features/FeaturesContext.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n\nimport { ECPair, address as baddress } from 'bitcoinjs-lib'\nimport { randomBytes } from './encryption/cryptoRandom'\nimport { createSha2Hash } from './encryption/sha2Hash'\nimport { createHashRipemd160 } from './encryption/hashRipemd...
typescript
edit
0
2
mit
11738f0da96ca7dd7ebff1c39bc1778f3f0e3e92
blockstack/opendig,blockstack/blockstack-cli,blockstack/blockstack-cli
src/keys.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as Gtk from '../../out/Gtk'\nimport * as WebKit from '../../out/WebKit'\n\nGtk.init(null)\n\nlet wnd = new Gtk.Window({ title: 'Browser Test', default_width: 400, default_height: 300 })\nlet box = new Gtk.Box({ })\nlet scrol...
typescript
edit
0
1
apache-2.0
c5fe83cb119f84ccd3ba6155e4544fc7a207fdd1
sammydre/ts-for-gjs,sammydre/ts-for-gjs
examples/browser/main.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { add } from '../../../_modules/i18n';\n\nimport nl from './nl';\nimport fa from './fa';\nimport de from './de';\nimport ru from './ru';\nimport pt_br from './pt_br';\n\nexport default function() {\n add(nl, 'nl');\n add(fa...
typescript
edit
0
1
mit
b6ea06b8381802f611ebca36cbf435a7e81d6b0b
BeSite/jQuery.mmenu,BeSite/jQuery.mmenu
src/core/screenreader/translations/translate.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport Processor from './processor';\n\nexport default class Throttler extends Processor {\n private eventsPerPeriod: number;\n private eventsInProgress: number = 0;\n private periodInMS: number;\n private queue: any[] = [];\n\n co...
typescript
edit
0
2
isc
c607a6a498eaee150560093625d8148113168a39
Workable/aggregator-eip
src/lib/processors/throttler.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n This file purely exists to make sure the expected syntax passes typescript type-checking\n */\n\nimport TminusLib = require(\"../src/lib\");\n\nfunction noop() {\n var control = TminusLib.countdown({\n endTime: new Date(...
typescript
edit
0
1
mit
2c5fb70dd4a73051f3117ad6f6f0a2b3b72e238e
ChronusEU/lib-tminus.js,ChronusEU/lib-tminus.js,ChronusEU/lib-tminus.js
spec/TsSyntaxTest.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Observable} from \"rxjs/Observable\";\n\nexport interface IPlayable {\n id:string;\n elem:any;\n time:any;\n buffer:any;\n track?:any;\n canPlay:boolean;\n canPlayThrough:boolean;\n isMetadataLoaded:boole...
typescript
edit
0
0
mit
3cf03ced32ba24df96fa646969e8f628f57bbe2b
videogular/videogular2,videogular/videogular2,amitkumarmahajan/videogular2,amitkumarmahajan/videogular2,amitkumarmahajan/videogular2,kwarismian/videogular2,videogular/videogular2,kwarismian/videogular2,kwarismian/videogular2
src/core/vg-media/i-playable.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n'use strict';\n\nimport http = require('http');\nimport * as q from 'q';\nimport * as request from 'request';\nimport * as fs from 'fs';\n\nasync function existsAsync(path: string) {\n return new Promise<boolean>(resolve => fs.exists...
typescript
edit
0
2
mit
d84b2df520991b1681736b4786c601eb38d97a0a
AArnott/Nerdbank.GitVersioning,AArnott/Nerdbank.GitVersioning,AArnott/Nerdbank.GitVersioning
src/nerdbank-gitversioning.npm/ts/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from \"react\";\nimport Plus = require(\"react-icons/lib/md/add\");\n\nimport \"./style/CreateItem.css\";\n\ninterface IProps {\n createItem: () => void;\n}\n\ninterface IState {\n creatingItem: boolean;\n}\n\nex...
typescript
edit
null
null
mit
f9cce11d86789416c0760e04f071e56b1ba65b25
raviqqe/code2d,raviqqe/code2d,raviqqe/code2d,raviqqe/code2d
app/src/component/CreateItem.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { hot } from 'react-hot-loader/root';\nimport React from 'react';\nimport { ProtonApp, StandardSetup } from 'react-components';\nimport locales from 'proton-shared/lib/i18n/locales';\nimport sentry from 'proton-shared/lib/helpers...
typescript
edit
null
null
mit
3a4cb35d4857d1df65118f7c3266df0fc6f9df8d
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
applications/calendar/src/app/App.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nvar map: L.Map;\n\n// Defaults\nL.control.locate().addTo(map);\n\n// Simple\nvar lc = L.control.locate({\n position: 'topright',\n strings: {\n title: \"Show me where I am, yo!\"\n }\n}).addTo(map);\n\n// Locate Options\...
typescript
edit
0
0
mit
e6244de6e32a5fd8119fe304f519ca076fb34d81
ashwinr/DefinitelyTyped,markogresak/DefinitelyTyped,zuzusik/DefinitelyTyped,zuzusik/DefinitelyTyped,georgemarshall/DefinitelyTyped,YousefED/DefinitelyTyped,isman-usoh/DefinitelyTyped,arusakov/DefinitelyTyped,laurentiustamate94/DefinitelyTyped,chrootsu/DefinitelyTyped,johan-gorter/DefinitelyTyped,mcliment/DefinitelyType...
types/leaflet.locatecontrol/leaflet.locatecontrol-tests.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * Extensions of all assets that can be served via url\n */\nexport const imageAssetsExtensions = [\n 'bmp',\n 'gif',\n 'ico',\n 'jpeg',\n 'jpg',\n 'png',\n 'svg',\n 'tif',\n 'tiff',\n];\n\n```\n\nApply this change: Add we...
typescript
edit
0
0
mit
331f08f6403a59810cb3e20e106d33e8dd0a4984
Atyantik/react-pwa,Atyantik/react-pwa
packages/core/src/webpack/image-assets-extensions.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/* Generated API endpoints */\nfinale.initialize({ app, sequelize: models.sequelize })\n\nconst autoModels = [\n { name: 'User', exclude: ['password', 'totpSecret', 'role'] },\n { name: 'Product', exclude: [] },\n { name: 'Feedback',...
typescript
edit
null
null
mit
edec01f4c51d4d2f14631a3f851954d0dc047a83
bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop
data/static/codefixes/registerAdminChallenge_4.ts
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { fixture as f } from './fixture'\n\nexport default f\nexport * from './interfaces'\n\nimport fs = require('fs')\nimport path = require('path')\n\nconst cache = {}\nexport function fixture(dir) {\n const absDir = path.resolve(di...
typescript
edit
0
3
mit
4a77f74116bccfc07bb649457fe454761f219f91
unional/ava-fixture,unional/ava-fixture
src/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nclass TalksCtrl{\n constructor() {\n const favoriteButtons = document.getElementsByClassName('mxt-img--favorite');\n Array.from(favoriteButtons).forEach((favoriteButton: HTMLElement) => favoriteButton.onclick= this.favoriteTogg...
typescript
edit
0
2
apache-2.0
a96bdc08c16222f1b4850e459360478c2db949ea
mixitconf/mixit,mix-it/mixit,mix-it/mixit,mixitconf/mixit,mix-it/mixit,mixitconf/mixit,mix-it/mixit,mixitconf/mixit,mix-it/mixit
src/main/ts/talks.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { CancellationToken, CodeAction, CodeActionContext, CodeActionKind, CodeActionProvider, CodeActionProviderMetadata, Range, TextDocument } from \"vscode\";\nimport { isAnalyzableAndInWorkspace } from \"../utils\";\n\nconst SourceS...
typescript
edit
0
0
mit
58014ce1b4fa0793ca38a11f235c7adccb05fa25
Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code
src/extension/providers/source_code_action_provider.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/* tslint:disable:no-unused-variable */\n\n/*!\n * Map Layers Reducer Test\n *\n * Copyright(c) Exequiel Ceasar Navarrete <<EMAIL>>\n * Licensed under MIT\n */\n\nimport { async, inject } from '@angular/core/testing';\nimport { MapLayer...
typescript
edit
0
1
mit
0174bdd22a1a5ffba34f6f76b69323198cd0cee9
ecsnavarretemit/sarai-ng2,ecsnavarretemit/sarai-ng2,ecsnavarretemit/sarai-interactive-maps,ecsnavarretemit/sarai-ng2,ecsnavarretemit/sarai-interactive-maps,ecsnavarretemit/sarai-interactive-maps
src/app/store/map-layers/map-layers.reducer.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from 'react';\nimport { Icon, classnames } from 'react-components';\n\nimport './RefreshRotation.scss';\n\ninterface Props {\n unreadCount?: number;\n active?: boolean;\n refreshing?: boolean;\n}\n\nconst LocationA...
typescript
edit
null
null
mit
fa67c980a277de8c6194d67bcee0a2fec9739ef8
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
applications/mail/src/app/components/sidebar/LocationAside.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport distance from '@turf/distance';\nimport { segmentReduce } from '@turf/meta';\nimport { Feature, FeatureCollection, LineString, MultiLineString, GeometryCollection, Units } from '@turf/helpers';\n\n/**\n * Takes a {@link GeoJSON} ...
typescript
edit
0
1
mit
94b4f2ec874903ac3906df1cedf8de865640ac6b
dpmcmlxxvi/turf,tilemapjp/turf,dpmcmlxxvi/turf,dpmcmlxxvi/turf,tilemapjp/turf,Turfjs/turf,tilemapjp/turf,Turfjs/turf,Turfjs/turf
packages/turf-length/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { InlineSyntaxNode } from './InlineSyntaxNode'\nimport { OutlineSyntaxNode } from './OutlineSyntaxNode'\n\n\nexport class LineBlockNode implements OutlineSyntaxNode {\n constructor(public lines: LineBlockNode.Line[]) { }\n\n OU...
typescript
edit
0
1
mit
4880f50d11566b6d58e820e39b0708f291d6d33f
start/up,start/up
src/SyntaxNodes/LineBlockNode.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n\nimport { expect } from 'chai'\nimport * as Up from '../../index'\nimport { OrderedListNode } from '../../SyntaxNodes/OrderedListNode'\n\nfunction listStart(text: string): number {\n const list = <OrderedListNode>Up.toAst(text).childr...
typescript
edit
0
1
mit
c67fb558bd62123ca6add635884e349469e0a999
start/up,start/up
src/Test/Ast/OrderedListStart.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/// <reference path=\"ravenjs.d.ts\" />\n\nvar options: RavenOptions = {\n logger: 'my-logger',\n ignoreUrls: [\n /graph\\.facebook\\.com/i\n ],\n ignoreErrors: [\n 'fb_xd_fragment'\n ],\n includePaths: [...
typescript
edit
0
1
mit
03aeef911ff3b195c65c64e0ebf6bf493f8c45f8
shlomiassaf/DefinitelyTyped,daptiv/DefinitelyTyped,zuzusik/DefinitelyTyped,Litee/DefinitelyTyped,stephenjelfs/DefinitelyTyped,EnableSoftware/DefinitelyTyped,nycdotnet/DefinitelyTyped,wilfrem/DefinitelyTyped,nobuoka/DefinitelyTyped,abbasmhd/DefinitelyTyped,rolandzwaga/DefinitelyTyped,HPFOD/DefinitelyTyped,Litee/Definite...
ravenjs/ravenjs-tests.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as superagent from 'superagent';\n\nimport {\n APIResponse,\n APIResponseError,\n APIResponseSuccess,\n IClient,\n IConfig\n} from '../definitions';\n\nconst CONTENT_TYPE_JSON = 'application/json';\nexport const ERROR_UNKN...
typescript
edit
0
4
mit
d644325b277a271a7ce8884126ffa25cf012e362
driftyco/ionic-cli,devtotvs/thf-mobile-cli,devtotvs/thf-mobile-cli,ricardo-mello/ionic-cli,driftyco/ionic-cli,ricardo-mello/ionic-cli,driftyco/ionic-cli,devtotvs/thf-mobile-cli,ricardo-mello/ionic-cli
packages/cli/src/lib/api.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { ComponentFixture, async } from '@angular/core/testing';\nimport { TestUtils } from '../../test-utils';\nimport { ClickerButton } from './clickerButton';\nimport { ClickerMock } from '../../mo...
typescript
edit
0
1
mit
44f89cd16229f0e8c8818f79a8c102f826ee6f5d
lathonez/clicker,lathonez/clicker,orthodoc/jointdb,lathonez/clicker,orthodoc/jointdb,orthodoc/jointdb
src/components/clickerButton/clickerButton.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { PRetryConfig, isTest } from '@terascope/utils';\n\nexport const MAX_RETRIES = isTest ? 2 : 100;\nexport const RETRY_DELAY = isTest ? 50 : 500;\n\nexport function getRetryConfig(): Partial<PRetryConfig> {\n return {\n ...
typescript
edit
0
1
apache-2.0
ea5c4305a1a79ef4ad499af0536979d800b24233
terascope/teraslice,terascope/teraslice,terascope/teraslice,terascope/teraslice
packages/elasticsearch-store/src/utils/retry-config.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as stringify from \"json-stringify-pretty-compact\";\nimport { JSONKifuFormat } from \"./shogiUtils\";\n\nexport default class Api {\n static fetchJKF() {\n const begin = new Date();\n return fetch('/jkf')\n .then(r...
typescript
edit
0
2
mit
f6299343538458384b9e83294260297bb13a82b5
orangain/kifu-notebook,orangain/kifu-notebook,orangain/kifu-notebook,orangain/kifu-notebook,orangain/kifu-notebook
src/api.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport Vue from 'vue';\nimport { Component } from 'vue-property-decorator';\nimport { State } from 'vuex-class';\nimport View from '!view!./pricing-card.html?style=./pricing-card.styl';\n\nimport { Store } from '../../store/index';\nimp...
typescript
edit
0
1
mit
1d08fec807d09fb4fa4b96408aca19c742b71066
gamejolt/widgets,gamejolt/widgets,gamejolt/widgets
src/app/components/pricing-card/pricing-card.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { SettingType } from './SettingType';\n\nexport interface ISetting {\n /** The id of this setting. */\n id: string;\n /** Type of setting this is. */\n type: SettingType;\n /** What is the default value (allows a r...
typescript
edit
0
0
mit
d63a17cd51246073be5b59e290b6dd1b4edcb515
graywolf336/temporary-rocketlets-ts-definition,graywolf336/temporary-rocketlets-ts-definition
src/settings/ISetting.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { RequestHandler } from 'express'\nimport * as get from './db'\n\nexport const one: RequestHandler = async (req, res) => {\n const application = await get.one(req.params.id)\n res.json(application)\n}\n\nexport const all: Reque...
typescript
edit
0
2
mit
333990d1510f95b76f9659f13b524a31978523ef
the-concierge/concierge,the-concierge/concierge,the-concierge/concierge
src/api/applications/get.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport Day from './Day'\n\nexport default class Model {\n private _checkInDate: Day\n private _checkOutDate: Day\n\n constructor(checkInDate: Day, checkOutDate: Day) {\n if (checkOutDate.toMoment().isBefore(checkInDate.t...
typescript
edit
0
2
mit
8c1584003341eefa95b6cdf940bcfb9cca206cea
ikr/react-period-of-stay-input,ikr/react-period-of-stay-input,ikr/react-period-of-stay-input
src/Model.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/* eslint-disable */\n/////////////////////////////////////////////////////////////////////////////////////////\n// //\n// !!! DO NOT EDIT THIS FILE !!!...
typescript
edit
0
0
mit
8d9cf180e671d9e332afb2f3c4b04f4ddee6409a
slackapi/node-slack-sdk,slackapi/node-slack-sdk,slackapi/node-slack-sdk,slackapi/node-slack-sdk
packages/web-api/src/response/TeamProfileGetResponse.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { TResponse, TResponseItem } from \"./alfred/response\";\nimport { getAllIconsObject, TIconObject } from \"./assets/icons_object\";\n\nexport const toResponseItem = (iconObject: TIconObject): TResponseItem => {\n return {\n t...
typescript
edit
0
4
mit
60595a002b439dda178bbec17289b02cf32db316
ruedap/alfred-font-awesome-workflow,ruedap/alfred-font-awesome-workflow,ruedap/alfred-font-awesome-workflow
src/icons.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Injectable} from '@angular/core';\nimport {Http, Request} from '@angular/http';\nimport {Observable} from 'rxjs';\n\nimport {RestangularHelper} from './ng2-restangular-helper';\n\n\n@Injectable()\nexport class RestangularHttp {\...
typescript
edit
0
3
mit
fd08ac356a47d3430ec9bc1f22b527984fd877ff
2muchcoffeecom/ngx-restangular,2muchcoffeecom/ngx-restangular,2muchcoffeecom/ng2-restangular,2muchcoffeecom/ng2-restangular
src/ng2-restangular-http.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// Copyright 2013-2014 Naked Objects Group Ltd\n// Licensed under the Apache License, Version 2.0(the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at http:/...
typescript
edit
0
0
apache-2.0
7bbc1a971b70964e3c609ebd8a69e22564ebf4cc
NakedObjectsGroup/NakedObjectsFramework,NakedObjectsGroup/NakedObjectsFramework,NakedObjectsGroup/NakedObjectsFramework,NakedObjectsGroup/NakedObjectsFramework
Spa/NakedObjects.Spa/Scripts/nakedobjects.config.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport {default as Size} from './size'\nexport {default as Point} from './point'\nexport {default as Scale} from './scale'\nexport {default as Rectangle, Rectangular } from './rectangle'\nexport {default as Borders} from './borders'\nex...
typescript
edit
0
0
mit
a20600e20aed6cf4d7ef2ade188bfe615c8b8c74
romancow/ts-geometry,romancow/ts-geometry
src/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {applyMiddleware, createStore} from 'redux'\nimport flowRight from 'lodash-es/flowRight'\nimport * as firebase from 'firebase/app'\nimport {reducer} from './reducer'\nimport {reactReduxFirebase} from 'react-redux-firebase'\n\ncon...
typescript
edit
0
0
mit
afa242e9c03e609d5e9a5c53caffbfe7e60d1848
jsse-2017-ph23/web-frontend,jsse-2017-ph23/web-frontend,jsse-2017-ph23/web-frontend
src/store.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nclass Queue {\n\n private _running = false;\n\n private _queue: Function[] = [];\n\n public push(f: Function) {\n this._queue.push(f);\n\n if (!this._running) {\n // if nothing is running, then start the engines!\n th...
typescript
edit
0
2
apache-2.0
2fd0ce9e2e049ab165a1fa016b54cb1f75db23c0
KamiKillertO/vscode-colorize,KamiKillertO/vscode-colorize
src/queue.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/* Copyright 2019 Google Inc. All Rights Reserved.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n ht...
typescript
edit
0
2
apache-2.0
d7c68a6853b87e4e453835830e5fee4d17833645
google/chicago-brick,google/chicago-brick,google/chicago-brick,google/chicago-brick
server/util/credentials.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { tracked } from '@glimmer/tracking';\nimport { Layer1Web3Strategy, TransactionHash } from './types';\nimport BN from 'bn.js';\nimport { WalletProvider } from '../wallet-providers';\nimport { defer } from 'rsvp';\nimport { Transa...
typescript
edit
0
1
mit
e1239b6c5a7cdb8f34751971d0c7b8b3e64870e2
cardstack/cardstack,cardstack/cardstack,cardstack/cardstack,cardstack/cardstack,cardstack/cardstack,cardstack/cardstack
packages/web-client/app/utils/web3-strategies/ethereum.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {rtmClient, webClient} from './slack';\n\nexport class Deferred {\n\tpromise: Promise<any>;\n\tprivate nativeReject: (...args: any[]) => any;\n\tprivate nativeResolve: (...args: any[]) => any;\n\n\tconstructor() {\n\t\tthis.promi...
typescript
edit
0
2
mit
4029e7156141d2e0496738594e770c36ca4e615b
tsg-ut/slackbot,tsg-ut/slackbot,tsg-ut/slackbot,tsg-ut/slackbot,tsg-ut/slackbot,tsg-ut/slackbot
lib/utils.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { sslTest, dnssec, headers } from './infr';\n\nimport * as assert from 'assert';\n\nexport async function testSslPositive() {\n const result = await sslTest({ host: 'google.com' });\n assert.equal(result.endpoints.length, 2...
typescript
edit
0
2
apache-2.0
8ade355abf632c3928ca3fd595505d36c257583a
wiktor-k/infrastructure-tests
infr_tests.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {BaseApp} from 'jovo-core';\nimport {MongoDb, Config} from 'jovo-db-mongodb';\nimport _get = require('lodash.get');\n\nexport class CosmosDb extends MongoDb {\n constructor(config?: Config) {\n super(config);\n }\n\n...
typescript
edit
0
3
apache-2.0
95450b68ef3a6ee9763e84794b86604375a887fe
jovotech/jovo-framework-nodejs,jovotech/jovo-framework-nodejs
jovo-integrations/jovo-db-cosmosdb/src/CosmosDb.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Readable, ReadableOptions } from 'stream';\nimport * as fs from 'fs';\n\nexport class ContinuesReadStream extends Readable {\n private closed = false;\n private offset = 0;\n private file: number;\n private poll: No...
typescript
edit
0
3
mit
4ca67ab4633d4b316333a10246d041fd22b969bc
SimonSchick/EliteDangerousUtils
src/EDLog/ContinousReadStream.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// Copyright (c) 2016 Vadim Macagon\n// MIT License, see LICENSE file for full terms.\n\nimport * as React from 'react';\nimport { PolymerComponent } from './polymer';\n\n/**\n * React component that wraps a Polymer paper-icon-button cu...
typescript
edit
null
null
mit
18658caefdb8bb45fd8fc329c5a6e15ab3798b49
debugworkbench/hydragon,debugworkbench/hydragon,debugworkbench/hydragon
app/src/renderer/components/paper/paper-icon-button.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component, OnInit } from '@angular/core';\n\n@Component({\n selector: 'app-bucketlists',\n templateUrl: './bucketlists.component.html',\n styleUrls: ['./bucketlists.component.css']\n})\nexport class BucketlistsComponent impl...
typescript
edit
0
1
mit
7e32f5a46c438ef946c36e572b9a9bc01b3cc63d
emugaya/bucketlist_frontend,emugaya/bucketlist_frontend,emugaya/bucketlist_frontend
src/app/bucketlists/bucketlists.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport { Exchange } from \"infrastructure/chat\";\nimport { MittensChat } from \"./mittens-chat\";\nimport { Signup } from \"components/signup/signup\";\n\nMittensChat.createGoal(\"notification-signup\")...
typescript
edit
null
null
mit
60f57c203f65c9b25799ffaa21327042d5de2061
citizenlabsgr/voter-engagement,citizenlabsgr/voter-engagement,citizenlabsgr/voter-engagement,citizenlabsgr/voter-engagement,citizenlabsgr/voter-engagement
web_client/app/models/mittens-chat/notification-signup.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React, { useState, useEffect } from 'react';\nimport { c } from 'ttag';\n\nimport { Row, Label, Field, SmallButton } from '../../components';\nimport { useMailSettings } from '../../hooks';\n\nimport ShortcutsToggle from './Short...
typescript
edit
null
null
mit
7d70e0b4062d2d2ca0423fe80ea1bf3cdd8da4e1
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
packages/components/containers/general/ShortcutsSection.tsx
rejected_syntax
Syntax error detected by tree-sitter
false