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 { registerComponent, Components } from '../../../lib/vulcan-lib';\nimport React from 'react';\nimport classNames from 'classnames';\n\nconst styles = (theme: ThemeType): JssStyles => ({\n author: {\n ...theme.typography.body2...
typescript
edit
null
null
mit
a935a1fe83cabd28a048f914abff3dbf1c356ff5
Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2
packages/lesswrong/components/comments/CommentsItem/CommentUserName.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {GlobalProviders, ProviderType, TypedProvidersRegistry} from \"@tsed/di\";\nimport {ControllerProvider} from \"../class/ControllerProvider\";\nimport {ExpressRouter} from \"../services/ExpressRouter\";\n\n// tslint:disable-next-l...
typescript
edit
0
1
mit
3b06c2c72b409957aedfe145257caf030ec55417
Romakita/ts-express-decorators,Romakita/ts-express-decorators,Romakita/ts-express-decorators,Romakita/ts-express-decorators
packages/common/src/mvc/registries/ControllerRegistry.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {\n setupApplicationTest as upstreamSetupApplicationTest,\n setupRenderingTest as upstreamSetupRenderingTest,\n setupTest as upstreamSetupTest,\n} from 'ember-qunit';\n\n// This file exists to provide wrappers around ember-qun...
typescript
edit
0
1
mit
874a920fc5059bfe0a3ad23986e0e745d38d301f
ember-cli/ember-cli,ember-cli/ember-cli,ember-cli/ember-cli
blueprints/app/files/tests/helpers/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nvar chai = require(\"chai\");\nvar path = require(\"path\");\nvar compiler = require(path.join(__dirname, \"../src\"));\n\nvar expect = chai.expect;\n\nvar fixturesDir = path.join(__dirname, \"fixtures\");\n\nfunction prependFixturesDir...
typescript
edit
0
1
bsd-3-clause
b67436490e5231fcae8521b475f6bea4f2b80bbd
rtfeldman/node-elm-compiler
test/compileToStringSync.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * Copyright 2020 Google LLC\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 * htt...
typescript
edit
0
1
apache-2.0
35c2c0db32fff45f3d7ab1160fad257acee1d289
google/schema-dts,google/schema-dts
test/helpers/make_class.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport Track from '../model/Track';\nimport { clear } from '../service';\nimport './Footer.css';\n\ninterface Props extends React.HTMLProps<HTMLDivElement> {\n tracks: Track[];\n}\n\nfunction Footer({...
typescript
edit
null
null
mit
8b8342c1cbaa03e87f2287f42bf660844f3df8ee
soflete/extereo,soflete/extereo
src/components/Footer.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { buildSchema } from \"graphql\"\nimport { readFileSync } from \"fs\"\nconst { diff: schemaDiff } = require(\"@graphql-inspector/core\")\nimport fetch from \"node-fetch\"\nimport { warn } from \"danger\"\n\n// If there is a break...
typescript
edit
0
2
mit
4afaabee62e13b6cb1947106e93deb928451f65d
artsy/metaphysics,artsy/metaphysics,artsy/metaphysics
peril/compareReactionSchema.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { defaultEmojis } from './default_emoji';\nimport { SlackClient } from './slack-client';\n\nimport * as emojione from 'emojione';\n\nexport class EmojiService {\n emojiList: { string: string };\n defaultEmojis = defaultEmoj...
typescript
edit
0
5
mit
b8c3a0cda06ee6033c2ca59cf6ef44d102ace935
mazun/SlackStream,mazun/SlackStream,mazun/ASlack-Stream,mazun/ASlack-Stream,mazun/ASlack-Stream,mazun/SlackStream,mazun/SlackStream,mazun/ASlack-Stream
src/services/slack/emoji.service.ts
rejected_duplicate
Near-duplicate of sample 113907
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { RootState } from './types';\r\nimport { combineReducers } from 'redux';\r\nimport { reducer as toastr } from 'react-redux-toastr';\r\nimport { default as tab } from './reducers/tab';\r\nimport { default as searchingActive } fro...
typescript
edit
0
0
mit
0cc8d340388dfd8e2f13026f7cb104ce5d33285a
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
src/reducers.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from \"react\";\nimport { Map } from \"immutable\";\nimport { renderHTML } from \"../../../util/render-html\";\n\nimport css from \"../../../../css/portal-dashboard/questions/multiple-choice-question.less\";\nimport ReportI...
typescript
edit
null
null
mit
7df23e7b9249259ca67a131f69eca61f22296557
concord-consortium/portal-report,concord-consortium/portal-report,concord-consortium/portal-report,concord-consortium/portal-report
js/components/portal-dashboard/questions/iframe-question.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {BudgetItem} from '../budget/budget-item';\n\nexport class BudgetService {\n \n private _budgetItems: BudgetItem[];\n \n getItems() {\n this._budgetItems = budgetItems;\n return this._budgetItems;\n }...
typescript
edit
0
3
mit
3aa9330eb0a2b418bf996f8309efaf82950e839d
bluebirrrrd/ng2-budget,bluebirrrrd/ng2-budget,bluebirrrrd/ng2-budget
src/app/services/budget.service.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nconst itIsDefined = typeof it === \"object\";\n\nfunction wrap<TResult>(\n original: ((...args: any[]) => TResult) | false,\n) {\n return (\n message: string,\n callback: (\n resolve: (result?: any) => void,\n reject: ...
typescript
edit
0
1
mit
675b98ba7ee2fd30e2e807b27ec1ed2a7945a8b0
apollostack/apollo-client,apollographql/apollo-client,apollostack/apollo-client,apollostack/apollo-client,apollographql/apollo-client
src/utilities/testing/itAsync.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from \"react\"\nimport { Text, Message } from \"@artsy/palette\"\nimport { RouterLink } from \"v2/Artsy/Router/RouterLink\"\nimport { createFragmentContainer, graphql } from \"react-relay\"\nimport { SubscriberBanner_partne...
typescript
edit
null
null
mit
c5dc308793ae312f28746f762f3bb62196b71875
artsy/force,artsy/force,artsy/force,joeyAghion/force,joeyAghion/force,artsy/force-public,artsy/force-public,joeyAghion/force,artsy/force,joeyAghion/force
src/v2/Apps/Partner/Components/Overview/SubscriberBanner.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Injectable, Inject } from '@angular/core';\nimport { Title, DOCUMENT } from '@angular/platform-browser';\nimport { I18NextPipe } from './I18NextPipe';\n\n@Injectable()\nexport class I18NextTitle extends Title {\n constructor(...
typescript
edit
0
0
mit
38eb55580326459c53ea4e818ac34099362935fa
Romanchuk/angular-i18next,Romanchuk/angular-i18next,Romanchuk/angular-i18next,Romanchuk/angular-i18next
src/I18NextTitle.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {\n Session,\n EntityRecognizer,\n} from 'botbuilder';\n\nexport class MsgUtils {\n public static sendAsSay(session:Session, msg:string) {\n session.say(msg, msg);\n }\n\n public static onlyAlpha(msg:string) {\n\n }\n\n ...
typescript
edit
0
1
mit
24b3c7210997216da21aeb2acfcf51b323455976
yujiahaol68/alfred
src/util/MsgUtils.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { HttpClient } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { ExchangeInfo } from '../interfaces/exchange.interfaces';\n\n@Injectable()\nexport class ExchangesService {\n\n constructor(privat...
typescript
edit
0
1
bsd-3-clause
240dd12ac0c5b10816b92535d01107127d385afd
threefoldfoundation/app_backend,threefoldfoundation/app_backend,threefoldfoundation/app_backend,threefoldfoundation/app_backend
brandings/src/services/exchanges.service.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { takeLatest } from 'redux-saga/effects';\nimport { eventChannel } from 'redux-saga';\nimport { actionsIDs } from '../constants'\nimport { fetchPatients } from './fetchPatients';\nimport { createStartHandler } from 'redux-saga-su...
typescript
edit
0
1
mit
1f310c5f323b180b11031ce42a1a9db344a4950f
jaszczw/stomp-redux-subscriptions
simple-subscriptions/client/src/modules/patients/sagas/subscribePatients.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { FC, createElement as h } from 'react';\nimport { PageProps } from '@not-govuk/app-composer';\nimport { Page } from '@hods/components';\n\nimport './app.scss';\n\nexport const PageWrap: FC<PageProps> = ({ children }) => {\n con...
typescript
edit
null
null
mit
9a445d54857a33de5d8a21803f2795cc8aa7791d
eliothill/home-office-digital-patterns,eliothill/home-office-digital-patterns,eliothill/home-office-digital-patterns
apps/docs/src/common/page-wrap.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport {ToolService} from \"./tool.service\";\nimport {ToolTitleComponent} from \"./tooltitle.component\";\nimport {ToolListItemComponent} from ...
typescript
edit
0
0
mit
cd6f814fe4f9e223ed1703e825fa56cf15249143
chipster/chipster-web,chipster/chipster-web,chipster/chipster-web
src/app/views/sessions/session/tools/tools.module.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/* \ntslint:disable no-console \ntslint:disable max-classes-per-file\n*/\n\nimport React, {ComponentClass, Component} from 'react'\n\nclass DefaultError extends Component {\n public render() {\n return (\n <p className=\"error\...
typescript
edit
null
null
mit
76df423518780eac802b5e49111fac906b562d42
influxdata/influxdb,influxdb/influxdb,nooproblem/influxdb,nooproblem/influxdb,mark-rushakoff/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,nooproblem/influxdb,li-ang/influxdb,nooproblem/influxdb,li-ang/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,mark-rushakoff/influ...
ui/src/shared/decorators/errors.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport {\n FormsModule,\n ReactiveFormsModule\n} from '@angular/forms';\n\nimport { FormElementComponent } from './formelement.component';\nim...
typescript
edit
0
0
mit
e6e2784595c41299e9ac4d6937efb9ed6d881ca6
SBats/angular2-schema-form,SBats/angular2-schema-form,SBats/angular2-schema-form
src/schema-form.module.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
1
mit
015f1c7909f5f554300e933e9b2e948a86b539f0
eamodio/vscode,joaomoreno/vscode,the-ress/vscode,eamodio/vscode,Microsoft/vscode,microsoft/vscode,eamodio/vscode,mjbvz/vscode,joaomoreno/vscode,joaomoreno/vscode,the-ress/vscode,joaomoreno/vscode,mjbvz/vscode,the-ress/vscode,mjbvz/vscode,joaomoreno/vscode,hoovercj/vscode,mjbvz/vscode,Krzysztof-Cieslak/vscode,joaomoreno...
extensions/typescript-language-features/src/utils/arrays.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\";\nimport \"./index.css\";\nimport reportWebVitals from \"./reportWebVitals\";\n\nReactDOM.render(\n <React.StrictMode>\n <App />\n </R...
typescript
edit
null
null
mit
eb5c176616cbd183b4d984a660b74ef39701cfb3
collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists
web/src/index.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport enum HeroRoles {\n Assassin,\n Warrior,\n Specialist,\n Support\n}\n\nexport interface Skill {\n name: string;\n level: number;\n description: string;\n}\n\nexport interface Build {\n name: string;\n skills: Array<Skill>...
typescript
edit
0
0
mit
a3d4ae1b4ea16721902ab6d53b2d5fc06cab114b
jchakra/hots-parser
src/utils/hots-commons.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from 'react';\nimport { APPS_CONFIGURATION } from 'proton-shared/lib/constants';\n\nimport { useModals, useConfig } from '../../hooks';\nimport ChangelogModal from './ChangelogModal';\nimport { getAppVersion } from '../../h...
typescript
edit
null
null
mit
808e63d5966d8de6d4d9cdd55283d7def622f04b
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
packages/components/components/version/AppVersion.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Stream } from 'most';\n\nexport function buffer<T>(count: number): (stream: Stream<T>) => Stream<T[]>;\nexport default buffer;\n\n```\n\nApply this change: Fix the export for the buffer" }, { "role": "assistant", "c...
typescript
edit
0
1
bsd-3-clause
6602b84fc100e52d98f4eab8ee8604518d436896
craft-ai/most-utils,craft-ai/most-utils
packages/most-buffer/src/most-buffer.d.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Config } from './config';\n\n/**\n * Mock the Config class when it is used as a service.\n *\n * @export\n * @class ConfigMock\n * @implements {Config}\n */\nexport class ConfigMock implements Config {\n\n private map: Map<str...
typescript
edit
0
2
mit
4d09a2497b61e3c1f3a9e63b1180ac680e6a9194
FoalTS/foal,FoalTS/foal,FoalTS/foal,FoalTS/foal
packages/core/src/core/config-mock.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from \"react\";\n\ninterface Props {\n secondsDelay: number;\n message: string;\n isDeleting: boolean;\n doDelete: () => void;\n doUndo: () => void;\n children?: React.ReactNode;\n}\n\nclass TimedUndoableDelete\n...
typescript
edit
null
null
bsd-3-clause
d3b113cdf05decdc7b3d94b44f102fe8cfa13a80
nteract/composition,nteract/composition,nteract/nteract,nteract/composition,nteract/nteract,nteract/nteract,nteract/nteract,nteract/nteract
packages/notebook-app-component/src/decorators/undoable-delete.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// Copyright (C) 2016 Sergey Akopkokhyants\n// This project is licensed under the terms of the MIT license.\n// https://github.com/akserg/ng2-dnd\n\nimport {Injectable, ElementRef, EventEmitter} from '@angular/core';\n\nimport {DragDrop...
typescript
edit
0
3
mit
188cdfc35b198859869f06e6d09a01c57d69d919
obosha/ng2-dnd,akserg/ng2-dnd,akserg/ng2-dnd,obosha/ng2-dnd
src/dnd.service.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Inject, Injectable } from '@angular/core';\nimport { Action, ScannedActionsSubject } from '@ngrx/store';\nimport { Observable, Operator, OperatorFunction } from 'rxjs';\nimport { filter } from 'rxjs/operators';\n\n@Injectable()...
typescript
edit
0
1
mit
830c8fa8c1529d2350814eb954928e913636278e
brandonroberts/platform,brandonroberts/platform,brandonroberts/platform,brandonroberts/platform
modules/effects/src/actions.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport enum TokenMeaning {\n Text,\n EmphasisStart,\n EmphasisEnd,\n StressStart,\n StressEnd,\n InlineCode,\n InlineCodeStart,\n InlineCodeEnd,\n RevisionDeletionStart,\n RevisionDeletionEnd,\n SpoilerStart,\n SpoilerEnd,\n...
typescript
edit
0
1
mit
69c9d433d015149c1b4fb7ffc5643f4f2c3de80e
start/up,start/up
src/Parsing/Inline/Token.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as path from 'path';\n\nimport * as Joi from 'joi';\n\nimport { Registry } from '../Registry';\nimport { WorkflowType } from './WorkflowType';\nimport { BaseWorkflow, FTLWorkflowDef } from './BaseWorkflow';\n\nconst workflowSch...
typescript
edit
0
5
mit
0de5afb6f3615168e8d1fb61c35cdc8a2378991b
f5itc/swf-graph,f5itc/swf-graph,f5itc/swf-graph
src/entities/workflow/WorkflowRegistry.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Memo} from './memos'\n\nexport type WeightedSigner = {\n address: string,\n weight: number\n}\n\nexport type Signers = {\n threshold?: number,\n weights: WeightedSigner[]\n}\n\nexport type FormattedSettings = {\n passwordSp...
typescript
edit
0
0
isc
0f7af6a4e98004db82d393f3a8ba9f25f75735e3
ripple/ripple-lib,ripple/ripple-lib,ripple/ripple-lib,ripple/ripple-lib
src/common/types/objects/settings.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from \"react\";\nimport { t } from \"i18next\";\nimport { emergencyLock, emergencyUnlock } from \"../actions\";\nimport { EStopButtonProps } from \"../interfaces\";\nimport { SyncStatus } from \"farmbot/dist\";\n// Lea...
typescript
edit
null
null
mit
60886fc1f8fc4c34837a5da0dbc32093cfe32153
RickCarlino/farmbot-web-app,FarmBot/Farmbot-Web-API,gabrielburnworth/Farmbot-Web-App,FarmBot/Farmbot-Web-API,RickCarlino/farmbot-web-app,FarmBot/Farmbot-Web-API,MrChristofferson/Farmbot-Web-API,FarmBot/Farmbot-Web-API,MrChristofferson/Farmbot-Web-API,RickCarlino/farmbot-web-app,RickCarlino/farmbot-web-app,gabrielburnwo...
src/devices/components/e_stop_btn.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { translate } from '@waldur/i18n';\nimport { marketplaceIsVisible } from '@waldur/marketplace/utils';\nimport { validateState } from '@waldur/resource/actions/base';\nimport { ResourceAction } from '@waldur/resource/actions/types...
typescript
edit
0
2
mit
1cb93b969f35cadd6f7e746911e8ed2c0a2cba4c
opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport
src/marketplace/resources/terminate/TerminateAction.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n///<reference path=\"./Interfaces/IStoreCreator.ts\" />\n\nimport {\n compose,\n createStore,\n applyMiddleware,\n combineReducers\n} from 'redux';\nimport {\n routerReducer,\n routerMiddleware\n} from 'react-router-redux';\nimpor...
typescript
edit
0
1
mit
e6616755214313191235b397f7d8e63c8e645e17
harksys/HawkEye,harksys/HawkEye,harksys/HawkEye
src/Core/StoreCreator.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { EnvConfig } from './env-config.interface';\n\nconst BaseConfig: EnvConfig = {\n // Sample API url\n API: 'https://demo.com',\n RELEASEURL: 'https://github.com/nie-ine/raeber-website/releases/tag/0.18.0',\n RELEASEVERSION: '...
typescript
edit
0
0
mit
5bcfd0a3c1ef8d1e379dcf3ab363bd0ed76aa6bb
nie-ine/raeber-website,nie-ine/raeber-website,nie-ine/raeber-website,nie-ine/raeber-website
tools/env/base.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// @flow\n\nimport React from 'react';\nimport Select, { components } from 'react-select';\nimport { colourOptions } from '../data';\n\nconst IndicatorsContainer = props => {\n return (\n <div style={{ background: colourOptions[2].c...
typescript
edit
null
null
mit
63d6b865d2822ea2195fe85ddc818d0d96475d48
JedWatson/react-select,JedWatson/react-select
docs/examples/CustomIndicatorsContainer.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component } from 'react';\nimport { AppStore } from '../services/';\nimport { loadAndBundleSpec } from '../utils';\n\ninterface SpecProps {\n specUrl?: string;\n spec?: object;\n store?: AppStore;\n\n children?: any;\n}\n\n...
typescript
edit
0
3
mit
092d488a7445b691ab61d337650a9f6e0ad09a04
Rebilly/ReDoc,Rebilly/ReDoc,Rebilly/ReDoc,Rebilly/ReDoc
src/components/StoreProvider.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { OutlineSyntaxNode } from './OutlineSyntaxNode'\n\n\nexport class OrderedListNode implements OutlineSyntaxNode {\n constructor(public listItems: OrderedListNode.Item[]) { }\n\n start(): number {\n return this.listItems[0].o...
typescript
edit
0
3
mit
47671367b1c86877e181be9ce30a9fc6d235ab46
start/up,start/up
src/SyntaxNodes/OrderedListNode.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';\nimport { CustomerAuthService } from 'app/services/customer-auth.service';\nimport { Contact} from 'app/components/contact/contact.component'\...
typescript
edit
0
1
mit
e321e28a28c24b95803b1f991244b8437be0ff19
petrstehlik/pyngShop,petrstehlik/pyngShop,petrstehlik/pyngShop,petrstehlik/pyngShop
www/src/app/components/register/register.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * Export globally available React components from this file.\n *\n * Keep in mind that components exported from here (and their dependencies)\n * increase the size of our `common.js` bundle, so when the stitched component\n * is n...
typescript
edit
0
0
mit
a7e5b07203a151741044a12807a12455f45ab77c
joeyAghion/force,damassi/force,artsy/force-public,eessex/force,joeyAghion/force,yuki24/force,erikdstock/force,joeyAghion/force,izakp/force,erikdstock/force,eessex/force,oxaudo/force,anandaroop/force,damassi/force,artsy/force-public,artsy/force,oxaudo/force,oxaudo/force,oxaudo/force,yuki24/force,erikdstock/force,joeyAgh...
src/desktop/components/react/stitch_components/index.tsx
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Constants } from 'expo-constants';\n\nimport Logs from '../logs/Logs';\nimport RemoteLogging from '../logs/RemoteLogging';\n\nif (Constants.manifest && Constants.manifest.logUrl) {\n // Enable logging to the Expo dev tools onl...
typescript
edit
0
4
bsd-3-clause
da606dd8b8106dea1beca9afc12e528ef29fb2fc
exponentjs/exponent,exponent/exponent,exponentjs/exponent,exponentjs/exponent,exponent/exponent,exponent/exponent,exponentjs/exponent,exponent/exponent,exponent/exponent,exponent/exponent,exponentjs/exponent,exponentjs/exponent,exponentjs/exponent,exponent/exponent,exponentjs/exponent,exponent/exponent,exponentjs/expon...
packages/expo/src/environment/logging.ts
rejected_duplicate
Near-duplicate of sample 114647
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { foreignKeyField } from '../../utils/schemaUtils'\n\nconst schema: SchemaType<DbMessage> = {\n userId: {\n ...foreignKeyField({\n idFieldName: \"userId\",\n resolverName: \"user\",\n collectionName: \"Users\",...
typescript
edit
0
1
mit
0dadb1c816ffc2bc51910c267500c8a34164752d
Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2
packages/lesswrong/lib/collections/messages/schema.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n///<reference path=\"../models/content_block.ts\"/>\n///<reference path=\"ajax_content_blocks_hash_serializer.ts\"/>\n\nclass LocalStorageService {\n static EXPIRATIONTIME:number = 1000 * 60 * 60; // 1h in ms\n private expiryDate:{[ke...
typescript
edit
0
4
mit
85e01a4437e7d64518b7137520368b21262734cc
renuo/renuo-cms-client,renuo/renuo-cms-client,renuo/renuo-cms-client,renuo/renuo-cms-client
src/app/data/services/local_storage_service.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {\n\tDirective,\n\tContentChild,\n\tEventEmitter,\n\tOutput,\n\tInput,\n\tAfterViewInit\n} from '@angular/core';\nimport { ViewChild } from '@angular/core';\nimport { MatMenuTrigger } from '@angular/material';\n\n@Directive({\n\t...
typescript
edit
0
2
mit
917144d8f520b4940a299cb2f076c0d18210cf50
azkurban/ng2,azkurban/ng2,qgrid/ng2,azkurban/ng2,qgrid/ng2,qgrid/ng2
src/lib/plugins/menu/menu-trigger.directive.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { foreignKeyField } from '../../utils/schemaUtils'\n\nconst schema: SchemaType<DbMessage> = {\n userId: {\n ...foreignKeyField({\n idFieldName: \"userId\",\n resolverName: \"user\",\n collectionName: \"Users\",...
typescript
edit
0
1
mit
666760c5f2a2a0cc958579b641b699b32943606a
Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2
packages/lesswrong/lib/collections/messages/schema.ts
rejected_duplicate
Near-duplicate of sample 115571
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Injectable } from '@angular/core';\nimport { ActionService } from './Action.service';\nimport { Actions, Action } from '../../model';\n\nimport { AbstractStore } from '../entity/entity.store';\nimport { EventsService } from '.....
typescript
edit
0
1
apache-2.0
c862095b025576340b236f7790ebf9722c6d5640
kahboom/ipaas-client,kahboom/ipaas-client,kahboom/ipaas-client,kahboom/ipaas-client
src/app/store/action/action.store.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Node } from \"../ContextMenu\";\nimport ContextMenuTarget from \"../ContextMenuTarget\";\nimport * as Actions from \"../../actionCreators\";\nimport { useActionCreator } from \"../../hooks\";\n\nconst MiscOptionsContextMenu = (...
typescript
edit
null
null
mit
c9fe24daec32d23ac675f57e3c37854e5ecffbde
captbaritone/winamp2-js,captbaritone/winamp2-js,captbaritone/winamp2-js
packages/webamp/js/components/PlaylistWindow/MiscOptionsContextMenu.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "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 React from 'reac...
typescript
edit
null
null
mit
38c8c9b2d20dd0d875d2d26648f71c7b9301ccff
facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper
desktop/app/src/chrome/plugin-manager/PluginManager.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { CarouselItem } from \"./CarouselItem\";\nimport { Component, DOM, createElement } from \"react\";\n\nimport \"../ui/Carousel.css\";\nimport { CarouselControl } from \"./CarouselControl\";\n\nexport interface Image {\n url: s...
typescript
edit
0
1
apache-2.0
38fe6b28b8a4b54c1f2f81fa72bccc65ddba5618
mendixlabs/carousel,mendixlabs/carousel,FlockOfBirds/carousel,FlockOfBirds/carousel
src/com/mendix/widget/carousel/components/Carousel.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: chore(*): Revert - \"Remove not needed exports\"\n\nThis reverts commit 200c9dc5bc933910ed72761ec820f06478465e3c." }, { "role": "assistant", "content": "export { IgxGridActionsBaseDirective } from './grid-actions/grid-actions...
typescript
new_file
0
0
mit
1e7b867564fd1a8d07b9e78739f8bbb6a4bb3117
Infragistics/zero-blocks,Infragistics/zero-blocks,Infragistics/zero-blocks
projects/igniteui-angular/src/lib/action-strip/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { RootState } from './types'\n\nexport const deriveStatusIconColor = ({\n syncState,\n backupState,\n}: RootState): 'green' | 'red' | 'yellow' => {\n if (syncState === 'error' || backupState === 'error') {\n retur...
typescript
edit
0
7
mit
0d5355c940377a84ffc780b5b4a86e8043eb650a
WorldBrain/WebMemex,WorldBrain/WebMemex
src/dashboard-refactor/header/sync-status-menu/util.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/* eslint-disable @next/next/no-img-element */\nimport * as React from 'react';\nimport { Container } from '~/components/layout';\n\nexport interface PostHeaderImageProps {\n src: string;\n alt?: string;\n}\n\nexport const PostHeaderI...
typescript
edit
null
null
mit
98bd56c028d7ce4a4ee1e5ecee2ab539066f7491
resir014/resir014.xyz,resir014/resir014.xyz,resir014/resir014.xyz
modules/posts/post-header-image.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';\r\n\r\nimport TurkopticonSettings from '../TurkopticonSettings/TurkopticonSettings';\r\nimport AudioSettings from '../AudioSettings/AudioSettings';\r\nimport ToggleNoTO from '../TurkopticonSettings/Toggle...
typescript
edit
null
null
mit
b02ed6056b0158766949c892b6a7917a5dcc0860
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
src/components/TabNavigation/SettingsTab.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * @author Daniel de Oliveira\n *\n *\n */\nexport interface ValuelistDefinition {\n\n description: { [language: string]: string }\n extends?: string; // TODO review\n createdBy: string;\n creationDate: string;\n con...
typescript
edit
0
1
apache-2.0
05230d275430dd95393db6f035120fc3e2ad6b6e
dainst/idai-components-2,dainst/idai-components-2,dainst/idai-components-2
src/configuration/model/valuelist-definition.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport Link from 'next/link';\nimport { FunctionComponent } from 'react';\nimport TagsList from './TagsList';\nimport { format } from 'date-fns';\nimport BlogPost from \"../models/BlogPost\";\nimport ReactMarkdown from 'react-markdown';...
typescript
edit
null
null
mit
8ddfe04f08d25580e14001cd695b8b4710f56e99
JosephDuffy/josephduffy.co.uk,JosephDuffy/josephduffy.co.uk,JosephDuffy/josephduffy.co.uk
components/BlogPostPreview.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\n// Modules\nimport * as fs from 'fs';\nimport * as path from 'path';\nimport * as readline from 'readline';\nimport * as chalk from 'chalk';\n\nlet rl = readline.createInterface({\n input: process.stdin,\n outp...
typescript
edit
0
2
mit
5a97b88e17aa4b896c993c295ef643786a6a7733
Kurtz1993/ionic-minify,Kurtz1993/ionic-minify
scripts/uninstall.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * @license\n * Copyright 2020 Balena Ltd.\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...
typescript
edit
0
0
apache-2.0
511bb05cb987d605f377d97fa4424facb0e14841
resin-io/resin-cli,resin-io/resin-cli,resin-io/resin-cli,resin-io/resin-cli
tests/config-tests.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Form, Formik } from \"formik\";\nimport React = require(\"react\");\nimport { SavedEncounter } from \"../../common/SavedEncounter\";\nimport { Button } from \"../Components/Button\";\nimport { TextField } from \"./components/Te...
typescript
edit
null
null
mit
2c271e7302ad13f7dc127717e49a15a982d2e678
cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative
client/StatBlockEditor/SavedEncounterEditor.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Tag } from './tag';\nimport { Sport } from './sport';\nimport { Address } from './address';\nimport { Image } from './image';\n\nexport class Workout {\n public id: number;\n public coach: number;\n public title: strin...
typescript
edit
0
0
mit
54d76b8531e70c16f54791c37930a610e6540a7d
XavierGuichet/bemoove-front,XavierGuichet/bemoove-front,XavierGuichet/bemoove-front
src/app/models/workout.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport S from '@sanity/desk-tool/structure-builder'\nimport CogIcon from 'part:@sanity/base/cog-icon'\nimport {JSONPreviewDocumentView} from '../documentViews/jsonPreview'\n\nconst STRUCTURE_CUSTOM_TYPES = ['settings']\nconst STRUCTURE_...
typescript
edit
0
3
mit
cee2855c0c031d51a45017f465f75eafa21cb548
sanity-io/sanity,sanity-io/sanity,sanity-io/sanity,sanity-io/sanity
packages/design-studio/structure/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { escapeForRegex } from './PatternHelpers'\n\n\n// Returns a new string consisting of `count` copies of `text`\nexport function repeat(text: string, count: number): string {\n return new Array(count + 1).join(text)\n}\n\n// Retu...
typescript
edit
0
1
mit
02281d435b03156eacfaa7e6ec8413da4b4e888f
start/up,start/up
src/StringHelpers.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { call, put } from 'redux-saga/effects';\r\nimport {\r\n FetchStatusDetailFailure,\r\n FetchStatusDetailRequest,\r\n FetchStatusDetailSuccess,\r\n statusDetailRequest,\r\n statusDetailFailure,\r\n statusDetailSuccess\r\n} f...
typescript
edit
0
4
mit
760ff7d9a18b543a31a40b7ceb3fa10bd8c26506
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
src/sagas/statusDetail.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Enumerable, ResetableIterator } from '../src/Enumerable';\n\ndescribe('Enumerable', () => {\n describe('DefaultIfEmpty', () => {\n it('Should return itself if sequence has items', () => {\n const source = E...
typescript
edit
0
1
mit
07c5ad736c890b480ba7d4372aba0de35c20e041
rjrudman/TSLinq
spec/Enumerable.DefaultIfEmpty.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/// <reference path=\"../../../../../../typings/tsd.d.ts\" />\n\nvar React = require('react');\nvar ReactDOM = require('react-dom');\nvar NotificationSystem = require('react-notification-system');\n\n\nvar NGReactComponent = React.creat...
typescript
edit
null
null
mit
429e524b52cf6d015d721b481b6a87d608c75a19
cmelion/generator-ng2-webpack,cmelion/generator-ng2-webpack,cmelion/generator-ng2-webpack,cmelion/generator-ng2-webpack
generators/target/templates/app/components/about/components/ng-react/index.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { ResultDocument } from '../api/result';\n\n\nconst MAX_LABEL_LENGTH = 25;\n\n\nexport const getProjectLabel = (projectDocument: ResultDocument): string => {\n\n return projectDocument.resource.shortDescription\n && pro...
typescript
edit
0
3
apache-2.0
fbf61714b3e073037084e8fac2968512d167e2b7
dainst/idai-field-web,dainst/idai-field-web,dainst/idai-field-web
ui/src/idai_field/projects.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { AnnotationsSorter } from 'src/sidebar/annotations-sidebar/sorting'\n\ntype Note = any\ntype Page = any\ntype NoteType = 'search' | 'user' | 'followed'\n\ninterface NewNoteFormState {\n inputValue: string\n // TODO: work o...
typescript
edit
0
0
mit
229517d7d4300fd4dd1ba87616f253249256a240
WorldBrain/WebMemex,WorldBrain/WebMemex
src/dashboard-refactor/search-results/types.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { spawn } from 'child_process'\nimport { IFoundShell } from './found-shell'\n\nexport enum Shell {\n Gnome = 'gnome-terminal',\n}\n\nexport const Default = Shell.Gnome\n\nexport function parse(label: string): Shell {\n return D...
typescript
edit
0
3
mit
95f6cb516cfd8945298263eeb2050a0b0835dd6d
desktop/desktop,kactus-io/kactus,artivilla/desktop,desktop/desktop,j-f1/forked-desktop,say25/desktop,j-f1/forked-desktop,say25/desktop,kactus-io/kactus,artivilla/desktop,j-f1/forked-desktop,shiftkey/desktop,shiftkey/desktop,kactus-io/kactus,artivilla/desktop,shiftkey/desktop,artivilla/desktop,say25/desktop,desktop/desk...
app/src/lib/shells/linux.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from 'react';\nimport { Icon, useFolders } from 'react-components';\nimport { MailSettings } from 'proton-shared/lib/interfaces';\n\nimport { Message } from '../../models/message';\nimport { getCurrentFolders } from '../../...
typescript
edit
null
null
mit
6ea17dec9b50d79cbb378fcd0e938c837cc7e0e5
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
applications/mail/src/app/components/list/ItemLocation.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React, {Component} from 'react'\nimport {Cell} from 'src/types/dashboard'\nimport {connect} from 'react-redux'\nimport {bindActionCreators} from 'redux'\n\nimport {addDashboardCellAsync} from 'src/dashboards/actions'\nimport {GRA...
typescript
edit
null
null
mit
54ca5939bcb293bad8de2db2b077d7af065c8568
li-ang/influxdb,influxdata/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,influxdb/influxdb,li-ang/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,mark-rushakoff/influxdb,nooproblem/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,nooproblem/influxdb,...
ui/src/dashboards/components/DashboardEmpty.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * @license\n * Copyright (c) 2016 The Polymer Project Authors. All rights reserved.\n * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt\n * The complete set of authors may be fo...
typescript
edit
0
1
bsd-3-clause
808572f7e85eff89137a5f98c0bb7315ae118517
Polymer/tools,Polymer/tools,Polymer/tools,Polymer/tools
src/ast/import-descriptor.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { SimpleChanges, SimpleChange } from '@angular/core';\n\n/**\n* @hidden\n*/\nexport function WatchChanges(): PropertyDecorator {\n return (target: any, key: string, propDesc?: PropertyDescriptor) => {\n const privateKey...
typescript
edit
0
5
mit
25274cd6005ad8d43b465949b024af17d5cbf2f0
Infragistics/zero-blocks,Infragistics/zero-blocks,Infragistics/zero-blocks
projects/igniteui-angular/src/lib/grids/watch-changes.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component, Output, EventEmitter, } from '@angular/core';\nimport { Router, ActivatedRoute, Params } from '@angular/router';\nimport { FormGroup, FormBuilder } from '@angular/forms';\n\nimport { TubularDataService } from '@tubu...
typescript
edit
0
2
mit
66e02e3ea68ed2723547f91e821d709bc6a6ce93
unosquare/tubular2,unosquare/tubular2,unosquare/tubular2,unosquare/tubular2
src/Unosquare.Tubular2.Web/wwwroot/app/form.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport {Component} from 'react';\nimport {observer} from 'mobx-react';\n\nimport Contact from '../../interfaces/Contact';\n\nimport {ProfilePicture} from './ProfilePicture';\n\n@observer\nexport class Co...
typescript
edit
null
null
mit
20840d43ac29982bb16408e0c6e35183f693d8cd
contacts-mvc/mobx-react-typescript,contacts-mvc/mobx-react-typescript,contacts-mvc/mobx-react-typescript
src/components/ContactDetails/index.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for ...
typescript
edit
0
0
mit
4636be2b71c87bfb0bfe3c94278b447a5efcc1f1
microsoft/vscode,the-ress/vscode,microsoft/vscode,Microsoft/vscode,the-ress/vscode,microsoft/vscode,hoovercj/vscode,Krzysztof-Cieslak/vscode,Krzysztof-Cieslak/vscode,hoovercj/vscode,microsoft/vscode,Microsoft/vscode,eamodio/vscode,Microsoft/vscode,hoovercj/vscode,Microsoft/vscode,Krzysztof-Cieslak/vscode,microsoft/vsco...
extensions/typescript-language-features/src/test/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { CommonModule } from \"@angular/common\";\nimport { NgModule, ModuleWithProviders } from \"@angular/core\";\nimport { FormValidationDirective } from \"./Directives/form-validation.directive\";\nimport { MessagesComponent } from ...
typescript
edit
0
2
mit
5d4e50ebea377986e73d526bac3d10dce8470402
third774/ng-bootstrap-form-validation,third774/ng-bootstrap-form-validation,third774/ng-bootstrap-form-validation
projects/ng-bootstrap-form-validation/src/lib/ng-bootstrap-form-validation.module.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport decompress from 'decompress';\nimport fetch from 'node-fetch';\nimport { posix } from 'path';\nimport { URL } from 'url';\n\nexport interface InstallGessoOptions {\n repository: string;\n branch: string;\n targetPath: string;\...
typescript
edit
0
4
mit
1fb4a65027ca01b4a193090144273d7b5022de68
forumone/generator-web-starter,forumone/generator-web-starter,forumone/generator-web-starter,forumone/generator-web-starter,forumone/generator-web-starter
src/app/plugins/platform/Docker/installGesso.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport shellEnv from \"shell-env\";\nimport { from } from \"rxjs\";\nimport { first, tap, publishReplay } from \"rxjs/operators\";\n\n// Bring in the current user's environment variables from running a shell session so that\n// launchct...
typescript
edit
0
4
bsd-3-clause
fc62c22205b4b9e6a4c52a33e60c1377466ce90d
nteract/nteract,nteract/composition,nteract/composition,nteract/nteract,nteract/nteract,nteract/composition,nteract/nteract,nteract/nteract
applications/desktop/src/main/prepare-env.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/// <reference path=\"jquery.postMessage.d.ts\" />\n/// <reference path=\"../jquery/jquery.d.ts\" />\n\nfunction test_postMessage() {\n // post plain message\n $.postMessage('test message', 'http://dummy.url/', parent);\n\n //...
typescript
edit
0
1
mit
276f88c4d54729e2627c33964dc5c81475e3052f
panuhorsmalahti/DefinitelyTyped,masonkmeyer/DefinitelyTyped,takfjt/DefinitelyTyped,rerezz/DefinitelyTyped,the41/DefinitelyTyped,opichals/DefinitelyTyped,GiedriusGrabauskas/DefinitelyTyped,pocke/DefinitelyTyped,scsouthw/DefinitelyTyped,rcchen/DefinitelyTyped,psnider/DefinitelyTyped,raijinsetsu/DefinitelyTyped,nakakura/D...
jquery.postMessage/jquery.postMessage-test.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from 'react'\nimport { Octicon } from '../octicons'\nimport * as OcticonSymbol from '../octicons/octicons.generated'\nimport { LinkButton } from '../lib/link-button'\n\nexport class HiddenBidiCharsWarning extends React.Comp...
typescript
edit
null
null
mit
55120b994ec429b991181e27278e1f435ea78e1d
j-f1/forked-desktop,say25/desktop,desktop/desktop,say25/desktop,j-f1/forked-desktop,artivilla/desktop,desktop/desktop,j-f1/forked-desktop,say25/desktop,shiftkey/desktop,desktop/desktop,shiftkey/desktop,artivilla/desktop,say25/desktop,artivilla/desktop,shiftkey/desktop,shiftkey/desktop,j-f1/forked-desktop,artivilla/desk...
app/src/ui/diff/hidden-bidi-chars-warning.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { ApproxStructure, Log, Pipeline } from '@ephox/agar';\nimport { UnitTest } from '@ephox/bedrock-client';\nimport { TinyApis, TinyLoader, TinyUi } from '@ephox/mcagar';\n\nimport HrPlugin from 'tinymce/plugins/hr/Plugin';\nimport...
typescript
edit
0
1
mit
8cdacb77840451089cd9f436ee962ab0e634402a
tinymce/tinymce,tinymce/tinymce,tinymce/tinymce,TeamupCom/tinymce,TeamupCom/tinymce
modules/tinymce/src/plugins/hr/test/ts/browser/HrSanityTest.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';\nimport { MarkerAction } from '../marker-action';\nimport { } from 'googlemaps';\nimport { SocialUser } from \"angularx-social-login\";\nimport { UserServic...
typescript
edit
0
1
apache-2.0
0bcad4e6537924116f203849846f18a7810169d1
googleinterns/step263-2020,googleinterns/step263-2020,googleinterns/step263-2020,googleinterns/step263-2020
capstone-project/src/main/angular-webapp/src/app/info-window/info-window.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport fs from \"fs\";\nimport path from \"path\";\nimport gql from \"graphql-tag\";\n\nimport { TruffleDB } from \"truffle-db\";\n\n\nconst fixturesDirectory = path.join(__dirname, \"..\", \"artifacts\", \"test\");\n\n// minimal config...
typescript
edit
0
1
mit
9fedacdef43854a45733842c1c3d9511835f2bf3
ConsenSys/truffle
packages/truffle-db/src/loaders/test/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component, ViewChild } from \"@angular/core\";\n\nimport * as _ from \"lodash\";\n\nimport { InitiativeListComponent } from \"./initiative-list/initiative-list.component\";\nimport { CreatureInitiative } from \"./models/creatur...
typescript
edit
0
3
mit
77bb25ae1f43becb7573d36f3bef0ef006f3b563
trwolfe13/dnd-5e-tools,trwolfe13/dnd-5e-tools,trwolfe13/dnd-5e-npc-gen,trwolfe13/dnd-5e-npc-gen,trwolfe13/dnd-5e-tools,trwolfe13/dnd-5e-npc-gen
src/app/initiative-tracker/initiative-tracker.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react'\nimport * as moment from 'moment'\n\nimport { Commit } from '../../lib/local-git-operations'\nimport { EmojiText } from '../lib/emoji-text'\n\ninterface IUndoCommitProps {\n /** The function to call when ...
typescript
edit
null
null
mit
7cb1b7d956765a654018afa8b6a3ba4d5214ba5d
kactus-io/kactus,kactus-io/kactus,say25/desktop,artivilla/desktop,gengjiawen/desktop,hjobrien/desktop,shiftkey/desktop,hjobrien/desktop,artivilla/desktop,gengjiawen/desktop,j-f1/forked-desktop,gengjiawen/desktop,BugTesterTest/desktops,say25/desktop,shiftkey/desktop,desktop/desktop,artivilla/desktop,artivilla/desktop,Bu...
app/src/ui/changes/undo-commit.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 styled from 'styled-components';\n\nimport { EdamamRecipe } from '../types/edamam';\n\nimport LazyLoadImage from './LazyLoadImage';\n\nconst Block = styled.article`\n border: 1px solid #dcdcdc;\n bor...
typescript
edit
null
null
mit
8041a9d4a2c6e9bd506623006b57d8d9883a056d
mbchoa/recipeek,mbchoa/recipeek,mbchoa/recipeek
src/components/SearchResultsItem.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// Type definitions for Handlebars 1.0\r\n// Project: http://handlebarsjs.com/\r\n// Definitions by: Boris Yankov <https://github.com/borisyankov/>\r\n// Definitions: https://github.com/borisyankov/DefinitelyTyped\r\n\r\n\r\ninterface H...
typescript
edit
0
0
mit
555d0f5c5f31f7f05621f818cd71400d7946225d
YousefED/DefinitelyTyped,Stephanvs/DefinitelyTyped,Chris380/DefinitelyTyped,bkristensen/DefinitelyTyped,zoetrope/DefinitelyTyped,onecentlin/DefinitelyTyped,robl499/DefinitelyTyped,hellopao/DefinitelyTyped,seikichi/DefinitelyTyped,blittle/DefinitelyTyped,QuatroCode/DefinitelyTyped,kanreisa/DefinitelyTyped,forumone/Defin...
handlebars/handlebars.d.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { convertCountryIntoBookStoreUrl } from \"domain-layer/book\";\nimport * as React from \"react\";\nimport { connect } from \"react-redux\";\n\nimport { IBook } from \"../lib/books\";\nimport { actionCreators } from \"../redux/boo...
typescript
edit
null
null
mit
d0cc8dff0d4f6361bde4dc93708e452802e80ffc
raviqqe/code2d,raviqqe/code2d,raviqqe/code2d,raviqqe/code2d
app/src/component/BooksMenu.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 { Router } from '@angular/router';\nimport { Observable, Subject, BehaviorSubject } from 'rxjs/Rx';\nimport { FirebaseAuth, FirebaseAuthState } from 'angularfire2';\n\n@Injectable()\ne...
typescript
edit
0
2
mit
49b17dc8e4553ed3d541f10a01a4c812bacaa2cd
michaelgira23/Pear-Tutoring,michaelgira23/Pear-Tutoring,michaelgira23/Pear-Tutoring
src/app/shared/security/auth.service.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport enum NgxPermissionsPredefinedStrategies {\n REMOVE = 'remove',\n SHOW = 'show'\n}\n```\n\nApply this change: Add eny for fixing build" }, { "role": "assistant", "content": "export enum NgxPermissionsPredefinedSt...
typescript
edit
0
0
mit
f7c77c678ec0e2018fd000c1305125fe2a1dd4d6
AlexKhymenko/ngx-permissions,AlexKhymenko/ngx-permissions,AlexKhymenko/ngx-permissions
src/enums/predefined-strategies.enum.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { RouterModule, Routes } from '@angular/router';\n\nimport { SharedModule } from '../shared/shared.module';\n\nimport { AlbumComponent } ...
typescript
edit
0
0
apache-2.0
ce6b818683bdebbd0e0ea1c2708612ecd8f03594
jbrowneuk/jblog,jbrowneuk/jblog,jbrowneuk/jblog,jbrowneuk/jblog
src/app/gallery/gallery.module.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Injectable} from \"@angular/core\";\n\n@Injectable()\nexport class RatingService{\n private p1NewRating: number;\n private p2NewRating: number;\n private p1RatingChange: number;\n private p2RatingChange: number;\n\n ca...
typescript
edit
0
3
mit
8022362d6e485504c562f068491ec66e2ead0441
casperchia/foosmate,casperchia/foosmate,casperchia/foosmate
src/services/rating.service.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Component, Input, OnInit} from '@angular/core'\nimport {CommentService} from '../comment.service'\nimport {Comment} from '../../models/comment'\nimport {AuthenticationService} from '../authentication.service'\n\n@Component({\n ...
typescript
edit
0
1
mit
ef69a806aa4150699169e141370231a524c223cd
oleeskild/WebNovel,oleeskild/WebNovel,oleeskild/WebNovel
src/app/chapter-discussion/chapter-discussion.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/*\n * Alphabet storage\n */\n\nexport type AlphabetsData = {\n [name: string]: AlphabetData\n}\n\nexport type AlphabetData = {\n priority: number\n action: string\n letters: LetterData[]\n}\n\nexport type LetterData = {\n value: s...
typescript
edit
0
0
mit
a199b983beafc9e42fe83a9e873f8b4024f69be0
rossjrw/gallifreyo,rossjrw/gallifreyo,rossjrw/gallifreyo
src/types/alphabets.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport Vue from \"vue\";\nimport { Component, Prop } from \"vue-property-decorator\";\nimport HubConnectionManager from \"../HubConnectionManager\";\n\n@Component\nexport default class HubConnectionStatus extends Vue {\n\n construct...
typescript
edit
0
7
bsd-3-clause
107e6b25ae9dfdd17a9c39a9b34c36a5318ae001
rnwood/smtp4dev,rnwood/smtp4dev,rnwood/smtp4dev,rnwood/smtp4dev
Rnwood.Smtp4dev/ClientApp/components/hubconnectionstatus.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n* Test suite created by Maxime LUCE <https://github.com/SomaticIT>\n*\n* Created by using code samples from https://github.com/npm/npm#using-npm-programmatically.\n*/\n\nimport npm = require(\"npm\");\n\nnpm.load({}, function (er) ...
typescript
edit
0
2
mit
b9aef3a9ac9cf0ee9f5f4d18cefbe65725e22af9
georgemarshall/DefinitelyTyped,georgemarshall/DefinitelyTyped,georgemarshall/DefinitelyTyped,dsebastien/DefinitelyTyped,dsebastien/DefinitelyTyped,markogresak/DefinitelyTyped,borisyankov/DefinitelyTyped,mcliment/DefinitelyTyped,borisyankov/DefinitelyTyped,georgemarshall/DefinitelyTyped
types/npm/npm-tests.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport Typography from \"@material-ui/core/Typography\"\nimport PanelWrapper from \"components/panels/PanelWrapper\"\nimport Layout from \"components/layout/Layout\"\nimport GoaPanel from \"./Panels/GoaPanel\"\nimport { GeneQuery } from...
typescript
edit
null
null
bsd-2-clause
4b63936fbd99a7c91d686ecada2b42352dd31f20
dictyBase/genomepage,dictyBase/genomepage,dictyBase/genomepage
components/features/Summary/SummaryContainer.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport parseFile from \"../parseFile\";\nimport ParsingError from \"../ParsingError\";\n\nconst incorrectTomlFilePath =\n \"./app/common/configParser/__tests__/incorrect.toml\";\n\nconst tomlObj = {\n tmol: \"is\",\n pretty: {\n c...
typescript
edit
0
3
mit
3a77fff3af2b407ff12db58afa97072d101ae50d
ocboogie/action-hub,ocboogie/action-hub,ocboogie/action-hub
app/common/config/__tests__/parseFile.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Filter} from '../models/filter';\n\nexport class FilterService {\n order = {\n count: { name: '_count', desc: true },\n min: { name: 'min_duration', desc: true },\n max: { name: 'max_duration', desc: true...
typescript
edit
0
2
mit
cf54f03e1c3e4f286c5582e2e9ce79eefc475b30
ditrace/web,ditrace/web,ditrace/web
static/services/filter.ts
accepted
null
true