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 { Component, OnInit } from '@angular/core';\nimport { CompleterService } from 'ng2-completer';\n\nimport { DefaultEditor } from './default-editor';\n\n@Component({\n selector: 'completer-editor',\n template: `\n <ng2-complet...
typescript
edit
0
4
mit
6d8a6224cff503004684b4c0d2d79654b0781e7f
guilleva/ng2-smart-table,guilleva/ng2-smart-table,guilleva/ng2-smart-table
src/ng2-smart-table/components/cell/cell-editors/completer-editor.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/// <reference path=\"jquery/jquery.d.ts\" />\n/// <reference path=\"material/material.d.ts\" />\n/// <reference path=\"moment/moment-node.d.ts\" />\n/// <reference path=\"moment/moment.d.ts\" />\n\n```\n\nApply this change: Change Mate...
typescript
edit
0
0
mit
52f18407761d5c7e5c54568d291931306f056663
codeknowledge/curso-ferias-unifil-aplicacoes-web-modernas,codeknowledge/curso-ferias-unifil-aplicacoes-web-modernas,codeknowledge/curso-ferias-unifil-aplicacoes-web-modernas
todo-angular2/typings/tsd.d.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as coursesMockData from './courses.api-mock.json';\nimport { CourseModel } from './course/course.model';\n\nexport class CoursesService {\n private coursesList: CourseModel[];\n\n constructor() {\n this.coursesList = cours...
typescript
edit
0
1
mit
f33f2425752772219aebd0a2fc2f20cf313d4d58
last-indigo/angular-mp,last-indigo/angular-mp,last-indigo/angular-mp
src/app-artem/courses/courses.service.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { MockHelper, TestingPlayerAPI } from '../helper/MockHelper';\nimport { UIInstanceManager } from '../../src/ts/uimanager';\nimport {SubtitleOverlay, SubtitleRegionContainerManager } from '../../src/ts/components/subtitleoverlay';...
typescript
edit
0
1
mit
bc39c196b73eb8447a3b415194300da7f276be23
bitmovin/bitmovin-player-ui,bitmovin/bitmovin-player-ui,bitmovin/bitmovin-player-ui,bitmovin/bitmovin-player-ui
spec/components/subtitleoverlay.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport App from './App';\n\nReactDOM.render(<App />, document.getElementById('root'));\n\n```\n\nApply this change: Fix case in file name" }, { "role": "assistant", ...
typescript
edit
null
null
apache-2.0
12a53c456ab0a6443fa601a08046095d93d42535
ilkkao/mas,ilkkao/mas,ilkkao/mas,ilkkao/mas
new-client/src/index.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport class Cursor {\n private _show = true;\n private _blink = false;\n\n constructor(private position: RowColumn = { row: 0, column: 0 }) {\n }\n\n moveAbsolute(position: PartialRowColumn, homePosition: RowColumn): thi...
typescript
edit
0
3
mit
f0cdbbfe68b05577ee93c6c74ffe3361320438f0
railsware/upterm,vshatskyi/black-screen,shockone/black-screen,black-screen/black-screen,railsware/upterm,black-screen/black-screen,vshatskyi/black-screen,vshatskyi/black-screen,shockone/black-screen,black-screen/black-screen,vshatskyi/black-screen
src/Cursor.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component, OnInit } from '@angular/core';\nimport { Apollo } from 'apollo-angular';\nimport { Observable } from 'rxjs/Observable';\nimport 'rxjs/add/operator/map';\n\nimport helloWorldQuery from 'graphql-tag/loader!./hello-worl...
typescript
edit
0
1
mit
78b87d432939f452fd9fb9a31c6cfb4779d87cad
justindoherty/helloworld-graphql,justindoherty/helloworld-graphql,justindoherty/helloworld-graphql,justindoherty/helloworld-graphql
client/src/app/app.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {parseWordList} from '../lexical-model-compiler/build-trie';\nimport {assert} from 'chai';\nimport 'mocha';\n\nimport path = require('path');\n\nconst BOM = '\\ufeff';\n\ndescribe('parseWordList', function () {\n it('should remo...
typescript
edit
0
1
apache-2.0
1815ad7a1858625b543bc3f0bae9f1b4eb624d85
tavultesoft/keymanweb,tavultesoft/keymanweb
developer/js/tests/test-parse-wordlist.ts
rejected_duplicate
Near-duplicate of sample 114540
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport interface TokenRecord {\n token: string;\n address: string;\n when: number;\n reason: string;\n}\n\nexport interface EmailRecord {\n address: string;\n verified: boolean;\n}\n\nexport interface UserObjectType {\n username?...
typescript
edit
0
0
mit
d3293aeb8e137ccb374b41487d20d32fabfc1d28
js-accounts/accounts
packages/common/src/types.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// Copyright (c) Jupyter Development Team.\n// Distributed under the terms of the Modified BSD License.\n\nimport {\n JupyterLabPlugin\n} from '@jupyterlab/application';\n\nimport {\n ILatexTypesetter\n} from '@jupyterlab/rendermime';...
typescript
edit
0
1
bsd-3-clause
aacb85d75084c4dfaf2d909affe2a78a821323e4
gnestor/jupyter-renderers,gnestor/jupyter-renderers
packages/katex-extension/src/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Components, registerComponent } from '../../lib/vulcan-lib';\nimport React from 'react';\nimport { useCurrentUser } from '../common/withUser'\nimport Users from '../../lib/collections/users/collection';\nimport withErrorBoundar...
typescript
edit
null
null
mit
e4313a121d8ec7a872d49abac7fe2edcf7728f39
Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2
packages/lesswrong/components/questions/PostsPageQuestionContent.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { useParams } from 'react-router';\nimport useFeature from '../../../../hooks/api/getters/useFeature/useFeature';\nimport MetricComponent from '../../view/metric-container';\nimport { useStyles } from './FeatureMetrics.styles';\n...
typescript
edit
null
null
apache-2.0
da74d3ac15ac83672f95792838bb1eeeb529aa32
Unleash/unleash-frontend,Unleash/unleash-frontend,Unleash/unleash-frontend,Unleash/unleash-frontend
src/component/feature/FeatureView2/FeatureMetrics/FeatureMetrics.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from 'react'\nimport { useQuery } from '@apollo/client'\n\nimport { PricingQuestionsQuery } from './contentfulQueries/pricingQuestions'\nimport { PricingQuestions as PricingQuestionsType } from '__generated__/contentful/Pri...
typescript
edit
null
null
mit
98105cc7e1ea55bdc5ee98178ab0f1970310e3eb
aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell
src/v2/pages/about/PricingPage/components/PricingQuestions/index.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport Dashboard from '../../models/dashboard'\nimport manager from '../manager'\nimport { make } from '../../models/items/factory'\n\ndeclare var $, window\n\n/*\n * Logic for the dashboard-create.html template.\n */\n\n$(document).rea...
typescript
edit
0
2
apache-2.0
33ef587e1127c1229ac62ae4356ab50043d73ecc
tessera-metrics/tessera,urbanairship/tessera,tessera-metrics/tessera,tessera-metrics/tessera,tessera-metrics/tessera,urbanairship/tessera,urbanairship/tessera,aalpern/tessera,urbanairship/tessera,urbanairship/tessera,aalpern/tessera,aalpern/tessera,aalpern/tessera,tessera-metrics/tessera,aalpern/tessera
tessera-frontend/src/ts/app/handlers/dashboard-create.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react'\nimport { IndexRoute, Route } from 'react-router'\nimport { IRouteConfig } from '~/models/route-config'\nimport { App } from '~/components/App'\nimport { Experiments } f...
typescript
edit
null
null
mit
0ca34675c92e9b7e641baaab90e74cdfb71f7fc8
devonzuegel/aldine,devonzuegel/aldine,devonzuegel/aldine,devonzuegel/aldine
src/app/routes/index.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as AWS from 'aws-sdk';\nimport * as React from 'react';\nimport GoogleLogin, {GoogleLoginResponse} from 'react-google-login';\n\ninterface LoginProps {\n onSuccessfulLogin: () => void\n}\n\nexport default class extends React.C...
typescript
edit
null
null
mit
34947b836fe1cfc5cfba9dc58392c913ec643eb1
jeffcharles/number-switcher-4000,jeffcharles/number-switcher-4000,jeffcharles/number-switcher-4000
src/components/Login.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nmodule TameGame {\n /**\n * Form of a message passed in to a web worker\n */\n export interface WorkerMessage {\n /** The action to take */\n action: string;\n \n /** The data for this message *...
typescript
edit
0
7
apache-2.0
22f20b579d9cfa94ea3e0d91a8499f09717c6535
TameGame/Engine,TameGame/Engine,TameGame/Engine
Core/Worker.ts
accepted
null
true
[ { "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
ebaae380cc7814a0d48844c37995b67e68958658
Jameskmonger/dependument,dependument/dependument,dependument/dependument,Jameskmonger/dependument
src/dependument.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nCypress.Commands.add(\n 'createOpportunityDataset',\n function (name: string, filePath: string): Cypress.Chainable<string> {\n Cypress.log({\n displayName: 'creating',\n message: 'opportunities'\n })\n\n cy.findButt...
typescript
edit
0
1
mit
070597803262e2de1bfca30ec63e016d35e68f81
conveyal/analysis-ui,conveyal/analysis-ui,conveyal/analysis-ui
cypress/support/opportunities.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport class ScheduleService {\n places: Array<any>;\n\n setSchedule(places) {\n this.places = places;\n }\n\n getSchedule() {\n return this.places;\n }\n\n find(item) {\n for(let i=0; i<this.places.length; i++) {\n ...
typescript
edit
0
3
mit
970444fce1e567dd5d7ff4cf955ef93e65399954
neungkl/u-go-application,neungkl/u-go-application,neungkl/u-go-application
uGo/src/services/schedule.service.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport * from './intern';\n\nexport const environments = [\n\t{ browserName: 'internet explorer', version: [ '10.0', '11.0' ], platform: 'Windows 7' },\n\t{ browserName: 'microsoftedge', platform: 'Windows 10' },\n\t{ browserName: 'fire...
typescript
edit
0
0
bsd-3-clause
693d7db847d0c650f113ac3be67771a54d65ff51
mwistrand/routing,mwistrand/routing,mwistrand/routing
tests/intern-saucelabs.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/// <reference path=\"fourslash.ts\"/>\r\n\r\n//////curly braces\r\n////module Foo [|{\r\n//// class Bar [|{\r\n//// private f() [|{\r\n//// }|]\r\n////\r\n//// private f2() [|{\r\n//// if (true) [|{ }...
typescript
edit
0
1
apache-2.0
5c925c2e23e2d826e02fd0fd343337bf0a176522
chuckjaz/TypeScript,Eyas/TypeScript,donaldpipowitch/TypeScript,kpreisser/TypeScript,microsoft/TypeScript,alexeagle/TypeScript,basarat/TypeScript,TukekeSoft/TypeScript,kitsonk/TypeScript,weswigham/TypeScript,Microsoft/TypeScript,chuckjaz/TypeScript,donaldpipowitch/TypeScript,chuckjaz/TypeScript,jwbay/TypeScript,DLehenba...
tests/cases/fourslash/getMatchingBraces.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport const pluginName: string = require('../package.json').name;\n\nconst envOverrideOperationManifest = 'APOLLO_OPERATION_MANIFEST_BASE_URL';\n\n// Generate and cache our desired operation manifest URL.\nconst urlOperationManifestBas...
typescript
edit
0
2
mit
23903a10137aca8f3d7acd9537a061e844b2d2e2
apollostack/apollo-server
packages/apollo-server-plugin-operation-registry/src/common.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { PersistedStateKey, ImmutablePersistedStateKey } from '../types';\r\n\r\nexport const PERSISTED_STATE_WHITELIST: PersistedStateKey[] = [\r\n 'tab',\r\n 'account',\r\n 'hitBlocklist',\r\n 'hitDatabase',\r\n 'requesterBlockli...
typescript
edit
0
0
mit
8b7996905b391c3828303c48dfd1a365a78c41da
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
src/constants/settings.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react'\nimport { WelcomeStep } from './welcome'\nimport { Button } from '../lib/button'\nimport { SignIn } from '../lib/sign-in'\nimport { Dispatcher } from '../dispatcher'\nimport { SignInState } from '../../lib...
typescript
edit
null
null
mit
92c3ff56ad41e66108e0185864b7ec9f5e79146d
desktop/desktop,artivilla/desktop,desktop/desktop,artivilla/desktop,shiftkey/desktop,say25/desktop,artivilla/desktop,j-f1/forked-desktop,j-f1/forked-desktop,j-f1/forked-desktop,kactus-io/kactus,desktop/desktop,kactus-io/kactus,say25/desktop,shiftkey/desktop,say25/desktop,artivilla/desktop,desktop/desktop,j-f1/forked-de...
app/src/ui/welcome/sign-in-enterprise.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Firebase } from '@ionic-native/firebase';\nimport { Injectable } from \"@angular/core\";\n\n@Injectable()\nexport class FirebaseService {\n constructor(private _firebase: Firebase) {\n console.log(\"FirebaseService construc...
typescript
edit
0
4
apache-2.0
f666923679927850bedc9da2fe7d6658921c2539
sth-larp/deus-mobile,sth-larp/deus-mobile,sth-larp/deus-mobile,sth-larp/deus-mobile,sth-larp/deus-mobile
src/services/firebase.service.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { BrowserModule } from '@angular/platform-browser';\nimport { NgModule } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\nimport {\n MdButtonModule,\n MdCoreModule,\n} from '@angular/material';\n\nimport ...
typescript
edit
0
0
bsd-3-clause
27a1b639837fb2e05fc05ebe47a6173bfe56ea9d
Alveo/alveo-transcriber,Alveo/alveo-transcriber,Alveo/alveo-transcriber,Alveo/alveo-transcriber
annotator.module.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component } from '@angular/core';\nimport { Platform } from 'ionic-angular';\nimport { StatusBar, Splashscreen } from 'ionic-native';\nimport { BeerService } from '../providers/beer-service';\n\nimport { TabsPage } from '../pag...
typescript
edit
0
1
mit
2d926ba2e48b6478a1057298109b895108f9389b
j-West/Capstone,j-West/Capstone,j-West/Capstone
src/app/app.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport Koa from 'koa'\n\n/** Redirects any requests coming to a non-canonical host to the canonical one. */\nexport function redirectToCanonical(canonicalHost: string) {\n const asUrl = new URL(canonicalHost)\n const toCompare = asUrl...
typescript
edit
0
2
mit
f8186b3c992327261d5d42e0277f788cc7afe7b6
ShieldBattery/ShieldBattery,ShieldBattery/ShieldBattery,ShieldBattery/ShieldBattery,ShieldBattery/ShieldBattery,ShieldBattery/ShieldBattery
server/lib/network/redirect-to-canonical.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { TemplateRef } from '@angular/core';\nimport { DataType } from '../../data-operations/data-util';\nimport { ISortingStrategy } from '../../data-operations/sorting-strategy';\nimport { FilteringExpressionsTree } from '../../data-...
typescript
edit
0
0
mit
f20d1d9810810fdcab385690722acd2de35baf20
Infragistics/zero-blocks,Infragistics/zero-blocks,Infragistics/zero-blocks
projects/igniteui-angular/src/lib/grids/common/column.interface.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Component, OnInit, OnDestroy} from '@angular/core';\ndeclare var $: any;\n\n@Component({\n\tselector: 'app-slides',\n\ttemplateUrl: './slides.component.html',\n\tstyleUrls: ['./slides.component.sass']\n})\nexport class SlidesCom...
typescript
edit
0
3
apache-2.0
5e989e873a5f547e45b2cc55cea51f487e730697
SamuelM333/snippet-sniper-frontend,SamuelM333/snippet-sniper-frontend,SamuelM333/snippet-sniper-frontend
src/app/homepage/slides/slides.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nconst DEFAULT_QUERY = `# Winamp Skins GraphQL API\n#\n# https://skins.webamp.org\n#\n# This is a GraphQL API for the Winamp Skin Museum's database.\n# It's mostly intended for exploring the data set. Please feel\n# free to have a look a...
typescript
edit
0
0
mit
df57bff7e147d12d3ded17e40c873e21a7cbddb5
captbaritone/winamp2-js,captbaritone/winamp2-js,captbaritone/winamp2-js
packages/skin-database/api/graphql/defaultQuery.ts
rejected_duplicate
Near-duplicate of sample 114601
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { TranslateCompiler } from '@ngx-translate/core';\nimport * as MessageFormatStatic from 'messageformat';\n\n/**\n * This compiler expects ICU syntax and compiles the expressions with messageformat.js\n */\nexport class TranslateM...
typescript
edit
0
1
mit
376913f2226407351f844168e9b0282aba7a9267
lephyrus/ngx-translate-messageformat-compiler,lephyrus/ngx-translate-messageformat-compiler
src/translate-message-format-compiler.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport Router from '@koa/router';\nimport Koa from 'koa';\nimport { inject } from '@cardstack/di';\nimport DatabaseManager from '@cardstack/db';\n\nexport default class HealthCheck {\n databaseManager: DatabaseManager = inject('databas...
typescript
edit
0
0
mit
deb3d110a5ada96712889e0b93c7b7eb1bacce63
cardstack/cardstack,cardstack/cardstack,cardstack/cardstack,cardstack/cardstack,cardstack/cardstack,cardstack/cardstack
packages/hub/services/health-check.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React, {PureComponent} from 'react'\nimport ConfirmButton from 'src/shared/components/ConfirmButton'\n\ninterface Props {\n bodyID: string\n onDeleteBody: (bodyID: string) => void\n}\n\nclass BodyDelete extends PureComponent<Pr...
typescript
edit
null
null
mit
27d70504fc4bf3c250002ca0f25a7f8f00cbd50a
nooproblem/influxdb,influxdata/influxdb,influxdata/influxdb,nooproblem/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,li-ang/influxdb,li-ang/influxdb,influxdb/influxdb,nooproblem/influxdb,mark-rushakoff/influxdb,nooproblem/influxdb,influxdb/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,mark-r...
ui/src/flux/components/BodyDelete.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n'use strict';\n\nmodule App {\n export class TournamentPlayer {\n firstName: string;\n lastName: string;\n email: string;\n phone: string;\n handicap: number;\n under21: boolean;\n ful...
typescript
edit
0
1
mit
619e6d38634253ad6e29077729f68296678c3549
croquet-australia/croquet-australia-website,croquet-australia/croquet-australia-website,croquet-australia/croquet-australia.com.au,croquet-australia/website-application,croquet-australia/croquet-australia-website,croquet-australia/croquet-australia.com.au,croquet-australia/croquet-australia.com.au,croquet-australia/web...
source/CroquetAustralia.Website/app/tournaments/scripts/TournamentPlayer.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { NgModule } from '@angular/core';\nimport { PreloadAllModules, RouterModule, Routes } from '@angular/router';\n\nimport { RmsPage } from './rms';\nimport { SettingsPage, ColorsPage, DriversPage, AboutPage, LoggingPage , Licenses...
typescript
edit
0
0
apache-2.0
5e300fce99e6b5130564435edeb2bb846b857270
tkem/openlap,tkem/openlap,tkem/openlap
src/app/app-routing.module.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { browser, element, by } from '../../node_modules/protractor/built';\n\ndescribe('grid pager info', () => {\n\n let paginator = element(by.tagName('ngb-pagination')).$$('nav').$$('ul').$$('li'),\n gridPagerInfo = eleme...
typescript
edit
0
1
mit
f571525abf258630811b9c0aa0ecef4462f354af
unosquare/tubular2,unosquare/tubular2,unosquare/tubular2,unosquare/tubular2
test/e2e/grid-pager-info.e2e-spec.ts
rejected_duplicate
Near-duplicate of sample 113383
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/*\nIn NativeScript, the app.ts file is the entry point to your application.\nYou can use this file to perform app-level initialization, but the primary\npurpose of the file is to pass control to the app’s first module.\n*/\n\nimport * ...
typescript
edit
0
2
apache-2.0
1b0400af8c53683f57b8bb5a727ac47fff69408e
NativeScript/nativescript-fresco,NativeScript/nativescript-fresco,NativeScript/nativescript-fresco
demo/app/app.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Model, Utils } from \"./Model\"\n\nexport { Model as ConsumersModel }\nexport { Utils as Utils }\n\nexport class ScheduledProductionThread<JOB_TYPE>{\n\n private model : Model<JOB_TYPE>\n\n constructor(\n public pr...
typescript
edit
0
2
apache-2.0
671a27c1e729b8873718d801348cf1ee9cb34626
D-Y-Innovations/producer-consumer,D-Y-Innovations/producer-consumer
src/Patterns.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Route } from '@angular/router';\n \nimport { StoresListComponent } from './stores/stores-list.component';\nimport { StoreDetailsComponent } from './stores/store-details.component';\nimport {StoresFormComponent} from './stores/s...
typescript
edit
0
1
mit
8edc9d2a7913a18146e911a0f504caf5e8eaa332
DarkChopper/yssi,DarkChopper/yssi,DarkChopper/yssi
client/imports/app/app.routes.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/* tslint:disable: no-var-requires */\n\nimport { GitHubIntegration } from \"../db/mongo\"\nimport { PullRequestJSON } from \"../github/types/pull_request\"\n\nimport { getCISourceForEnv } from \"danger/distribution/ci_source/ci_source\...
typescript
edit
0
2
mit
a283e878609247fccf23f9bc7c181bdf2c9d08f5
danger/peril,danger/peril,danger/peril,danger/peril,danger/peril
source/danger/danger_runner.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {\n DialogReady,\n LibModuleReady,\n} from './../../interfaces/dialog_interfaces';\nimport {\n Dialog,\n WaterfallDialog,\n Library,\n} from 'botbuilder';\nimport * as _ from 'lodash';\n\nclass LibraryFactory {\n\n private ...
typescript
edit
0
4
mit
6da4331db1e5644fd9c452ad03b570bfd7442b7a
yujiahaol68/alfred
src/bot/core/LibraryFactory.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {\n JupyterFrontEnd,\n JupyterFrontEndPlugin\n} from '@jupyterlab/application';\n\nimport { INotebookTools, INotebookTracker } from '@jupyterlab/notebook';\n\nimport { TagTool } from '@jupyterlab/celltags';\n\n/**\n * Initializ...
typescript
edit
0
1
bsd-3-clause
899386089a4c75dcf520be1da09a64d3e8632f3a
jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab
packages/celltags-extension/src/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Field, FieldProps } from \"formik\";\nimport * as React from \"react\";\nimport { probablyUniqueString } from \"../../../common/Toolbox\";\n\ninterface ToggleProps {\n fieldName: string;\n}\n\nexport class Toggle extends React...
typescript
edit
null
null
mit
6f450d4d82c41258b862ce3147033bfb9701a36f
cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative
client/Settings/components/Toggle.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// Copyright 2020 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\nimport {assert} from 'chai';\nimport {describe, it} from 'mocha';\...
typescript
edit
0
1
bsd-3-clause
6a1e363137c921caf3af563a608eae854ae29ac3
ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend
test/e2e/media/media-tab_test.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as restify from 'restify';\nimport * as builder from 'botbuilder';\n\nconst connector = new builder.ChatConnector({\n appId: process.env.MICROSOFT_APP_ID,\n appPassword: process.env.MICROSOFT_APP_PASSWORD\n});\n\nconst se...
typescript
edit
0
1
mit
9de337d811cdb6fbba4c9bddc36e1d8a9f82473a
radu-matei/kube-bot,radu-matei/kube-bot
bot/app.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nplugin.tx_tevfaqs {\n view {\n templateRootPath = {$plugin.tx_tevfaqs.view.templateRootPath}\n partialRootPath = {$plugin.tx_tevfaqs.view.partialRootPath}\n layoutRootPath = {$plugin.tx_tevfaqs.view.layoutRootPat...
typescript
edit
null
null
mit
d41df500b41f8fce63d3c193460f6444a2c7cca0
3ev/tev_faqs,3ev/tev_faqs,3ev/tev_faqs
Configuration/Typoscript/setup.ts
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {SFC} from 'react'\n\ninterface Props {\n children?: any\n}\n\nconst FeatureFlag: SFC<Props> = props => {\n if (process.env.NODE_ENV === 'development') {\n return props.children\n }\n\n return null\n}\n\nexport default Fea...
typescript
edit
0
2
mit
dedd2fd7f3c49c36e0d4ad3b21b0546c2bc4a429
mark-rushakoff/influxdb,influxdb/influxdb,nooproblem/influxdb,influxdb/influxdb,nooproblem/influxdb,influxdata/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,nooproblem/influxdb,li-ang/influxdb,mark-rushakoff/influxdb,influxdata/influxdb,influxdb/influxdb,influxdb/influxdb,influxdb/influxdb,nooproblem/influxdb,mark...
ui/src/shared/components/FeatureFlag.tsx
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport * from \"./andOrNotEvaluator\";\r\nexport * from \"./assetsManager\";\r\nexport * from \"./dds\";\r\nexport * from \"./decorators\";\r\nexport * from \"./deferred\";\r\nexport * from \"./environmentTextureTools\";\r\nexport * fro...
typescript
edit
0
0
apache-2.0
7082d226070163abd603e391f638f987ef0ecebb
sebavan/Babylon.js,NicolasBuecher/Babylon.js,BabylonJS/Babylon.js,Kesshi/Babylon.js,RaananW/Babylon.js,sebavan/Babylon.js,jbousquie/Babylon.js,NicolasBuecher/Babylon.js,jbousquie/Babylon.js,Kesshi/Babylon.js,RaananW/Babylon.js,NicolasBuecher/Babylon.js,sebavan/Babylon.js,BabylonJS/Babylon.js,Kesshi/Babylon.js,jbousquie...
src/Misc/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component, OnInit } from '@angular/core';\nimport { Hero } from '../hero';\nimport { HeroService } from '../hero.service';\n\n@Component({\n selector: 'app-heroes',\n templateUrl: './heroes.component.html',\n styleUrls: ['./...
typescript
edit
0
1
mit
3075ae87cf7fd2edcd81dcd51364ae8cfaf4ddca
aquatir/remember_java_api,aquatir/remember_java_api,aquatir/remember_java_api,aquatir/remember_java_api
code-sample-angular-java/hello-world/src/app/heroes/heroes.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { VERSION } from \"../constants\"\nimport type { CommandType } from \"../data/templates\"\nimport type { Snippet } from \"../classes/Snippets/SnippetTypes/Snippet\"\nimport { duplicate_snippet } from \"./duplicate_snippet\"\n\nfu...
typescript
edit
0
2
mit
b392ae10bafb770cc87ca45c52e642b04d8af493
ezfe/tellraw,ezfe/tellraw,ezfe/tellraw
src/helpers/export.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from \"react\"\nimport {\n Box,\n Column,\n GridColumns,\n SkeletonBox,\n SkeletonText,\n} from \"@artsy/palette\"\nimport { PartnerArtistListContainer } from \"./PartnerArtistList\"\n\ninterface PartnerArtistListPlace...
typescript
edit
null
null
mit
c53acf9b59086a8c3b389c6aeff331292968d433
artsy/force-public,joeyAghion/force,artsy/force,joeyAghion/force,artsy/force-public,joeyAghion/force,artsy/force,joeyAghion/force,artsy/force,artsy/force
src/v2/Apps/Partner/Components/PartnerArtists/PartnerArtistListPlaceholder.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { parse, http } from './index'\nimport { expect } from 'chai'\nimport { get, createServer } from 'http'\n\ndescribe('get headers', () => {\n it('should parse headers', () => {\n const headers = parse([\n 'Content-Type: a...
typescript
edit
0
2
mit
3a62d8506bf196a46382566043023d92531b442f
blakeembrey/get-headers
src/index.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Injectable } from '@angular/core';\nimport { Router, ActivatedRoute } from '@angular/router';\nimport { HttpInterceptor, HttpRequest, HttpHandler, HttpEvent, HttpErrorResponse } from '@angular/common/http';\nimport { Observable...
typescript
edit
0
4
bsd-2-clause
4349d7cf75ad2ad6cc0ee3c6cd44fe7c8ccba137
PnEcrins/GeoNature,PnEcrins/GeoNature,PnEcrins/GeoNature,PnEcrins/GeoNature
frontend/src/app/services/unauthorized.interceptor.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as vscode from 'vscode';\nimport DocumentTracker from './documentTracker';\nimport CodeLensProvider from './codeLensProvider';\nimport CommandHandler from './commandHandler';\nimport Decorator from './mergeDecorator';\n\nconst ...
typescript
edit
0
3
mit
0097ea9fce99d41151eb0d1c30026b207e749634
pprice/vscode-better-merge
src/services/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport parseRefsResponse from './parseRefsResponse';\nimport { Ref } from './types';\n\nexport interface Result {\n readonly capabilities : Map<string, string | boolean>,\n readonly remoteRefs : Ref[]\n}\n\nexport type Fetch = (url : ...
typescript
edit
0
2
mit
9b35379fd92eef5ff274d5fe7254798508b9b566
es-git/es-git,es-git/es-git,es-git/es-git
packages/http-transport/ts/lsRemote.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport Future = require('sfuture');\nimport db = require('../../core/db');\n\n\nexport const TestCollectionName = 'beyondTestCollection';\n\nexport function connect(): Future<void> {\n return db.initialize('mongodb://localhost:27017/be...
typescript
edit
0
1
apache-2.0
b46cf9c11eb9ec8efd6d05186e39fc44eb612ef8
SollmoStudio/beyond.ts,sgkim126/beyond.ts,sgkim126/beyond.ts,SollmoStudio/beyond.ts,noraesae/beyond.ts,noraesae/beyond.ts
test/common/db.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Key } from './Key';\nimport { USER_ROLES } from '../constants';\n\nexport enum MNEMONIC_STATUS {\n DISABLED = 0,\n ENABLED = 1,\n OUTDATED = 2,\n SET = 3,\n PROMPT = 4,\n}\n\nexport enum UserType {\n PROTON = ...
typescript
edit
0
0
mit
30e8954d807fee0e35925c189439cb36fc21064c
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
packages/shared/lib/interfaces/User.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// Copyright (c) Jupyter Development Team.\n// Distributed under the terms of the Modified BSD License.\n'use strict';\n\nimport expect = require('expect.js');\n\n\ndescribe('jupyter-js-editor', () => {\n\n describe('CodeMirrorWidget',...
typescript
edit
0
1
bsd-3-clause
4d635068f05d68a2bf2c65af7e5edd81504ea637
jupyter/jupyter-js-editor,jupyter/jupyter-js-editor,jupyter/jupyter-js-editor,jupyter/jupyter-js-editor
test/src/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Injectable} from '@angular/core';\nimport {HttpClient, HttpParams} from \"@angular/common/http\";\nimport {EMPTY, Observable, OperatorFunction} from \"rxjs\";\nimport {catchError} from \"rxjs/operators\";\nimport {URL} from \".....
typescript
edit
0
5
apache-2.0
91a10b2565c17fe8d02117765060a1eae52cfcec
iteratec/OpenSpeedMonitor,iteratec/OpenSpeedMonitor,iteratec/OpenSpeedMonitor,iteratec/OpenSpeedMonitor,iteratec/OpenSpeedMonitor
frontend/src/app/modules/result-selection/services/result-selection.service.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// set test timeout to 100s\njest.setTimeout(100000)\n\nimport 'jest-extended'\nimport 'jest-localstorage-mock'\n\n```\n\nApply this change: Revert setting Jest timeout to 100s" }, { "role": "assistant", "content": "// set t...
typescript
edit
0
0
mit
9871b1ddab747725dec635db24b410c610742e2e
j-f1/forked-desktop,artivilla/desktop,say25/desktop,artivilla/desktop,j-f1/forked-desktop,say25/desktop,desktop/desktop,say25/desktop,j-f1/forked-desktop,shiftkey/desktop,desktop/desktop,shiftkey/desktop,artivilla/desktop,shiftkey/desktop,artivilla/desktop,desktop/desktop,j-f1/forked-desktop,shiftkey/desktop,say25/desk...
app/test/setup-test-framework.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {SchemaType} from '../diff'\n\nexport function getValueError(value: unknown, schemaType: SchemaType) {\n const {jsonType} = schemaType\n const valueType = typeof value\n\n if (value === null || valueType === 'undefined') {\n ...
typescript
edit
0
5
mit
cfbfbe6c98c8a017f78a197d53dbc631b1b43569
sanity-io/sanity,sanity-io/sanity,sanity-io/sanity,sanity-io/sanity
packages/@sanity/field/src/validation/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * Known potential responses from the remote API.\n *\n * https://haveibeenpwned.com/API/v2#PwnedPasswords\n *\n */\n\nexport interface PwnedPasswordsApiResponse {\n // eslint-disable-next-line no-restricted-globals\n status: num...
typescript
edit
0
0
mit
22cc16f5c83d6394003173f79c12ef56737db815
wKovacs64/hibp,wKovacs64/hibp,wKovacs64/hibp
src/internal/pwnedpasswords/responses.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { context as unoContext } from './arduino-uno';\n\nexport interface Context {\n [x: string]: string;\n}\n\ninterface IndexedContexts {\n [x: string]: Context;\n}\n\nconst contexts = {\n 'arduino-uno': unoContext\n};\n\nexport ...
typescript
edit
0
1
mit
b1e38df068abe54f85d2d269fe137d7d074e5bbb
AmnisIO/typewriter,AmnisIO/typewriter,AmnisIO/typewriter
src/contexts/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { versionIsAtLeast } from \"../../shared/utils\";\n\nexport class DartCapabilities {\n\tpublic static get empty() { return new DartCapabilities(\"0.0.0\"); }\n\n\tpublic version: string;\n\n\tconstructor(dartVersion: string) {\n\...
typescript
edit
0
1
mit
40005659dc98f4eb44edabeacbc9b0c37570a6ae
Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code
src/extension/sdk/capabilities.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from 'react';\nimport { Components, registerComponent } from '../../lib/vulcan-lib';\nimport Dialog from '@material-ui/core/Dialog';\nimport DialogTitle from '@material-ui/core/DialogTitle';\nimport DialogContent from '@mat...
typescript
edit
null
null
mit
36d254626906a89c0c7ba918df0eceb5a8ed8e1d
Discordius/Telescope,Discordius/Lesswrong2,Discordius/Telescope,Discordius/Lesswrong2,Discordius/Telescope,Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Telescope
packages/lesswrong/components/tagging/EditTagsDialog.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Write typescript code for the following: Change primary color to red" }, { "role": "assistant", "content": "import { red } from 'material-ui/colors';\n\nexport const primary = red['600'];\n" } ]
typescript
new_file
0
0
mit
e76257801f758a0ffc6d6ce1814aa6ee8cfac3d1
subnomo/tubetop,subnomo/tubetop,subnomo/tubetop
src/renderer/colors.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Component} from '@angular/core';\n\n@Component({\n selector: 'my-app',\n template: '<h1>My First Angular 2 App</h1>'\n})\nexport class AppComponent { }\n\n```\n\nApply this change: Add hero class and two way data binding f...
typescript
edit
0
0
mit
f876a2f522d938d90b3f49be62ca4c54cb0458ad
Teeohbee/tour_of_heroes,Teeohbee/tour_of_heroes,Teeohbee/tour_of_heroes
app/app.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\nimport {styled, FlexCol...
typescript
edit
null
null
mit
96d2669bbbd4bbe4f39ea9f04c543fd823cae1bd
facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper
src/chrome/WarningEmployee.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\nexport class Hero{\n id:number;\n name:string;\n}\n@Component({\n selector: 'my-app',\n template:`\n <h1>{{title}}</h1>\n <h2>{{hero.name}} details!</h2>\n <div><label>Id: </label>{{h...
typescript
edit
0
0
mit
acb0649708fb32388bfb27ee26f8e8b409ea03d9
amalshehu/angular-tour-of-heroes,amalshehu/angular-tour-of-heroes,amalshehu/angular-tour-of-heroes
app/app.component.ts
rejected_duplicate
Near-duplicate of sample 112666
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {NgModule} from '@angular/core';\nimport {RouterModule, Routes} from '@angular/router';\nimport {HomeComponent} from './components/home/home';\nimport {SvgGridComponent} from './components/grid/svg/svg';\nimport {CanvasGridCompon...
typescript
edit
0
0
apache-2.0
9e04d2718f7eec57b8dbe0ad7c5a0da3197db113
googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020
step-release-vis/src/app/app-routing.module.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { observable, computed } from 'mobx';\nimport { Overlay } from '../components/Overlay';\nimport * as React from 'react';\nimport { ipcRenderer } from 'electron';\n\nexport class OverlayStore {\n public ref = React.createRef<Over...
typescript
edit
0
3
apache-2.0
70de342a58a2adb26ae7728f75730be75c973b4a
Nersent/Wexond,Nersent/Wexond
src/renderer/app/store/overlay.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as path from 'path'\n\nconst fs = require('fs-extra')\nconst temp = require('temp').track()\n\n/**\n * Set up the named fixture repository to be used in a test.\n *\n * @returns The path to the set up fixture repository.\n */\n...
typescript
edit
0
1
mit
474072f6beb7b48023cab1f08e6fcacb314d7bda
shiftkey/desktop,BugTesterTest/desktops,gengjiawen/desktop,hjobrien/desktop,BugTesterTest/desktops,shiftkey/desktop,artivilla/desktop,artivilla/desktop,desktop/desktop,BugTesterTest/desktops,say25/desktop,gengjiawen/desktop,desktop/desktop,desktop/desktop,artivilla/desktop,shiftkey/desktop,j-f1/forked-desktop,shiftkey/...
app/test/fixture-helper.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {IncomingMessage} from \"http\"\n\nimport Body from \"./Body\"\n\nexport interface Options extends busboy.Options {\n castTypes?: boolean\n\n /**\n * @deprecated Use castTypes option instead\n */\n restoreTypes?: boolean\n...
typescript
edit
0
0
mit
ae574dfcb65ab670a18047e9fb73abacf966cb99
octet-stream/then-busboy,octet-stream/then-busboy
type/parse.d.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// @flow\nimport * as Project from './project/index'\nimport Renderer from './renderer/renderer'\nimport * as Services from './services'\nimport * as Exceptions from './exceptions'\n\nimport Point2D from './values/point-2d'\nimport Poin...
typescript
edit
0
0
mit
0d6691747590ca1dbe338f00f75e81beb606c7f9
Ragg-/Delir,Ragg-/Delir,Ragg-/Delir,Ragg-/Delir
src/delir-core/src/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport interface Settings {\n name: string;\n kudu: {\n website: string;\n username: string;\n password: string;\n };\n}\n\nexport function read(\n publishSettingsPath: string,\n callback: (err: any, settings: Settings) =>...
typescript
edit
0
1
mit
62a0bde9c22002a275c61963dcc743d189aa9622
itsananderson/kudu-api,itsananderson/kudu-api
types/azure-publish-settings.d.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component, OnInit } from '@angular/core';\n\nimport { Observable } from 'rxjs';\n\nimport { Champion } from '@ltb-model/champion';\nimport { TitleService } from '@ltb-service/title.service';\nimport { ChampionsService } from '....
typescript
edit
0
2
mit
0ef53062f084740021d9d076cd68e3be0b26a834
drumonii/LeagueTrollBuild,drumonii/LeagueTrollBuild,drumonii/LeagueTrollBuild,drumonii/LeagueTrollBuild
frontend/src/app/troll-build/champions/champions.page.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Database, DEFAULT_OPTIONS } from '../database';\nimport { Collection } from '../collection';\nimport { MockPersistor, MockPersistorFactory } from '../persistors/__mocks__/persistor.mock';\nimport { ICollection } from '../';\n\n...
typescript
edit
0
2
mit
1ae9f4941dc2f3a929acf8baef2c869407d3d7b4
Cinergix/rxdata,Cinergix/rxdata
src/__tests__/database.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport getPort, { makeRange } from 'get-port';\n\n/**\n * For easier debugging, we increase the port each time\n * to ensure that no port is reused in the tests.\n */\nlet startPort = 18669;\n\nconst PORT_MAX = 65535;\n\n/**\n * Returns...
typescript
edit
0
1
apache-2.0
f4ad9916e6969cc89dd8d48be4b5850c7baf1b4a
pubkey/rxdb,pubkey/rxdb,pubkey/rxdb,pubkey/rxdb,pubkey/rxdb
test/helper/port-manager.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Tsoa } from './../metadataGeneration/tsoa';\n\n/**\n * For Swagger, additionalProperties is implicitly allowed. So use this function to clarify that undefined should be associated with allowing additional properties\n * @param ...
typescript
edit
0
1
mit
fd65130784bc322ad5bd0ae4010f3de05ba0e90d
lukeautry/tsoa,andreasrueedlinger/tsoa,andreasrueedlinger/tsoa,lukeautry/tsoa
src/routeGeneration/tsoa-route.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { NextFunction, Request, Response } from \"express\";\nimport { errors, PlanTypes } from \"voluble-common\";\n\nimport { OrgManager } from \"../../org-manager\";\nimport { ExpressMiddleware } from \"./express_req_res_next\";\n\ne...
typescript
edit
0
6
mit
69508f4a0141f3326a17c3b1dc09c8ab4e35d4d1
calmcl1/voluble,calmcl1/voluble
src/server/helpers/check_has_credits.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// std\nimport { existsSync } from 'fs';\n\n// FoalTS\nimport { Generator, getNames } from '../../utils';\nimport { registerController } from './register-controller';\n\nexport type ControllerType = 'Empty'|'REST';\n\nexport function cr...
typescript
edit
0
5
mit
6377170e30e76852731f38cb83ff27d85301e706
FoalTS/foal,FoalTS/foal,FoalTS/foal,FoalTS/foal
packages/cli/src/generate/generators/controller/create-controller.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport styled from 'styled-components';\n\nimport opacity from '../../../../shared/defaults/opacity';\n\nexport const Root = styled.div`\n width: 100%;\n height: 56px;\n display: flex;\n align-items: center;\n padding-left: 32px;\n...
typescript
edit
0
0
apache-2.0
ecfda7cccf6d09df0841ab7ed9005d380f1076d6
Nersent/Wexond,Nersent/Wexond
src/menu/bookmarks/components/TreeBar/styles.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { NgModule } from '@angular/core';\nimport { BrowserModule } from '@angular/platform-browser';\nimport { FormsModule } from '@angular/forms'\nimport { AppComponent } from './app.component';\n@NgModule({\n imports: ...
typescript
edit
0
0
mit
9a3a59270adf9ee9acc292811637e73a92956039
amalshehu/angular-tour-of-heroes,amalshehu/angular-tour-of-heroes,amalshehu/angular-tour-of-heroes
app/app.module.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component, AsyncComponent } from 'vue';\nimport { Args as DefaultArgs, Annotations, BaseMeta, BaseStory } from '@storybook/addons';\nimport { StoryFnVueReturnType } from './types';\n\nexport { Args, ArgTypes, Parameters, StoryC...
typescript
edit
0
0
mit
010938faf45d48325259bc4662311d0d42b81ed1
kadirahq/react-storybook,kadirahq/react-storybook,storybooks/react-storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook
app/vue/src/client/preview/types-6-0.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { <%= pAppName %>Config } from \"./<%= hAppName %>.config\";\nimport { <%= pAppName %>Run } from \"./<%= hAppName %>.run\";\n\nangular.module(\"<%= appName %>\", [\n // Uncomment to use your app templates.\n // \"<%= appNam...
typescript
edit
null
null
mit
0c93fe50c7d234b54d8ce2db4ba25b06bc143f45
Kurtz1993/ngts-cli,Kurtz1993/ngts-cli,Kurtz1993/ngts-cli
templates/app/src/_name.ts
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport { Caption } from '@shopify/polaris';\nimport { formatSecondsAsHhMmSs } from '../../utils/dates';\n\ninterface Props {\n readonly timeLeftInSeconds: number;\n}\n\ninterface State {\n readonly sec...
typescript
edit
null
null
mit
ef386b84e23d04d3aa25c352184168f5aee08436
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
src/components/QueueCard/QueueTimer.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport class Player {\n constructor(protected gameState: Server.GameState, protected client: Server.Client) {\n }\n\n get access() {\n return this.client.account.access;\n }\n\n get location() {\n return this.client.character...
typescript
edit
0
3
mit
e2d791cf867327681c0c1211c0967ef7e9683c45
OdysseyClassicHistoryBook/odyssey-2-server,OdysseyClassicHistoryBook/odyssey-2-server
src/script/player.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\ndeclare class OrderedMap<T = any> {\n private constructor(content: Array<string | T>)\n\n get(key: string): T | undefined\n\n update(key: string, value: T, newKey?: string): OrderedMap<T>\n\n remove(key: string): OrderedMap<T>\n\n ...
typescript
edit
0
1
mit
5c1541c31ac88a7f38a49e27eb5707756377386b
marijnh/orderedmap
types/index.d.ts
rejected_duplicate
Near-duplicate of sample 113694
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nrequire('mocha');\nrequire('chai').should();\nimport { sites, SiteOptions } from '../';\n\ndescribe('site', () => {\n\tit('can be retrieved after being created', async () => {\n\t\tlet exists = await sites.exists('TestSite');\n\t\tif (e...
typescript
edit
0
2
mit
4a1490453d45521f64e5b24cd1af61f61cce6902
ChristopherHaws/node-iis-manager
test/site-tests.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport 'reflect-metadata';\n\nimport * as _ from 'underscore';\nimport * as Router from 'koa-router';\n\nimport { compose } from './utils';\n\nimport { IMetadata, METADATA_KEY } from './declarations';\n\nexport class A7Controller {\n p...
typescript
edit
0
8
apache-2.0
d221aa4d29fa4ce334844af2ed633407f56187f8
nodeswork/sbase,nodeswork/sbase
src/koa/controller.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Path } from '@/types'\n\ninterface DebugColours {\n [key: string]: string\n}\n\nexport interface SVGPath {\n d: string\n 'stroke-width'?: number\n stroke?: string\n}\n\nconst debugColours: DebugColours = {\n debug0: \"blue...
typescript
edit
0
2
mit
ac8b2632d2e7adf848399cd8ce5935f963cfdeb6
rossjrw/gallifreyo,rossjrw/gallifreyo,rossjrw/gallifreyo
src/functions/dPath.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { gettext } from '@waldur/i18n';\nimport { ActionConfigurationRegistry } from '@waldur/resource/actions/action-configuration';\nimport { DEFAULT_EDIT_ACTION } from '@waldur/resource/actions/constants';\n\nActionConfigurationRegis...
typescript
edit
0
0
mit
62c207bec8046e804f80dcbecfeb6cd0c5242ddf
opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport
src/slurm/actions.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nfunction getMaNumberFunction(value: number, ...rest: Array<number>) {\n return value + rest.reduce((acc: number, curr: number) => acc + curr);\n}\n\ngetMaNumberFunction(3, 4, 2, 1);\n\n```\n\nApply this change: Test for object rest ope...
typescript
edit
0
1
bsd-3-clause
906c2fbdbfeb2148db0649ed10d54e1e0ff9e83d
dabapps/eslint-config-dabapps,dabapps/eslint-config-dabapps,dabapps/eslint-config-dabapps
test-files/ts-pass.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { ofType } from 'redux-observable'\nimport { map, mergeMapTo, takeUntil, tap } from 'rxjs/operators'\nimport { ApplicationEpic } from '../../ApplicationEpic'\nimport { ACTION_TYPES as REF_ACTION_TYPES } from '../../referenceDataO...
typescript
edit
0
1
apache-2.0
e02d900bb2f87ec2d89695fc9498220b3de3f18b
AdaptiveConsulting/ReactiveTraderCloud,AdaptiveConsulting/ReactiveTraderCloud,AdaptiveConsulting/ReactiveTraderCloud,AdaptiveConsulting/ReactiveTraderCloud
src/client/src/ui/analytics/epics.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { createMockNetworkLayer } from \"Artsy/Relay/createMockNetworkLayer\"\nimport React from \"react\"\nimport { QueryRenderer } from \"react-relay\"\nimport { Environment, RecordSource, Store } from \"relay-runtime\"\n\nexport cons...
typescript
edit
null
null
mit
25ecfa0dc8f32a120b094b12dd8649193baf00d4
artsy/reaction,artsy/reaction,artsy/reaction-force,xtina-starr/reaction,artsy/reaction,xtina-starr/reaction,artsy/reaction-force,xtina-starr/reaction,xtina-starr/reaction
src/Artsy/Relay/MockRelayRenderer.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 { SeoService } from '../../seo.service';\n\n@Component({\n selector: 'store-badges',\n templateUrl: './badges.component.html',\n styleUrls: ['./badges.component.scss']\n})\ne...
typescript
edit
0
1
apache-2.0
ce64cb57f937b27a02a10b17c2a8e68a51f4ddab
jgarciao/linux-store-frontend,jgarciao/linux-store-frontend,jgarciao/linux-store-frontend
src/app/pages/badges/badges.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nclass BitsByte extends Array {\n protected _value: number;\n\n constructor(value: number) {\n super(8);\n this._value = value;\n \n // Assign each flag to an index\n this[0] = (value & 1) == 1;\n...
typescript
edit
0
9
mit
6b1c627e23dec5622163ee29bf560d094978fdcf
popstarfreas/Dimensions,popstarfreas/Dimensions,popstarfreas/Dimensions
node_modules/dimensions/datatypes/bitsbyte.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * A script to generate `../shared/styles/mathjax.css`.\n *\n * Run using `npm run build:mathjax`.\n */\n\nimport fs from 'fs'\nimport MathJax from 'mathjax-node'\nimport path from 'path'\n\nconst dest = path.join(__dirname, '..', ...
typescript
edit
0
2
apache-2.0
e79cd56fd3b41233e28f064e4c60ed1c650b8563
stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila
src/generate/mathjax.ts
accepted
null
true