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 * as React from \"react\";\nimport { ChangeEvent } from \"react\";\nimport { ColorResult, SketchPicker } from \"react-color\";\nimport { PlayerViewCustomStyles } from \"../../../common/PlayerViewSettings\";\nimport { StylesChoose...
typescript
edit
null
null
mit
2b74720866923af5a406c24d99cbd1955a8cfadd
cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative
client/Settings/components/CustomCSSEditor.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { fetch } from \"../../api/fetch\"\n\nexport const graphqlAPI = (url: string, query: string) =>\n fetch(`${url}/api/graphql`, {\n method: \"POST\",\n body: JSON.stringify({ query }),\n headers: { \"Content-Type\": \"app...
typescript
edit
0
2
mit
76f989f66542cf75cf69c8d8271bc86676e174b2
danger/peril,danger/peril,danger/peril,danger/peril,danger/peril
source/api/graphql/api.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport hasDom from './lib/has-dom';\n\ndeclare const chrome: unknown;\ndeclare const opera: unknown;\ndeclare const MSInputMethodContext: unknown;\ndeclare const documentMode: unknown;\n\nexport { default as hasDOM } from './lib/has-dom...
typescript
edit
0
0
mit
42d018a93e36e0aa41806d3276591c0fe4c14a16
sly7-7/ember.js,emberjs/ember.js,sly7-7/ember.js,tildeio/ember.js,sly7-7/ember.js,emberjs/ember.js,emberjs/ember.js,tildeio/ember.js,tildeio/ember.js
packages/@ember/-internals/browser-environment/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Injectable} from 'angular2/core';\nimport {Observable} from 'rxjs/Rx';\n\nimport {CardService} from '../card/card.service';\nimport {Land} from './land';\n\n@Injectable()\n\nexport class LandService {\n constructor(private card...
typescript
edit
0
1
mit
e66634334a437276bcf97e2a188b6c1ec6c6c2e8
christianhg/magicalc,christianhg/magicalc,christianhg/magicalc
app/land/land.service.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// Returns the last item from `items`.\nexport function last<T>(items: T[]): T {\n return items[items.length - 1]\n}\n\n// Returns a single flattened array containing every item from every array in `collections`.\n// The items' order i...
typescript
edit
0
2
mit
90024bedb75ce751a488e26b3e9af418f1d991ae
start/up,start/up
src/CollectionHelpers.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { createMainChannelFromSockets } from \"enchannel-zmq-backend/src\";\n\nconst EventEmitter = require(\"events\");\n\n// Mock a jmp socket\nclass HokeySocket extends EventEmitter {\n constructor() {\n super();\n this.send =...
typescript
edit
0
1
bsd-3-clause
35631899c33d51fac1081830cedf09614be044bf
nteract/nteract,nteract/nteract,nteract/nteract,nteract/nteract,nteract/nteract,nteract/composition,nteract/composition,nteract/composition
applications/desktop/__mocks__/enchannel-zmq-backend.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Parser, ParsingContext} from \"../../../chrono\";\nimport {\n parseTimeUnits,\n TIME_UNITS_PATTERN\n} from \"../constants\";\nimport {ParsingComponents} from \"../../../results\";\nimport {AbstractParserWithWordBoundaryChe...
typescript
edit
0
2
mit
9f2de4e8f534574c8f288ae082f0d0d4d8ed0acb
wanasit/chrono,wanasit/chrono
src/locales/en/parsers/ENTimeUnitAgoFormatParser.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Injectable } from '@angular/core';\nimport { Http } from '@angular/http';\n\nimport { environment } from '../../../environments/environment';\n\n@Injectable()\nexport class AccountService {\n private url = `${environment.backe...
typescript
edit
0
1
mit
fcc0118d9e80073d8d453007a3aab00a8c4cf0ef
fvilers/angular2-training,fvilers/angular2-training,fvilers/angular2-training
client/app/accounts/services/account.service.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nclass ImmutableMapType {\n cons: any;\n constructor () {\n this.cons = Object; \n }\n add (obj, data: Array<any>) {\n if (!Array.isArray(data)) { data = [data]; }\n\n var i, flag = false;\n var newobj = Object.create(obj...
typescript
edit
0
5
mit
cda4b8e4b9bf5042c6f0e22a056ce899c31d79a2
othree/immutable-quadtree-js,othree/immutable-quadtree-js,othree/immutable-quadtree-js
src/immutable-map-type.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Store } from '@ngxs/store';\nimport { Observable } from 'rxjs';\nimport { Measure, Step } from '../measures/measure';\nimport { AbstractDevice } from './abstract-device';\n\nexport abstract class AbstractDeviceService<T extends...
typescript
edit
0
3
apache-2.0
8ec40f898d97a4c32e91e90ab06bf2957b3e5323
openradiation/openradiation-mobile,openradiation/openradiation-mobile,openradiation/openradiation-mobile,openradiation/openradiation-mobile
src/app/states/devices/abstract-device.service.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { DetectIntentResponse } from 'dialogflow'\nimport { MARKET_INFO_INTENT, SPOT_QUOTE_INTENT, TRADES_INFO_INTENT } from './intents'\n\nexport const mapIntent = (response: DetectIntentResponse): string => {\n let result = ''\n if ...
typescript
edit
0
5
apache-2.0
845105912274f9fa0ba3a223c850b076d60a7716
AdaptiveConsulting/ReactiveTraderCloud,AdaptiveConsulting/ReactiveTraderCloud,AdaptiveConsulting/ReactiveTraderCloud,AdaptiveConsulting/ReactiveTraderCloud
src/client/src/rt-interop/intents/responseMapper.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { ReactNode } from 'react';\nimport Icon from '../icon/Icon';\nimport { TableRow } from '../table';\nimport { OrderableElement, OrderableHandle } from '../orderable';\n\ninterface Props {\n index: number;\n className?: stri...
typescript
edit
null
null
mit
65793e16b9e98d891a7d217b96a5391b00e1ed82
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
packages/components/components/orderableTable/OrderableTableRow.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n\"use strict\";\r\n\r\nimport { Uri, extensions } from 'vscode';\r\nimport { BaseTextDocumentContentProvider } from './baseTextDocumentContentProvider';\r\nimport * as Constants from '../constants';\r\nimport * as path from 'path';\r\n\...
typescript
edit
0
4
mit
a0bbc5e0363c51927012b62b68524415acec23a7
Huachao/vscode-restclient,Huachao/vscode-restclient
src/views/codeSnippetTextDocumentContentProvider.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
9ce9120c618c3075bf1165f215bb6fc67da4dd4a
wishtack/ng-steroids,wishtack/ng-steroids,wishtack/wishtack-steroids,wishtack/wishtack-steroids,wishtack/wishtack-steroids
packages/schematics/src/scam/index.ts
rejected_duplicate
Near-duplicate of sample 112598
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { PipelineAbstract, option, description } from '../serafin/pipeline/Abstract'\nimport * as Promise from 'bluebird'\n\n@description(\"Provides pagination over the read results\")\nexport class Paginate<T,\n ReadQuery = {},\n ...
typescript
edit
0
7
mit
9fa9229ce668e0fa5bded410e23df473e962d00d
serafin-framework/serafin,serafin-framework/serafin
src/pipeline/Paginate.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { environment } from '../../environments/environment'\nimport { HttpClient } from '@angular/common/http'\nimport { Injectable } from '@angular/core'\nimport { catchError, map } from 'rxjs/operators'\n\n@Injectable({\n providedIn...
typescript
edit
0
1
mit
0f11d837d986588a52d0c7083f76b2f3531cbfb1
bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop
frontend/src/app/Services/data-subject.service.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport {\n DEFAULT_BRANCH_NAME,\n StateProps,\n DispatchProps,\n Props,\n UIStateBranch,\n DefaultStoreState,\n Id,\n TransformPropsFunction,\n defaultUIStateBranchSelector,\n uiStateSelector,\n setUIStateSelector\n} from './...
typescript
edit
0
0
mit
6c4a99732dbe67316348be6b5c13b8ced3c6f214
jamiecopeland/redux-ui-state,jamiecopeland/redux-ui-state
src/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Observable} from 'rxjs/Observable';\nimport {Document} from 'idai-components-2/core';\nimport {M} from '../../m';\nimport {AbstractParser} from './abstract-parser';\nimport {Observer} from 'rxjs/Observer';\n\n/**\n * @author Seb...
typescript
edit
0
4
apache-2.0
7a2dc10944359b2c9a53cce48b2b83191c2b54d8
codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client
app/core/import/native-jsonl-parser.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {XHR} from '../libs/xhr';\n\nlet ENDPOINT = 'api.instagram.com'\nlet API_VERSION = 'v1'\n\nlet ACCESS_TOKEN = '31003280.5c1de8f.3e76027eeefe429ba5cc90f0e64ccda0'\nlet CLIENT_ID = '5c1de8fe2653445489b480a72803a44c'\n\nexport class...
typescript
edit
0
1
mit
0cbcc12abf09c58ff08ee044a4cef641eab63cd9
yadomi/lastagram,yadomi/lastagram,yadomi/lastagram
app/services/instagram.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/// <reference path=\"includes.ts\"/>\n/// <reference path=\"stringHelpers.ts\"/>\nnamespace Core {\n\n /**\n * Typescript interface that represents the UserDetails service\n */\n export interface UserDetails {\n username: Stri...
typescript
edit
0
2
apache-2.0
015bf6ceb01e7feb62706fe72a918d00f91a84a1
hawtio/hawtio-utilities,hawtio/hawtio-utilities,hawtio/hawtio-utilities
helpers/coreInterfaces.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/// <reference path=\"../typings/jquery/jquery.d.ts\" />\n/// <reference path=\"../typings/knockout/knockout.d.ts\" />\n/// <reference path=\"../typings/knockout.mapping/knockout.mapping.d.ts\" />\n/// <reference path=\"../typings/mouse...
typescript
edit
0
4
mit
a4acbb6e2a92805dbf6819484ae261eb675ef6fe
cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative
ts/Tracker.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * CapabilityCalculator\n */\n\nimport {\n\tClientCapabilities,\n\tServerCapabilities,\n\tTextDocumentSyncKind,\n} from 'vscode-languageserver';\n\nexport class CapabilityCalculator {\n\tpublic clientCapabilities: ClientCapabilitie...
typescript
edit
0
3
mit
3a201597b5c1d75fbd157ee993ab9f7b838c3416
rubyide/vscode-ruby,rubyide/vscode-ruby,rubyide/vscode-ruby,rubyide/vscode-ruby,rubyide/vscode-ruby
packages/language-server-ruby/src/CapabilityCalculator.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport fs from 'fs';\nimport Mousetrap from 'mousetrap';\n\nimport { Commands, defaultPaths } from '../defaults';\nimport { KeyBinding } from '../interfaces';\nimport { getPath } from './paths';\n\nconst defaultKeyBindings = require('.....
typescript
edit
0
4
apache-2.0
8860130daf8e216d674d072497c0136954af20f9
Nersent/Wexond,Nersent/Wexond
src/utils/key-bindings.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { LocalDbGame } from './game/game.model';\nimport { LocalDbPackage } from './package/package.model';\nimport * as path from 'path';\nimport { Collection } from './collection';\n\nexport class LocalDb {\n\treadonly games: Collecti...
typescript
edit
0
2
mit
4a3a2653ba13237f119742c559ffcbf91bb34877
gamejolt/gamejolt,gamejolt/gamejolt,gamejolt/gamejolt,gamejolt/gamejolt
src/app/components/client/local-db/local-db.service.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nconst electron = (<any>window).require('electron');\n\nexport const {BrowserWindowProxy} = electron;\nexport const {desktopCapturer} = electron;\nexport const {ipcRenderer} = electron;\nexport const {remote} = electron;\nexport const {w...
typescript
edit
0
0
apache-2.0
8f67bd93a01eb0a5aa263f7e4cd9ab6460e5f5b4
codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client
app/desktop/electron.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { NgModule } from '@angular/core';\nimport { RouterModule } from '@angular/router';\nimport { UniversalModule } from 'angular2-universal';\nimport { AppComponent } from './app.component'\nimport { HomeComponent } from './componen...
typescript
edit
0
0
apache-2.0
9a9467d9de7626017bbaba35c31f32aafc392887
denismaster/DiplomContentSystem,denismaster/DiplomContentSystem,denismaster/DiplomContentSystem,denismaster/DiplomContentSystem
src/DiplomContentSystem/ClientApp/app/app.module.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {\n constants,\n execAsync,\n fs,\n fsPath,\n printTitle,\n} from '../../common';\n\n\nexport const group = 'start';\nexport const name = 'storybook';\nexport const alias = 'ui';\nexport const description = 'Starts React Sto...
typescript
edit
0
3
mit
8c450dc81dd08c12c2dc55ec3ad16e3021599a14
frederickfogerty/js-cli,frederickfogerty/js-cli,frederickfogerty/js-cli
src/cmds/start/storybook.cmd.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { AuthMode, default as Apps } from '../apps';\nimport DatabaseDeltaSnapshot from '../database/delta-snapshot';\nimport { Event } from '../event';\nimport { FunctionBuilder, TriggerDefinition, CloudFunction } from '../builder';\ni...
typescript
edit
0
2
mit
066c9a820e6a25c5f9f4f22a9e76ba05079d0dd6
firebase/firebase-functions,firebase/firebase-functions,firebase/firebase-functions
src/builders/database-builder.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nconst tinyColor: any = require(\"tinycolor2\");\n\nexport function lighten(color: string, percent: number) {\n return tinyColor(color).lighten(percent).toHexString();\n}\n\nexport function darken(color: string, percent: number) {\n ...
typescript
edit
0
1
mit
971220a874bcd496ca6c7b1f3002747ead450932
vshatskyi/black-screen,railsware/upterm,vshatskyi/black-screen,vshatskyi/black-screen,j-allard/black-screen,shockone/black-screen,j-allard/black-screen,black-screen/black-screen,black-screen/black-screen,drew-gross/black-screen,shockone/black-screen,j-allard/black-screen,black-screen/black-screen,drew-gross/black-scree...
src/views/css/functions.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * Copyright (c) 2019 The xterm.js authors. All rights reserved.\n * @license MIT\n */\n\nimport { IDisposable } from './Types';\n\ntype Listener<T> = (e: T) => void;\n\nexport interface IEvent<T> {\n (listener: (e: T) => any): ID...
typescript
edit
0
3
mit
4e6f4be6cce7e9b99cc894fbce4b23869dc5ebe3
sourcelair/xterm.js,xtermjs/xterm.js,xtermjs/xterm.js,xtermjs/xterm.js,sourcelair/xterm.js,Tyriar/xterm.js,Tyriar/xterm.js,Tyriar/xterm.js,xtermjs/xterm.js,Tyriar/xterm.js,sourcelair/xterm.js,Tyriar/xterm.js,xtermjs/xterm.js,sourcelair/xterm.js
src/common/EventEmitter2.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport 'zone.js/dist/zone-node';\n\nimport {\n NgModuleFactory,\n NgModuleRef,\n Type\n} from '@angular/core/index';\n\nimport {PlatformImpl} from '../platform';\nimport {browserModuleToServerModule} from '../module';\nimport {platfo...
typescript
edit
0
1
bsd-2-clause
47f70d2715b13971140b86cfc0d107faee1e8919
clbond/angular-ssr,clbond/angular-ssr,clbond/angular-ssr,clbond/angular-ssr
source/platform/module/bootstrap.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport express = require('express');\nimport querystring = require('querystring');\n\nclass Request {\n private req: express.Request;\n\n constructor(req: express.Request) {\n this.req = req;\n }\n\n get bodyAsText(): string {\n ...
typescript
edit
0
2
apache-2.0
d3c7fb65015343cc37b1a9dfbf90b6ed591a47f1
SollmoStudio/beyond.ts,noraesae/beyond.ts,sgkim126/beyond.ts,SollmoStudio/beyond.ts,sgkim126/beyond.ts,murmur76/beyond.ts,murmur76/beyond.ts,noraesae/beyond.ts
lib/request.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { FormatValidator, FormatDefinition } from 'ajv';\nimport { UiSchema as rjsfUiSchema } from '@rjsf/core';\nimport { Widget } from './widgets/widget-util';\nexport { JSONSchema7 as JSONSchema } from 'json-schema';\n\nexport const ...
typescript
edit
0
0
mit
83dab92a0a15cc0b8fc1c2c0ca9a52bf4ea17286
resin-io-modules/resin-components,resin-io-modules/resin-components,resin-io-modules/resin-components
src/components/Renderer/types.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component } from '@angular/core';\n\n@Component({\n selector: 'my-app',\n template:\n\t<h1>{{title}}</h1>\n\t<h2>{{hero.name}} details!</h2>\n\t<div><label>id: </label>{{hero.id}}</div>\n\t<div><label>name: </label>{{hero.nam...
typescript
edit
null
null
mit
0f8dac237a668c9efd7804bbdbf25a0c1b299887
atbtm/Angular2-Pull-Repo,atbtm/Angular2-Pull-Repo,atbtm/Angular2-Pull-Repo
app/app.component.ts
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { newUnibeautify, Beautifier } from \"unibeautify\";\nimport beautifier from \"../../src\";\ntest(`should successfully beautify JavaScript text with single quotes`, () => {\n const unibeautify = newUnibeautify();\n unibeautify....
typescript
edit
0
1
mit
3ea37c4311648fe431b0444afc2e135386e710b9
Unibeautify/beautifier-prettydiff,Unibeautify/beautifier-prettydiff
test/options/quotes.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// The currently-pressed key codes from oldest to newest\nconst pressedKeyCodes: number[] = []\n\nexport const pressedKeyCodesFromOldestToNewest =\n pressedKeyCodes as ReadonlyArray<number>\n\nexport function isKeyPressed(keyCode: nu...
typescript
edit
0
2
mit
165ef87f9fd4f11f4d37505990b531d1b3dee428
start/kepo,start/kepo,start/kepo
source/kepo.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component, Inject, Input } from 'ng-metadata/core';\n\n@Component({\n\tselector: 'gj-page-header',\n\ttemplateUrl: '/app/components/page-header/page-header.html',\n\tlegacy: {\n\t\ttransclude: {\n\t\t\tcoverButtons: '?gjPageHea...
typescript
edit
0
0
mit
79c06bb442e63ac536a524fdc9cd17d6d37e7f03
gamejolt/gamejolt,gamejolt/gamejolt,gamejolt/gamejolt,gamejolt/gamejolt
src/app/components/page-header/page-header-directive.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Update base url handling for dev" }, { "role": "assistant", "content": "let baseUrl;\nif (process.env.NODE_ENV !== 'production') {\n baseUrl = \"http://localhost:8000/api/v1\";\n}\nelse {\n baseUrl = location.origin + \"/ap...
typescript
new_file
0
0
apache-2.0
e8bf862b4d12595dfc53472ac497c39ac16324fe
polyaxon/polyaxon,polyaxon/polyaxon,polyaxon/polyaxon
client/src/constants/api.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n\n/// <reference path=\"../Definitions/angular.d.ts\" />\n/// <reference path=\"../Definitions/AzureMobileServicesClient.d.ts\" />\n/// <reference path=\"../Services/UserService.ts\" />\n\nmodule MCM {\n export class LoginController {\...
typescript
edit
0
2
apache-2.0
15a65ff2952900c113ffc6876351fdf376e43199
rockfordlhotka/MobileKidsIdApp,bseebacher/MobileKidsIdApp,HTBox/MobileKidsIdApp,bseebacher/MobileKidsIdApp,HTBox/MobileKidsIdApp,bseebacher/MobileKidsIdApp,bseebacher/MobileKidsIdApp,HTBox/MobileKidsIdApp,HTBox/MobileKidsIdApp,rockfordlhotka/MobileKidsIdApp
src/MCM.KidsIdApp/www/scripts/controllers/LoginController.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport User from '../user'\n\nconst Octokat = require('octokat')\n\nexport interface Repo {\n cloneUrl: string,\n htmlUrl: string,\n name: string\n owner: {\n avatarUrl: string,\n login: string\n type: 'user' | 'org'\n },\...
typescript
edit
0
2
mit
ba4aa77122fc0b744d8b8a4a4a40f1dae822731a
say25/desktop,kactus-io/kactus,artivilla/desktop,say25/desktop,gengjiawen/desktop,gengjiawen/desktop,say25/desktop,j-f1/forked-desktop,artivilla/desktop,j-f1/forked-desktop,BugTesterTest/desktops,shiftkey/desktop,kactus-io/kactus,hjobrien/desktop,desktop/desktop,hjobrien/desktop,shiftkey/desktop,kactus-io/kactus,artivi...
src/lib/api.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport chaiJestSnapshot from 'chai-jest-snapshot';\nimport { expect } from 'chai';\n\nchai.use(chaiJestSnapshot);\n\nexpect({}).to.matchSnapshot();\nexpect({}).to.matchSnapshot(true);\nexpect({}).to.matchSnapshot(\"filename\");\nexpect(...
typescript
edit
0
1
mit
d2561e6e7355c153434f782c223eb97339b3401c
dsebastien/DefinitelyTyped,AgentME/DefinitelyTyped,magny/DefinitelyTyped,AbraaoAlves/DefinitelyTyped,aciccarello/DefinitelyTyped,borisyankov/DefinitelyTyped,georgemarshall/DefinitelyTyped,benliddicott/DefinitelyTyped,chrootsu/DefinitelyTyped,AbraaoAlves/DefinitelyTyped,dsebastien/DefinitelyTyped,alexdresko/DefinitelyTy...
types/chai-jest-snapshot/chai-jest-snapshot-tests.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as isCI from 'is-ci'\nimport * as path from 'path'\nimport { install, uninstall } from './'\n\n// Just for testing\nif (process.env.HUSKY_DEBUG) {\n console.log(`husky:debug INIT_CWD=${process.env.INIT_CWD}`)\n}\n\n// Action c...
typescript
edit
0
0
mit
89efe65f1848d312988880f2a5f754e2d0b32c1b
typicode/husky,typicode/husky
src/installer/bin.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { ApplicationState } from '../../../../../shared/models/applicationState';\nimport { Point } from '../../../../../shared/models/point';\nimport { moveElement } from '../../../../../shared/utils/arrays';\nimport { defineAction } f...
typescript
edit
0
4
mit
2ee75ab297d920141398a030f825e4943eb16ad5
codeandcats/Polygen
src/ui/actions/editor/projectFile/layer/moveLayer.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport LexicalModelCompiler from '../';\nimport {assert} from 'chai';\nimport 'mocha';\n\nimport {makePathToFixture, compileModelSourceCode} from './helpers';\n\n\ndescribe('LexicalModelCompiler', function () {\n describe('#generateLex...
typescript
edit
0
2
apache-2.0
ddef37f7e6fc75b314fdf64ec74929f3e305390b
tavultesoft/keymanweb,tavultesoft/keymanweb
developer/js/tests/test-compile-trie.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component, Input, Output, EventEmitter } from '@angular/core';\nimport { modules, getDefaultOptions } from '../modules/modules-main';\nimport { OptionsConfig, Options } from '../modules/modules-config';\n\n@Component({\n\tselec...
typescript
edit
0
3
mit
f36f15e8cb10005abaf553591efa2db1d932c373
michaelgira23/MyMICDS-v2-Angular,MyMICDS/MyMICDS-v2-Angular,MyMICDS/MyMICDS-v2-Angular,michaelgira23/MyMICDS-v2-Angular,michaelgira23/MyMICDS-v2-Angular,MyMICDS/MyMICDS-v2-Angular
src/app/components/module-options/module-options.component.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
edc3bbe603682c3fb15e12e2799f4a6e69b86b9e
mjbvz/vscode,the-ress/vscode,eamodio/vscode,cleidigh/vscode,Krzysztof-Cieslak/vscode,Krzysztof-Cieslak/vscode,microlv/vscode,microlv/vscode,microlv/vscode,microsoft/vscode,the-ress/vscode,rishii7/vscode,cleidigh/vscode,Microsoft/vscode,joaomoreno/vscode,hoovercj/vscode,hoovercj/vscode,hoovercj/vscode,hoovercj/vscode,0x...
extensions/markdown-language-features/src/features/documentSymbolProvider.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/* tslint:disable:no-unused-variable */\n\nimport { TestBed, async } from '@angular/core/testing';\nimport { OriginalTemplateDirective } from './original-template.directive';\n\ndescribe('Directive: OriginalTemplate', () => {\n it('sho...
typescript
edit
0
1
mit
22fc830f00b925b761d0bd836b3350631de41454
gund/ng-original-template,gund/ng-original-template
src/original-template/original-template.directive.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react'\nimport flowRight from 'lodash-es/flowRight'\nimport {translate} from 'react-i18next'\nimport {SortableElement} from 'react-sortable-hoc'\nimport IconButton from '@material-ui/core/IconButton'\nimport Text...
typescript
edit
null
null
mit
af55e9851843c7b31b456f58471f8c9e546a9a5c
Holi0317/bridge-calc,Holi0317/bridge-calc,Holi0317/bridge-calc
src/name-input-list/item.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport 'core-js/features/array';\nimport 'core-js/features/promise';\n\nimport React from 'react';\nimport ReactDOM from 'react-dom';\n\nimport Me from './Me';\n\nconst rootEl = document.getElementById('app');\n\nReactDOM.render(\n <...
typescript
edit
null
null
mit
fd112336e4018a329fd31d9b048d4894d1cd2b6a
durasj/website,durasj/website,durasj/website
src/app.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport jsPDF = require('jspdf');\nimport 'jspdf-autotable';\n\n// This is a hack for typing this plugin. It should be possible to do\n// with typescript augmentation feature, but the way jspdf's types are\n// defined and the way jspdf i...
typescript
edit
0
1
mit
356f1b8955d792074c51ca6e9193ee2ff073e264
simonbengtsson/jsPDF-AutoTable,someatoms/jsPDF-AutoTable,simonbengtsson/jsPDF-AutoTable,simonbengtsson/jsPDF-AutoTable
examples/typescript/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { expect } from 'chai'\nimport Up from '../../index'\nimport { SyntaxNode } from '../../SyntaxNodes/SyntaxNode'\nimport { DocumentNode } from '../../SyntaxNodes/DocumentNode'\nimport { ParagraphNode } from '../../SyntaxNodes/Para...
typescript
edit
0
3
mit
d3ff099402bb1e55b9a785f930bcef925a26fa57
start/up,start/up
src/Test/Ast/Helpers.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Extension} from './extension';\n\n// Initialize extension\nconst extension = new Extension();\nextension.start();\n\nchrome.runtime.onInstalled.addListener(({reason}) => {\n if (reason === 'install') {\n // TODO: Show ...
typescript
edit
0
4
mit
727c60050b127b739742608959f2d17b92d6469b
alexanderby/darkreader,darkreader/darkreader,darkreader/darkreader,alexanderby/darkreader,darkreader/darkreader,alexanderby/darkreader
src/background/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nconst promiseCallbacks: Function[] = [];\nlet loggedIn = false;\n\nexport function whenLogin(): Promise<void> {\n if(loggedIn) {\n return Promise.resolve();\n } else {\n return new Promise<void>(resolve => {\n ...
typescript
edit
0
2
mit
798b5ecaae660d3e9ea672c602ca082283ebbfb7
kumpelblase2/proxtop,kumpelblase2/proxtop,kumpelblase2/proxtop,kumpelblase2/proxtop
src/main/app/proxerapi/wait_login.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * Copyright (c) Tiny Technologies, Inc. All rights reserved.\n * Licensed under the LGPL or a commercial license.\n * For LGPL see License.txt in the project root for license information.\n * For commercial licenses see https://ww...
typescript
edit
0
1
mit
0508832ca6cc8a5c862e67a284a4fc203015ecd9
tinymce/tinymce,TeamupCom/tinymce,tinymce/tinymce,FernCreek/tinymce,FernCreek/tinymce,FernCreek/tinymce,TeamupCom/tinymce,tinymce/tinymce
modules/tinymce/src/plugins/table/main/ts/core/Clipboard.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\n\nimport { IExtensionProps } from './extensions';\nimport { ArticleMedia } from '../ArticleMedia';\n\ninterface IParsedProps {\n mediumIds: string[]\n}\n\nexport const MediaExtension: React.FunctionCo...
typescript
edit
null
null
mit
4089b913035698bf23bd8d876144b0f0fe826b60
stuyspec/client-app
src/modules/articles/components/extensions/MediaExtension.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { ParseResult } from './ParseResult'\nimport { CompletedParseResult } from './CompletedParseResult'\nimport { FailedParseResult } from './FailedParseResult'\n\nimport { Matcher } from '../Matching/Matcher'\n\nimport { RichSyntaxN...
typescript
edit
0
2
mit
f3d1da4f4e56c80722d39fbb007ec8a3c76cce20
start/up,start/up
src/Parsing/ParseInline.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as vscode from 'vscode'\nimport { Range, TextEdit } from 'vscode'\n\nimport { execCmd } from './elmUtils' \n\nexport class ElmFormatProvider implements vscode.DocumentFormattingEditProvider {\n \n provideDocumentFormattingEdi...
typescript
edit
0
2
mit
aa3feeb438edc2390157f55340bf159ff5c67670
Krzysztof-Cieslak/vscode-elm,sbrink/vscode-elm
src/elmFormat.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/// <reference path=\"fourslash.ts\" />\n\n//@Filename: jsxExpressionFollowedByIdentifier.tsx\n////declare var React: any;\n////declare var x: string;\n////const a = <div>{<div />/*1*/x/*2*/}</div>\n\ngoTo.marker('1');\nverify.getSyntac...
typescript
edit
0
0
apache-2.0
897e10a81e3495c7749977a51cc4b82602f9ba03
alexeagle/TypeScript,kpreisser/TypeScript,RyanCavanaugh/TypeScript,SaschaNaz/TypeScript,Microsoft/TypeScript,Microsoft/TypeScript,nojvek/TypeScript,weswigham/TypeScript,kpreisser/TypeScript,kpreisser/TypeScript,nojvek/TypeScript,alexeagle/TypeScript,weswigham/TypeScript,kitsonk/TypeScript,alexeagle/TypeScript,RyanCavan...
tests/cases/fourslash/jsxExpressionFollowedByIdentifier.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport './App.css';\n\nimport logo from './logo.svg';\n\nclass App extends React.Component<{}, { apiMessage: string }> {\n constructor(props: object) {\n super(props);\n\n this.state = { apiMessag...
typescript
edit
null
null
mit
da673b146bbaa81884c98c960f41d5a03f71081c
ghotiphud/rust-web-starter,ghotiphud/rust-web-starter,ghotiphud/rust-web-starter,ghotiphud/rust-web-starter
web/src/App.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {getSortedIds} from '../../../../../app/core/datastore/cached/get-sorted-ids';\n\n/**\n * @author Daniel de Oliveira\n */\ndescribe('getSortedIds', () => {\n\n it('base', () => {\n\n const as = [{ id: 'a', identifier: '...
typescript
edit
0
1
apache-2.0
8a04609bdfda87de3b2c363abfe5ce405535e555
codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client
test/unit/core/datastore/cached/get-sorted-ids.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { EntityAdapter, EntityState, createEntityAdapter } from '@ngrx/entity'\n\nimport { Study } from '../../../shared/models/study.model'\nimport * as actions from './studies.actions'\n\nexport interface State extends EntityState<Stu...
typescript
edit
0
1
apache-2.0
e7577d7a0f6c1c91fdccc89745cf4ef484349fa3
RADAR-CNS/RADAR-Dashboard,RADAR-CNS/RADAR-Dashboard,RADAR-CNS/RADAR-Dashboard,RADAR-CNS/RADAR-Dashboard
src/app/overview-page/store/studies/studies.reducer.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { TestSuite } from 'jovo-core';\n\nimport { LindenbaumBot } from './core/LindenbaumBot';\nimport { LindenbaumRequestBuilder } from './core/LindenbaumRequestBuilder';\nimport { LindenbaumResponseBuilder } from './core/LindenbaumRe...
typescript
edit
0
0
apache-2.0
63de6c3f5164a16e60064400899b1079afb852ba
jovotech/jovo-framework-nodejs,jovotech/jovo-framework-nodejs
jovo-platforms/jovo-platform-lindenbaum/src/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from \"react\";\nimport { warning } from \"farmbot-toastr\";\nimport { setWebAppConfigValue } from \"../config_storage/actions\";\nimport { BooleanConfigKey } from \"farmbot/dist/resources/configs/web_app\";\n\ninterfa...
typescript
edit
null
null
mit
eb088e38f392f2deb19871376e535cffbb51b6ce
FarmBot/Farmbot-Web-API,RickCarlino/farmbot-web-app,FarmBot/farmbot-web-app,gabrielburnworth/Farmbot-Web-App,RickCarlino/farmbot-web-app,FarmBot/farmbot-web-app,FarmBot/Farmbot-Web-API,gabrielburnworth/Farmbot-Web-App,RickCarlino/farmbot-web-app,gabrielburnworth/Farmbot-Web-App,FarmBot/farmbot-web-app,gabrielburnworth/...
webpack/account/dev_mode.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component, ComponentProps } from 'preact';\n\ntype WhenProps = ComponentProps<When> & {\n value: boolean,\n children?: (JSX.Element | (() => JSX.Element))[]\n};\n\ntype WhenState = {\n ready: boolean\n};\n\nexport class When...
typescript
edit
0
5
apache-2.0
fc84c81a47039d998589372eedc95efaea42bcf7
GoogleChromeLabs/squoosh,GoogleChromeLabs/squoosh,GoogleChromeLabs/squoosh,GoogleChromeLabs/squoosh,GoogleChromeLabs/squoosh,GoogleChromeLabs/squoosh
src/lib/util.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from 'react';\nimport { classnames } from '../../helpers/component';\n\ninterface Props {\n children: React.ReactNode;\n className?: string;\n}\n\nconst DropdownMenu = ({ children, className = '' }: Props) => {\n r...
typescript
edit
null
null
mit
a2e1a18d9987d608c4987c072e32b5e1299e80da
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
packages/components/components/dropdown/DropdownMenu.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { navigate } from \"lib/navigation/navigate\"\nimport { Schema, track } from \"lib/utils/track\"\nimport { ArrowRightIcon, Flex, Sans } from \"palette\"\nimport React from \"react\"\nimport { TouchableWithoutFeedback } from \"rea...
typescript
edit
null
null
mit
ea23156ab50212746f94a79961eb0a3a8c5e4761
artsy/eigen,artsy/eigen,artsy/eigen,artsy/eigen,artsy/eigen,artsy/eigen,artsy/eigen
src/lib/Scenes/Artwork/Components/OtherWorks/ContextGridCTA.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\nimport { Button } from '@shopify/polaris';\r\n\r\nexport interface Handlers {\r\n readonly onBlockRequester: () => void;\r\n}\r\n\r\nclass BlockActionsPopover extends React.PureComponent<Handlers, nev...
typescript
edit
null
null
mit
15088f91513522c242552f38caee4b53015fc993
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
src/components/SearchTable/SearchCard/BlockActionsPopover.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {SelectBox} from './selectbox';\nimport {ListSelectorConfig} from './listselector';\nimport {UIInstanceManager} from '../uimanager';\n\n/**\n * A select box providing a selection between available audio tracks (e.g. different lan...
typescript
edit
0
2
mit
c12099fd8b5c53afae4ef43caa51a8f938ecace7
bitmovin/bitmovin-player-ui,bitmovin/bitmovin-player-ui,bitmovin/bitmovin-player-ui,bitmovin/bitmovin-player-ui
src/ts/components/audiotrackselectbox.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nlet customElId = 0;\n\nexport function customElName() {\n\t++customElId;\n\treturn `x-${customElId}`;\n}\n\n```\n\nApply this change: Add global ShadowRoot declaration on Window" }, { "role": "assistant", "content": "let cus...
typescript
edit
0
1
mit
9b4e7b9eae24cdbc5634fbe4618c39748c44e93f
marcoms/make-element,marcoms/make-element,marcoms/make-element
test/tools.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\ndeclare function stub(el: string, obj: any): void;\n\n describe('audio dashboard tests', function() {\n var audioDash;\n var reloadCount = 0;\n beforeEach(function() {\n audioDash = fixture('testElementFixture')...
typescript
edit
0
1
apache-2.0
e4c18fc8fe21c7762b8f8e2b029241fef8388330
AndreasMadsen/tensorflow,kevin-coder/tensorflow-fork,snnn/tensorflow,kevin-coder/tensorflow-fork,asimshankar/tensorflow,yanchen036/tensorflow,vrv/tensorflow,alistairlow/tensorflow,theflofly/tensorflow,sandeepdsouza93/TensorFlow-15712,laosiaudi/tensorflow,eadgarchen/tensorflow,elingg/tensorflow,seaotterman/tensorflow,te...
tensorflow/tensorboard/components/tf-audio-dashboard/test/audioDashboardTests.ts
rejected_duplicate
Near-duplicate of sample 113168
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component, EventEmitter, OnInit, Output } from '@angular/core';\nimport { TaskExecution } from '../../../shared/model/task-execution.model';\nimport { TaskService } from '../../../shared/api/task.service';\nimport { Notificatio...
typescript
edit
0
1
apache-2.0
e70138391bbfc88a036b752621d94a6d51698e3d
BoykoAlex/spring-cloud-dataflow-ui,cppwfs/spring-cloud-dataflow-ui,BoykoAlex/spring-cloud-dataflow-ui,cppwfs/spring-cloud-dataflow-ui,BoykoAlex/spring-cloud-dataflow-ui,BoykoAlex/spring-cloud-dataflow-ui,spring-cloud/spring-cloud-dataflow-ui,cppwfs/spring-cloud-dataflow-ui,spring-cloud/spring-cloud-dataflow-ui,cppwfs/s...
ui/src/app/tasks-jobs/executions/cleanup/cleanup.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport * from \"./component\";\nexport * from \"./currency\";\nexport * from \"./dataSourceJson\";\nexport * from \"./dataSourceUrl\";\nexport * from \"./hidden\";\nexport * from \"./inputTags\";\nexport * from \"./multiple\";\nexport *...
typescript
edit
0
0
mit
669a1618daf227930cbc9c7574ef17d7c2d0ad40
Romakita/ts-express-decorators,Romakita/ts-express-decorators,Romakita/ts-express-decorators,Romakita/ts-express-decorators
packages/third-parties/schema-formio/src/decorators/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Queue } from './../shared/queue.model';\nimport { DailyQueueService } from '../shared/daily-queue.service';\nimport { QueueElement } from '../shared/queueElement.model';\nimport { Component, OnInit } from '@angular/core';\n\n@C...
typescript
edit
0
1
apache-2.0
2ed7a4260060614b45e206ac3f4a2db2c8923e71
tomek199/elo-rating,tomek199/elo-rating,tomek199/elo-rating,tomek199/elo-rating
src/app/daily-queue/daily-queue-list/daily-queue-list.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n'use strict'\n\nimport { window } from 'vscode';\nimport { MimeUtility } from './mimeUtility';\nvar pd = require('pretty-data').pd;\n\nexport class ResponseFormatUtility {\n public static FormatBody(body: string, contentType: string)...
typescript
edit
0
10
mit
8a1a962c23f0bb762d28e38601b72960ae18c897
Huachao/vscode-restclient,Huachao/vscode-restclient
src/responseFormatUtility.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { NavigationTabs_Test_PartnerQueryRawResponse } from \"v2/__generated__/NavigationTabs_Test_PartnerQuery.graphql\"\nimport { NavigationTabsFragmentContainer as NavigationTabs } from \"v2/Apps/Partner/Components/NavigationTabs\"\n...
typescript
edit
null
null
mit
5119bb7c571e885790d1e71d7b57fe584f344563
joeyAghion/force,artsy/force,joeyAghion/force,artsy/force-public,artsy/force-public,joeyAghion/force,artsy/force,artsy/force,artsy/force,joeyAghion/force
src/v2/Apps/Partner/Components/__tests__/NavigationTabs.jest.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { bootstrap, Component, NgModel } from 'angular2/angular2';\n\nclass ConcertSet {\n date: Date;\n venue: string;\n set: number;\n}\n\n\n@Component({\n selector: 'deadbase-app',\n template: `\n <h1>{{title}}...
typescript
edit
0
0
mit
d4fa30511b6e9d27f0d87a89a8139fa9abe22ceb
BillWagner/TypeScriptAngular2,BillWagner/TypeScriptAngular2,BillWagner/TypeScriptAngular2,BillWagner/TypeScriptAngular2
DeadBaseSample/src/DeadBaseSample/TypeScriptSource/deadbase.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { expect } from 'chai';\n\nimport { DebugService } from '../../lib/service';\n\ndescribe('DebugService', () => {\n let service = new DebugService();\n\n describe('#constructor()', () => {\n it('should create a new instance',...
typescript
edit
0
2
bsd-3-clause
ed76e5eade81e34d7847a0673d12cfdc1f744077
jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab
tests/src/service.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * @license\n * Copyright (C) 2020 The Android Open Source Project\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 ...
typescript
edit
0
0
apache-2.0
5c808ff99ed8c701dad23cf4fbfc45217e05ee38
GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit
polygerrit-ui/app/elements/shared/gr-avatar/gr-avatar_html.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.6.0',\n RELEASEVERSION: '0...
typescript
edit
0
0
mit
f777cbd4c0a53c64334b51b50c60021073ad93a2
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\nimport { Length, MaxLength } from 'class-validator';\nimport { Field, InputType } from 'type-graphql';\n\n@InputType()\nexport class NewRecipeInput {\n @Field()\n @MaxLength(30)\n title: string;\n\n @Field({ nullable: true })\n @Le...
typescript
edit
0
0
mit
3a75b00db03cf2de4df3a6760cfd394183f43c3b
kamilmysliwiec/nest,kamilmysliwiec/nest
sample/23-type-graphql/src/recipes/dto/new-recipe.input.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { AudioFiles } from '../types';\r\n\r\nconst initial: AudioFiles = {\r\n audioNewSearch: new Audio(\r\n 'https://k003.kiwi6.com/hotlink/85iq6xu5ul/coins.ogg'\r\n )\r\n};\r\n\r\nexport default (state = initial, action: {}) =>...
typescript
edit
0
1
mit
ddd2cd1f25b079a9559a501cc35555c461116550
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
src/reducers/audioFiles.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { getDebugFunction, setDebugFunction } from '@ember/debug';\n\n// @ts-ignore\nimport EmberDevTestHelperAssert from './index';\n\nexport interface Assertion {\n reset(): void;\n inject(): void;\n assert(): void;\n restore(): v...
typescript
edit
0
7
mit
0802fbec3bff61683cf84e6ae5bce7492e94b7a4
miguelcobain/ember.js,givanse/ember.js,mfeckie/ember.js,kellyselden/ember.js,GavinJoyce/ember.js,emberjs/ember.js,intercom/ember.js,givanse/ember.js,stefanpenner/ember.js,intercom/ember.js,intercom/ember.js,sly7-7/ember.js,bekzod/ember.js,stefanpenner/ember.js,mixonic/ember.js,qaiken/ember.js,GavinJoyce/ember.js,fpause...
packages/internal-test-helpers/lib/ember-dev/setup-qunit.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/*\n * Angular 2 decorators and services\n */\nimport { Component, Input } from '@angular/core';\nimport { FormGroup, FormControl } from '@angular/forms';\n\n@Component({\n // The selector is what angular internally uses\n selecto...
typescript
edit
0
1
mit
e81afc060726f0d77a3fe2d841138e966d5d6146
joaogarin/carte-blanche-angular2,joaogarin/carte-blanche-angular2
frontend/src/app/controls/base/stringControl/stringControl.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/*\n * Copyright 2022 Simon Edwards <<EMAIL>>\n *\n * This source code is licensed under the MIT license which is detailed in the LICENSE.txt file.\n */\nimport * as open from \"open\";\nimport * as fs from \"node:fs\";\nimport * as pat...
typescript
edit
0
3
mit
216e05f2d40a99f054bbfab2a86d0cbf5ceec1ec
sedwards2009/extraterm,sedwards2009/extraterm,sedwards2009/extraterm,sedwards2009/extraterm,sedwards2009/extraterm
main/src/extension/api/ApplicationImpl.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Injectable } from '@angular/core';\nimport { BehaviorSubject, Observable } from 'rxjs';\n\nimport { SelectorService } from '../../controller/selector/selector.service';\nimport { Action } from './keybindings.service';\n\n@Injec...
typescript
edit
0
32
mit
90ce2cbe4726916eadc14fee40ce778452f4178a
nb48/chart-hero,nb48/chart-hero,nb48/chart-hero
src/app/global/keybindings/keybindings-actions.service.ts
rejected_complexity
Cyclomatic complexity too high: 32
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\ndeclare module 'js-worker-search' {\n type IndexMode = 'ALL_SUBSTRINGS' | 'EXACT_WORDS' | 'PREFIXES';\n\n class SearchApi {\n constructor(indexMode?: IndexMode, tokenizePattern?: RegExp, caseSensitive?: boolean);\n public indexD...
typescript
edit
0
1
apache-2.0
9818dec74f94693ae4b88820bf2f72424ffb7a14
duftler/deck,ajordens/deck,duftler/deck,icfantv/deck,spinnaker/deck,sgarlick987/deck,icfantv/deck,ajordens/deck,ajordens/deck,ajordens/deck,duftler/deck,spinnaker/deck,icfantv/deck,spinnaker/deck,sgarlick987/deck,sgarlick987/deck,duftler/deck,sgarlick987/deck,spinnaker/deck,icfantv/deck
app/scripts/modules/core/src/pagerDuty/js-worker-search.d.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Encounter } from \"../Encounter/Encounter\";\nimport { SpellLibrary } from \"../Library/SpellLibrary\";\nimport { PlayerViewClient } from \"../Player/PlayerViewClient\";\nimport { DefaultRules, IRules } from \"../Rules/Rules\";...
typescript
edit
0
1
mit
1d303e0be4ddc9a4b476227a2f01d923aafeda13
cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative
client/test/buildEncounter.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { buildSchema } from 'graphql';\nimport { makeExecutableSchema } from 'graphql-tools';\n\ntype FirstArg<F> = F extends (arg: infer A) => any ? A : never;\n\nexport function augmentTypeDefsWithCacheControlSupport(typeDefs) {\n re...
typescript
edit
0
1
mit
2385558bea54b4abebbc5917921f1d0b477b2254
apollostack/apollo-server
packages/apollo-cache-control/src/__tests__/cacheControlSupport.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { StateNavigator } from 'navigation';\nimport * as React from 'react';\nimport { BackAndroid } from 'react-native';\n\nclass NavigationBackAndroid extends React.Component<any, any> {\n private onBack = () => {\n var sta...
typescript
edit
0
5
apache-2.0
56daa5974b80d786c56b596dc6bcaadc7e34f119
grahammendick/navigation,grahammendick/navigation,grahammendick/navigation,grahammendick/navigation,grahammendick/navigation,grahammendick/navigation,grahammendick/navigation
NavigationReactNative/src/NavigationBackAndroid.android.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from \"react\"\nimport styled from \"styled-components\"\nimport { uniq } from \"lodash\"\nimport { PartnerHeader_partner } from \"v2/__generated__/PartnerHeader_partner.graphql\"\n\nexport const TextWithNoWrap = styled.spa...
typescript
edit
null
null
mit
a450b9ec76f7b2770482f772a86a16e9fe880807
artsy/force,joeyAghion/force,artsy/force-public,artsy/force-public,artsy/force,artsy/force,artsy/force,joeyAghion/force,joeyAghion/force,joeyAghion/force
src/v2/Apps/Partner/Components/PartnerHeader/PartnerHeaderAddress.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nfunction dashCase(str: string): string {\n return typeof str === 'string'\n ? str.split(/([_A-Z])/).reduce((one, two, idx) => {\n const dash = !one || idx % 2 === 0 ? '' : '-';\n two = two === '_' ? '' : two;\n ...
typescript
edit
0
4
mit
8eff3d4139ee947e8063c787f591e65bd1b77749
skatejs/skatejs,skatejs/skatejs,skatejs/skatejs
packages/skatejs/src/name.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nconst signals: NodeJS.Signals[] = ['SIGINT', 'SIGHUP', 'SIGTERM', 'SIGQUIT'];\n\nexport function onExit(callback: () => Promise<void> | void) {\n let callbackInvoked = false;\n const callbackOnce = async () => {\n if (!callbackInvo...
typescript
edit
0
2
mit
ad42e0e70fab75560b2ac67d278f6e0f1ef2681b
dotdoom/comicsbot,dotdoom/comicsbot
src/on_exit.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport default (blob: Blob) =>\n new Promise<string>((resolve, reject) => {\n const reader = new FileReader()\n reader.readAsDataURL(blob)\n\n reader.onloadend = function() {\n let result = reader.resu...
typescript
edit
0
2
mit
a8dd5da9969b88d4c28a441293ae1c805a0e974f
WorldBrain/WebMemex,WorldBrain/WebMemex
src/util/encode-blob.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { CommonModule } from '@angular/common';\nimport { BrowserModule } from '@angular/platform-browser';\nimport { HttpModule } from '@angular/http';\nimport { NgModule } from '@angular/core';\nimport { RouterModule } from '@angular/...
typescript
edit
0
0
mit
8b5fd086928403c22268958e7218c3d685944e01
CaoDuyThanh/WebAppClient,CaoDuyThanh/WebAppClient,CaoDuyThanh/WebAppClient
src/client/app/dashboard/realtime-statistic/realtime-statistic.module.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { NativeModules } from \"react-native\"\nconst { Emission } = NativeModules\n\nlet metaphysicsURL\nlet gravityURL\n\nif (Emission && Emission.gravityAPIHost && Emission.metaphysicsAPIHost) {\n metaphysicsURL = Emission.metaphysi...
typescript
edit
0
0
mit
968bc904766891b6d7d5dc322d1a123888331a68
artsy/eigen,artsy/eigen,artsy/emission,artsy/emission,artsy/eigen,artsy/eigen,artsy/emission,artsy/eigen,artsy/emission,artsy/emission,artsy/emission,artsy/emission,artsy/eigen,artsy/eigen
src/lib/relay/config.tsx
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Observable} from 'rxjs';\n\n\nexport interface SyncProcess {\n\n url: string;\n cancel(): void;\n observer: Observable<SyncStatus>;\n}\n\n\nexport enum SyncStatus {\n\n Offline = \"OFFLINE\",\n Pushing = \"PUSHING...
typescript
edit
0
0
apache-2.0
45fc9b3ea1500f89544731aa698ce9cbfaf233ae
codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client
src/app/core/sync/sync-process.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n'use strict';\n\nimport * as React from 'react';\nimport { Router, browserHistory } from 'react-router';\nimport { Provider } from 'react-redux'\n\nimport {routes} from './routes'\nimport { createStore } from './store'\nimport { isToken...
typescript
edit
null
null
mit
d4e2a7d642f17addc2ede2f4672c0cd287dda90c
sainthkh/ko-academy,sainthkh/ko-academy
web/frontend/app/App.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 { Link } from '@waldur/core/Link';\nimport { getUUID } from '@waldur/core/utils';\nimport { translate } from '@waldur/i18n';\n\nexport const RoleField = ({ invitation }) => {\n if (invitation.c...
typescript
edit
null
null
mit
7f0b70290038f48392f14e1841cd3e418bf0146c
opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport
src/invitations/RoleField.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { override, styled } from \"../../styles\";\n\nexport interface ContainerProps {\n isSelected: boolean;\n theme: any;\n}\n\nexport const Container = styled(\"div\")<ContainerProps>(\n {\n boxSizing: \"border-box\",\n cur...
typescript
edit
0
1
mit
8f8bab1cc286c946d2c3acacb46798aedb477b66
sajari/sajari-sdk-react,sajari/sajari-sdk-react
src/components/Tabs/Tab/styled.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Modal, Sans } from \"@artsy/palette\"\nimport React from \"react\"\nimport { ApiError } from \"../ApiError\"\n\ninterface ApiErrorModalProps {\n errors: ApiError[]\n onClose: () => void\n show?: boolean\n}\n\nexport const Ap...
typescript
edit
null
null
mit
51fba105b7f95193ec2eb234751030e87d3b4181
artsy/reaction-force,artsy/reaction,artsy/reaction,artsy/reaction,artsy/reaction-force
src/Components/UserSettings/TwoFactorAuthentication/Components/ApiErrorModal.tsx
rejected_syntax
Syntax error detected by tree-sitter
false