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\n'use strict';\nimport * as vscode from 'vscode';\nimport * as jmespath from 'jmespath';\n\nexport class JMESPathController {\n\n private _outputChannel: vscode.OutputChannel;\n private _lastExpression: string;\n private _lastRe...
typescript
edit
0
3
apache-2.0
3975095eba742a2df6ffeacaf03e50b1c8edc826
jmespath/jmespath.vscode
src/jpcontrol.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { openModalDialog } from '@waldur/modal/actions';\n\nexport const showOfferingPlanDescription = planDescription =>\n openModalDialog('marketplaceOfferingPlanDescription', {resolve: {plan_description: planDescription}, size: 'md'...
typescript
edit
0
1
mit
722fb44fc80cfcb3e7d47daa08fdf54cbe4531a3
opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport
src/marketplace/details/plan/actions.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component } from '@angular/core';\n\n@Component({\n selector: 'my-app',\n template: '<h1>{{title}}</h1><h2>{{hero.name}} details!</h2><div><label>id: </label>{{hero.id}}</div><div><label>name: </label>{{hero.name}}</div>'\n})...
typescript
edit
null
null
mit
f18a8787adf25e16ae1e37617a760ea4093196d9
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\ninterface BaseInterface {\r\n required: number;\r\n optional?: number;\r\n}\r\n\r\ndeclare class BaseClass {\r\n baseMethod();\r\n x2: number;\r\n}\r\n\r\ninterface Child extends BaseInterface {\r\n x3: number;\r\n}\r\n\r...
typescript
edit
0
0
apache-2.0
4d05189d8dbd6807684ff74d5ae502d05bced42a
mmoskal/TypeScript,basarat/TypeScript,donaldpipowitch/TypeScript,Eyas/TypeScript,synaptek/TypeScript,nycdotnet/TypeScript,vilic/TypeScript,nycdotnet/TypeScript,donaldpipowitch/TypeScript,evgrud/TypeScript,kpreisser/TypeScript,ionux/TypeScript,DLehenbauer/TypeScript,basarat/TypeScript,alexeagle/TypeScript,vilic/TypeScri...
tests/cases/conformance/classes/classDeclarations/mergedInheritedClassInterface.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { start } from \"@truffle/db-kit/cli\";\n\nasync function main() {\n await start();\n}\n\nmain();\n\n```\n\nApply this change: Add missing shebang and chmod +x" }, { "role": "assistant", "content": "#!/usr/bin/env no...
typescript
edit
0
1
mit
6f269ce6c879e0970c2dd2a3e1e322982f07dd04
ConsenSys/truffle
packages/db-kit/bin/cli.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { TruffleDB } from \"truffle-db\";\nimport { ArtifactsLoader } from \"./artifacts\";\nimport { schema as rootSchema } from \"truffle-db/schema\";\nimport { Workspace, schema } from \"truffle-db/workspace\";\nconst tmp = require(\...
typescript
edit
0
1
mit
643bb44ab4a0d1d8310ac31aba621bbe86150a02
ConsenSys/truffle
packages/truffle-db/src/loaders/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Renderer2} from '@angular/core';\nimport {MenuContext, MenuService} from '../menu-service';\n\n\n/**\n * @author Daniel de Oliveira\n * @author Thomas Kleinke\n */\nexport abstract class MenuComponent {\n\n public opened: boo...
typescript
edit
0
7
apache-2.0
06e00f620e630158c46e02e77397458394531b87
codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client
src/app/components/widgets/menu.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Stream } from 'xstream';\n\nexport function shallowCopy(target: Object, source: Object) {\n for (var key in source)\n if (source.hasOwnProperty(key))\n target[key] = source[key];\n}\n\nexport function shallowExtend...
typescript
edit
0
3
mit
029ac8c2e4b16d3532b254776c8c47f41d9c4999
cyclic-ui/cyclic-ui,cyclic-ui/cyclic-ui
src/utils/extend.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport mongoose from 'mongoose';\nimport Message from '@/interfaces/Message';\n\nexport interface IMessageModel extends Message, mongoose.Document {\n _receivers: mongoose.Types.DocumentArray<mongoose.Types.Subdocument>;\n}\n\nexport c...
typescript
edit
0
0
mit
69d9febb874207981fac2f1d10a7f98ffbf0ce29
schulcloud/node-notification-service,schulcloud/node-notification-service,schulcloud/node-notification-service
src/models/message.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React, { ReactNode } from 'react';\nimport { connect } from 'react-redux';\n\nimport { DefaultState, ThunkDispatchProp } from '../../interfaces';\n\nimport Header from './Header';\nimport Footer from './Footer';\n\ntype PageProps...
typescript
edit
null
null
mit
0e9a7606c2132c1d4816778df991347f708a5fcc
benct/tomlin-web,benct/tomlin-web
app/scripts/components/page/Page.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as ReactNative from 'react-native';\nimport { LinearGradientProps } from 'react-native-linear-gradient';\n\nexport type StretchyImage =\n | ReactNative.ImageURISource\n | ReactNative.ImageRequireSource;\n\nexport type Stretch...
typescript
edit
0
1
mit
eb60ceab61185828f2c11a3c8b66f7703372df0b
hamidhadi/react-native-stretchy,hamidhadi/react-native-stretchy,hamidhadi/react-native-stretchy,hamidhadi/react-native-stretchy
lib/src/types.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as path from \"path\";\nimport * as url from \"url\";\n\n// tslint:disable-next-line no-implicit-dependencies\nimport { app } from \"electron\";\nimport * as fs from \"fs-extra\";\n\nimport ActionHubWindow from \"./ActionHubWin...
typescript
edit
0
4
mit
3e3144eed8aab6476eefb5c8a38a451279f10fa6
ocboogie/action-hub,ocboogie/action-hub,ocboogie/action-hub
app/main/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n\"use strict\";\n\nimport * as vs from \"vscode\";\nimport { config } from \"./config\";\n\nexport class DartIndentFixer {\n\tonDidChangeActiveTextEditor(editor: vs.TextEditor) {\n\t\tif (editor && editor.document.languageId === \"dart\...
typescript
edit
0
7
mit
88ba78fda736fe08429948522b823e12994f8ecb
Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code
src/dart_indent_fixer.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component } from '@angular/core';\n\n@Component({\n selector: 'app-root',\n templateUrl: './app.component.html',\n // styleUrls: ['./app.component.css']\n styles: [`h3 {color: lightseagreen;}`]\n})\nexport class AppComponen...
typescript
edit
0
0
mit
49bd1778b60e5331a744588b6548856f98f5e651
topvova/angular-app,topvova/angular-app,topvova/angular-app
src/app/app.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nmodule LayersDirective {\n export interface ILayersDirectiveScope extends ng.IScope {\n vm: LayersDirectiveCtrl;\n }\n\n export class LayersDirectiveCtrl {\n private scope: ILayersDirectiveScope;\n\n // $i...
typescript
edit
0
4
mit
e204d51c3a76559d93e99c1f2e2bd9a4a0cb328f
rinzeb/csWeb,mkuzak/csWeb,c-martinez/csWeb,indodutch/csWeb,c-martinez/csWeb,c-martinez/csWeb,mkuzak/csWeb,TNOCS/csWeb,TNOCS/csWeb,Maartenvm/csWeb,Maartenvm/csWeb,rinzeb/csWeb,TNOCS/csWeb,rinzeb/csWeb,indodutch/csWeb,mkuzak/csWeb,indodutch/csWeb,Maartenvm/csWeb,mkuzak/csWeb,Maartenvm/csWeb
csComp/directives/LayersList/LayersDirectiveCtrl.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as express from 'express';\nimport * as openResource from 'open';\nimport * as serveStatic from 'serve-static';\nimport * as codeChangeTool from './code_change_tools';\nimport {resolve} from 'path';\nimport {APP_BASE, DOCS_DEST...
typescript
edit
0
1
mit
1e02cd5c638337697d2e28ce75526c050939351a
osulp/oe-ng2-seed,arun-awnics/mesomeds-ng2,idrabenia/angular2-crud,nickaranz/robinhood-ui,jigarpt/angular-seed-semi,idready/Bloody-Prophety-NG2,AnnaCasper/finance-tool,DallasAngularSuperHeroes/dash-ng2,Aurimas-Norkus/angular2-seed-arch,nlopezcenteno/angular2-seed,booleanVirus/POC,mraible/angular2-tutorial,natarajanmca1...
tools/utils/seed/server.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { JournalComponent } from './journal.component';\nimport { AnalysisService } from '../analysis/service/analysis.service';\nimport {DateChooserService} from '../shared/date-chooser.service';\n\ndescribe('JournalComponent', () => {...
typescript
edit
0
1
mit
cf55a5d2f904588f205ac012e57142d800873966
stefanamport/nuba,stefanamport/nuba,stefanamport/nuba
src/app/journal/journal.component.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { GameJoinFormComponent } from './game-join-form.component';\nimport {TestComponentBuilder,\n addProviders,\n inject,\n async,\n ComponentFixture} from '@angular/core/testing';\nimport { Router } from '@angular/router';\n\ncl...
typescript
edit
0
1
mit
1e8f0e281c9d3762e3e22a555496b418605160b7
s-robertson/things-angular,s-robertson/things-angular,s-robertson/things-angular,s-robertson/things-angular
src/app/game/join-form/game-join-form.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n///<reference path=\"runnerbase.ts\" />\r\n///<reference path=\"compiler/runner.ts\" />\r\n///<reference path=\"fourslash/fsrunner.ts\" />\r\n///<reference path=\"projects/runner.ts\" />\r\n///<reference path=\"unittest/unittestrunner.t...
typescript
edit
0
6
apache-2.0
be2513b266e5bdeddb384d975eac98f5e3135d0a
fdecampredon/jsx-typescript-old-version,popravich/typescript,tarruda/typescript,guidobouman/typescript,mbebenita/shumway.ts,mbrowne/typescript-dci,mbrowne/typescript-dci,mbebenita/shumway.ts,popravich/typescript,popravich/typescript,mbrowne/typescript-dci,hippich/typescript,rbirkby/typescript,vcsjones/typescript,fdecam...
tests/runners/runnerfactory.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { GitHub } from \"danger/distribution/platforms/GitHub\"\nimport { Platform } from \"danger/distribution/platforms/platform\"\nimport { dsl } from \"./danger_run\"\n\nconst getPerilPlatformForDSL = (type: dsl, github: GitHub | nu...
typescript
edit
0
7
mit
c2cc79fab0d07597e835dc6399d44596ce4021bf
danger/peril,danger/peril,danger/peril,danger/peril,danger/peril
source/danger/peril_platform.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 { EmotionToColorPipe } from './emotion-to-color.pipe';\n\ndescribe('EmotionToColorPipe', () => {\n it('create an instance', () =...
typescript
edit
0
1
apache-2.0
c230e8d2d6f700ad205acebaf82dc8adba4f0c35
shioyang/EmotionalReader,shioyang/EmotionalReader,shioyang/EmotionalReader
ERClient/src/app/emotion-to-color.pipe.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react'\nimport * as PropTypes from 'prop-types'\n\nimport {\n RenderingTarget,\n} from '../../../../main'\n\nexport type Props = {\n target: RenderingTarget,\n}\n\nexport default class Layer extends React.Compo...
typescript
edit
null
null
mit
3c7d782b133699e0c57689ce4f98712ada228619
CJ-Johnson/Bullseye,CJ-Johnson/Bullseye
src/main/components/composable/Layer/index.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {of} from 'rxjs'\nimport {useObservable} from '../util/useObservable'\nimport {useUserColorManager} from './provider'\nimport {UserColor} from './types'\nimport React from 'react'\n\nexport function useUserColor(userId: string | ...
typescript
edit
0
2
mit
e0ebe44331b3c52f69081fc4af9045fce9941a87
sanity-io/sanity,sanity-io/sanity,sanity-io/sanity,sanity-io/sanity
packages/@sanity/base/src/user-color/useUserColor.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * @module core\n */\n/** */\nimport {LogLevel} from \"./LogLevel\";\n\nexport class LogEvent {\n /**\n * Models a logging event.\n * @constructor\n * @param {String} _categoryName name of category\n * @param {LogLevel} _l...
typescript
edit
0
4
mit
af0fa718d38ea2ae4e4a11d3bc1de848a4de8161
Romakita/ts-log-debug,Romakita/ts-log-debug
src/core/LogEvent.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Hit, Requester } from '../types';\r\nimport { generateBadges } from './badges';\r\nimport { truncate } from './formatting';\r\n\r\ntype ExceptionStatus = 'neutral' | 'warning' | 'critical';\r\nexport interface ExceptionDescript...
typescript
edit
0
2
mit
95b8da21e35669f8caa0e7e8598af2502d924804
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
src/utils/hitItem.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * Several static helper functions for calculations.\n */\nexport class Calc {\n\n public static maxIntegerValue = Math.pow(2, 31);\n\n public static partPercentage = (part: number, total: number) => (part / total) * 100;\n ...
typescript
edit
0
1
mit
e408506aa89f84e922c33e207eec8499d96609ce
Ionaru/EVE-Track,Ionaru/EVE-Track,Ionaru/EVE-Track
client/src/shared/calc.helper.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Validate } from './validate';\n\nexport interface IContentOptions {\n trimWhiteSpace: boolean;\n preserveIndentation: boolean;\n replaceNewLines: false | string;\n}\n\nexport interface IContentExtractorOptions {\n c...
typescript
edit
0
5
mit
c86f8024f9e43e90bf034ab0e4eb9babe32f603f
lukasgeiter/gettext-extractor,lukasgeiter/gettext-extractor,lukasgeiter/gettext-extractor
src/utils/content.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport MakiObject from \"./MakiObject\";\nimport { unimplementedWarning } from \"../utils\";\n\nclass Wac extends MakiObject {\n /**\n * getclassname()\n *\n * Returns the class name for the object.\n * @ret The class name.\n ...
typescript
edit
0
1
mit
3d0031c023f055fdb439d9033a053935f8698611
captbaritone/winamp2-js,captbaritone/winamp2-js,captbaritone/winamp2-js
modern/src/runtime/Wac.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport path from 'path';\nimport options from '../utils/commandOptions';\n\n/**\n * 该文件还会在客户端环境执行, 用结构赋值的方式会取不到值\n * 因为客户端是基于文本匹配替换的值\n */\n// eslint-disable-next-line prefer-destructuring\nconst env = process.env;\n\nfunction getFirstN...
typescript
edit
0
3
mit
cd2e0926f9de77fe8ef714de341a71521e51fe02
yinxin630/fiora,yinxin630/fiora,yinxin630/fiora
config/webpack.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Observable} from 'rxjs';\n\nexport interface SyncProcess {\n\n url: string;\n cancel(): void;\n observe: Observable<any>;\n}\n\nexport enum SyncStatus {\n Offline = \"OFFLINE\",\n Unknown = \"UNKNOWN\",\n Pushi...
typescript
edit
0
0
apache-2.0
81177b7c75672f81d74433438cfd3f04ad47d60b
codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client
app/core/datastore/pouchdb/sync-process.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Canvas, Packets, ILayer } from \"src/module\";\nimport {\n Protocol,\n IRendererEvents,\n ConnectionStatus,\n IEditorEvents\n} from \"src/protocol\";\n\ndeclare module \"mathjax\";\n\nexport {\n Canvas,\n Packets,\n Prot...
typescript
edit
0
0
mit
900a086dea0f4b508b42b9d3e30c46f59bbff174
penrose/penrose,penrose/penrose,penrose/penrose,penrose/penrose
react-renderer/index.d.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport debug from 'debug';\n\nconst d = debug('electron-forge:electron-version');\n\nconst electronPackageNames = [\n 'electron-prebuilt-compile',\n 'electron-prebuilt',\n 'electron-nightly',\n 'electron',\n];\n\nfunction findElectr...
typescript
edit
0
3
mit
1709af0bc53bd962466dd2025672b95f2e9399cc
electron-userland/electron-forge,electron-userland/electron-forge,electron-userland/electron-forge,electron-userland/electron-forge
packages/api/core/src/util/electron-version.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Params } from '@angular/router';\nimport { cloneDeep, pick } from 'lodash';\nimport { DateRangeType } from './date-range-type.model';\n\nexport class FilterCriteria {\n fromDate: string; //iso\n toDate: string; //iso\n ascen...
typescript
edit
0
4
mit
0faa1ca0954b4c5250c06143ba49815134a61b46
davewragg/agot-spa,davewragg/agot-spa,davewragg/agot-spa
src/client/app/shared/models/filter-criteria.model.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport 'angular2-universal-polyfills/browser';\nimport { enableProdMode } from '@angular/core';\nimport { platformUniversalDynamic } from 'angular2-universal';\nimport { AppModule } from './app/app.module';\n\n// Include styles in the b...
typescript
edit
0
1
apache-2.0
cd18489f005e4eeed52699fcc772b5d0b94b180b
aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore
templates/Angular2Spa/ClientApp/boot-client.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { PlayerAPI, PlayerEvent, PlayerEventBase, PlayerEventCallback } from 'bitmovin-player';\nimport { WrappedPlayer } from './uimanager';\n\nexport enum MobileV3PlayerEvent {\n SourceError = 'sourceerror',\n PlayerError = 'playere...
typescript
edit
0
4
mit
2eadf4f82fe442c5f01c855dd66df7eaac698297
bitmovin/bitmovin-player-ui,bitmovin/bitmovin-player-ui,bitmovin/bitmovin-player-ui,bitmovin/bitmovin-player-ui
src/ts/mobilev3playerapi.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nif (window.self !== window.top) {\n window.addEventListener('message', (e) => {\n if (e.data === '_tcfdt_subdoc_std') {\n browser.runtime.sendMessage({request: 'stdFg'});\n (window as any).tcfdtFrameFixed = true;\n }\n ...
typescript
edit
0
2
mit
6eb078e045983cf1f5d5a1d9f71cca06b541de5b
DmitriK/darkContrast,DmitriK/darkContrast,DmitriK/darkContrast
src/frameListener.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { TipState, Tip } from '../models/tip'\n\nexport function getTipSha(tip: Tip) {\n if (tip.kind === TipState.Valid) {\n return tip.branch.tip.sha\n }\n\n if (tip.kind === TipState.Detached) {\n return tip.currentSha\n ...
typescript
edit
0
3
mit
dabbab507a56a7642688af51af8183171fda1f7f
j-f1/forked-desktop,shiftkey/desktop,desktop/desktop,desktop/desktop,desktop/desktop,j-f1/forked-desktop,say25/desktop,artivilla/desktop,shiftkey/desktop,artivilla/desktop,artivilla/desktop,artivilla/desktop,j-f1/forked-desktop,kactus-io/kactus,j-f1/forked-desktop,kactus-io/kactus,say25/desktop,kactus-io/kactus,shiftke...
app/src/lib/tip.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as path from \"path\";\nimport * as webpack from \"webpack\";\n\n// disable tslint rule, because we don't have types for these files\n/* tslint:disable:no-var-requires */\nconst ConcatSource = require(\"webpack-sources\").Conca...
typescript
edit
0
3
unlicense
53cd29bd4019fde67a9a28fb416b18f3717f2a5f
tinnvec/aints,tinnvec/aints
libs/screeps-webpack-sources.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as cookie from \"cookie\";\nimport * as http from \"http\";\nimport * as orm from \"typeorm\";\nimport * as redis from \"redis\";\nimport * as eta from \"../eta\";\nimport Application from \"../server/Application\";\n\nexport d...
typescript
edit
0
3
mit
4aae02a7460b6c49025b4683bbc511f7f29bc1f1
crossroads-education/eta,crossroads-education/eta
helpers/session.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { reducerWithInitialState } from 'typescript-fsa-reducers';\n\nimport { dicitActions } from '../actions';\nimport { Quote } from '../states/QuoteState';\n\nexport interface DicitState {\n quote: Quote;\n}\n\nconst initialState: ...
typescript
edit
0
3
mit
6b8c3f28a2c372908c530a354b2d04006ecc8eb7
saiidalhalawi/dicit,saiidalhalawi/dicit,saiidalhalawi/dicit
src/reducers/quotes.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from \"react\";\n\ninterface Coord {\n x: number;\n y: number;\n}\n\ninterface Props extends React.HTMLAttributes<HTMLDivElement> {\n handleDrop(e: React.DragEvent<HTMLDivElement>, coord: Coord): void;\n}\n\nexport defau...
typescript
edit
null
null
mit
b074e0eff35ac8b1b34efa902681aa19ba2b8629
captbaritone/winamp2-js,captbaritone/winamp2-js,captbaritone/winamp2-js
js/components/DropTarget.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nmodule Abalone {\n\texport enum Player {White, Black}\n\texport function next(p: Player) {\n\t\treturn (p === Player.White) ? Player.Black : Player.White;\n\t}\n\n\texport function player2str(p: Player): string {\n\t\treturn p === Playe...
typescript
edit
0
4
mit
4e75ff21cdb979d063e0f48ef341af4ca62de07e
danmane/abalone,danmane/abalone,danmane/abalone,danmane/abalone,danmane/abalone,danmane/abalone
frontend/src/ts/abalone/player.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as localforage from 'localforage';\r\n\r\nexport const persistedStateToJsonString = async () => {\r\n try {\r\n const localForageKeys: string[] = await localforage.keys();\r\n const stringArray = await Promise.all(\r\n ...
typescript
edit
0
2
mit
d8519b2963e5616c7762f985914d799044ca0ab0
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
src/utils/backup.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport BigCalendar, { BigCalendarProps, Event, stringOrDate } from '../../index';\nimport React = require('react');\n\ninterface withDragAndDropProps<TEvent> {\n onEventDrop?: (args: { event: TEvent, start: stringOrDate, end: stringOrD...
typescript
edit
0
0
mit
0d413bd7372143b40dd463e8856b950b2f2e5af9
georgemarshall/DefinitelyTyped,borisyankov/DefinitelyTyped,mcliment/DefinitelyTyped,dsebastien/DefinitelyTyped,georgemarshall/DefinitelyTyped,markogresak/DefinitelyTyped,dsebastien/DefinitelyTyped,georgemarshall/DefinitelyTyped,georgemarshall/DefinitelyTyped,borisyankov/DefinitelyTyped
types/react-big-calendar/lib/addons/dragAndDrop.d.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { NgModule } from '@angular/core';\nimport { BrowserModule } from '@angular/platform-browser';\nimport { HttpModule } from '@angular/http';\nimport { FormsModule } from '@angular/forms';\n\nimport { AppComponent } from './app.co...
typescript
edit
0
0
mit
ebd4955b038ae6a4fa235ec49206948ebd0d9a26
ivanna-ostrovets/language-and-literature-admin,ivanna-ostrovets/language-and-literature-admin,ivanna-ostrovets/language-and-literature-admin
src/app/app.module.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react'\nimport { DialogContent } from '../dialog'\nimport { Checkbox, CheckboxValue } from '../lib/checkbox'\nimport { LinkButton } from '../lib/link-button'\n\ninterface IAdvancedPreferencesProps {\n readonly i...
typescript
edit
null
null
mit
b440c2f32f12978bf9ec8a94822aff487579460f
kactus-io/kactus,j-f1/forked-desktop,gengjiawen/desktop,desktop/desktop,desktop/desktop,desktop/desktop,hjobrien/desktop,kactus-io/kactus,artivilla/desktop,say25/desktop,BugTesterTest/desktops,artivilla/desktop,say25/desktop,gengjiawen/desktop,kactus-io/kactus,j-f1/forked-desktop,kactus-io/kactus,gengjiawen/desktop,shi...
app/src/ui/preferences/advanced.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nconst _ = require('underscore');\nrequire('underscore-keypath');\nconst seedrandom = require('seedrandom');\n\nimport { State } from './state'\n\nvar seed: string|number|undefined;\nvar rng = seedrandom();\n\nexport default function key...
typescript
edit
0
9
mit
d5b891d71c74a8941830aa1f767926989ee1bba8
lazerwalker/storyboard,lazerwalker/storyboard,lazerwalker/storyboard
src/keyPathify.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { NgModule } from '@angular/core';\nimport { BrowserModule } from '@angular/platform-browser';\nimport { FormsModule } from '@angular/forms';\n\nimport { routing, appRoutingProviders } from './app.routing';\n\nimport { Ng2Bootstr...
typescript
edit
0
0
mit
f5d3521d36919a7428f33e616d0b583c0cf8008c
XiTickets/Frontend,XiTickets/Frontend
src/app/app.module.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Component, OnInit} from '@angular/core';\nimport {HTTP_PROVIDERS} from '@angular/http';\n\nimport {OptimizerDataService} from './optimizer-data.service';\nimport {InputComponent} from './input/input.component';\nimport {Barchart...
typescript
edit
0
1
mit
f2eda6950a6dacf3615a198954ebdba411780a47
coshx/portfolio_optimizer,coshx/portfolio_optimizer,coshx/portfolio_optimizer,coshx/portfolio_optimizer
src/app/optimizer/optimizer.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport VaIcon from './components/va-icon'\nimport VaToast from './components/va-toast'\nimport VaButton from './components/va-button'\nimport iconsConfig from './icons-config/icons-config'\nimport { COLOR_THEMES } from './themes'\n\nexp...
typescript
edit
0
0
mit
4edb58841c53e454302174aaf4f5d7eedeca2390
epicmaxco/vuestic-admin,epicmaxco/vuestic-admin,epicmaxco/vuestic-admin,epicmaxco/vuestic-admin
src/services/vuestic-ui/global-config.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport enum LogType {\n OpenGroup,\n Line,\n CloseGroup\n}\n\nexport interface ILogViewModel {\n logType: LogType;\n logTime: string;\n text: string;\n tags: string;\n sourceFileName: string;\n lineNumber: str...
typescript
edit
0
0
mit
eb74e49155dcd55b2203b7a5f03cd6a4ccf03294
ZooPin/CK-Glouton,ZooPin/CK-Glouton,ZooPin/CK-Glouton,ZooPin/CK-Glouton
src/CK.Glouton.Web/app/src/app/common/logs/models/log.model.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { router } from '@vue-storefront/core/app'\nimport VueRouter, { RouteConfig } from 'vue-router'\n\nconst RouterManager = {\n _registeredRoutes: new Array<RouteConfig>(),\n addRoutes: function (routes: RouteConfig[], routerInsta...
typescript
edit
0
2
mit
bc8303b43a8948a02b387dfb0218466ae8ddc62a
pkarw/vue-storefront,pkarw/vue-storefront,DivanteLtd/vue-storefront,pkarw/vue-storefront,DivanteLtd/vue-storefront,DivanteLtd/vue-storefront,pkarw/vue-storefront,DivanteLtd/vue-storefront
core/lib/router-manager.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {expandHistoricalDirectory} from \"../../shell/Command\";\nimport {styles, Suggestion, directoriesSuggestionsProvider} from \"./Common\";\nimport * as _ from \"lodash\";\nimport {PluginManager} from \"../../PluginManager\";\n\nPl...
typescript
edit
0
3
mit
fdd58d8e96beea4bd8005159e77f28cb79bad06b
black-screen/black-screen,vshatskyi/black-screen,drew-gross/black-screen,black-screen/black-screen,drew-gross/black-screen,vshatskyi/black-screen,shockone/black-screen,railsware/upterm,j-allard/black-screen,vshatskyi/black-screen,vshatskyi/black-screen,black-screen/black-screen,j-allard/black-screen,drew-gross/black-sc...
src/plugins/autocompletion_providers/Cd.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
3
apache-2.0
99f92ae44ebf0d70ceaedd596f1b7746fde2a8db
GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit
tools/node_tools/node_modules_licenses/utils.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Request, Response } from \"express\";\nimport * as admin from \"firebase-admin\";\nimport * as msgpack from \"msgpack-lite\";\nimport nanoid = require(\"nanoid\");\nimport { parse } from \"url\";\n\nimport { convertUrlIntoArtic...
typescript
edit
0
4
mit
758c77896f335848fb609a907033f13bf2431b67
raviqqe/code2d,raviqqe/code2d,raviqqe/code2d,raviqqe/code2d
functions/src/add-item.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\n\nimport { WeatherLocationData } from '../../model/WeatherLocationData';\n\ninterface MonitoringItemProps {\n weatherData: WeatherLocationData;\n}\nclass MonitoringItem extends React.Component<Monitorin...
typescript
edit
null
null
mit
0f2668550c47ed2c06d28aee341786e5d6eec681
PatrickShaw/weather-app,PatrickShaw/weather-app,PatrickShaw/weather-app
Assignment_2/src/frontend/components/MonitoringItem.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Grommet } from 'grommet';\nimport merge from 'lodash/merge';\nimport * as React from 'react';\nimport styled from 'styled-components';\nimport { DefaultProps, Theme } from '../../common-types';\nimport defaultTheme from '../../...
typescript
edit
null
null
mit
8557031a2533107cecf44b64678fcc1a4ff69d24
resin-io-modules/resin-components,resin-io-modules/resin-components,resin-io-modules/resin-components
src/components/Provider/index.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { NextPage } from \"next\"\nimport Page from \"../../layouts/main\"\nimport postPreviewsLoader from \"../../data/loaders/PostPreviewsLoader\"\nimport EntryPreviews from \"../../components/EntryPreviews\"\nimport Head from \"next/...
typescript
edit
null
null
mit
c738588ae69ec069ee9af0cc5c9f0a9e374d61c4
JosephDuffy/josephduffy.co.uk,JosephDuffy/josephduffy.co.uk,JosephDuffy/josephduffy.co.uk
pages/posts/index.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport fs from './fs';\nimport { Controller, Events } from './controller';\nimport { ControllerWrapper } from './controller-wrapper';\nimport { Manifest } from './data';\n\nexport abstract class SelfUpdater {\n\tstatic async attach(mani...
typescript
edit
0
2
mit
36adda016fb05ca2f5a456b506b951df803d7fe4
gamejolt/client-voodoo,gamejolt/client-voodoo
src/selfupdater.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from \"react\";\n\ninterface CakeInputState {\n value: string;\n}\n\nclass CakeInput extends React.Component<any, CakeInputState> {\n constructor(props: React.Props<any>) {\n super(props);\n\n // Re...
typescript
edit
null
null
mit
e6958ac8fddb3f6433e2157a27534fec3f5dd308
mieky/we-love-cake,mieky/we-love-cake
app/CakeInput.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport 'core-js/stable';\nimport 'regenerator-runtime/runtime';\n\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport { Provider } from 'react-redux';\n\nimport store from './redux/store';\nimport App from './componen...
typescript
edit
null
null
mit
642afe3746496a4195f5d9cb7a666f1b135c2ba2
benct/tomlin-web,benct/tomlin-web
app/scripts/index.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nnamespace MyApp.Services {\n export interface IData {\n value: string;\n }\n\n export class NameSvc {\n static $inject = [\"$q\", \"WAIT\"];\n constructor(private $q: angular.IQService, private wait: number...
typescript
edit
0
2
mit
62210337b3d036875c06bab66c36f745f86c2085
dmorosinotto/MVC_NG_TS,dmorosinotto/MVC_NG_TS
MvcNG/Views/ngApp/myapp/services/NameSvc.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport path from 'path';\nimport { downloadFolder } from './constants';\nimport { setDbLocation } from './db/maxmind/db-helper';\nimport { downloadDB } from './file-fetch-extract';\n\nconst main = async (): Promise<void> => {\n const d...
typescript
edit
0
2
mit
fb6091893fb2b902528351d7084adfb4cd7f4eb4
guyellis/ipapi,guyellis/ipapi,guyellis/ipapi
lib/download-db.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {PreDestroy, Bean, Qualifier, Autowired, PostConstruct, Optional, Context} from \"./context/context\";\n\nconst themes = [ 'fresh', 'dark', 'blue', 'bootstrap', 'material-next', 'material'];\nconst themeCLass = new RegExp(`ag-(${...
typescript
edit
0
2
mit
7d7104e8efcf4d04b01e48a59773f4802caa1785
ceolter/ag-grid,seanlandsman/ag-grid,seanlandsman/ag-grid,ceolter/angular-grid,killyosaur/ag-grid,killyosaur/ag-grid,seanlandsman/ag-grid,ceolter/ag-grid,ceolter/angular-grid,killyosaur/ag-grid
src/ts/environment.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/// <reference path=\"../References.d.ts\"/>\nexport const LOADING = Symbol('item.loading');\nexport const LOAD = Symbol('item.load');\nexport const CREATE = Symbol('item.create');\nexport const REMOVE = Symbol('item.remove');\nexport c...
typescript
edit
0
0
mit
382d091f82b70ce3a0236ff0ee12ccb8e8887b67
zachhuff386/react-boilerplate,zachhuff386/react-boilerplate
app/types/ItemTypes.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport interface Props {\n [key: string]: any;\n}\n\nexport function exclude(props: Props): Props {\n const result = { ...props };\n\n delete result.inline;\n delete result.alignContent;\n delete result.alignItems;\n delete result...
typescript
edit
0
1
mit
b66b5dc97be7c63c60d4a1e78120976d5fec1166
vlazh/reflexy,vlazh/reflexy
lib/src/Flex/utils.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from \"react\";\nimport * as PropTypes from \"prop-types\";\n\nimport { BaseButton } from \"./BaseButton\";\nimport { ButtonDefaultProps, ButtonProps, ButtonPropTypes } from \"./ButtonProps\";\n\nexport class Button ex...
typescript
edit
null
null
mit
1f10ca68e6388c71c834e662eacf185e2484adbb
Horat1us/react-context-form,Horat1us/react-context-form
src/Button/Button.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { useEffect } from \"react\";\n\nimport useToggle from \"../useToggle\";\n\n/**\n * A small hook for checking if the app is currently being interacted with\n * by a keyboard.\n *\n * @return true if the app is in keyboard mode\n ...
typescript
edit
0
2
mit
80765df64ae4f3430ce05de695593f8274a13e25
mlaursen/react-md,mlaursen/react-md,mlaursen/react-md
packages/utils/src/interaction/useKeyboardDetection.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport * as ToggleButton from 'react-bootstrap/lib/ToggleButton';\nimport * as ToggleButtonGroup from 'react-bootstrap/lib/ToggleButtonGroup';\n\nimport { translate } from '@waldur/i18n';\n\nexport const...
typescript
edit
null
null
mit
74f68a7c22ebd11a7ed45b971a28a45ab7b121f6
opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport
src/marketplace-checklist/AnswerGroup.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 Link from \"next/link\";\n\nconst ArticleTeaser = ({\n title,\n slug,\n date,\n abstract,\n variant = \"default\",\n}) => {\n const Headline = (props) => {\n if (variant === \"small\") {\n ...
typescript
edit
null
null
mit
856f2325f305466b57cd1504fda8f7e125675888
drublic/vc,drublic/vc,drublic/vc
lib/components/ArticleTeaser.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n\nimport * as rev from 'rev-models';\nimport * as api from '../index';\n\n// EXAMPLE:\n// import * as rev from 'rev-models'\n\nexport class Person {\n\n @rev.TextField({label: 'First Name'})\n first_name: string;\n @rev.Tex...
typescript
edit
0
1
mit
a23a6224a359b047886addb4ff7f3a5b7b356b1b
RevFramework/rev-framework,RevFramework/rev-framework
packages/rev-api/src/examples/01_registering_an_api.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n'use strict';\n\nexport function formatPath(contractPath: string) {\n return contractPath.replace(/\\\\/g, '/');\n}\n\n```\n\nApply this change: Remove response time bottleneck fix" }, { "role": "assistant", "content": "'...
typescript
edit
0
1
mit
3d54d68e8febab4a24d3ebfd125450b187466ff2
juanfranblanco/vscode-solidity
src/util.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
c276930cc3a40dde0cb3fae6f0c78ac5c6f3230f
GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit
polygerrit-ui/app/services/flags/flags.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from \"react\";\nimport Article = require(\"react-icons/lib/fa/file-code-o\");\nimport Book = require(\"react-icons/lib/go/book\");\nimport Todo = require(\"react-icons/lib/md/playlist-add-check\");\nimport { connect }...
typescript
edit
null
null
mit
5ef7f4b078edb14f6edfebdc8600d5a9868bc858
raviqqe/code2d,raviqqe/code2d,raviqqe/code2d,raviqqe/code2d
app/src/container/Items.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { InputHTMLAttributes, memo, FC } from 'react'\nimport { FieldPath, UseFormReturn } from 'react-hook-form'\nimport styled from 'styled-components'\nimport { colors } from '../../../../theme'\nimport { FormValues } from '../../../...
typescript
edit
null
null
mit
608ffe41e13896362f39953483a596209113b0bd
saadq/latexresu.me,saadq/latexresu.me
app/client/src/components/generator/form/inputs/Input.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Serializer } from \"./jsonobject\";\nimport { QuestionFactory } from \"./questionfactory\";\nimport { QuestionCheckboxBase } from \"./question_baseselect\";\nimport { surveyLocalization } from \"./surveyStrings\";\n\n/**\n * A ...
typescript
edit
0
2
mit
d7c2e1be8be9f2fc66607ccf76d71941998f9add
andrewtelnov/surveyjs,surveyjs/surveyjs,surveyjs/surveyjs,andrewtelnov/surveyjs,andrewtelnov/surveyjs,surveyjs/surveyjs,surveyjs/surveyjs
src/question_radiogroup.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { UtilitydeltaFrontendPage } from './app.po';\n\ndescribe('utilitydelta-frontend App', () => {\n let page: UtilitydeltaFrontendPage;\n\n beforeEach(() => {\n page = new UtilitydeltaFrontendPage();\n });\n\n it('should disp...
typescript
edit
0
1
mit
64277658afb940bc0f35ca6c988228493e8f2c1b
utilitydelta/spa-angular2-dotnet-auth,utilitydelta/spa-angular2-dotnet-auth,utilitydelta/spa-angular2-dotnet-auth,utilitydelta/spa-angular2-dotnet-auth
utilitydelta-frontend/e2e/app.e2e-spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nfunction isElement(node:any):boolean {\n return !!(node && (node.nodeName || node.prop && node.attr && node.find));\n}\n\nexport class FileLikeObject {\n public lastModifiedDate:any;\n public size:any;\n public type:string;\n publi...
typescript
edit
0
5
mit
e08f80ee747dfa22fefe2c5c76408e0f2d43e920
valor-software/ng2-file-upload,valor-software/ng2-file-upload,valor-software/ng2-file-upload
src/file-upload/file-like-object.class.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { SUSHInfo } from 'sush';\n\nexport interface TrimIdParams {\n head?: number;\n tail?: number;\n}\n\n/**\n * `SUSHPluginTrimId` trims head or tail from ID.\n */\nfunction SUSHPluginTrimId (\n { head, tail }: TrimIdParams = { h...
typescript
edit
0
1
mit
f4ee705a9ebe45f81c744bee39e5d812c0bc864c
3846masa/SUSH,3846masa/SUSH
packages/sush-plugin-trim-id/src/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from 'react'\nimport { storiesOf } from '@storybook/react'\n\nimport SidebarToggle from 'src/dashboard-refactor/header/SidebarHeader/SidebarToggle/SidebarToggle'\n\nconst stories = storiesOf('Dashboard Refactor|Header/Sideb...
typescript
edit
null
null
mit
3a92b9a07445fb536426447da7cc8289bf9f3e72
WorldBrain/WebMemex,WorldBrain/WebMemex
src/dev/stories/dashboard-refactor/header/sidebar-toggle.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { useCallback, useEffect, useState } from 'react';\nimport dayjs, { Dayjs } from 'dayjs';\n\n// Plus one to make sure rounding doesn't interfere\nconst msToMidnight = () => dayjs().add(1, 'day').startOf('date').diff(dayjs()) + 1;...
typescript
edit
0
1
apache-2.0
3ffec3d225355e86ab9f684af9706387da1f1439
ilkkao/mas,ilkkao/mas,ilkkao/mas,ilkkao/mas
new-client/src/hooks/currentDate.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react'\nimport { Component } from 'react'\n\nexport interface ColumnDef {\n /**\n * Header label for this column.\n */\n header: any\n\n /**\n * Function to read value from the source data.\n */\n fie...
typescript
edit
0
2
mit
d92fca6a018f094a7156dcb447c8ad624d67f30d
zhenwenc/rc-box,zhenwenc/rc-box,zhenwenc/rc-box
src/DataTableColumn.tsx
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport { useSelector } from 'react-redux';\nimport { formValueSelector } from 'redux-form';\n\nimport { FormContainer, SelectField, NumberField } from '@waldur/form-react';\nimport { translate } from '@w...
typescript
edit
null
null
mit
53b41e90db2c6c4bda3ff36b5d7f850359b02b97
opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport
src/openstack/OpenStackPluginOptionsForm.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/* --------------------------------------------------------------------------------------------\n * Copyright (c) Remy Suen. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license inform...
typescript
edit
0
12
mit
b56265c5d866c1b0bd9c54b7d2e79c52afbe0665
rcjsuen/dockerfile-language-server-nodejs,rcjsuen/dockerfile-language-server-nodejs
src/dockerDefinition.ts
rejected_complexity
Cyclomatic complexity too high: 12
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from 'react';\nimport { c } from 'ttag';\nimport { classnames } from '../../helpers';\nimport Title from './Title';\nimport { Button } from '../button';\nimport Icon from '../icon/Icon';\n\ninterface Props extends Omit<Reac...
typescript
edit
null
null
mit
533ca8d7168e37c205d79c6ee3fba2b661a4300b
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
packages/components/components/modal/Header.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component, OnInit, Output, EventEmitter } from '@angular/core';\n\n@Component({\n selector: 'app-modal',\n templateUrl: './modal.component.html',\n styleUrls: ['./modal.component.css']\n})\nexport class ModalComponent implem...
typescript
edit
0
2
mit
bbde568559ecb1ae9e85c5161bd1517633922af8
filoxo/an-angular-modal,filoxo/an-angular-modal,filoxo/an-angular-modal
src/app/modal/modal.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { shallow } from \"enzyme\"\nimport { Tab } from \"lib/Components/TabBar\"\nimport React from \"react\"\nimport Home from \"../index\"\n\nit(\"has the correct number of tabs\", () => {\n const wrapper = shallow(<Home tracking={n...
typescript
edit
null
null
mit
caea49bad3943d82804e68d490f9319532d2e0c6
artsy/eigen,artsy/eigen,artsy/emission,artsy/emission,artsy/eigen,artsy/emission,artsy/emission,artsy/eigen,artsy/emission,artsy/emission,artsy/eigen,artsy/eigen,artsy/eigen,artsy/emission
src/lib/Scenes/Home/__tests__/index-tests.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { WebClient } from \"../fetch\";\n\nexport class PubApi {\n\tconstructor(private readonly webClient: WebClient) {\n\t}\n\n\tpublic async getPackage(packageID: string): Promise<PubPackage> {\n\t\treturn this.get<PubPackage>(`packa...
typescript
edit
0
2
mit
0266091e4bd20475df5d335479c249f20ef24cc6
Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code
src/shared/pub/api.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as vscode from 'vscode';\n\nconst lodashSortBy = require('lodash.sortby');\n\nexport const COMMAND_LABELS = {\n '1toX': '1toX'\n};\n\nexport function runCommand (command: string) {\n const editor = vscode.window.activeTex...
typescript
edit
0
2
mit
188740715a699c25651a74f3ce090aa130127680
jkjustjoshing/vscode-text-pastry
src/commands.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n\nmodule Jmx {\n export function MBeansController($scope, $location: ng.ILocationService, workspace: Workspace) {\n\n $scope.$on(\"$routeChangeSuccess\", function (event, current, previous) {\n // lets do this asynchronously to...
typescript
edit
0
1
apache-2.0
b096544f4dc5e98e2667e91182691feb0bdeddf4
jfbreault/hawtio,samkeeleyong/hawtio,tadayosi/hawtio,andytaylor/hawtio,jfbreault/hawtio,mposolda/hawtio,Fatze/hawtio,mposolda/hawtio,jfbreault/hawtio,telefunken/hawtio,stalet/hawtio,fortyrunner/hawtio,uguy/hawtio,rajdavies/hawtio,telefunken/hawtio,mposolda/hawtio,andytaylor/hawtio,samkeeleyong/hawtio,stalet/hawtio,skar...
hawtio-web/src/main/webapp/app/jmx/js/mbeans.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\n\nimport { ListCell } from '@waldur/marketplace/common/ListCell';\nimport { Section, Product } from '@waldur/marketplace/types';\n\ninterface FeatureSectionProps {\n section: Section;\n product: Produc...
typescript
edit
null
null
mit
1894b03f4775f0d1b99510bd9af4afabb7a21c52
opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport
app/scripts/components/marketplace/details/FeatureSection.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport createWorkerFarm = require('worker-farm');\n\ntype WorkerType = (\n moduleName: string,\n methodName: string,\n args: any[],\n callback: (err: any, result?: any) => void,\n) => void;\nconst workers: WorkerType = createWorkerF...
typescript
edit
0
2
mit
e42e6c7b8347687b9582acd20adc5dc9f787696e
mopedjs/moped,mopedjs/moped,mopedjs/moped
packages/scripts/src/helpers/worker-farm/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport default class HelperString {\n public static toCamelCase(str: string): string {\n return str[0].toLowerCase() + str.substring(1);\n }\n}\n\n```\n\nApply this change: Fix a bug in HelperString.toCamelCase()" }, { ...
typescript
edit
0
3
mit
21334d9eb3648b85cf9bf36f5e502a394e6cf957
crossroads-education/eta,crossroads-education/eta
helpers/string.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { DAYS_IN_WEEK } from './dates';\r\n\r\nexport const APPLICATION_TITLE = 'Mturk Engine';\r\nexport const MTURK_URL_ENCODING_FORMAT = 'RFC1738';\r\n\r\nexport const SQUARE_SIZE = 10;\r\nexport const MONTH_LABEL_GUTTER_SIZE = 4;\r\...
typescript
edit
0
0
mit
737abbfa822843e1a15e6bec8cb00d94fbab5041
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
src/constants/misc.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Response } from \"request\";\nimport { ApiResponse } from \"./types\";\n\nexport function resolveHttpError(response, message): Error | undefined {\n if (response.statusCode < 400) {\n return;\n }\n\n message = message ? m...
typescript
edit
0
3
mit
0abf7d1f00d95547494dc1eba564aa27f91d9ac3
itsananderson/kudu-api,itsananderson/kudu-api
lib/utils.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nfunction wrap<TResult>(\n original: (...args: any[]) => TResult,\n) {\n return (\n message: string,\n callback: (\n resolve: (result?: any) => void,\n reject: (reason?: any) => void,\n ) => any,\n timeout?: numbe...
typescript
edit
0
2
mit
458960673148b70051315a4c0e73f9f22d749e2d
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\nconst group = (pattern: string) => `(?:${pattern})`\n\nconst optional = (pattern: string) => group(pattern) + '?'\n\nconst all = (pattern: string) => group(pattern) + '*'\n\nconst atLeast = (count: number, pattern: string) => group(patt...
typescript
edit
0
1
mit
b0654c3018a0beb0c139aac98384f77a6e456aa6
start/up,start/up
src/Parsing/Outline/Patterns.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n\nimport { expect } from 'chai';\nimport { spy } from 'sinon';\n\nimport { Selection } from '../../../lib/phosphor/currentselection'\n\ndescribe('Selection with items', function() {\n let selection;\n let subscriber; // subscribe ...
typescript
edit
0
1
bsd-3-clause
f481d54fb3dfe7e00926ca0be287b89f34c5eef2
SylvainCorlay/ipywidgets,jupyter-widgets/ipywidgets,SylvainCorlay/ipywidgets,ipython/ipywidgets,ipython/ipywidgets,SylvainCorlay/ipywidgets,ipython/ipywidgets,SylvainCorlay/ipywidgets,jupyter-widgets/ipywidgets,ipython/ipywidgets,jupyter-widgets/ipywidgets,jupyter-widgets/ipywidgets,ipython/ipywidgets
packages/controls/test/src/phosphor/currentselection_test.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/// <reference path=\"_references.ts\" />\n\nmodule Calculator.Orbital {\n 'use strict';\n\n export function period(sma: number, stdGravParam: number): number {\n return 2 * Math.PI * Math.sqrt(Math.pow(sma, 3) / stdGravPa...
typescript
edit
0
1
mit
ec598768e6f50204f726a073c0d324a59bfcb1f5
ryohpops/kspRemoteTechPlanner,ryohpops/kspRemoteTechPlanner,ryohpops/kspRemoteTechPlanner
kspRemoteTechPlanner/calculator/orbital.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {IViewerOptions} from \"../Viewer\";\nimport {ParameterMapillaryError} from \"../Error\";\n\nexport class OptionsParser {\n public parseAndDefaultOptions(options: IViewerOptions): IViewerOptions {\n if (options === unde...
typescript
edit
0
9
mit
9acd35f167b3249f3979f0ca9e0aa99d631f083c
mapillary/mapillary-js,mapillary/mapillary-js
src/viewer/OptionsParser.ts
accepted
null
true