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/// <reference path=\"../calculatorreferences.ts\" />\n\nmodule Calculator {\n\n export class OrbitalService {\n 'use strict';\n\n period(sma: number, stdGravParam: number): number {\n return 2 * Math.PI * M...
typescript
edit
0
1
mit
f98fd8d5858a05d88ff2c930d9a782feabb04f08
ryohpops/kspRemoteTechPlanner,ryohpops/kspRemoteTechPlanner,ryohpops/kspRemoteTechPlanner
kspRemoteTechPlanner/calculator/services/orbitalService.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\ndeclare function sscDingus(el: any);\n\ndocument.addEventListener(\"DOMContentLoaded\", function () {\n var base = document.querySelector('.sscdingus');\n sscDingus(base);\n});\n\n```\n\nApply this change: Use \"stealth mode\" options...
typescript
edit
0
1
mit
4e8588b59dc1d5a61fdf7076b3c9968f2826369f
guoyiteng/braid,cucapra/braid,guoyiteng/braid,guoyiteng/braid,cucapra/braid,cucapra/braid,cucapra/braid,guoyiteng/braid,cucapra/braid,cucapra/braid,guoyiteng/braid,guoyiteng/braid
site/main.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport styled from \"@emotion/styled\"\nimport * as React from \"react\"\nimport { contentWidthColumn, headerWidth, mq } from \"../../utils/styles\"\nimport { Link } from \"../Link\"\n\ninterface FooterProps {\n fullname: string | null...
typescript
edit
null
null
mit
5310bffd493cda4fb6d911c2ab05152f4a2f9f21
jbhannah/jbhannah.net,jbhannah/jbhannah.net
src/components/Footer/index.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { ModuleWithProviders } from '@angular/core';\nimport { SocketIoConfig } from './config/socket-io.config';\nimport { WrappedSocket } from './socket-io.service';\n\n/** Socket factory */\nexport function SocketFactory(config: Sock...
typescript
edit
0
1
mit
45f867862871588f217d1fc856e2bd9949dbc255
rodgc/ngx-socket-io,rodgc/ngx-socket-io
src/socket-io.module.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for ...
typescript
edit
0
4
mit
fd8b68457b51e7ad8fa0a3f2698e673c3de95bce
Krzysztof-Cieslak/vscode,microsoft/vscode,microsoft/vscode,Krzysztof-Cieslak/vscode,Microsoft/vscode,Krzysztof-Cieslak/vscode,Microsoft/vscode,Microsoft/vscode,Microsoft/vscode,eamodio/vscode,Microsoft/vscode,eamodio/vscode,eamodio/vscode,Krzysztof-Cieslak/vscode,eamodio/vscode,Krzysztof-Cieslak/vscode,eamodio/vscode,m...
src/vs/workbench/electron-sandbox/loaderCyclicChecker.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport axios from 'axios';\r\nimport { API_URL } from '../constants';\r\n\r\nexport type HitReturnStatus = 'repeat' | 'success' | 'error';\r\n\r\nexport const sendReturnHitRequest = async (hitId: string) => {\r\n try {\r\n const res...
typescript
edit
0
4
mit
e5013a5ef9b1a80f249a616ac77408fc39423381
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
src/api/returnHit.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/* Copyright 2019 Google LLC. All Rights Reserved.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n ht...
typescript
edit
0
2
apache-2.0
1caad3d14b1c5a7e55f46bf445bb1d2f398ba6ae
PAIR-code/cococo,PAIR-code/cococo,PAIR-code/cococo
src/core/feature-flags.ts
rejected_duplicate
Near-duplicate of sample 113938
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n\nimport {TypedEventListener} from \"../EventHandling/TypedEventListener\";\nimport {ProjectionStorage} from \"./Storage/ProjectionStorage\";\nimport {Projection} from \"./Projection\";\n\nexport abstract class Projections<T extends Pro...
typescript
edit
0
1
mit
4540a63139e25a6694f5490fa95db5bb9a090857
martyn82/aphajs
src/main/Apha/Projections/Projections.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport { colorizeMessage, escapeHtml } from './util';\nimport { ConfigContext } from './index';\n\ninterface GoalProps {\n goalState: string;\n}\n\nexport function Goal(props: GoalProps): JSX.Element ...
typescript
edit
null
null
apache-2.0
832fdaec3af4b3ce30c6bb1167be6ae7ff12586f
leanprover/vscode-lean,leanprover/vscode-lean,leanprover/vscode-lean
infoview/goal.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// The file contents for the current environment will overwrite these during build.\n// The build system defaults to the dev environment which uses `environment.ts`, but if you do\n// `ng build --env=prod` then `environment.prod.ts` wil...
typescript
edit
0
0
mit
24589fc023eab759db4a8f6b4746482de1f04cf2
lentz/buddyduel,lentz/buddyduel,lentz/buddyduel
src/environments/environment.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/// <reference path=\"either.ts\" />\n/// <reference path=\"maybe.ts\" />\n/// <reference path=\"writer.ts\" />\n\n// Node module declaration taken from node.d.ts\ndeclare var module: {\n exports: any;\n require(id: string): any;\...
typescript
edit
0
3
mit
f23f14d6fc4603a7329a99c8b3f5d22004dde110
mwiencek/TsMonad,mwiencek/TsMonad,mwiencek/TsMonad,cbowdon/TsMonad,cbowdon/TsMonad
tsmonad.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as gulp from 'gulp';\nimport * as changedInPlace from 'gulp-changed-in-place';\nimport * as sourcemaps from 'gulp-sourcemaps';\nimport * as less from 'gulp-less';\nimport * as plumber from 'gulp-plumber';\nimport * as notify fr...
typescript
edit
0
1
mit
a0f274a0d94172de81915892df127390fb344bbd
DrSammyD/cli,ghidello/cli,ghidello/cli,aurelia/cli,DrSammyD/cli,ghidello/cli,zewa666/cli,zewa666/cli,DrSammyD/cli,aurelia/cli,zewa666/cli,zewa666/cli
lib/resources/tasks/process-less.ts
rejected_duplicate
Near-duplicate of sample 112496
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from \"react\"\nimport Bugsnag from '@bugsnag/js'\nimport BugsnagPluginReact from '@bugsnag/plugin-react'\nimport ReactDOM from \"react-dom\"\nimport \"./index.scss\"\nimport App from \"./App\"\nimport reportWebVitals from ...
typescript
edit
null
null
mit
7dbccd31f1d8595fd900374847d40542a6f39ae9
watsonbox/exportify,watsonbox/exportify,watsonbox/exportify
src/index.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component, OnInit, Input } from '@angular/core';\n\nimport { ProjectUser } from './../model';\nimport { ProjectUsersService } from './../services/project-users.service';\n\n@Component({\n selector: 'add-project-user',\n t...
typescript
edit
0
1
mit
040880e188067e29989985d9c113f9fe2c1ae10c
anthonynsimon/parrot,anthonynsimon/parrot,todes1/parrot,anthonynsimon/parrot,todes1/parrot,anthonynsimon/parrot,anthonynsimon/parrot,todes1/parrot,anthonynsimon/parrot,todes1/parrot,todes1/parrot,todes1/parrot
app/src/app/users/add-project-user/add-project-user.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Transformer } from './types';\nimport { transform as transformInternal, SourceFile } from 'typescript';\nexport { TypeInjectorTransformer } from './TypeInjectorTransformer';\nexport { FunctionBlockTransformer } from './Function...
typescript
edit
0
1
mit
e7ab9e66ebdcd27625f2d2a3f6b236a85de8ecc0
AmnisIO/typewriter,AmnisIO/typewriter,AmnisIO/typewriter
src/transformers/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport const environment = {\n production: true,\n authCallbackURL: 'http://www.buddyduel.net/auth/callback',\n authSilentUri: 'http://www.buddyduel.net/silent',\n};\n\n```\n\nApply this change: Switch auth callback URLs to HTTPS" ...
typescript
edit
0
0
mit
b91f3d9cf03156b6559a233b9795235f5cae1a73
lentz/buddyduel,lentz/buddyduel,lentz/buddyduel
src/environments/environment.prod.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { UsageError } from './usage-error';\nimport { Command } from './types';\nimport { LEAF, BRANCH } from './constants';\n\nexport function accumulateCommandStack(\n commandStack: Command[],\n maybeCommandNames: string[],\n) {\n ...
typescript
edit
0
5
mit
18d81ee2d316c6d59f2d8d257debfd2f521c2025
carnesen/cli,carnesen/cli,carnesen/cli
src/accumulate-command-stack.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport const environment = {\n production: false,\n shibbolethSessionUrl: 'https://research-hub.cer.auckland.ac.nz:8443/Shibboleth.sso/Session.json',\n apiUrl: 'https://research-hub.cer.auckland.ac.nz:8443/api/',\n analyticsCode: 'U...
typescript
edit
0
0
bsd-3-clause
a483e6a2f5425033bd76cc648bd0132665e88ced
UoA-eResearch/research-hub,UoA-eResearch/research-hub,UoA-eResearch/research-hub
src/environments/environment.stag.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport Component from '@glimmer/component';\n\nclass CardPayDepositWorkflowTransactionStatusComponent extends Component {}\n\nexport default CardPayDepositWorkflowTransactionStatusComponent;\n\n```\n\nApply this change: Disable lint err...
typescript
edit
0
0
mit
d4fe745563ed84eaa7f1f0b1bcf02d7f0862fb3d
cardstack/cardstack,cardstack/cardstack,cardstack/cardstack,cardstack/cardstack,cardstack/cardstack,cardstack/cardstack
packages/web-client/app/components/card-pay/deposit-workflow/transaction-status/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Injectable } from '@angular/core';\nimport {\n HttpHeaderResponse,\n HttpResponseBase,\n HttpEvent,\n HttpHandler,\n HttpInterceptor,\n HttpRequest,\n} from '@angular/common/http';\nimport { Router } from '@angular/router...
typescript
edit
0
4
mit
5748f762e93468ebebd84ede9e551eea8062179c
kiswa/TaskBoard,kiswa/TaskBoard,kiswa/TaskBoard,kiswa/TaskBoard,kiswa/TaskBoard
src/app/app.api-http.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Component} from 'angular2/core';\nimport {Http, Headers} from 'angular2/http';\n\n@Component({\n selector: 'playlistr',\n template: `\n <h1>Playlistr</h1>\n <ul>\n <li *ngFor=\"#release of releases...
typescript
edit
0
2
mit
2f4738b78115452f5e141834add6078c883eb0f8
imjacobclark/playlistr,imjacobclark/playlistr,imjacobclark/playlistr
src/app.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Text, Title } from \"components\"\nimport classnames from \"classnames\"\nimport Head from \"next/head\"\n\nexport default function Home() {\n return (\n <>\n <Head>\n <title>ReiffLabs</title>\n </Head>\n ...
typescript
edit
null
null
mit
2cbabed7f3682e81e9b650f259525dda06745f95
reiff12/reifflabs.com,reiff12/reifflabs.com,reiff12/reifflabs.com
pages/index.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from \"react\";\nimport styled from \"../styles\";\n\nconst GifMarkerSpan = styled.span`\n position: absolute;\n top: 5px;\n right: 5px;\n background: #333333;\n color: rgba(253, 253, 253, 0.74);\n font-size: 12p...
typescript
edit
null
null
mit
ec7b96e7503e75e42ecf5287fa4c11b588bef799
itchio/itch,leafo/itchio-app,itchio/itch,itchio/itch,itchio/itchio-app,leafo/itchio-app,leafo/itchio-app,itchio/itchio-app,itchio/itch,itchio/itchio-app,itchio/itch,itchio/itch
src/components/basics/gif-marker.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { useCurrentStateAndParams, useRouter } from '@uirouter/react';\nimport * as React from 'react';\n\nimport { LoadingSpinner } from '@waldur/core/LoadingSpinner';\nimport { translate } from '@waldur/i18n';\n\nimport { AuthService ...
typescript
edit
null
null
mit
bc632af2fe1472bb75abdd29f216f3ec3af33941
opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport
src/auth/callbacks/AuthLoginCompleted.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { HttpResponseOK } from '@foal/core';\nimport { render as renderEjs } from 'ejs';\n\n// Use types.\nexport function renderToString(template: string, locals?: object): string {\n return renderEjs(template, locals);\n}\n\nexport f...
typescript
edit
0
1
mit
22012c16382b56956c081a31933a4f22db9784f7
FoalTS/foal,FoalTS/foal,FoalTS/foal,FoalTS/foal
packages/ejs/src/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { ITerminal, IDisposable } from '../Interfaces';\n\n/**\n * Debounces calls to render terminal rows using animation frames.\n */\nexport class RenderDebouncer implements IDisposable {\n private _rowStart: number;\n private _row...
typescript
edit
0
1
mit
a19b05f8139754069fdd2bf0387b6111f92905ac
xtermjs/xterm.js,akalipetis/xterm.js,sourcelair/xterm.js,Tyriar/xterm.js,akalipetis/xterm.js,sourcelair/xterm.js,sourcelair/xterm.js,xtermjs/xterm.js,xtermjs/xterm.js,sourcelair/xterm.js,xtermjs/xterm.js,akalipetis/xterm.js,Tyriar/xterm.js,Tyriar/xterm.js,Tyriar/xterm.js,Tyriar/xterm.js,akalipetis/xterm.js,xtermjs/xter...
src/utils/RenderDebouncer.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from \"react\";\nimport Slider from \"react-slick\";\nimport \"slick-carousel/slick/slick-theme.css\";\nimport \"slick-carousel/slick/slick.css\";\n\nimport \"./style/Screenshots.css\";\n\nconst images: string[] = [\n ...
typescript
edit
null
null
mit
4b903ca90e878164bced13eddb6e6729dd935746
raviqqe/code2d,raviqqe/code2d,raviqqe/code2d,raviqqe/code2d
app/src/component/Screenshots.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { EventEmitter } from \"events\";\n\nexport class CancellablePromise<T> implements PromiseLike<T> {\n private static readonly CANCEL_EVENT = \"cancel\";\n\n private readonly emitter = new EventEmitter();\n private readonly pro...
typescript
edit
0
2
mit
24effdf252d7c865b34b841acd4f40276e9cc9e5
dataform-co/dataform,dataform-co/dataform,dataform-co/dataform,dataform-co/dataform,dataform-co/dataform
api/utils/cancellable_promise.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport path from 'path';\nimport fs from 'fs';\nimport https from 'https';\nimport axios, { AxiosRequestConfig } from 'axios';\nimport qs from 'qs';\n\n// @ts-ignore\nimport cert from './cacert.pem';\n\n// @ts-ignore\nimport { version }...
typescript
edit
0
3
bsd-3-clause
c03bb9a2cdf844efbf2c1874cac3ccf036b2f44c
mollie/mollie-api-node,mollie/mollie-api-node,mollie/mollie-api-node
src/create-http-client.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Injectable} from '@angular/core';\n\n@Injectable()\nexport class DiffModeService {\n\n timeDiff(data: any[]) {\n let result = '';\n const dateOrigin = new Date(data[0].timestamp);\n data.forEach(log => {\n log.tim...
typescript
edit
0
1
apache-2.0
a78163b7be7b1bd9155d4cd466d6e651b999eab0
cvazquezlos/LOGANALYZER,cvazquezlos/LOGANALYZER,cvazquezlos/LOGANALYZER,cvazquezlos/LOGANALYZER
src/app/service/diff-mode.service.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { BoreholesLoader } from \"./boreholesloader\";\ndeclare var proj4;\n\nexport class BoreholesManager {\n boreholes;\n lines;\n\n constructor(public options: any) {\n\n }\n\n parse() {\n this.boreholes = new Boreho...
typescript
edit
0
4
apache-2.0
b83e84539cbec4263760edf92eecb44c703b6749
Tomella/cossap-3d,Tomella/cossap-3d,Tomella/cossap-3d,Tomella/cossap-3d
source/boreholes/boreholesmanager.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as Url from 'url'\nimport { shell } from 'electron'\n\n/**\n * Wraps the inbuilt shell.openItem path to address a focus issue that affects macOS.\n *\n * When opening a folder in Finder, the window will appear behind the applic...
typescript
edit
0
4
mit
cfdae484e2d7e889873adfa1226fdb545c85a1d2
j-f1/forked-desktop,artivilla/desktop,desktop/desktop,artivilla/desktop,shiftkey/desktop,say25/desktop,say25/desktop,say25/desktop,kactus-io/kactus,kactus-io/kactus,say25/desktop,shiftkey/desktop,artivilla/desktop,shiftkey/desktop,j-f1/forked-desktop,artivilla/desktop,desktop/desktop,j-f1/forked-desktop,shiftkey/deskto...
app/src/main-process/shell.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/// <reference path=\"../typings/node/node.d.ts\" />\n\nimport * as fs from 'fs';\n\nexport class Dependument {\n private source: string;\n private output: string;\n\n constructor(options: any) {\n if (!options) {\n throw new...
typescript
edit
0
4
unlicense
384c54c570e37449bdfb3f81422163cd12fc1f36
Jameskmonger/dependument,dependument/dependument,dependument/dependument,Jameskmonger/dependument
src/dependument.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { parse as parseQs } from \"qs\";\nimport * as React from \"react\";\nimport { Route, RouteComponentProps, Switch } from \"react-router-dom\";\n\nimport { WindowTitle } from \"../components/WindowTitle\";\nimport i18n from \"../i...
typescript
edit
null
null
bsd-3-clause
b98b8e164c9b45a9cf68debb202560ded49dc4cf
mociepka/saleor,UITools/saleor,UITools/saleor,UITools/saleor,UITools/saleor,mociepka/saleor,maferelo/saleor,UITools/saleor,maferelo/saleor,maferelo/saleor,mociepka/saleor
saleor/static/dashboard-next/pages/index.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/// <reference path=\"../../typings/globals/youtube/index.d.ts\" />\nimport {Component, OnInit} from '@angular/core';\nimport { window } from '@angular/platform-browser/src/facade/browser';\n\n@Component({\n selector: 'youtube-player...
typescript
edit
0
3
mit
db02004ac47920d28625d6907f550525c1406e5f
lb-v/minstrel-web,lb-v/minstrel-web,lb-v/minstrel-web
dev/YouTube/youtube-player.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {intersection, union, subtract, flow, cond, isNot, empty} from 'tsfun';\nimport {Resource} from 'idai-components-2';\n\n\nexport interface ResultSets {\n\n addSets: Array<Array<Resource.Id>>,\n subtractSets: Array<Array<Res...
typescript
edit
0
2
apache-2.0
6ca40a013c547d85c285df97d15f7fdbca3c50cf
codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client
src/app/core/datastore/index/result-sets.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Grid, Row, Column, Diagonal } from '../definitions';\n\nexport function getRows(grid: Grid): Row[] {\n const length = Math.sqrt(grid.length);\n const copy = grid.concat([]);\n return getArray(length).map(() => copy.splice(0,...
typescript
edit
0
1
mit
1ab8e527f32ed379a337fa9acbdb5daf0d6a3730
artfuldev/tictactoe-ai,artfuldev/tictactoe-ai
src/utils/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { NgModule, ModuleWithProviders } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\nimport { HttpModule } from '@angular/http';\nimport { MaterialModule } from ...
typescript
edit
0
1
mit
bda7aa3aef5ff30ce174c436983aad4747170abe
semagarcia/javascript-kata-player,semagarcia/javascript-kata-player,semagarcia/javascript-kata-player
src/app/kata-player/kata-player.module.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as droplit from 'droplit-plugin';\n\nexport class DroplitLocalPluginExample extends droplit.DroplitLocalPlugin {\n\n services: any;\n motd: any = 'My first local Droplit plugin';\n\n constructor() {\n super();\n...
typescript
edit
0
1
isc
c93de0ec628c650d37edbcea606cb866ad6ac12d
droplit/droplit.io-edge,droplit/droplit.io-edge,droplit/droplit.io-edge
projects/droplit-plugin-local-ts-example/src/DroplitLocalPluginExample.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport inspect from \"logspect\";\nimport { Twitch } from \"../modules/api\";\nimport * as Db from \"../modules/database\";\nimport * as Constants from \"../modules/constants\";\n\nexport default async function configure(alexa) {\n a...
typescript
edit
0
4
mit
df3a0e7670d601f81c6a4020cc4d7fb3cf4eee13
nozzlegear/alexa-skills
skills/streamcheck.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { TestBed } from '@angular/core/testing';\nimport { AppState } from '@app/core';\nimport { Store, StoreModule } from '@ngrx/store';\nimport { MockStore, provideMockStore } from '../../../testing/utils';\nimport { AuthGuardService...
typescript
edit
0
1
mit
16efa68d06938acdddc316b7241a95a4a197cb2a
tomastrajan/angular-ngrx-material-starter,tomastrajan/angular-ngrx-material-starter,tomastrajan/angular-ngrx-material-starter,tomastrajan/angular-ngrx-material-starter
src/app/core/auth/auth-guard.service.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * Delay time before close autocomplete.\n *\n * (This prevent autocomplete DOM get detroyed before access data.)\n */\nexport const AUTOCOMPLETE_CLOSE_DELAY = 250;\n\n/**\n * Allowed attributes that can be passed to internal input...
typescript
edit
0
0
mit
0e54de7c8b9b26c32126441d3f42adf7d6f7a1f7
gluons/vue-thailand-address
src/lib/constants.ts
rejected_duplicate
Near-duplicate of sample 115002
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n///<reference path=\"../.d.ts\"/>\n\"use strict\";\n\nimport path = require(\"path\");\nimport util = require(\"util\");\n\nexport class StaticConfigBase implements Config.IStaticConfig {\n\tpublic PROJECT_FILE_NAME: string = null;\n\tp...
typescript
edit
0
1
apache-2.0
32fe107c057805523855e5617e3bcf7b24504c0e
telerik/mobile-cli-lib,telerik/mobile-cli-lib
static-config-base.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { SearchResult } from '../types';\r\nimport { formatAsCurrency } from './formatting';\r\nimport { secondsToMinutes } from './dates';\r\n\r\nexport var requestNotificationPermission = async (): Promise<\r\n NotificationPermission...
typescript
edit
0
2
mit
7f55255a5d6ed5e67e24675aacb0ad1f4e806f8d
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
src/utils/notifications.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { EmitResult, emit } from './';\nimport { Context } from '../contexts';\nimport { SourceFile } from 'typescript';\n\nexport const emitSourceFile = (node: SourceFile, context): EmitResult =>\n node.statements\n .reduce((result...
typescript
edit
0
1
mit
3c4c67365c3857679d21c90c7c0c9de22b85bfd1
AmnisIO/typewriter,AmnisIO/typewriter,AmnisIO/typewriter
src/emitter/source.ts
rejected_duplicate
Near-duplicate of sample 114238
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport class IsaacGenerator {\n private _count: number;\n\n constructor() {\n this._count = 0;\n }\n\n public getValue(): number {\n if (this._count === 0) {\n this._randomise();\n }\n\n return 0;\n }\n\n private ...
typescript
edit
0
2
mit
99103ef2973e3b85f93c007313322de47edb50a5
Jameskmonger/isaac-crypto
src/isaac-generator.ts
rejected_duplicate
Near-duplicate of sample 113866
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport { UserAgentApplication } from \"./UserAgentApplication\";\nexport { Logger } from \"./Logger\";\nexport { LogLevel } from \"./Logger\";\nexport { Account } from \"./Account\";\nexport { Constants, TemporaryCacheKeys } from \"./ut...
typescript
edit
0
0
mit
918830f9750a43567f1dbc01bc6492481d267ed6
AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication...
lib/msal-core/src/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as invariant from \"invariant\";\nimport * as PropTypes from \"prop-types\";\nimport * as React from \"react\";\n\ninterface NavigatorProps {\n children: ((\n navigate: (url: string, replace?: boolean, preserveQs?: boolean)...
typescript
edit
null
null
bsd-3-clause
40a86731851ad3f5cbccf4b85ecc150f966e4861
UITools/saleor,mociepka/saleor,maferelo/saleor,UITools/saleor,maferelo/saleor,UITools/saleor,mociepka/saleor,UITools/saleor,maferelo/saleor,UITools/saleor,mociepka/saleor
saleor/static/dashboard-next/components/Navigator.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport \"xterm/css/xterm.css\";\nimport { getCredentials, attachTerminal } from \"./support\";\nimport { TerminalSession } from \"./terminal_session\";\n\nconst { password, username, url } = getCredentials();\nconst session = new Termin...
typescript
edit
0
0
mit
6a8a25d94392596a73af69fd11ef69c7264a080c
FarmBot/Farmbot-Web-API,FarmBot/farmbot-web-app,FarmBot/Farmbot-Web-API,FarmBot/farmbot-web-app,FarmBot/Farmbot-Web-API,FarmBot/Farmbot-Web-API,FarmBot/farmbot-web-app,FarmBot/Farmbot-Web-API
frontend/terminal/index.tsx
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { run, deepmerge, Module } from '../core'\n\nexport const ChildComp = {\n state: { count: 0 },\n inputs: F => ({\n inc: async () => {\n await F.toAct('Inc')\n await F.toIt('changed', F.stateOf().count)\n },\n ...
typescript
edit
0
3
mit
824fd09b52ad03ad6ae80bf0e984b737127b25f5
FractalBlocks/Fractal,FractalBlocks/Fractal,FractalBlocks/Fractal
src/core/testUtils.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport ParseEngine from './common/parse-engine';\nimport CssParseEngine from './types/css-parse-engine';\n\nclass ParseEngineRegistry {\n private static _supportedLanguagesIds: string[];\n private static _registry: ParseEngine[] =...
typescript
edit
0
2
mit
bb7f6a4e995b8dc834bb88f7ed54d97e1bf3b244
zignd/HTML-CSS-Class-Completion
src/parse-engines/parse-engine-registry.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// Copyright (c) Jupyter Development Team.\n// Distributed under the terms of the Modified BSD License.\nimport * as sanitize from 'sanitize-html';\n\n\nexport\ninterface ISanitizer {\n /**\n * Sanitize an HTML string.\n */\n sani...
typescript
edit
0
1
bsd-3-clause
df57d942246aa1179f259f248a239822aa74f8d5
TypeFox/jupyterlab,TypeFox/jupyterlab,TypeFox/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab,eskirk/jupyterlab,jupyter/jupyterlab,eskirk/jupyterlab,TypeFox/jupyterlab,eskirk/jupyterlab,jupyter/jupyterlab,charnpreetsingh185/jupyterlab,charnpreetsingh185/jupyterlab,TypeFox/jupyterlab,jupyter/jupyterlab,charnpreetsingh1...
src/sanitizer/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { NgModule } from '@angular/core';\n\nimport {\n\tAdjustMarginDirective,\n\tDisplay1Directive,\n\tDisplay2Directive,\n\tDisplay3Directive,\n\tDisplay4Directive,\n\tHeadlineDirective,\n\tTitleDirective,\n\tSubheading1Directive,\n\...
typescript
edit
null
null
mit
67517dd28cbf001dc1bf61ffe9c75b892aedfc75
trimox/angular-mdc-web,trimox/angular-mdc-web
src/lib/typography/index.ts
rejected_code_smell
Internal duplication: ~69% of the file is inside repeated 12+ line blocks
null
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport const environment = {\n production: true,\n baseURL: 'https://www.buddyduel.net',\n};\n\n```\n\nApply this change: Update baseUrl to remove www" }, { "role": "assistant", "content": "export const environment = {\n ...
typescript
edit
0
0
mit
0a5903a986bfe6f78a36aa35297b1b1c353bba76
lentz/buddyduel,lentz/buddyduel,lentz/buddyduel
client/src/environments/environment.prod.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as apac from \"apac\";\nimport * as functions from \"firebase-functions\";\n\nconst amazonClient = new apac.OperationHelper({\n assocId: functions.config().aws.tag,\n awsId: functions.config().aws.id,\n awsSecret: func...
typescript
edit
0
1
mit
4fb40859d652285be613f9689f54a4fb4ff7fd8b
raviqqe/code2d,raviqqe/code2d,raviqqe/code2d,raviqqe/code2d
functions/amazon.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport Application from '@glimmer/application';\nimport Resolver, { BasicModuleRegistry } from '@glimmer/resolver';\nimport moduleMap from '../config/module-map';\nimport resolverConfiguration from '../config/resolver-configuration';\n\...
typescript
edit
0
1
mit
1de0d2caa25176932f521ae6de091a199027e44b
glimmerjs/glimmer.js,glimmerjs/glimmer.js,glimmerjs/glimmer.js,glimmerjs/glimmer.js
packages/@glimmer/blueprint/files/src/main.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nrequire(\"source-map-support\").install();\nimport * as dbInit from \"./db\";\nObject.keys(dbInit); // initializes all database models\nimport logger from \"./server/api/logger\"; // Required to setup logger\nimport WebServer from \"./s...
typescript
edit
0
3
mit
1e31e51ca4d76ed46e82724dc2d6e1b9273ac771
crossroads-education/eta,crossroads-education/eta
server.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/*\n * Copyright (c) 2015 ARATA Mizuki\n * This software is released under the MIT license.\n * See LICENSE.txt.\n */\n\n/// <reference path=\"ts/ComplexIntegralView.ts\"/>\n\nwindow.addEventListener(\"DOMContentLoaded\", () => {\n l...
typescript
edit
0
3
mit
15a3ea55841bb7079a0744e04bae72ed68dc2327
minoki/singularity
main.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as MarkdownUtil from \"./util/MarkdownUtil\"\nimport * as commands from \"./commands\";\nimport { ReactMde, ReactMdeProps } from \"./components\";\nimport { IconProviderProps, SvgIcon, MdeFontAwesomeIcon } from \"./icons\";\nim...
typescript
edit
0
0
mit
e8147198073fc98a1a4828d8d55930f8153d75da
andrerpena/react-mde,andrerpena/react-mde,andrerpena/react-mde
src/index.tsx
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { FactRecord, FactReference } from '../storage';\n\nexport type EdgeRecord = {\n predecessor_hash: string,\n predecessor_type: string,\n successor_hash: string,\n successor_type: string,\n role: string\n};\n\nfunct...
typescript
edit
0
5
mit
33505c07e6fc2f2b682ce485a817908a526aa38a
michaellperry/jinaga,michaellperry/jinaga
src/postgres/edge-record.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { ChartitGraphProps } from './index.d';\nimport * as React from 'react';\nimport {\n IChartOptions,\n IResponsiveOptionTuple,\n ILineChartOptions,\n IBarChartOptions,\n IPieChartOptions,\n} from 'chartist';\n\nexport interfa...
typescript
edit
0
0
mit
90a602140dac91f187fc48b3b1e1b872674a146d
fraserxu/react-chartist,fraserxu/react-chartist
index.d.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { createSelector } from 'reselect';\nimport { filter, mapKeys, mapValues, lowerCase } from 'lodash';\n\nconst getProducts = (state: RXState) => state.products;\nconst getInventories = (state: RXState) => state.inventories;\nconst...
typescript
edit
0
3
mit
18df0b5624a50d936e1a0fa4f5f8cdd4dc9cab01
luchillo17/porcelain-factory,luchillo17/porcelain-factory
src/selectors/SelectorInventories.tsx
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { browser, Notifications } from 'webextension-polyfill-ts'\nimport * as noop from 'lodash/fp/noop'\n\nexport const DEF_ICON_URL = '/img/worldbrain-logo-narrow.png'\nexport const DEF_TYPE = 'basic'\n\nconst onClickListeners = new ...
typescript
edit
0
2
mit
ba17b144e7ea1eb64010a3b5de1cd8b6b914f057
WorldBrain/WebMemex,WorldBrain/WebMemex
src/util/notifications.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { DocumentHighlightProvider, DocumentHighlight, MarkedString, TextDocument, CancellationToken, Position, Range } from 'vscode';\nimport { EdiController } from './ediController';\nimport { Parser } from './parser';\nimport { Const...
typescript
edit
0
2
mit
785e88200dcae6eb1ed7bc3eb07e8353fd1ccca1
Silvenga/vscode-edi-x12-support,Silvenga/vscode-edi-x12-support
src/ediHighlightProvider.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/*\n * Copyright (c) 2014-2022 Bjoern Kimminich & the OWASP Juice Shop contributors.\n * SPDX-License-Identifier: MIT\n */\n\nimport sinon = require('sinon')\nconst chai = require('chai')\nconst sinonChai = require('sinon-chai')\nconst ...
typescript
edit
0
2
mit
9615f74447881f8d9be317c3da3e08c0ee764e97
bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop
test/server/countryMappingSpec.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Fix the default export for browser distros and nodejs" }, { "role": "assistant", "content": "import BaseKetting from './ketting';\nimport Resource from './resource';\n\nclass Ketting extends BaseKetting {\n\n static Resource...
typescript
new_file
0
0
mit
323d6eeb52545e8f7e515b4f66e20fe93c46f990
evert/restl,evert/ketting,evert/ketting
src/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { languages, LanguageName } from '../../helpers/languages';\r\nimport { targets, TargetName } from '../../helpers/targets';\r\nimport help from '../../helpers/help';\r\nimport asLookup from '../../helpers/as-lookup';\r\n\r\nconst...
typescript
edit
0
4
bsd-2-clause
8c987e4ad20767681ca7c018cee53cb821af6d55
ashmind/SharpLab,ashmind/SharpLab,ashmind/SharpLab,ashmind/SharpLab,ashmind/SharpLab,ashmind/SharpLab
source/WebApp/ts/state/handlers/defaults.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport styled from '../../lib/styled'\n\nexport default styled.div`\n border-radius: 2px;\n border: solid 1px ${({ theme }) => theme.colors.border};\n & > button {\n margin: 0;\n border: 0;\n border-right: 1px solid ${({ the...
typescript
edit
0
0
mit
2795b1cf5bf1bc3dc5cb4e97596fb28aa5c92099
Sarah-Seo/Inpad,Sarah-Seo/Inpad
src/components/atoms/ToolbarButtonGroup.tsx
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nmodule TameGame {\n /**\n * Declares a lazily-initialized field on an object\n *\n * This can be used when a field is costly to initialize (in terms of performance or storage space) and is seldom used\n * or as a way ...
typescript
edit
0
2
apache-2.0
f96a94199c2618203f8c11b255e82fc9e28f6d73
TameGame/Engine,TameGame/Engine,TameGame/Engine
TameGame/Core/UninitializedField.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as chai from 'chai';\nchai.should();\n\ndescribe('Array', () => {\n describe('#indexOf()', () => {\n it('should return -1 when the value is not present', () => {\n [1, 2, 3].indexOf(4).should.equal(-1);\n });\n });...
typescript
edit
0
1
unlicense
9c454e51c49fb6b9116953ac714c51c619dced8b
rizadh/scheduler
test/test.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT License.\nimport { AuthenticationParameters } from './AuthenticationParameters';\nimport { AuthOptions } from './AuthOptions';\nimport { ClientAppli...
typescript
edit
0
3
mit
143e2c714a5aadfec7f1cf1cdb7ec9edaddfd293
AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication...
lib/msal-electron-proof-of-concept/src/AppConfig/PublicClientApplication.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { MarkedPackagesAction, MarkedPackagesActions, setMarkedPackages } from \"./markedPackages.actions\"\nimport { MarkedPackage } from \"../../../../codeCharta.model\"\nimport { addItemToArray, removeItemFromArray } from \"../../../...
typescript
edit
0
0
bsd-3-clause
762dcef3697b03ad0815e442c09c3b77672cbdde
MaibornWolff/codecharta,MaibornWolff/codecharta,MaibornWolff/codecharta,MaibornWolff/codecharta,MaibornWolff/codecharta,MaibornWolff/codecharta,MaibornWolff/codecharta,MaibornWolff/codecharta
visualization/app/codeCharta/state/store/fileSettings/markedPackages/markedPackages.reducer.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/// <reference path=\"fourslash.ts\"/>\r\n\r\n////class List<T> {\r\n//// constructor(public a: boolean, public b: T, c: number) {\r\n//// var local = 0;\r\n//// }\r\n////}\r\n\r\nverify.navigationBar([\r\n {\r\n ...
typescript
edit
0
0
apache-2.0
f3d1b46dcba63bf70900c9ca607bb1aabf0047dd
weswigham/TypeScript,minestarks/TypeScript,Eyas/TypeScript,plantain-00/TypeScript,kitsonk/TypeScript,vilic/TypeScript,nojvek/TypeScript,thr0w/Thr0wScript,thr0w/Thr0wScript,synaptek/TypeScript,jeremyepling/TypeScript,erikmcc/TypeScript,vilic/TypeScript,vilic/TypeScript,thr0w/Thr0wScript,DLehenbauer/TypeScript,synaptek/T...
tests/cases/fourslash/navigationBarItemsPropertiesDefinedInConstructors.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nmodule ImprovedInitiative {\n export class SpellLibrary {\n Spells = ko.observableArray<SpellListing>([]);\n SpellsByNameRegex = ko.computed(() => {\n const allSpellNames = this.Spells().map(s => s.Name());\n...
typescript
edit
0
2
mit
875e0e62fa91d85c28208f00e4dd2b820d446e2f
cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative
client/Library/SpellLibrary.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport xs, {Stream, MemoryStream} from 'xstream';\nimport {div, span, input, VNode} from '@cycle/dom';\nimport {DOMSource} from '@cycle/dom/xstream-typings.d.ts';\n\nexport interface LabeledSliderProps {\n label: string;\n unit: strin...
typescript
edit
0
1
mit
195672f182528c9081e7de102216cae855365367
cyclejs/cycle-core,feliciousx-open-source/cyclejs,usm4n/cyclejs,cyclejs/cycle-core,cyclejs/cyclejs,ntilwalli/cyclejs,maskinoshita/cyclejs,usm4n/cyclejs,feliciousx-open-source/cyclejs,maskinoshita/cyclejs,maskinoshita/cyclejs,ntilwalli/cyclejs,staltz/cycle,ntilwalli/cyclejs,usm4n/cyclejs,usm4n/cyclejs,cyclejs/cyclejs,nt...
examples/bmi-typescript/src/LabeledSlider.ts
rejected_duplicate
Near-duplicate of sample 112724
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// made availabe by webpack plugins\n// Unused VARS in .env are NOT included in the bundle\nconst ISPRODUCTION = process.env.NODE_ENV === 'production'\n\nexport const API_HOST = ISPRODUCTION\n ? process.env.PRODUCTION_HOST\n : pro...
typescript
edit
0
0
mit
645a38a83fa460c6e9afece739faa83aa2d16fbe
OpenDirective/brian,OpenDirective/brian,OpenDirective/brian
src/environment.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport interface ISelectorFilter {\n selector: string|RegExp;\n replacement: any;\n}\n\nexport interface ISelectorFilterRaw {\n selector: string;\n replacement: any;\n}\n\n```\n\nApply this change: Use extend for describing the raw ...
typescript
edit
0
0
mit
7e7d404bca97f7bb91b6ea13fa8f0fb131bbf4ea
maoberlehner/node-sass-magic-importer,maoberlehner/node-sass-magic-importer,maoberlehner/node-sass-magic-importer
src/interfaces/ISelectorFilter.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/// <reference path=\"../typings/node/node.d.ts\" />\n\nimport * as fs from 'fs';\n\nexport class Dependument {\n private source: string;\n private output: string;\n\n constructor(options: any) {\n if (!options.source) {\n th...
typescript
edit
0
4
unlicense
f507c227af574e57a774e2f87d115b02c8049986
dependument/dependument,Jameskmonger/dependument,Jameskmonger/dependument,dependument/dependument
src/dependument.ts
rejected_duplicate
Near-duplicate of sample 114852
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * @author Daniel de\n */\nexport abstract class UsernameProvider {\n\n abstract getUsername(): string;\n}\n```\n\nApply this change: Fix incomplete author name in comment" }, { "role": "assistant", "content": "/**\n...
typescript
edit
0
0
apache-2.0
9435149c3da8fc52e9fd7214b7843983990a7279
codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client
app/core/settings/username-provider.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react'\nimport { LinkButton } from '../lib/link-button'\nimport { Dispatcher } from '../../lib/dispatcher'\nimport { updateStore } from '../lib/update-store'\nimport { Octicon, OcticonSymbol } from '../octicons'\...
typescript
edit
null
null
mit
d23702709ddfc66b14a0986866bac4832d183cdd
say25/desktop,say25/desktop,hjobrien/desktop,gengjiawen/desktop,desktop/desktop,shiftkey/desktop,kactus-io/kactus,hjobrien/desktop,BugTesterTest/desktops,gengjiawen/desktop,j-f1/forked-desktop,j-f1/forked-desktop,BugTesterTest/desktops,say25/desktop,hjobrien/desktop,hjobrien/desktop,desktop/desktop,desktop/desktop,arti...
app/src/ui/updates/update-available.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n\n\nimport neo4j from \"neo4j-driver\";\n\nexport const Neo4jNode = neo4j.types.Node;\nexport const Neo4jRelationship = neo4j.types.Relationship;\n\n\nimport {Node, Relationship} from \"neo4j-driver/types/v1/graph-types\";\n\nexport fun...
typescript
edit
0
1
mit
c75812a017c6010ea526e587c9afa5c57b1272ad
robak86/neography
lib/driver/NeoTypes.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport Vue from 'vue';\nimport App from './App.vue';\nimport './registerServiceWorker';\n\nimport router from './router';\nimport store from './store';\nimport vuetify from './plugins/vuetify';\nimport './plugins/codemirror';\n\n// Styl...
typescript
edit
0
1
mit
f28e643f333ddc877e03249154ca8b9be28a832e
babsey/nest-desktop,babsey/nest-desktop,babsey/nest-desktop,babsey/nest-desktop,babsey/nest-desktop
src/main.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// Type definitions for classnames\n// Project: https://github.com/JedWatson/classnames\n// Definitions by: Dave Keen <http://www.keendevelopment.ch>, Adi Dahiya <https://github.com/adidahiya>, Jason Killian <https://github.com/JKillian...
typescript
edit
0
0
mit
cf21303edea9abd919ecdab84698c6ab8513b1c2
johan-gorter/DefinitelyTyped,minodisk/DefinitelyTyped,jimthedev/DefinitelyTyped,shlomiassaf/DefinitelyTyped,AgentME/DefinitelyTyped,YousefED/DefinitelyTyped,zuzusik/DefinitelyTyped,georgemarshall/DefinitelyTyped,alexdresko/DefinitelyTyped,borisyankov/DefinitelyTyped,scriby/DefinitelyTyped,sledorze/DefinitelyTyped,mclim...
classnames/index.d.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\ntype Query = {\n q: string,\n size?: number,\n from?: number,\n skipTypes?: string[]\n};\n\nexport const get = async (id: string): Promise<any> => {\n\n const response = await fetch(`/documents/${id}`);\n if (response....
typescript
edit
0
3
apache-2.0
be25e47b71c41c884c6bc2f32933b3b793be498a
dainst/idai-field-web,dainst/idai-field-web,dainst/idai-field-web
ui/src/documents.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { module } from 'angular';\n\nimport { LoadoutDrawerComponent } from './loadout-drawer.component';\nimport { LoadoutPopupComponent } from './loadout-popup.component';\nimport { react2angular } from 'react2angular';\nimport Random...
typescript
edit
0
0
mit
77d442f3108767f9657645f8a9a4e63960595fb7
bhollis/DIM,DestinyItemManager/DIM,chrisfried/DIM,DestinyItemManager/DIM,chrisfried/DIM,bhollis/DIM,delphiactual/DIM,chrisfried/DIM,delphiactual/DIM,DestinyItemManager/DIM,chrisfried/DIM,bhollis/DIM,DestinyItemManager/DIM,bhollis/DIM,delphiactual/DIM,delphiactual/DIM
src/app/loadout/loadout.module.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component } from '@angular/core';\nimport { Router } from '@angular/router';\n\nimport { AppUtilService } from './app-util.service';\n\n@Component({\n selector: 'annotator',\n templateUrl: './annotator.component.html',\n sty...
typescript
edit
0
1
bsd-3-clause
e8ba1a83c5217eaa6aecdd0f04a2eff0b112187f
Alveo/alveo-transcriber,Alveo/alveo-transcriber,Alveo/alveo-transcriber,Alveo/alveo-transcriber
src/app/annotator.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { computed } from 'mobx'\n\nimport { Card } from './Card'\nimport { CardValue } from './CardValue'\nimport { Settings } from './Settings'\nimport { Suit } from './Suit'\n\nexport class Deck {\n private constructor() {\n const...
typescript
edit
0
1
mit
a7c6c437ecaa6384c701201ad481f3ee33f66697
janaagaard75/desert-walk,janaagaard75/desert-walk
src/model/Deck.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport ExpoLocalAuthentication from '../ExpoLocalAuthentication';\nimport * as LocalAuthentication from '../LocalAuthentication';\n\nbeforeEach(() => {\n ExpoLocalAuthentication.authenticateAsync.mockReset();\n ExpoLocalAuthentication...
typescript
edit
0
1
bsd-3-clause
fe5fdb0c77986a6a80aacbc29ba5f20c1213f144
exponent/exponent,exponentjs/exponent,exponent/exponent,exponent/exponent,exponentjs/exponent,exponentjs/exponent,exponent/exponent,exponentjs/exponent,exponentjs/exponent,exponent/exponent,exponent/exponent,exponentjs/exponent,exponentjs/exponent,exponent/exponent,exponent/exponent,exponent/exponent,exponentjs/exponen...
packages/expo-local-authentication/src/__tests__/LocalAuthentication-test.ios.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from 'react';\n\nimport { Menu } from 'react-feather';\nimport { Box } from '../box';\nimport { Logo } from '../logo';\n\nexport class Navbar extends React.Component<{}, {}> {\n render() {\n return (\n <Box p={3} f...
typescript
edit
null
null
mit
7b7b7d39113955be602ae71adf72478c9c1ad276
patrick91/pycon,patrick91/pycon
frontend/src/components/navbar/index.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { DashboardProps } from './Dashboard';\n\nexport interface DashboardModalProps extends DashboardProps {\n target: string | HTMLElement;\n open?: boolean;\n onRequestClose?: VoidFunction;\n closeModalOnClickOutside?: boolean;\...
typescript
edit
0
0
mit
d3d86555f0397445d2200d00732ee95861b59522
transloadit/uppy,transloadit/uppy,transloadit/uppy,transloadit/uppy
packages/@uppy/react/src/DashboardModal.d.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as path from 'path';\nimport * as Mocha from 'mocha';\nimport * as glob from 'glob';\n\nexport function run(): Promise<void> {\n // Create the mocha test\n const mocha = new Mocha({\n ui: 'tdd'\n });\n mocha.useColors(tr...
typescript
edit
0
3
mit
8a12396ffa7cfab08dbb2078c9b3c54ca83cf55f
yasuyuky/transient-emacs,yasuyuky/transient-emacs
src/code/test/index.ts
rejected_duplicate
Near-duplicate of sample 112467
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nconst fs = require(\"fs\")\nconst builddocs = require(\"builddocs\")\nconst mkdirp = require('mkdirp');\nconst path = require('path')\n\nimport {ModuleContents} from \"./types\"\nimport {TypeInfos, baseTypes, mergeTypeInfos} from \"./en...
typescript
edit
0
4
mit
c466ca682ea5ceba5ebd13e1db45c611f10387d5
davidka/buildtypedefs
src/build.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { AstDefinition } from \"truffle-decode-utils\";\nimport { DataPointer } from \"../types/pointer\";\nimport { EvmInfo } from \"../types/evm\";\nimport decode from \"../decode\";\nimport TruffleDecoder from \"./contract-decoder\";...
typescript
edit
0
1
mit
caad207806241674d44b0e513c784c4cd6859046
ConsenSys/truffle
packages/truffle-decoder/lib/interface/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport path from \"path\";\nimport Setup from \"../types/Setup\";\nimport callWith from \"../utils/callWith\";\nimport TestFunction from \"../types/TestFunction\";\n\nexport default function loadTests(setup: Setup) {\n const { testFile...
typescript
edit
0
1
mit
ab8ce82b51316b6b3ce8293aa7faa3d19fef0c39
testingrequired/tf,testingrequired/tf
src/middlewear/loadTests.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {\n ActionObject,\n AssignAction,\n Assigner,\n PropertyAssigner,\n assign\n} from '.';\nimport { EventObject } from './types';\n\nexport interface ContextModel<TC, TE extends EventObject> {\n context: TC;\n actions: {\n ...
typescript
edit
0
0
mit
73c561ddc6d5eaba6e5e878a469152198e879b31
davidkpiano/xstate,davidkpiano/xstate,davidkpiano/xstate
packages/core/src/model.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {app, BrowserWindow} from \"electron\";\n\nlet win;\n\nfunction createWindow() {\n win = new BrowserWindow({ width: 800, height: 600 });\n\n win.loadURL(`file://${__dirname}/app/view/index.html`);\n\n // win.webContents....
typescript
edit
0
2
mit
3090cec6dca4d809bd1e7788976b5c048c3858d5
Xstoudi/alduin,Xstoudi/alduin,Xstoudi/alduin
src/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\ntype FunctionalComponent = (props: Props) => JSX.Element;\ntype TsxElement = string | FunctionalComponent;\n\nexport interface Props {\n [key: string]: string;\n}\n\nconst parseNode = (element: string, children: string[]) => {\n l...
typescript
edit
0
3
mit
63e7492b62dcebf4681479148caa39b90fc8b85a
birkett/a-birkett.co.uk
lib/tsx/TsxParser.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport interface JsonDBConfig {\n filename: string,\n saveOnPush: boolean,\n humanReadable: boolean,\n separator: string\n}\n\nexport class Config implements JsonDBConfig {\n filename: string\n humanReadable: boolean\n saveOnPush...
typescript
edit
0
2
mit
6be9a1da44b18834f4e4ccdddaf5697b11309630
Belphemur/node-json-db,Belphemur/node-json-db
src/lib/JsonDBConfig.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport const KEYBOARDSHORTCUTS_STORAGE_NAME = 'memex-keyboardshortcuts'\n\nexport const KEYBOARDSHORTCUTS_DEFAULT_STATE = {\n shortcutsEnabled: true,\n linkShortcut: 'shift+l',\n openDashboard: checkOperatingSystem() + '+d',\n ...
typescript
edit
0
4
mit
acbaf638569004d16bc246dc79f37bbe22c0fbf9
WorldBrain/WebMemex,WorldBrain/WebMemex
src/in-page-ui/keyboard-shortcuts/constants.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({\n name: 'filter'\n})\n\nexport class FilterSearch implements PipeTransform {\n transform(items: any[], search: string) {\n const contains = new RegExp(search, ...
typescript
edit
0
1
mit
cfb96d932b73572084175cc96eb251178f7fdd63
qgrid/ng2,qgrid/ng2,azkurban/ng2,qgrid/ng2,azkurban/ng2,azkurban/ng2
src/app/app.filter.pipe.ts
accepted
null
true