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, EventEmitter, Input, OnChanges, Output} from \"@angular/core\";\nimport Job from \"../../../../../model/session/job\";\nimport {NgbDropdown} from \"@ng-bootstrap/ng-bootstrap\";\n\n@Component({\n selector: 'ch-job-li...
typescript
edit
0
1
mit
ac83ad160604dade593171d9cc99f796294ee66f
chipster/chipster-web,chipster/chipster-web,chipster/chipster-web
src/app/views/sessions/session/tools/job-list/job-list.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Injectable } from '@angular/core';\nimport { Http, Response, Headers } from '@angular/http';\nimport 'rxjs/add/operator/map';\nimport 'rxjs/add/operator/mergeMap';\nimport 'rxjs/add/observable/of';\nimport { Observable } from '...
typescript
edit
0
3
mit
4f6d4511e8d70f49bdc4ee627db45b00f91d236b
IMSmobile/app,IMSmobile/app,IMSmobile/app,IMSmobile/app
src/providers/token-service.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {\n PostEffectBase,\n PreRenderRequest,\n RenderRequest,\n Type,\n} from '@ragg/delir-core'\n\nimport * as clamp from 'lodash/clamp'\n\ninterface Params {\n opacity: number\n}\n\nexport default class TheWorldPostEf...
typescript
edit
0
2
mit
15268f63ce32baf4ec1a72a03f8c9ae23c42df9a
Ragg-/Delir,Ragg-/Delir,Ragg-/Delir,Ragg-/Delir
packages/post-effect-plugins/the-world/index.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, SignInState } from '../../lib/dispatcher'\n\ninterface ISignI...
typescript
edit
null
null
mit
3f1a624567af40c509ac34ff92cd24e7f54efaa4
kactus-io/kactus,shiftkey/desktop,kactus-io/kactus,artivilla/desktop,say25/desktop,j-f1/forked-desktop,desktop/desktop,j-f1/forked-desktop,gengjiawen/desktop,say25/desktop,shiftkey/desktop,artivilla/desktop,BugTesterTest/desktops,BugTesterTest/desktops,hjobrien/desktop,j-f1/forked-desktop,kactus-io/kactus,gengjiawen/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\n/**\n * Enables the application to opt-in for preview features based on runtime\n * checks. This is backed by the GITHUB_DESKTOP_PREVIEW_FEATURES environment\n * variable, which is checked for non-development environments.\n */\nexport ...
typescript
edit
0
7
mit
bcc5ed0d956fc4017d62a1c940da7bfc68d52d85
j-f1/forked-desktop,kactus-io/kactus,j-f1/forked-desktop,desktop/desktop,desktop/desktop,j-f1/forked-desktop,shiftkey/desktop,j-f1/forked-desktop,artivilla/desktop,gengjiawen/desktop,gengjiawen/desktop,shiftkey/desktop,say25/desktop,shiftkey/desktop,artivilla/desktop,desktop/desktop,kactus-io/kactus,kactus-io/kactus,sa...
app/src/lib/feature-flag.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// tslint:disable-next-line:max-line-length\nimport { AudiologistNavigationComponent } from './audiologist-navigation/audiologist-navigation.component';\nimport { CheckInComponent } from './check-in/check-in.component';\nimport { Routes...
typescript
edit
0
0
mit
1183f9834ec34c43ffc3ec1a6ebcec8e4a32df97
marissa-hagglund/VA-Audiology-Website,marissa-hagglund/VA-Audiology-Website,marissa-hagglund/VA-Audiology-Website
src/app/app.routes.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\ndeclare module 'vega-util' {\n export interface LoggerInterface {\n level: (_: number) => number | LoggerInterface;\n warn(...args: any[]): LoggerInterface;\n info(...args: any[]): LoggerInterface;\n debug(...args: any[]): ...
typescript
edit
0
1
bsd-3-clause
4b368ceb8fe3a3f71c9312f727f1cf730343d094
uwdata/vega-lite,vega/vega-lite,vega/vega-lite,uwdata/vega-lite,uwdata/vega-lite,uwdata/vega-lite,vega/vega-lite,uwdata/vega-lite,vega/vega-lite,vega/vega-lite
typings/vega-util.d.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Injectable } from '@angular/core';\n\n@Injectable()\nexport class JwkExtractor {\n extractJwk(keys: JsonWebKey[], keyId?: string, use?: string): JsonWebKey {\n const isNil = (c: any): boolean => {\n return null === c |...
typescript
edit
0
6
mit
252563fe7d899216b5f85cedb9e987ce4d8dfdf9
damienbod/angular-auth-oidc-client,damienbod/angular-auth-oidc-client,damienbod/angular-auth-oidc-client
projects/angular-auth-oidc-client/src/lib/extractors/jwk.extractor.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 run_wrapper: string;\n run: string;\n}\n\ninterface IndexedContexts {\n [x: string]: Context;\n}\n\nconst contexts = {\n ...
typescript
edit
0
1
mit
b10fec4b2e41bd9af0eadac687462b8c5fd343cb
AmnisIO/typewriter,AmnisIO/typewriter,AmnisIO/typewriter
src/contexts/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport MUI from 'material-ui';\nimport Theme from './MurphyTheme';\n\ninterface Props {\n progress: number;\n message: string;\n error: boolean;\n}\n\nexport default class ProgressCard extends React.C...
typescript
edit
null
null
mit
59ecc6fb13751304ba178758e98cdb1b29d7ccfb
bmats/murphy,bmats/murphy,bmats/murphy
src/app/components/ProgressCard.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {ui, Button, TextView} from 'tabris';\n\nlet button = new Button({\n centerX: 0, top: 100,\n text: 'Show Message'\n}).appendTo(ui.contentView);\n\nlet textView = new TextView({\n centerX: 0, top: [button, 50],\n font: '24px'\...
typescript
edit
0
1
bsd-3-clause
f2ab2b681f3b1d7fd530ad12f4ecaa2293e91da3
eclipsesource/generator-tabris-js,eclipsesource/generator-tabris-js
app/templates/ts/src/app.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {\n ID_REQUEST,\n SEND_OVERLAY_REQUEST,\n CLOSE_PLUGIN_REQUEST,\n SELECT_OVERLAY_ERR,\n MULTI_OVERLAY_ERR,\n INVALID_ID_ERR,\n setError\n} from './helper'\n\nimport * as Server from './server_requests'\n\ndoc...
typescript
edit
0
6
apache-2.0
71ec02578631f1ac478f778d860a259b435c60a3
googleinterns/android-studio-figma-overlay,googleinterns/android-studio-figma-overlay,googleinterns/android-studio-figma-overlay,googleinterns/android-studio-figma-overlay
figma-plugin/src/ui.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// Vendors\n\nimport \"reflect-metadata\";\nimport \"zone.js/dist/long-stack-trace-zone.js\";\nimport \"@angular/platform-browser-dynamic\";\nimport \"@angular/platform-browser\";\nimport \"@angular/core\";\nimport \"@angular/http\";\ni...
typescript
edit
0
0
mit
e9b5da3e1d24613f4a7a99e8be756582b80517c8
bryangreen/poker-evaluator,bryangreen/poker-evaluator,bryangreen/poker-evaluator
src/vendor.browser.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// Packages\nimport webpack = require('webpack')\n\n// Ours\nimport { CompilerOptions } from './types/options'\nimport { merge } from './config'\n\nconst core = (options: CompilerOptions): webpack.Compiler => {\n return webpack(merge(o...
typescript
edit
0
1
mit
7ef0d08d1eaf515a8b48a4d963b1f841e8b84355
glitchapp/glitch,glitchapp/glitch,glitchapp/glitch
lib/src/index.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
5
mit
167c422e4b100496d1e5fdb76fa87edad9810ec3
microsoft/vscode,Microsoft/vscode,Microsoft/vscode,microsoft/vscode,eamodio/vscode,hoovercj/vscode,Microsoft/vscode,Krzysztof-Cieslak/vscode,eamodio/vscode,eamodio/vscode,eamodio/vscode,eamodio/vscode,hoovercj/vscode,joaomoreno/vscode,eamodio/vscode,Microsoft/vscode,Krzysztof-Cieslak/vscode,joaomoreno/vscode,the-ress/v...
extensions/github-authentication/src/common/clientRegistrar.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { createExampleSelection } from '../../examples/src/register';\nimport { createThemeSelection } from './theme.switcher';\nimport { vanillaStyles } from '../src/helpers';\n\nwindow.onload = () => {\n createExampleSelection({style...
typescript
edit
0
1
mit
4622021a4713b489a9a57961c3dae0b32cdd0322
qb-project/jsonforms,qb-project/jsonforms,qb-project/jsonforms
packages/vanilla/example/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/* tslint:disable:no-unused-variable */\n\n/*!\n * Download Image Form Component Test\n *\n * Copyright(c) Exequiel Ceasar Navarrete <<EMAIL>>\n * Licensed under MIT\n */\n\nimport { TestBed, async, inject } from '@angular/core/testing'...
typescript
edit
0
1
mit
73c40eee1b090660f651fcbe67b0300ce53c3b35
ecsnavarretemit/sarai-ng2,ecsnavarretemit/sarai-interactive-maps,ecsnavarretemit/sarai-ng2,ecsnavarretemit/sarai-interactive-maps,ecsnavarretemit/sarai-interactive-maps,ecsnavarretemit/sarai-ng2
src/app/map/download-image-form/download-image-form.component.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/*\n * Copyright 2019 ThoughtWorks, Inc.\n *\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\n *\n * ...
typescript
edit
0
1
apache-2.0
b5ba0545c17e39429e485f8609094ba5e2fafb1c
Skarlso/gocd,marques-work/gocd,kierarad/gocd,gocd/gocd,gocd/gocd,arvindsv/gocd,ketan/gocd,ketan/gocd,gocd/gocd,ibnc/gocd,ibnc/gocd,gocd/gocd,arvindsv/gocd,bdpiparva/gocd,marques-work/gocd,Skarlso/gocd,ketan/gocd,bdpiparva/gocd,kierarad/gocd,kierarad/gocd,marques-work/gocd,marques-work/gocd,bdpiparva/gocd,arvindsv/gocd,...
server/webapp/WEB-INF/rails/webpack/single_page_apps/config_repos.tsx
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { URL } from 'url';\nimport getObject from './getObject';\n\nconst getImages = (result: any): string[] => {\n const origin = (new URL(result.url)).origin;\n\n return getObject(result.html, 'name', 'img')\n .filter((image: an...
typescript
edit
0
5
mit
66e757569e92517e7c1ae77445a3e2348c96d24f
juffalow/pentest-tool-lite,juffalow/pentest-tool-lite
src/functions/getImages.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport Renderer from '../renderer'\n\nclass BitBucketRenderer extends Renderer {\n getCodeDOM() {\n return document.querySelector('.file-source .code')\n }\n\n getCode() {\n return this.$code.innerText\n }\n\n getFontDOM() {\...
typescript
edit
0
3
mit
d7a32cf8a4b5f653be1fe8855f23411774183df8
pd4d10/intelli-octo,pd4d10/intelli-octo,pd4d10/intelli-octo
src/platforms/bitbucket.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Emitter } from \"event-emitter\";\n\ndeclare namespace pipe {\n interface EmitterPipe {\n close(): void;\n }\n}\n\ndeclare function pipe(source: Emitter, target: Emitter, emitMethodName?: string | Symbol): pipe.Emi...
typescript
edit
0
0
mit
99502f4819a9bfb1e7bfe5c2978b53b3f0862b93
laurentiustamate94/DefinitelyTyped,abbasmhd/DefinitelyTyped,mcliment/DefinitelyTyped,georgemarshall/DefinitelyTyped,AbraaoAlves/DefinitelyTyped,one-pieces/DefinitelyTyped,jimthedev/DefinitelyTyped,benishouga/DefinitelyTyped,jimthedev/DefinitelyTyped,chrootsu/DefinitelyTyped,arusakov/DefinitelyTyped,arusakov/DefinitelyT...
types/event-emitter/pipe.d.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from \"react\"\nimport styled from \"styled-components\"\n\nconst Container = styled.div`\n width: 100vw;\n left: 0;\n overflow: hidden;\n`\n\nconst ImagesContainer = styled.div`\n width: 130%;\n left: -15%;\n positio...
typescript
edit
null
null
mit
eeb11836edcd34f805c30d71c14e923ba80e6930
bright/new-www,bright/new-www
src/components/shared/ImageSpacer.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\ndeclare module 'connected-react-router' {\n import * as React from 'react'\n import { Action, Middleware, Reducer } from 'redux'\n import { History, Path, LocationState, LocationDescriptorObject } from 'history'\n\n interface Connec...
typescript
edit
0
1
mit
94572c97a7132fdbac40570026ca186b1307cd20
supasate/connected-react-router
index.d.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {\n\tPredefinedTableColumnState,\n\tTagTableColumnState,\n} from './TableColumnSelector';\n\nexport const ALL_TAGS_COLUMN_KEY = 'All Tags';\nexport type TaggedResource = { id: number };\nexport interface ResourceTagBase {\n\tid: ...
typescript
edit
0
3
mit
6ecd27e2c96e75b4dbb63f9089f2dfaded648140
resin-io-modules/resin-components,resin-io-modules/resin-components,resin-io-modules/resin-components
src/components/Table/TableUtils.tsx
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport AbstractTransitionController, { TransitionDirection } from 'transition-controller';\nimport { TimelineLite, TimelineMax } from 'gsap';\nimport isString from 'lodash/isString';\nimport isElement from 'lodash/isElement';\nimport IA...
typescript
edit
0
6
mit
b47db5dfd92c275e43c66e5f8dffb52c06d03aff
larsvanbraam/vue-transition-component,larsvanbraam/vue-transition-component,larsvanbraam/vue-transition-component
src/lib/util/AbstractVueTransitionController.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport function insertHTMLBeforeBegin(element: HTMLElement, text: string) {\n\telement.insertAdjacentHTML(\"beforebegin\", text);\n};\nexport function insertHTMLAfterBegin(element: HTMLElement, text: string) {\n\telement.insertAdjacentH...
typescript
edit
0
1
mit
0c8788e96fa58dea69b4fcb93adafefd54a29f16
tee-talog/insert-adjacent-simple,tee-talog/insert-adjacent-simple,tee-talog/insert-adjacent-simple
src/ts/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { VNode } from 'inferno'\nimport Component from 'inferno-component'\nimport h from 'inferno-hyperscript'\nimport Todo from './todo'\n\ninterface Props {\n todoItems: {\n title: string,\n completed: boolean,\n toggleItem...
typescript
edit
null
null
mit
780d3263ffdaf5e981e34a63f19a1bac7606ddf9
y0za/typescript-inferno-todo,y0za/typescript-inferno-todo,y0za/typescript-inferno-todo
src/components/todo-list.ts
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { observer } from 'mobx-react';\nimport { hot } from 'react-hot-loader';\nimport React from 'react';\nimport AppStore from '../../../../app/store';\nimport Store from '../../store';\nimport db from '../../../../shared/models/app-...
typescript
edit
null
null
apache-2.0
ffc74b51310f958a37b20d355292b24b7c7072bf
Nersent/Wexond,Nersent/Wexond
src/menu/bookmarks/components/Bookmarks/index.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// Provides dev-time type structures for `danger` - doesn't affect runtime.\nimport {DangerDSLType} from '../../node_modules/danger/distribution/dsl/DangerDSL';\ndeclare var danger: DangerDSLType;\nexport declare function message(messa...
typescript
edit
0
3
mit
0a19c64b79d4ab32f1b53da3c0a02f86f4cb79b2
indigotech/dangerjs-plugin
src/rules/pr.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component, OnDestroy, OnInit, ViewEncapsulation } from '@angular/core';\nimport { Router } from '@angular/router';\n\nimport {\n AppsService,\n Environment,\n} from './services/apps.service';\nimport { ISubscription } from 'r...
typescript
edit
0
1
apache-2.0
19c884fa70b0998570ab7b3982893097560bd082
fabric8io/fabric8-ui,fabric8-ui/fabric8-ui,fabric8io/fabric8-ui,fabric8-ui/fabric8-ui,fabric8-ui/fabric8-ui,fabric8-ui/fabric8-ui,fabric8io/fabric8-ui,fabric8io/fabric8-ui,fabric8-ui/fabric8-ui,fabric8io/fabric8-ui
src/app/space/create/apps/apps.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { ChangeEvent, DetailedHTMLProps, forwardRef, InputHTMLAttributes, ReactNode, Ref, useRef } from 'react';\nimport { ButtonLike, Color, Shape } from '../button';\nimport { useCombinedRefs } from '../../hooks';\n\nexport interface ...
typescript
edit
null
null
mit
a9b358d46fd2779fb83997a6439d23357f4a7724
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
packages/components/components/input/FileInput.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport class Adapter {\n private static FILE_TEMPLATE: string = \"# Dependencies\\n## For users\\n{{dependencies}}\\n\\n## For developers\\n{{devDependencies}}\";\n private static DEPENCENCY_TEMPLATE: string = \"* [{{package_name}}]({...
typescript
edit
0
2
unlicense
c4a15bcec22b6e339f1eac1bca4899f02d0c668a
Jameskmonger/dependument,dependument/dependument,dependument/dependument,Jameskmonger/dependument
src/adapter.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { resolveContainer, registerContainer, ContainerRegistration, container } from \"./registry\";\nimport { Container } from \"./container\";\nimport { ContainerWindow } from \"./window\";\nimport * as Default from \"./Default/defau...
typescript
edit
0
0
apache-2.0
b0b3b5d7349701a1cfb8d4c583a345ef42ee30d9
Morgan-Stanley/desktopJS,Morgan-Stanley/desktopJS,bingenito/desktopJS,Morgan-Stanley/desktopJS,bingenito/desktopJS,bingenito/desktopJS
src/desktop.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Injectable } from 'angular2/core';\n\n@Injectable()\nexport class NotificationService {\n private _notifier: any = alertify;\n constructor() {\n }\n\n printSuccessMessage(message: string) {\n \n this....
typescript
edit
0
2
mit
30ddb43cf4cef772b3ca761ab7ac3d355b927196
myomyinthan/aspnet5-angular2-typescript,xizhe-zhang/aspnet5-angular2-typescript,jensoleg/aspnet5-angular2-typescript,xizhe-zhang/aspnet5-angular2-typescript,chsakell/aspnet5-angular2-typescript,myomyinthan/aspnet5-angular2-typescript,jensoleg/aspnet5-angular2-typescript,jensoleg/aspnet5-angular2-typescript,myomyinthan/...
src/PhotoGallery/wwwroot/app/core/services/notificationService.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {OneNoteDataProvider} from './oneNoteDataProvider';\nimport {Notebook} from '../oneNoteDataStructures/notebook';\nimport {OneNoteApiResponseTransformer} from '../oneNoteDataStructures/oneNoteApiResponseTransformer';\nimport {Sect...
typescript
edit
0
1
mit
84ad557a802cd4f66f3c021802e7631dd433dcba
OneNoteDev/OneNotePicker-JS,OneNoteDev/OneNotePicker-JS,OneNoteDev/OneNotePicker-JS
src/providers/oneNoteApiDataProvider.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/// <reference path=\"gapi.auth2.d.ts\" />\n\nfunction test_init(){\n var auth = gapi.auth2.init();\n}\n\nfunction test_getAuthInstance(){\n gapi.auth2.init();\n var auth = gapi.auth2.getAuthInstance();\n}\n\nfunction test_render(){\...
typescript
edit
0
1
mit
a006f71d8e7b73d0173ac761d47ed2b803bd40b4
nakakura/DefinitelyTyped,mhegazy/DefinitelyTyped,donnut/DefinitelyTyped,trystanclarke/DefinitelyTyped,progre/DefinitelyTyped,rcchen/DefinitelyTyped,esperco/DefinitelyTyped,aciccarello/DefinitelyTyped,zuzusik/DefinitelyTyped,ashwinr/DefinitelyTyped,abner/DefinitelyTyped,Litee/DefinitelyTyped,rcchen/DefinitelyTyped,gcast...
gapi.auth2/gapi.auth2-tests.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { chain, externalSchematic, Rule } from '@angular-devkit/schematics';\nimport { Schema as NgComponentOptions } from '@schematics/angular/component/schema';\n\nexport interface ScamOptions extends NgComponentOptions {\n separat...
typescript
edit
0
2
mit
2597ca4ca7e2d1c39d52b3f5d28225ebf2b9ed57
wishtack/wishtack-steroids,wishtack/ng-steroids,wishtack/ng-steroids,wishtack/wishtack-steroids,wishtack/wishtack-steroids
packages/schematics/src/scam/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/*\nCopyright 2020 The Matrix.org Foundation C.I.C.\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 h...
typescript
edit
0
5
apache-2.0
b601a025b58200ac04bedf738fdd9898c462a251
matrix-org/matrix-react-sdk,matrix-org/matrix-react-sdk,matrix-org/matrix-react-sdk,matrix-org/matrix-react-sdk,matrix-org/matrix-react-sdk,matrix-org/matrix-react-sdk
src/utils/WellKnownUtils.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { PluginChain } from '../PluginChain';\nimport { File } from '../File';\nimport { WorkFlowContext } from '../WorkflowContext';\nimport { Plugin } from '../WorkflowContext';\n\nlet stylus;\n\nexport class StylusPluginClass impleme...
typescript
edit
0
2
mit
20fbbad5855dad478cd5b3f5e20b7c2b05e121f7
fuse-box/fuse-box,pnml/fuse-box,fuse-box/fuse-box,rs3d/fuse-box,pnml/fuse-box,fuse-box/fuse-box,rs3d/fuse-box,rs3d/fuse-box,fuse-box/fuse-box,pnml/fuse-box
src/plugins/StylusPlugin.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport faker from 'faker';\n\nexport class Faker {\n private static get positiveInteger(): number {\n return faker.random.number({\n min: 0,\n max: Number.MAX_SAFE_INTEGER,\n precision: 1,\n });\n }\n\n private s...
typescript
edit
0
3
mit
2e810a718919218c6dd9020d508be3d295cd93bb
tamino-martinius/node-next-model
src/__mocks__/next_model.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 moment from 'moment';\n\n/**\n * The namespace for date functions.\n */\nexport namespace Time {\n /**\n * Convert a ti...
typescript
edit
0
2
bsd-3-clause
d40eab44fbe0be77545758e7251be8b71fd38317
jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab
packages/coreutils/src/time.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// import { expect } from 'chai';\nimport * as fs from './index';\n\ndescribe('fs', function() {\n describe('unlink', function() {\n it('should do maybe unlink stuff', function(done) {\n fs.writeFileAsync('/tmp/foo'...
typescript
edit
null
null
mit
50a988e8e9efd0c9159855752354699a544729b0
bls/node-sane-fs
src/test.ts
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {MstSvt} from \"../../../model/master/Master\";\nimport {MstSkillContainer, MstSvtSkillContainer, MstCombineSkillContainer} from \"../../../model/impl/MstContainer\";\n\nexport interface MstGoal {\n appVer: string;\n svtRaw...
typescript
edit
0
0
mit
148b71ca66df74a03178b12f5b04fe5e0db7134e
agreatfool/fgo-handbook,agreatfool/fgo-handbook,agreatfool/fgo-handbook,agreatfool/fgo-handbook,agreatfool/fgo-handbook,agreatfool/fgo-handbook
src/mobile/lib/model/MstGoal.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { ProblemLocation } from '../../src/lib/types';\n\nexport type Report = {\n /** The message to validate */\n message: string;\n position?: ProblemLocation;\n};\n\nexport type RuleTest = {\n /** The code to execute bef...
typescript
edit
0
0
apache-2.0
a5484665cb6ee75c58d9625abc561c5da5874e81
sonarwhal/sonar,sonarwhal/sonar,sonarwhal/sonar
packages/sonarwhal/tests/helpers/rule-test-type.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport * from \"./paragraph\";\nexport * from \"./table\";\nexport * from \"./file\";\nexport * from \"./numbering\";\nexport * from \"./media\";\nexport * from \"./drawing\";\nexport * from \"./styles\";\nexport * from \"./xml-componen...
typescript
edit
0
0
mit
424436579ba6a4d55e501e5cdc191c95a43ccaa7
dolanmiu/docx,dolanmiu/docx,dolanmiu/docx
src/file/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React, { Fragment, FunctionComponent } from 'react';\nimport { Placeholder } from '@storybook/components';\nimport { styled } from '@storybook/theming';\nimport { Result, NodeResult } from 'axe-core';\nimport { Item } from './Ite...
typescript
edit
null
null
mit
db9b93ad02de8304cddb461557af01c070ae544c
storybooks/react-storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook,storybooks/react-storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,kadirahq/react-storybook
addons/a11y/src/components/Report/index.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Meteor} from 'meteor/meteor';\nimport {Quiz} from \"../../both/models/quiz.model\";\nimport {QuizCollection} from \"../../both/collections/quiz.collection\";\n\n\nMeteor.methods({\n saveQuiz: function(quizModel: Quiz) {\n ...
typescript
edit
0
1
mit
fe51e127feec8bd90d001a00c00503f7b4317645
prikril/ro-inf-sa,prikril/ro-inf-sa
server/methods/quiz.methods.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { CustomCommandDefinition } from \"./custom-command-definition\";\nimport { CustomQueryDefinition } from \"./custom-query-definition\";\nimport { EntityDefinition } from \"./entity-definition\";\nimport { UserDefinition } from \"...
typescript
edit
0
0
apache-2.0
84c9b0a29e64ab99ce689c239da54aa538b24db4
phenyl-js/phenyl,phenyl-js/phenyl,phenyl-js/phenyl,phenyl-js/phenyl
modules/interfaces/src/functional-group.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/// <reference path=\"../../app.d.ts\" />\n'use strict';\n\nmodule <%= capName %>App.Services.<%= camelName %> {\n\n class <%= camelName %>Service {\n\n static $inject = [];\n \n constructor() {\n\n }\n ...
typescript
edit
null
null
bsd-3-clause
6babbc718ab0c30a1eae43d4e4b4360c01c07b50
NovaeWorkshop/Nova,NovaeWorkshop/Nova,NovaeWorkshop/Nova
service/templates/service.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 { Card, Label, Rating } from 'semantic-ui-react';\nimport Meal from '../State/Meal/Meal';\n\ninterface MealCardProps extends React.Props<MealCard> {\n meal: Meal;\n}\n\nexport default class MealC...
typescript
edit
null
null
bsd-3-clause
5d4bdb994756f080822d5b19c9a4b60433aa5b94
Rdbaker/Mealbound,Rdbaker/Mealbound,Rdbaker/Mealbound,Rdbaker/Mealbound,Rdbaker/Mealbound
CeraonUI/src/Components/MealCard.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport interface CacheableAnnotation {\n\n}\n\nexport function Cacheable(options?: CacheableAnnotation) {\n return function(target: any, propertyKey: string | symbol, descriptor: PropertyDescriptor) {\n // save a reference to ...
typescript
edit
0
3
mit
6a993204daae7dd224d991f30c852e9c49764bf1
semagarcia/typescript-decorators,semagarcia/typescript-decorators
src/method-decorators/cacheable.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {\n em,\n rem\n} from 'polished';\n\nexport const headerFontWeight = 'bold';\nexport const headerLineHeight = em(18 / 14);\n\nexport const h1 = rem(28 / 14);\nexport const h2 = rem(24 / 14);\nexport const h3 = rem(18 / 14);\nex...
typescript
edit
0
0
mit
2844d057fb870fc3bf5e8f996af51031dfd4b20d
maxdeviant/semantic-ui-css-in-js,maxdeviant/semantic-ui-css-in-js
src/styles/globals/page-heading.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { createGlobalStyle } from 'styled-components'\nimport { textColor, backgroundColor } from '../styles/colors'\n\nconst GlobalStyle = createGlobalStyle`\n body {\n color: ${textColor};\n background-color: ${backgroundColor}...
typescript
edit
0
0
mit
9b4389ba612916c5e03c1586e7d6db847de4451a
Sarah-Seo/Inpad,Sarah-Seo/Inpad
src/main/components/GlobalStyle.tsx
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { isObject } from 'tsfun';\n\nexport interface OptionalRange {\n\n value: string;\n endValue?: string;\n}\n\n\nexport module OptionalRange {\n\n export const VALUE = 'value';\n export const ENDVALUE = 'endValue';\n\n\...
typescript
edit
0
8
apache-2.0
f55fdd6a507e273acfaff19a809da417b583d241
dainst/idai-components-2,dainst/idai-components-2,dainst/idai-components-2
src/model/optional-range.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as SqlString from \"sqlstring\";\n\n// Code samples taken from:\n// https://github.com/mysqljs/sqlstring/blob/master/README.md\n\nconst userId = \"some user provided value\";\nconst sql1 = \"SELECT * FROM users WHERE id = \" + ...
typescript
edit
0
0
mit
9975a166869998b7d183e547b857f3dbee99c901
georgemarshall/DefinitelyTyped,borisyankov/DefinitelyTyped,georgemarshall/DefinitelyTyped,magny/DefinitelyTyped,dsebastien/DefinitelyTyped,mcliment/DefinitelyTyped,georgemarshall/DefinitelyTyped,magny/DefinitelyTyped,dsebastien/DefinitelyTyped,georgemarshall/DefinitelyTyped,markogresak/DefinitelyTyped,borisyankov/Defin...
types/sqlstring/sqlstring-tests.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// The MIT License (MIT)\n//\n// Copyright (c) 2016 Simon Mika\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// ...
typescript
edit
0
1
mit
09d8ada3a04e06ad8e879e6f4b3c5a94f61f9ae7
cogneco/u10sil,cogneco/mend
Error/Message.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport * as ReactTestUtils from 'react-addons-test-utils'\nimport { MuiThemeProvider } from 'material-ui/styles';\n\nimport AppBar from 'material-ui/AppBar';\nimport MenuItem from 'material-ui/MenuItem';...
typescript
edit
null
null
mit
64f8b28f0070563855be345356b467a179f4ab13
mthmulders/hyperion-web,mthmulders/hyperion-web,mthmulders/hyperion-web
app/scripts/components/__tests__/appSpec.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport Router from 'vue-router'\n\nfunction createRouter (store) {\n return new Router({\n mode: 'history',\n fallback: false,\n // TODO update vue-router when scroll issue will be fixed\n // https://github.com/vuejs/vue-ro...
typescript
edit
0
3
bsd-3-clause
e98546fdb908d025ae33ccd1c959f064ff524877
aelve/guide,aelve/guide,aelve/guide,aelve/guide
front/client/router/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react'\nimport * as classNames from 'classnames'\n\ninterface TodoTextInputProps {\n editing?: boolean\n newTodo?: boolean\n placeholder?: string\n text?: string\n onSave: (text: string) => void\n}\n\ninterf...
typescript
edit
null
null
unlicense
b6f05b06d7357e7dd5582e9b0cabbce7a79d201f
janaagaard75/framework-investigations,janaagaard75/framework-investigations,janaagaard75/framework-investigations,janaagaard75/framework-investigations
react-redux-webpack2-todomvc/client/todos/components/TodoTextInput.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n#!/usr/bin/env node\n\nimport fse from 'fs-extra';\nimport yargs from 'yargs';\n\nconst argv = yargs\n .usage('Usage: $0 [-L] source target')\n .demand(2, 2)\n .boolean('d')\n .alias('d', 'dereference')\n .describe('d', 'Dereferenc...
typescript
edit
0
2
mit
bd3344c7bf5f4d517d3ee3160463b170f191b19f
screendriver/cp-cli
src/cp-cli.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { config } from 'dotenv';\nconfig();\n\nimport Application from './application';\n\nnew Application().start();\n\n```\n\nApply this change: Add reflect-metadata on the project" }, { "role": "assistant", "content": "im...
typescript
edit
0
0
mit
0ef2c395326d1749bda2a2804c522d6421ec8aaa
rafaell-lycan/sabesp-mananciais-api,rafaell-lycan/sabesp-mananciais-api
src/server.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * API Server\n */\n\nimport * as Koa from 'koa';\nimport * as Router from 'koa-router';\nimport * as multer from 'koa-multer';\nimport * as bodyParser from 'koa-bodyparser';\nconst cors = require('@koa/cors');\n\nimport endpoints ...
typescript
edit
0
2
mit
839be6477d4b5870a03c82791af5a156882eadcb
syuilo/Misskey,syuilo/Misskey
src/server/api/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { getAST } from './ast';\nimport { emit } from './emitter';\n\ndeclare function require(name: string);\ndeclare var process: any;\n\n(function () {\n if (typeof process !== 'undefined' && process.nextTick && !process.browser && ...
typescript
edit
0
6
mit
a8ecc7a95006796aca3a913a7c5882bf1ba89d93
artfuldev/RIoT
transpiler/src/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from \"react\";\nimport { hot } from \"react-hot-loader\";\n\nconst reactLogo = require(\"./../assets/img/react_logo.svg\");\nimport \"./../assets/scss/App.scss\";\n\nclass App extends React.Component<{}, undefined> {\...
typescript
edit
null
null
mit
fad6e2f833f3f6a28c143cfac8db347a5b989121
vikpe/react-webpack-typescript-starter,vikpe/react-webpack-typescript-starter
src/components/App.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { chain, externalSchematic, Rule } from '@angular-devkit/schematics';\nimport { Schema as NgComponentOptions } from '@schematics/angular/component/schema';\nimport { findModuleFromOptions } from '@schematics/angular/utility/find-...
typescript
edit
0
2
mit
7229952555d95a4741119b21f82542d39b300ed1
wishtack/wishtack-steroids,wishtack/ng-steroids,wishtack/wishtack-steroids,wishtack/ng-steroids,wishtack/wishtack-steroids
packages/schematics/src/scam/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from \"react\";\nimport { ClassSummary } from \"./class-summary\"\nimport {ClassXCourse} from \"../../control/class\"\n\ninterface ClassString extends ClassXCourse {\n teacher_string: string,\n department_string:...
typescript
edit
null
null
mit
5183e58c8047d0bc519fd5b762b7986e85bfa171
goodbye-island/S-Store-Front-End,goodbye-island/S-Store-Front-End,goodbye-island/S-Store-Front-End
src/components/class/class-list.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Configuration, InjectorService, ProviderScope, registerProvider} from \"@tsed/di\";\nimport Ajv from \"ajv\";\nimport AjvFormats from \"ajv-formats\";\nimport {IAjvSettings} from \"../interfaces/IAjvSettings\";\n\nregisterProvid...
typescript
edit
0
0
mit
75adbf43f26b3e600af42022e0fd9df806f34dbe
Romakita/ts-express-decorators,Romakita/ts-express-decorators,Romakita/ts-express-decorators,Romakita/ts-express-decorators
packages/ajv/src/services/Ajv.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React, { FC } from 'react'\n\ninterface Props {\n handleSubmit: (e: React.FormEvent<HTMLFormElement>) => void\n handleChange: (e: React.ChangeEvent<HTMLInputElement>) => void\n value: string\n}\n\nconst UserSearchForm: FC<Prop...
typescript
edit
null
null
mit
37874f313fa7b2c2934ab1c20ff43a88463840bb
crowi/crowi,crowi/crowi,crowi/crowi
client/components/Admin/User/UserSearchForm.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\n\nimport {\n AccordionContext,\n Consumer as AccordionConsumer,\n} from '../AccordionContext/AccordionContext';\nimport { nextUuid } from '../helpers/uuid';\nimport { Provider as ItemProvider } fro...
typescript
edit
null
null
mit
2b752a67964a6eed227ca98fe96e08c3fe97367c
springload/react-accessible-accordion,springload/react-accessible-accordion,springload/react-accessible-accordion
src/AccordionItem/AccordionItem.wrapper.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { valueConverter } from 'aurelia-framework';\n\n@valueConverter('pluralise')\nexport class PluraliseValueConverter {\n toView(value: number, text: string): string {\n if (value > 1) {\n return `${text}s`;\n ...
typescript
edit
0
2
isc
9e73ef967fa3b9ddc1347f242d623799c75a010e
michaelbull/aurelia-hacker-news,MikeBull94/aurelia-hacker-news,michaelbull/aurelia-hacker-news,MikeBull94/aurelia-hacker-news,michaelbull/aurelia-hacker-news
src/converters/pluralise.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from 'react';\n\nimport { CheckboxInput, FormikFormField, HelpField } from '@spinnaker/core';\n\nexport interface INLBAdvancedSettingsProps {\n showDualstack: boolean;\n}\n\nexport const NLBAdvancedSettings = React.forward...
typescript
edit
null
null
apache-2.0
bbee13dcd7851b4b0388e0c4d449456509570ac4
spinnaker/deck,spinnaker/deck,spinnaker/deck,spinnaker/deck
app/scripts/modules/amazon/src/loadBalancer/configure/network/NLBAdvancedSettings.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Injectable } from '@angular/core';\nimport { Http, Response } from '@angular/http';\nimport { Observable } from 'rxjs/Observable';\nimport { OptionMap } from './map';\nimport { LayerType } from './layer';\n\n\n@Injectable()\nex...
typescript
edit
0
1
mit
b36dbb545d58a692e5b2806bf6332a30fd13ae73
ABAPlan/abaplan-core,ABAPlan/abaplan-core,ABAPlan/abaplan-core
app/core/map.service.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport { ArchitectCommand...
typescript
edit
0
2
mit
4ce7681cc82d278108d003bcfcea3dfa2c2ef03d
catull/angular-cli,Brocco/angular-cli,clydin/angular-cli,Brocco/angular-cli,geofffilippi/angular-cli,Brocco/angular-cli,Brocco/angular-cli,geofffilippi/angular-cli,clydin/angular-cli,angular/angular-cli,catull/angular-cli,catull/angular-cli,Brocco/angular-cli,geofffilippi/angular-cli,clydin/angular-cli,angular/angular-...
packages/angular/cli/commands/e2e-impl.ts
rejected_duplicate
Near-duplicate of sample 112693
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {PolymerElement, html} from '@polymer/polymer/polymer-element';\nimport '@polymer/iron-icons/communication-icons';\n\n/* eslint-disable max-len */\n\n/**\n * @polymer\n * @customElement\n */\nexport class SupportBtn extends Polym...
typescript
edit
0
1
apache-2.0
c51ac6a639c8e2579d0b104c1cc48bf652947965
unicef/etools-dashboard,unicef/etools-dashboard,unicef/etools-dashboard,unicef/etools-dashboard
src_ts/components/support-btn.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { runWorker } from '../../utils/worker'\nimport { viewHandler } from '../../interfaces/view'\nimport { logFns } from '../../utils/log'\n\n// all communicatios are transfered via postMessage\nrunWorker({\n worker: new (<any> requ...
typescript
edit
0
0
mit
90c42dc28ff91180914d5d5a0fa12f94f480523e
FractalBlocks/Fractal,FractalBlocks/Fractal,FractalBlocks/Fractal
src/examples/worker/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { async, ComponentFixture, TestBed } from '@angular/core/testing';\n\nimport { AggregationChartComponent } from './aggregation-chart.component';\nimport {BarchartDataService} from \"../../services/barchart-data.service\";\nimport...
typescript
edit
0
1
apache-2.0
aaeea9bc44c962d59b1eacc9cea53c9671a946c7
iteratec/OpenSpeedMonitor,iteratec/OpenSpeedMonitor,iteratec/OpenSpeedMonitor,iteratec/OpenSpeedMonitor,iteratec/OpenSpeedMonitor
frontend/src/app/modules/aggregation/components/aggregation-chart/aggregation-chart.component.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component, OnInit } from '@angular/core';\nimport { Router } from '@angular/router';\n\nimport { UserService } from '../services/user.service';\nimport { AuthService } from '../services/auth.service';\n\n@Component({\n selecto...
typescript
edit
0
1
mit
73e6fe9df07b4abca3856ecc10eaff757553f7a0
pghant/big-theta,pghant/big-theta,pghant/big-theta,pghant/big-theta
big-theta-app/src/app/home/home.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Deferred } from \"../Deferred\";\n\nexport function timeout<T>(promise: Promise<T>, ms: number): Promise<T> {\n const deferred = new Deferred<T>();\n const timer = setTimeout(\n () => {\n deferred.reject...
typescript
edit
0
1
mit
00ab9da9db3696cccfc493debe2c28c2a2cf4cd2
AArnott/Nerdbank.FullDuplexStream
src/nerdbank-streams/src/tests/Timeout.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as fs from \"fs\";\nimport * as vscode from \"vscode\";\nimport MemberTypes from \"./MemberTypes\";\n\nclass ParsedPhpClass {\n public name: string;\n public properties: MemberTypes = new MemberTypes();\n public methods: Mem...
typescript
edit
0
5
mit
0530152d2d5cb5f09f54849bad2bdd1f3b853597
elonmallin/vscode-phpunit
src/PhpParser/PhpParser.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n///<reference path=\"../.d.ts\"/>\n\"use strict\";\n\nexport class StringCommandParameter implements ICommandParameter {\n\tpublic mandatory = false;\n\tpublic errorMessage: string;\n\n\tpublic validate(validationValue: string): IFuture...
typescript
edit
0
3
apache-2.0
bdd0ff06eea57b4ea0002860e246d7341f964184
telerik/mobile-cli-lib,telerik/mobile-cli-lib
command-params.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { createSelector } from 'reselect';\r\nimport { watcherFoldersSelector } from './index';\r\nimport { Watcher } from '../types';\r\nimport { normalizedWatchers } from './watchers';\r\nimport { Map } from 'immutable';\r\n\r\nexport...
typescript
edit
0
3
mit
450f54d71fb31653623dc86b40f09505cd5985e8
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
src/selectors/watcherFolders.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport type {latexParser, bibtexParser} from 'latex-utensils'\nimport * as path from 'path'\nimport * as workerpool from 'workerpool'\nimport type {Proxy} from 'workerpool'\nimport type {ISyntaxWorker} from './syntax_worker'\n\nexport c...
typescript
edit
0
2
mit
b931aedd0a4a074aa074fd912157217101bdb321
James-Yu/LaTeX-Workshop,James-Yu/LaTeX-Workshop,James-Yu/LaTeX-Workshop,James-Yu/LaTeX-Workshop,James-Yu/LaTeX-Workshop
src/components/parser/syntax.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * Provides Zivi information from the backend's REST interface.\n */\n\nimport {Http} from '@angular/http';\nimport {Injectable} from '@angular/core';\n\nimport 'rxjs/Rx';\n\nexport class Zivi {\n constructor(public name: string,\...
typescript
edit
0
1
mit
c4739c1ecbecec0a4ff5e0d0f16cb157405cd64f
realzimon/ng-zimon,realzimon/ng-zimon,realzimon/ng-zimon
app/services/zivi.service.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { StatBlock } from \"../../common/StatBlock\";\nimport { InitializeSettings } from \"../Settings/Settings\";\nimport { buildEncounter } from \"./buildEncounter\";\n\ndescribe(\"Combatant\", () => {\n beforeEach(() => {\n ...
typescript
edit
0
1
mit
30202a013c9f40e2bb2e912718e38e1169e419e9
cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative
client/test/Combatant.test.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from \"react\";\nimport { connect } from \"react-redux\";\nimport { Redirect } from \"react-router-dom\";\n\nimport { IBook } from \"../lib/books\";\nimport \"./style/Books.css\";\n\ninterface IProps {\n books: IBoo...
typescript
edit
null
null
mit
6e0bdb2c7ade7c96be8357418736fb39986f49fb
raviqqe/code2d,raviqqe/code2d,raviqqe/code2d,raviqqe/code2d
app/src/container/Books.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react'\n\nimport { Button } from '@blueprintjs/core'\nimport { shallow, mount } from 'enzyme'\nimport { INavbarProps, Navbar } from '../Navbar'\n\ndescribe('Navbar', () => {\n const mockProps: INavbarProps = {\n...
typescript
edit
null
null
mit
78d6266254e25101950cadce62ad70f7285ebb3b
respace-js/respace,respace-js/respace,evansb/respace,evansb/respace,evansb/respace
src/components/__tests__/Navbar.spec.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-home',\n templateUrl: './home.component.html',\n styleUrls: ['./home.component.css']\n})\nexport class HomeComponent implements OnInit {\n\n constru...
typescript
edit
0
1
apache-2.0
0acec31c37a505e8ac5948e72fc3627b3a2d36b8
tonymichaelhead/Legatum,tonymichaelhead/Legatum,tonymichaelhead/Legatum
LegatumClient/src/app/home/home.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {ManipulationSettingsContainer} from \"../ManipulationSettings\";\nimport {ts} from \"../typescript\";\nimport {FormatCodeSettings} from \"../compiler\";\nimport {setValueIfUndefined} from \"./setValueIfUndefined\";\nimport {fill...
typescript
edit
0
1
mit
b74dfd969044fe948cb119ac2271fd421b8d027d
dsherret/ts-simple-ast
src/utils/fillDefaultFormatCodeSettings.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n\"use strict\";\n\nimport {HttpClient} from \"aurelia-fetch-client\";\nimport {Aurelia} from \"aurelia-framework\";\nimport \"bootstrap\";\n\nexport function configure(aurelia: Aurelia) {\n aurelia.use\n .standardConfiguration()\n ...
typescript
edit
0
1
mit
b08589b98088fe45ab2aff2e9341fccf9de0d566
jp7677/hellocoreclr,jp7677/hellocoreclr,jp7677/hellocoreclr,jp7677/hellocoreclr
ui/src/main.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Component} from \"angular2/core\";\n\n@Component({\n selector: \"contact\",\n template: ` \n <div>\n <div>\n <label for=\"first-name\">First Name:</label> \n <inp...
typescript
edit
0
1
mit
c237051c550cc92e5d6b0c13972f708d95ce123c
tonirilix/angular2-playground,tonirilix/angular2-playground,tonirilix/angular2-playground
dev/contacts/contact.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\n\nimport { FormContainer, SelectField } from '@waldur/form-react';\nimport { translate } from '@waldur/i18n';\n\nexport const OpenStackPluginOptionsForm = ({ container, locale }) => {\n const STORAGE_MO...
typescript
edit
null
null
mit
659f3133381751a79df39f62a80290e72ca6741f
opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport
src/openstack/OpenStackPluginOptionsForm.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {expect} from \"chai\";\nimport {NamespaceDeclaration, NamespaceChildableNode} from \"./../../../compiler\";\nimport {getInfoFromText} from \"./../testHelpers\";\n\ndescribe(nameof(NamespaceChildableNode), () => {\n describe(...
typescript
edit
0
1
mit
f2758d83449d4bc070063e76487fb50c8adad6d2
dsherret/ts-simple-ast
src/tests/compiler/namespace/namespaceChildableNode.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport icon from 'part:@sanity/base/user-icon'\n\nexport default {\n type: 'document',\n name: 'author',\n title: 'Author',\n icon,\n fields: [\n {\n type: 'string',\n name: 'name',\n title: 'Name',\n validat...
typescript
edit
0
0
mit
e6dfbbff828d09f0644c9ccb8a0e7a32b728623d
sanity-io/sanity,sanity-io/sanity,sanity-io/sanity,sanity-io/sanity
packages/design-studio/schemas/author.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { ComponentFixture, TestBed, async } from '@angular/core/testing';\nimport { By } from '@angular/platform-browser';\nimport { DebugElement } from '@angular/core';\n\nimport { DefaultViewComponent } from './default...
typescript
edit
0
1
unlicense
53282161b11a88f7e1862224453f372396ea6960
codechaotic/lizard-love-ui,codechaotic/lizard-love-ui,codechaotic/lizard-love-ui
src/app/default-view.component.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Map} from 'tsfun';\nimport { Category } from '../model/category';\n\n\nconst defaultFieldsToIndex = ['identifier', 'shortDescription'];\n\n\nexport function getFieldsToIndex(categoriesMap: Map<Category>, categoryName: string): s...
typescript
edit
0
2
apache-2.0
833ee9ec0195607d5c4f955a57db1f9034acc304
codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client
core/src/index/get-fields-to-index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { FunctionComponent } from 'react';\n\nimport { ResourceActionsButton as BaseResourceActionsButton } from '@waldur/marketplace/resources/actions/ResourceActionsButton';\nimport { ActionButtonResource } from '@waldur/resource/acti...
typescript
edit
null
null
mit
e8bbd04a3aa012146deaaeac20d681a7f974e170
opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport
src/marketplace/resources/list/ResourceActionsButton.tsx
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 * as classnames from 'classnames'\n\nexport interface DraggableProps {\n coordinates?: { x: number; y: number }\n pressed?: boolean\n rotation?: number\n size?: number\n style?: React.CSSPrope...
typescript
edit
null
null
mit
3afbfd84c640e2f9cdc196fa2744801d34aa6605
programbo/react-circular-slider
components/Draggable.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as Koa from \"koa\";\nimport bodyParser = require(\"koa-bodyparser\");\n\nconst app = new Koa();\n\napp.use(bodyParser({ strict: false }));\n\napp.listen(80)\n```\n\nApply this change: Use same import style for dependencies" ...
typescript
edit
0
0
mit
d84140fb87e186637763cbc2949182160e51bd5e
magny/DefinitelyTyped,dsebastien/DefinitelyTyped,AgentME/DefinitelyTyped,jimthedev/DefinitelyTyped,one-pieces/DefinitelyTyped,zuzusik/DefinitelyTyped,jimthedev/DefinitelyTyped,rolandzwaga/DefinitelyTyped,arusakov/DefinitelyTyped,borisyankov/DefinitelyTyped,mcliment/DefinitelyTyped,AgentME/DefinitelyTyped,AbraaoAlves/De...
types/koa-bodyparser/koa-bodyparser-tests.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component } from '@angular/core';\nimport { Router } from '@angular/router';\n\nimport { AuthorizationService } from '../../shared/authorization.service';\nimport { UserService } from '../../shared/user.service';\n\n@Component(...
typescript
edit
0
2
mit
ea4808039c22b54cd83f381b5cf701e157522f2f
yusk90/courses-app,yusk90/courses-app,yusk90/courses-app
src/app/pages/login/login.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport function getMoves(grid: boolean[]): number[] {\n var moves = [];\n for(let i=0; i< grid.length; i++) {\n if(grid[i] == undefined)\n moves.push(i);\n }\n return moves;\n}\n\n```\n\nApply this change: Use const instead ...
typescript
edit
0
3
mit
a43906111af617a497520feae3cc651bcef615c6
artfuldev/tictactoe-ai,artfuldev/tictactoe-ai
src/moves.ts
accepted
null
true