messages
listlengths
2
2
language
stringclasses
8 values
prompt_type
stringclasses
2 values
lint_errors
int64
0
129
⌀
cyclomatic_complexity
int64
0
32
⌀
license
stringclasses
7 values
commit
stringlengths
40
40
repos
stringlengths
5
116k
new_file
stringlengths
4
220
status
stringclasses
6 values
error
stringlengths
26
74
⌀
is_valid_syntax
bool
2 classes
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { DocumentNode, Kind } from 'graphql/language';\nimport { gql } from '../';\n\nexport const isDirectiveDefined = (\n typeDefs: DocumentNode[] | string,\n directiveName: string,\n): boolean => {\n if (typeof typeDefs === 'strin...
typescript
edit
0
4
mit
39821ac26433fe507ecafdf3b4b0b9e66e95c6cf
apollostack/apollo-server
packages/apollo-server-core/src/utils/isDirectiveDefined.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\ninterface PolicyResult {\n [key: string]: string[];\n}\n\nexport = function (policy: string): PolicyResult {\n return policy.split(';').reduce<PolicyResult>((result, directive) => {\n const trimmed = directive.trim();\n if (!tri...
typescript
edit
0
3
mit
ae6853c196932a6c472f6d98935d8697bb772fa8
helmetjs/content-security-policy-parser
index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * Copyright 2018-present Facebook.\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n * @format\n */\n\nimport androidDevice from './androidDevice';\ni...
typescript
edit
0
2
mit
68881f35fc5020b944eae6ad0cf4b9f1e4f4099a
facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper
src/dispatcher/index.tsx
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nmodule Filter {\n \"use strict\";\n\n export function SeasonColorFilter() {\n return (input:any):any => {\n if (input === \"winter\") {\n return \"#5141D9\";\n } else if (input === \"spr...
typescript
edit
0
5
mit
593c2fe1ebe619d740dbf7b0111a091bc22fdf8c
tsukaby/anime-lineup,tsukaby/anime-lineup,tsukaby/anime-lineup,tsukaby/anime-lineup
src/main/webapp/assets/grunt/ts/filter/SeasonColorFilter.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/* tslint:disable:no-unused-variable */\n\n/*!\n * Rainfall Map Panel Component Test\n *\n * Copyright(c) Exequiel Ceasar Navarrete <<EMAIL>>\n * Licensed under MIT\n */\n\nimport { Renderer } from '@angular/core';\nimport { TestBed, as...
typescript
edit
0
1
mit
8d789703755de018437fc9e122f8727367959a55
ecsnavarretemit/sarai-ng2,ecsnavarretemit/sarai-interactive-maps,ecsnavarretemit/sarai-ng2,ecsnavarretemit/sarai-ng2,ecsnavarretemit/sarai-interactive-maps,ecsnavarretemit/sarai-interactive-maps
src/app/map/rainfall-map-panel/rainfall-map-panel.component.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component, OnInit, ViewChild } from \"@angular/core\";\nimport { UserService } from \"../services\";\nimport { User } from \"../models\";\nimport { Observable } from \"rxjs/Observable\";\nimport { EventData } from \"data/observ...
typescript
edit
0
2
mit
53752835231af5b4d837411fafc02ab157970020
etabakov/fivekmrun-app,etabakov/fivekmrun-app,etabakov/fivekmrun-app
app/login/login.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nmodule App {\n export class Tournament {\n constructor(\n public id: string,\n public title: string,\n public startsOn: Date,\n public endsOn: Date,\n public location: str...
typescript
edit
0
1
mit
8ab504cb23a256636c5a542d6eae1553ed27b56f
croquet-australia/website-application,croquet-australia/croquet-australia-website,croquet-australia/croquet-australia-website,croquet-australia/website-application,croquet-australia/croquet-australia-website,croquet-australia/croquet-australia.com.au,croquet-australia/croquet-australia.com.au,croquet-australia/croquet-...
source/CroquetAustralia.Website/app/tournaments/scripts/Tournament.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { ContactEditProps } from '@proton/components/containers/contacts/edit/ContactEditModal';\nimport { MapStatusIcons } from '../../../models/crypto';\nimport RecipientItem from './RecipientItem';\nimport { RecipientOrGroup } from '...
typescript
edit
null
null
mit
b45d5c0bcba2c63a77a57576d0beebfdcd2ef66f
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
applications/mail/src/app/components/message/recipients/RecipientsList.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {base64urlToBuffer, bufferToBase64url} from \"./base64url\";\nimport {CredentialCreationOptionsJSON, CredentialRequestOptionsJSON, PublicKeyCredentialWithAssertionJSON, PublicKeyCredentialWithAttestationJSON} from \"./json\";\nim...
typescript
edit
0
4
mit
bcc6f3117f19dd5ee2198dc2f2caddb7883261a9
github/webauthn-json,github/webauthn-json,github/webauthn-json
src/webauthn.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react'\nimport * as moment from 'moment'\n\nimport { Octicon, OcticonSymbol } from '../octicons'\n\ninterface IBranchProps {\n readonly name: string\n readonly isCurrentBranch: boolean\n\n /** The date may be ...
typescript
edit
null
null
mit
e8616236493468c1f736d8362429d77d2e1939b5
gengjiawen/desktop,artivilla/desktop,j-f1/forked-desktop,shiftkey/desktop,BugTesterTest/desktops,artivilla/desktop,artivilla/desktop,kactus-io/kactus,j-f1/forked-desktop,j-f1/forked-desktop,BugTesterTest/desktops,shiftkey/desktop,kactus-io/kactus,shiftkey/desktop,hjobrien/desktop,hjobrien/desktop,desktop/desktop,j-f1/f...
app/src/ui/branches/branch.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * FoalTS\n * Copyright(c) 2017-2020 Loïc Poullain <<EMAIL>>\n * Released under the MIT License.\n */\n\nexport * from './common';\nexport * from './core';\nexport * from './express';\nexport * from './openapi';\nexport * from './s...
typescript
edit
0
0
mit
32115111602ceacfc55691016636215d9c1b9ca0
FoalTS/foal,FoalTS/foal,FoalTS/foal,FoalTS/foal
packages/core/src/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n//@target: ES6\r\n//@declaration: true\r\nclass C {\r\n static [Symbol.iterator] = 0;\r\n static [Symbol.toPrimitive]() { }\r\n static get [Symbol.toPrimitive]() { return \"\"; }\r\n static set [Symbol.toPrimitive](x) { }\r\...
typescript
edit
0
1
apache-2.0
8aeff70e48dc4d9221b57e9810b0e5e4a4920af8
gdi2290/TypeScript,jwbay/TypeScript,mmoskal/TypeScript,bpowers/TypeScript,weswigham/TypeScript,synaptek/TypeScript,SaschaNaz/TypeScript,fabioparra/TypeScript,jeremyepling/TypeScript,sassson/TypeScript,alexeagle/TypeScript,billti/TypeScript,AbubakerB/TypeScript,DLehenbauer/TypeScript,nojvek/TypeScript,mihailik/TypeScrip...
tests/cases/conformance/es6/Symbols/symbolDeclarationEmit11.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as ReactDOM from \"react-dom\";\nimport * as React from \"react\";\n\nimport { CustomComponent } from \"./../custom-component\";\nimport { ComponentsRefs } from \"./../components-refs\";\nimport { Feed, FeedProp } from \"./feed...
typescript
edit
null
null
mit
eb4403f7335e2759745629ee17ff1489d65f5fe2
Xstoudi/alduin,Xstoudi/alduin,Xstoudi/alduin
src/app/js/component/feed-list.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport function getRows<T>(grid: T[]): T[][] {\n const size = Math.sqrt(grid.length);\n const copy = grid.concat([]);\n return getArray(size).map(() => copy.splice(0, size));\n}\n\nexport function getColumns<T>(grid: T[]): T[][] {\n ...
typescript
edit
0
1
mit
e2ee129d34958cf0fe83427ebb937831ebea1e5d
artfuldev/tictactoe-ai,artfuldev/tictactoe-ai
src/utils/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * Express routes configurations\n */\nexport abstract class ExpressRouter {\n protected express: any;\n\n public abstract start(): void;\n\n constructor(express: any) {\n this.express = express;\n this.defau...
typescript
edit
0
3
mit
e18267c9b2c7867c44a2504e4a0b7915e91d8a47
linck/protontype
src/routes/ExpressRouter.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { cubicOut } from 'svelte/easing';\nimport { is_function } from 'svelte/internal';\nimport { TransitionConfig } from 'svelte/transition';\n\nexport interface AnimationConfig extends TransitionConfig {}\n\ninterface FlipParams {\n...
typescript
edit
0
3
mit
43245a30fd051904f90b80cebbcc97d38c4484ee
sveltejs/svelte,sveltejs/svelte
src/runtime/animate/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {XHR} from '../libs/xhr';\n\nlet ENDPOINT = 'api.instagram.com'\nlet API_VERSION = 'v1'\n\nlet ACCESS_TOKEN = '31003280.5c1de8f.3e76027eeefe429ba5cc90f0e64ccda0'\nlet CLIENT_ID = '5c1de8fe2653445489b480a72803a44c'\n\nexport class...
typescript
edit
0
1
mit
a1608db52decd5b99dfdd6f160305ad412fb4b23
yadomi/lastagram,yadomi/lastagram,yadomi/lastagram
app/services/instagram.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n\nimport * as React from 'react';\nexport { React };\n\nimport * as mui from 'material-ui';\nexport { mui };\n\nimport * as redux from 'redux';\nexport { redux };\n\nimport * as reactRedux from 'react-redux';\nexport { reactRedux };\n\n...
typescript
edit
0
0
mit
db4f902d71a2336121ab9249d5ba9779cc52f220
Mytrill/hypract,Mytrill/hypract
src/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\n\nimport { Table, connectTable, createFetcher } from '@waldur/table-react';\n\nconst TableComponent = props => {\n const { translate } = props;\n return (\n <Table\n {...props}\n columns={...
typescript
edit
null
null
mit
0cae42913e5a0fb9bfce82053956580525d958b6
opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport
src/rancher/template/ClusterTemplateList.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\n\ntype Callback = (...args: any[]) => void;\n\nexport type ErrorCallback = (error: Error | FetchError) => void;\nexport type LoadCallback = (src: string, isCached: boolean) => void;\nexport type PreProce...
typescript
edit
0
0
mit
8bc1815d567ee953e59224ee0dbb483489e1e268
matthewwithanm/react-inlinesvg
src/types.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/** @jsx jsx */\nimport mapValues from \"lodash/mapValues\";\nimport { Box, Flex, jsx } from \"theme-ui\";\n\nimport { demographicsColors } from \"../constants/colors\";\n\nconst Bar = ({ width, color }: { readonly width: string; readon...
typescript
edit
null
null
apache-2.0
dc3557df9449513b308d2a216f62407fb3e597d0
PublicMapping/DistrictBuilder,PublicMapping/DistrictBuilder,PublicMapping/DistrictBuilder,PublicMapping/DistrictBuilder,PublicMapping/DistrictBuilder
src/client/components/DemographicsChart.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport vscode = require('vscode');\nimport { LanguageClient, RequestType, NotificationType } from 'vscode-languageclient';\nimport Window = vscode.window;\n\nexport function registerCodeActionCommands(client: LanguageClient): void {\n ...
typescript
edit
0
1
mit
378a4cbde41bba36cce8a777b8950e1248539bb3
PowerShell/vscode-powershell
src/features/CodeActions.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Fix for AOT build in CLI." }, { "role": "assistant", "content": "export { TickTockService } from './services';\nexport { TickTockComponent } from './components';\nexport { TickTockModule } from './tick-tock.module';\n" } ]
typescript
new_file
0
0
mit
ccc59d8668edb60089805d3bc65ea6935fd8304a
trekhleb/ng-library-starter,trekhleb/ng-library-starter,trekhleb/angular-library-seed,nowzoo/nowzoo-angular-bootstrap-lite,nowzoo/nowzoo-angular-bootstrap-lite,trekhleb/ng-library-starter,nowzoo/nowzoo-angular-bootstrap-lite,trekhleb/angular-library-seed,trekhleb/angular-library-seed
src/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport Tags from \"../src/tags\";\nimport { getMarkdownTable } from 'markdown-table-ts';\n\nlet tags = new Tags();\n\nlet formatted: string[][] = [];\ntags.list.forEach(tag => {\n formatted.push([tag.tag, tag.snippet]);\n});\n\nlet t...
typescript
edit
0
2
mit
d195bdf557dfa6cbea7a73b81105c9ea5665686e
neild3r/vscode-php-docblocker
scripts/generateTagTable.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { c, msgid } from 'ttag';\nimport { Referral, ReferralState } from '@proton/shared/lib/interfaces';\n\ninterface Props {\n referral: Referral;\n}\n\nconst RewardCell = ({ referral }: Props) => {\n let reward: string | React...
typescript
edit
null
null
mit
9886dce63dfa876e00a088655bed49370466dd43
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
packages/components/containers/referral/rewards/table/RewardCell.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// This file includes polyfills needed by Angular 2 and is loaded before\n// the app. You can add your own extra polyfills to this file.\nimport 'core-js/es6/symbol';\nimport 'core-js/es6/object';\nimport 'core-js/es6/function';\nimport...
typescript
edit
0
0
mit
f98dbdfdabd9a3773f59e11c4941e734be9b2133
gund/ng-http-interceptor,gund/ng2-http-interceptor,gund/ng-http-interceptor,gund/ng2-http-interceptor,gund/ng2-http-interceptor,gund/ng-http-interceptor
src/polyfills.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { createSelector } from 'reselect';\r\nimport { watcherTreeSelector } from './index';\r\nimport { normalizedWatchers } from './watchers';\r\n\r\nexport const getCurrentlySelectedWatcherIdOrNull = createSelector(\r\n [watcherTree...
typescript
edit
0
4
mit
2bfc8fa97a2da018bffbc76354576b7e6a7f73ee
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
src/selectors/watcherTree.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport BaseLayer from 'ol/layer/Base';\nimport {HsConfig} from './../../config.service';\nimport {HsMapService} from '../map/map.service';\nimport {HsUtilsService} from '../utils/utils.service';\nimport {Injectable} from '@angular/core'...
typescript
edit
0
4
mit
ddea73671eff362ce4b3c2e34d2962be0cb4a5d7
hslayers/hslayers-ng,hslayers/hslayers-ng,hslayers/hslayers-ng,hslayers/hslayers-ng
projects/hslayers/src/components/add-layers/add-layers.service.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { ModifierStatus } from '../../types';\nimport { useDayPicker } from '../useDayPicker';\nimport { useSelection } from '../useSelection';\nimport { getModifierStatus } from './utils/getModifierStatus';\n\n/** Return the status for...
typescript
edit
0
11
mit
6472e895915e84019b5edd5afcfe1b1b4616f335
gpbl/react-day-picker,gpbl/react-day-picker,gpbl/react-day-picker
packages/react-day-picker/src/hooks/useModifiers/useModifiers.ts
rejected_complexity
Cyclomatic complexity too high: 11
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport Vue from 'vue';\nimport { State } from 'vuex-class';\nimport { Component } from 'vue-property-decorator';\nimport View400 from '!view!./page-400.html';\nimport View403 from '!view!./page-403.html';\nimport View500 from '!view!./p...
typescript
edit
0
1
mit
d67708d7e293ec86cf1551c4cea5c56263803874
gamejolt/frontend-lib,gamejolt/frontend-lib,gamejolt/frontend-lib,gamejolt/frontend-lib
components/error/page/page-components.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { IFileSystem } from './filesystem/filesystem.i';\nimport { ITemplateFileSystem } from './templates/templatefilesystem.i';\nimport * as Path from 'path';\n\nexport class DependumentManager {\n private _fileSystem : IFileSystem;\...
typescript
edit
0
1
unlicense
060debc9c618a17b76ea86071dc3658407dc5c6e
dependument/dependument,Jameskmonger/dependument,Jameskmonger/dependument,dependument/dependument
src/dependument.manager.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { browser, element, by, ExpectedConditions as EC } from 'protractor';\nconst browserLogs = require('protractor-browser-logs');\n\ndescribe('Popup', () => {\n let logs: any;\n\n beforeEach(() => {\n logs = browserLogs(browser...
typescript
edit
0
1
mit
b5f927e2317331c5abc4d3c64fcf931f450f7623
Wykks/ngx-mapbox-gl,Wykks/ngx-mapbox-gl,Wykks/ngx-mapbox-gl,Wykks/ngx-mapbox-gl
projects/showcase-e2e/src/popup.e2e-spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component, Inject, Input } from 'ng-metadata/core';\nimport { FormDashboardGameDevStageSelectorConfirm } from './confirm-service';\nimport template from 'html!./dev-stage-selector.html';\n\n@Component({\n\tselector: 'gj-form-da...
typescript
edit
0
1
mit
87570f71c62cb11b44d8056f1f38c9e744330970
gamejolt/gamejolt,gamejolt/gamejolt,gamejolt/gamejolt,gamejolt/gamejolt
src/app/components/forms/dashboard/game/dev-stage-selector/dev-stage-selector-directive.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { IFoundEditor } from './found-editor'\nimport { pathExists } from '../file-system'\nimport { assertNever } from '../fatal-error'\n\nexport enum ExternalEditor {\n VisualStudioCode = 'Visual Studio Code',\n}\n\nexport function p...
typescript
edit
0
4
mit
716a112b8d60d8b321a0894d096cd1adcef94795
say25/desktop,artivilla/desktop,artivilla/desktop,kactus-io/kactus,j-f1/forked-desktop,desktop/desktop,desktop/desktop,desktop/desktop,shiftkey/desktop,say25/desktop,kactus-io/kactus,kactus-io/kactus,j-f1/forked-desktop,shiftkey/desktop,j-f1/forked-desktop,say25/desktop,shiftkey/desktop,artivilla/desktop,shiftkey/deskt...
app/src/lib/editors/linux.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport { FieldArray } from 'redux-form';\n\nimport {\n SelectAsyncField,\n FormContainer,\n SelectField,\n} from '@waldur/form-react';\n\nimport { OfferingAttributes } from './OfferingAttributes';\nim...
typescript
edit
null
null
mit
879c48c7304a766b02e926eca5b09ab45c60df4e
opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport
app/scripts/components/marketplace/offerings/OfferingConfigureStep.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport Pagination from 'rc-pagination/lib/locale/it_IT';\nimport DatePicker from '../date-picker/locale/it_IT';\nimport TimePicker from '../time-picker/locale/it_IT';\nimport Calendar from '../calendar/locale/it_IT';\n\nexport default {...
typescript
edit
0
0
mit
967f22210dca8f79ce3894ae954393c256c04771
ant-design/ant-design,icaife/ant-design,icaife/ant-design,elevensky/ant-design,elevensky/ant-design,zheeeng/ant-design,elevensky/ant-design,icaife/ant-design,icaife/ant-design,ant-design/ant-design,elevensky/ant-design,ant-design/ant-design,zheeeng/ant-design,zheeeng/ant-design,zheeeng/ant-design,ant-design/ant-design
components/locale-provider/it_IT.tsx
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { ICanaryMetricSetQueryConfig } from 'kayenta/domain';\n\nexport interface IStackdriverCanaryMetricSetQueryConfig extends ICanaryMetricSetQueryConfig {\n metricType: string;\n groupByFields: string[];\n}\n\n```\n\nApply this ch...
typescript
edit
0
0
apache-2.0
a2ab817973adb45acf67a62f2d481300e5a6b017
spinnaker/deck-kayenta,spinnaker/deck-kayenta,spinnaker/deck-kayenta,spinnaker/deck-kayenta
src/kayenta/metricStore/stackdriver/domain/IStackdriverCanaryMetricSetQueryConfig.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Action } from \"./Action\";\nimport { ActionType } from \"./ActionType\";\nimport { StrayKittyState } from \"../StrayKittyState\";\nimport { StandingAction } from \"./StandingAction\";\nimport { ActionHelpers } from \"./ActionH...
typescript
edit
0
1
mit
c6c31a69852893edd7aa62d64e8865d484139703
xianbaum/StrayKitty,xianbaum/StrayKitty,xianbaum/StrayKitty
src/actions/GrabbedAction.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport BigNumber from 'bignumber.js';\nimport {\n discreetRewardsAmount,\n getFormattedRewardAmount,\n} from './WalletSummaryHeaderRewards';\n\ndescribe('getFormattedRewardAmount', () => {\n it('should render integer amounts without ...
typescript
edit
0
1
apache-2.0
e77d5cf1dd175040d341101cf03fd5e9542a9fb0
input-output-hk/daedalus,input-output-hk/daedalus,input-output-hk/daedalus,input-output-hk/daedalus,input-output-hk/daedalus,input-output-hk/daedalus
source/renderer/app/components/wallet/summary/WalletSummaryHeaderRewards.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Base, CallbackFunction } from 'db-migrate-base'\nimport bigNumberColumn from './util/bigNumberColumn'\n\nexport function up (db: Base, callback: CallbackFunction) {\n const createTableOptions = {\n columns: {\n channel...
typescript
edit
0
1
apache-2.0
9693c1ab1302d8c51f48829d6b7701b4ed580d44
machinomy/machinomy,machinomy/machinomy,machinomy/machinomy
packages/machinomy/src/storage/postgresql/migrations/20180115082606-create-payment.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n\nfunction reportCmdTable(profile: Profile[], search: Prop<Search>): HTMLElement {\n return cmdTableData(search.get());\n}\n\nfunction cmdTableData(search: Search): HTMLElement {\n const res: MapString< {count: int, total: seconds...
typescript
edit
0
2
bsd-3-clause
a77c3a31d97fb70028c7bce6cf1fcf6abf895d6b
ndmitchell/shake,ndmitchell/shake,ndmitchell/shake,ndmitchell/shake,ndmitchell/shake,ndmitchell/shake
html/ts/reports/cmdtable.tsx
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/*\n * The MIT License (MIT)\n * Copyright (c) 2016 Heat Ledger Ltd.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy of\n * this software and associated documentation files (the \"Software\"), to dea...
typescript
edit
0
1
mit
b9c3c760a9dcc9884e175fa4d8ac2e841639f7f7
Heat-Ledger-Ltd/heat-ui,Heat-Ledger-Ltd/heat-ui,Heat-Ledger-Ltd/heat-ui
app/src/config.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {URLSearchParams, Headers, RequestOptions, RequestMethod} from '@angular/http';\n\nexport class RestangularHelper {\n \n static createRequestOptions(options) {\n let requestQueryParams = RestangularHelper.createRequestQueryP...
typescript
edit
0
4
mit
781c4563dbf7f5bff7a4fb72d663b867bfb98889
2muchcoffeecom/ng2-restangular,2muchcoffeecom/ng2-restangular,2muchcoffeecom/ngx-restangular,2muchcoffeecom/ngx-restangular
src/ng2-restangular-helper.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport class HsConfig {\n componentsEnabled: any;\n mapInteractionsEnabled: boolean;\n allowAddExternalDatasets: boolean;\n sidebarClosed: boolean;\n layer_order: string\n constructor() { \n \n }\n}\n```\n\nApply this change: ...
typescript
edit
0
1
mit
c24131f80483d0d4ca4a3f7efff58fd43286b617
hslayers/hslayers-ng,hslayers/hslayers-ng,hslayers/hslayers-ng,hslayers/hslayers-ng
config.service.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from \"react\"\nimport { withStyles, createStyles, Theme } from \"@material-ui/core/styles\"\n\nconst styles = (theme: Theme) => createStyles({\n root: {\n width: \"100vw\",\n height: \"100vh\",\n position: \...
typescript
edit
null
null
mit
51102291a9692f57d03787fbda86d629419eccf8
Majavapaja/Mursushakki,Majavapaja/Mursushakki,Majavapaja/Mursushakki,Majavapaja/Mursushakki,Majavapaja/Mursushakki,Majavapaja/Mursushakki
src/client/routes/game/EndScreen.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport Status from 'models/Status';\nimport Step from 'models/Step';\nimport Feature from 'models/Feature';\n\ntype ScenarioDetails = {\n backgroundSteps: Step[];\n steps: Step[];\n};\n\nconst STATUS_PRIORITY_ORDER = [Status.Failed, S...
typescript
edit
0
3
apache-2.0
035be40c5869ea9e65dd89c0ea16aafac2636a3e
orionhealth/XBDD,orionhealth/XBDD,orionhealth/XBDD,orionhealth/XBDD,orionhealth/XBDD
frontend/src/lib/StatusCalculator.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport test from \"ava\";\nimport HclLexer from '../src/lexer';\n\ntest('Should find tokens correctly', t => {\n const SOURCE_TEXT = `\nfoo = {\n bar = \"baz \\$\\${quux} \\${var.mumble}\"\n quux = 42\n}\n\n// Example of a heredoc\nm...
typescript
edit
0
2
mit
60b8bf7007ce05266dc5034dddba03c986a5f07d
r24y/tf-hcl
test/lexer-spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as ng from 'angular2/core';\nimport { Http } from 'angular2/http';\n\n@ng.Component({\n selector: 'fetch-data',\n template: require('./fetch-data.html')\n})\nexport class FetchData {\n public forecasts: WeatherForecast[];\...
typescript
edit
0
2
apache-2.0
51650f462319e0aca97f59a714a107c814c5dc1f
aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore
templates/Angular2Spa/ClientApp/components/fetch-data/fetch-data.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.\n */\n\n/**\n * http methods\n */\nexport enum HttpMethod {\n GET = 'get',\n POST = 'post',\n}\n\n/**\n * Constant used for PKCE\...
typescript
edit
0
0
mit
7dc2daf44e2128b04141a9559c71c700d1ba64c0
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-node/src/utils/Constants.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component, ViewEncapsulation } from '@angular/core';\nimport { Navigation } from '../../models/navigation';\n@Component({\n selector: 'header-navigation',\n encapsulation: ViewEncapsulation.None,\n styleUrls: ['./header-navi...
typescript
edit
0
0
mit
32434858c17adaa610f3505cea713a59c325d2c0
unfetter-discover/unfetter-ui,unfetter-discover/unfetter-ui,unfetter-discover/unfetter-ui,unfetter-discover/unfetter-ui
src/app/components/header-navigation/header-navigation.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {get} from 'lodash'\nimport {RATE_LIMIT_ERROR_STATUS} from 'src/cloud/constants/index'\nimport {LimitsState} from 'src/cloud/reducers/limits'\nimport {LimitStatus} from 'src/cloud/actions/limits'\n\nexport const isLimitError = (e...
typescript
edit
0
1
mit
f33f63185aa6840cc5f2922cd696578a4007d099
li-ang/influxdb,li-ang/influxdb,nooproblem/influxdb,influxdb/influxdb,nooproblem/influxdb,nooproblem/influxdb,influxdb/influxdb,influxdb/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,nooproblem/influxdb,mark-rushakoff/influxdb,mark-rushakoff/influxdb,influxdata/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,in...
ui/src/cloud/utils/limits.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { EnvConfig } from './env-config.interface';\n\nconst BaseConfig: EnvConfig = {\n // Sample API url\n API: 'https://demo.com',\n RELEASEURL: 'https://github.com/nie-ine/raeber-website/releases/tag/1.0.3',\n RELEASEVERSION: '1...
typescript
edit
0
0
mit
9b7ee514167575097046af369ae1c6389c9e9811
nie-ine/raeber-website,nie-ine/raeber-website,nie-ine/raeber-website,nie-ine/raeber-website
tools/env/base.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {ISolution} from '../solution.interface';\n\nexport class Solution implements ISolution<number, string> {\n solve(input: number): string {\n return \"bla\";\n }\n\n private isSafe(number: number): boolean {\n return !(nu...
typescript
edit
0
3
unlicense
4521434b7076764f2162b35bc9979b762795661b
Jameskmonger/challenges
problems/superstitious-elevators/solution.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\ndeclare namespace Bokeh {\n export type Int = number;\n export type Percent = number;\n export type Color = NamedColor |\n [Int, Int, Int] | // RGB (r, g, b)\n [Int, ...
typescript
edit
0
0
bsd-3-clause
1c9afe37394c0f3822d5f36dc7b2dbc16dd98725
ericmjl/bokeh,stonebig/bokeh,Karel-van-de-Plassche/bokeh,timsnyder/bokeh,bokeh/bokeh,philippjfr/bokeh,clairetang6/bokeh,ericmjl/bokeh,DuCorey/bokeh,azjps/bokeh,justacec/bokeh,rs2/bokeh,KasperPRasmussen/bokeh,dennisobrien/bokeh,jakirkham/bokeh,aavanian/bokeh,aavanian/bokeh,rs2/bokeh,ptitjano/bokeh,DuCorey/bokeh,claireta...
bokehjs/src/coffee/api/typings/types.d.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport winston from 'winston';\nimport DeviceModel from '../models/device';\n\nexport default class DeviceService {\n // region public static methods\n public static async addDevice(mail: string, token: string) {\n let device = awa...
typescript
edit
0
3
mit
d90ab21eeb41d7014366b8ef8a0b906dfca03055
schulcloud/node-notification-service,schulcloud/node-notification-service,schulcloud/node-notification-service
src/services/DeviceService.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// ComicBookCharacterDefault.ts\n\n\"use strict\";\n\nclass ComicBookCharacterDefault {\n constructor(\n public alias: string,\n public health: number,\n public strength: number,\n private secretIdentity: string\n ) {}\n}\...
typescript
edit
0
1
mit
178ecfb7d20b175dfc45bc43b7cc50fc37fdef4c
var-bin/angularjs-training,var-bin/angularjs-training,var-bin/angularjs-training,var-bin/angularjs-training
AngularJSWithTS/UseTypesEffectivelyInTS/Classes/Inheritance/ComicBookCharacterDefault.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport fs from 'fs';\nimport libpath from 'path';\nimport _yargs from 'yargs';\n\nconst packageInfo = JSON.parse(fs.readFileSync(libpath.resolve(__dirname, '../../package.json'), 'utf8'));\n\nconst yargs = _yargs\n .demand(1)\n .usage...
typescript
edit
0
0
mit
d27e17db4cb1c1d13609017b9aa861e245663794
3846masa/upload-gphotos,3846masa/upload-gphotos
src/cli/yargs.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/*!\n * @license\n * Copyright 2016 Alfresco Software, Ltd.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the ...
typescript
edit
0
0
apache-2.0
8f51415733614509a07fbcf47b4171a55facbc68
Alfresco/alfresco-ng2-components,Alfresco/alfresco-ng2-components,Alfresco/alfresco-ng2-components,Alfresco/alfresco-ng2-components
demo-shell-ng2/app/main.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nconst styles = {\n style: {\n position: 'fixed',\n top: 0,\n left: 0,\n bottom: 0,\n right: 0,\n display: 'flex',\n alignItems: 'center',\n overflow: 'auto',\n },\n innerStyle: {\n margin: 'auto',\n maxH...
typescript
edit
0
0
mit
2e557708a1a5cfd6c3156b475b123bc2495945d9
storybooks/storybook,storybooks/storybook,storybooks/react-storybook,kadirahq/react-storybook,storybooks/storybook,kadirahq/react-storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook,storybooks/react-storybook
addons/centered/src/styles.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\ndeclare class OrderedMap<T = any> {\n private constructor(content: Array<string | T>)\n\n get(key: string): T | undefined\n\n update(key: string, value: T, newKey?: string): OrderedMap<T>\n\n remove(key: string): OrderedMap<T>\n\n ...
typescript
edit
0
1
mit
f3f047b6f146631a4033a3e4cbcaa72a1b9271d2
marijnh/orderedmap
types/index.d.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { isSafari } from '@proton/shared/lib/helpers/browser';\n\nconst getIframeSandboxAttributes = (isPrint: boolean) => {\n /**\n * \"allow-modals\" : For being able to print emails\n *\n * \"allow-scripts\" : allows r...
typescript
edit
0
3
mit
c3aed714e0f605761ae860236b5f5e666feb38c8
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
applications/mail/src/app/components/message/helpers/getIframeSandboxAttributes.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\r\nimport { Stack, Spinner, TextContainer } from '@shopify/polaris';\r\n\r\ninterface GenericProps {\r\n readonly message: string;\r\n}\r\n\r\nexport const GenericWaitingToast = ({ message }: GenericProp...
typescript
edit
null
null
mit
3634a92b5bda757d3ff8f5fd4871f72d68311ba0
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
src/components/Toasts.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 {InputModifiers} from \"src/Models/Input/InputModifiers\";\nimport {MouseButton} from \"src/Models/Input/MouseButton\";\n\nexport function getModifiers(e: React.MouseEvent): Array<InputModifier...
typescript
edit
0
8
mit
1cfa116cc325461c041c2ed2c17a367a2f759795
AvaloniaUI/Avalonia,SuperJMN/Avalonia,AvaloniaUI/Avalonia,wieslawsoltes/Perspex,AvaloniaUI/Avalonia,SuperJMN/Avalonia,jkoritzinsky/Avalonia,wieslawsoltes/Perspex,wieslawsoltes/Perspex,AvaloniaUI/Avalonia,jkoritzinsky/Avalonia,AvaloniaUI/Avalonia,wieslawsoltes/Perspex,wieslawsoltes/Perspex,wieslawsoltes/Perspex,SuperJMN...
src/Avalonia.DesignerSupport/Remote/HtmlTransport/webapp/src/Models/Input/MouseEventHelpers.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// https://devblogs.microsoft.com/typescript/announcing-typescript-3-7/#assertion-functions\nexport function assert(condition: boolean, message?: string): asserts condition {\n // error TS2569: Type 'IArguments' is not an array type or...
typescript
edit
0
2
mit
bf5053bfd2c8906ad113e62cdc7fdcf99a9390ed
tkrotoff/react-form-with-constraints,tkrotoff/react-form-with-constraints,tkrotoff/react-form-with-constraints
packages/react-form-with-constraints/src/assert.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// Copyright 2022 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\nimport {click, getBrowserAndPages, typeText, waitFor, waitForNone}...
typescript
edit
0
1
bsd-3-clause
89174020fd15a82633ee466ec364def9e5222116
ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend
test/e2e/console/console-live-expressions_test.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Parser } from \"../gcode-parser\";\n\ntest('a single gcode cmd should result in 1 layer', () => {\n const parser = new Parser();\n const gcode =`G1 X0 Y0 Z1`;\n const parsed = parser.parseGcode(gcode);\n expect(parsed).not....
typescript
edit
0
1
mit
d02bf7b4f0e10fc853779b329186c9691e752bba
remcoder/gcode-previewer,remcoder/gcode-previewer
src/__tests__/gcode-parser.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n#!/usr/bin/env node\nif (!process.env.DEBUG) {\n process.env.DEBUG = 'peercalls'\n}\n\nimport _debug from 'debug'\nimport forEach from 'lodash/forEach'\nimport { io } from './server/app'\nimport app from './server/app'\n\nconst debug =...
typescript
edit
0
1
mit
c7030bd3bb3ff76ee47d518a7e035c7ac25a9247
jeremija/peer-calls,jeremija/peer-calls,jeremija/peer-calls
src/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { window } from 'global';\nimport { useCallback, useEffect, useState } from 'react';\n\nimport { Selection, StoryRef } from './types';\n\nconst retrieveLastViewedStoryIds = (): StoryRef[] => {\n try {\n const raw = window.loc...
typescript
edit
0
4
mit
d9d43297a8ccf59f2f244862f4a46a22b39da369
storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,kadirahq/react-storybook,storybooks/react-storybook,storybooks/storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/react-storybook,storybooks/react-storybook,storybooks/storybook
lib/ui/src/components/sidebar/useLastViewed.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Ng2CiAppPage } from './app.po';\n\ndescribe('ng2-ci-app App', function () {\n let page: Ng2CiAppPage;\n\n beforeEach(() => {\n page = new Ng2CiAppPage();\n });\n\n it('should display message saying app works'...
typescript
edit
0
1
mit
a8f544fbc20db7f1ce01023e0d599467d8238008
Elecash/ng2-ci-app,Elecash/ng2-ci-app,Elecash/ng2-ci-app,Elecash/ng2-ci-app
e2e/app.e2e-spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|---------------------------------------------------...
typescript
edit
0
2
bsd-3-clause
ef45ab3448ccb6e25b84af5fae75103a3163dd32
jupyter/jupyterlab,jupyter/jupyterlab,eskirk/jupyterlab,jupyter/jupyterlab,charnpreetsingh185/jupyterlab,jupyter/jupyterlab,eskirk/jupyterlab,charnpreetsingh185/jupyterlab,eskirk/jupyterlab,eskirk/jupyterlab,eskirk/jupyterlab,TypeFox/jupyterlab,charnpreetsingh185/jupyterlab,TypeFox/jupyterlab,TypeFox/jupyterlab,TypeFox...
src/commandpalette/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n\"use strict\";\n\nimport * as fs from \"fs\";\nimport * as path from \"path\";\nimport * as vs from \"vscode\";\nimport * as util from \"./utils\";\n\nexport function locateBestProjectRoot(folder: string): string {\n\tif (!folder || !u...
typescript
edit
0
5
mit
356c2c34883c261de015dbf20b5a6ec17d328d62
Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code
src/project.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { HitDatabaseEntry, HitDatabaseMap } from '../types';\r\nimport { FetchStatusDetailSuccess } from '../actions/statusDetail';\r\nimport { STATUS_DETAIL_SUCCESS } from '../constants';\r\nimport { Map } from 'immutable';\r\nimport {...
typescript
edit
0
3
mit
c9eb50ed879e33625b97c067f73fe14d9537de08
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
src/reducers/hitDatabase.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport enum AudioSource {\r\n NEW_SEARCH_RESULT = 'https://k003.kiwi6.com/hotlink/bbgk5w2fhz/ping.ogg',\r\n SUCCESSFUL_WATCHER_ACCEPT = 'https://k003.kiwi6.com/hotlink/sd6quj2ecs/horn.ogg'\r\n}\r\n\r\nexport enum TabIndex {\r\n SEARC...
typescript
edit
0
0
mit
66e8e572fa16042ef4fae95680aefefe63fc1ac7
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
src/constants/enums.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { SearchController } from './search.controller';\n\n\nexport function digimapSearch(): ng.IDirective {\n\n return {\n restrict: 'E',\n templateUrl: '/app/components/search/search.html',\n controller: SearchController,\n...
typescript
edit
0
1
mit
18ef8ebb1cca067abf7c8c0416a192ecc894ac5a
marksmall/mapuse,marksmall/mapuse,marksmall/mapuse
src/app/components/search/search.directive.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/*\n * Copyright 2019 balena.io\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http:/...
typescript
edit
0
1
apache-2.0
315051c14c3b1a3be1d5ddc7949781d5537e2c4e
resin-io/herostratus,resin-io/etcher,resin-io/resin-etcher,resin-io/etcher,resin-io/resin-etcher,resin-io/herostratus,resin-io/etcher,resin-io/etcher,resin-io/etcher
lib/gui/app/pages/main/main.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { inject } from 'aurelia-framework';\nimport { Router } from 'aurelia-router';\nimport { HackerNewsApi } from '../../services/api';\n\n@inject(Router, HackerNewsApi)\nexport class Item {\n id: number;\n item: any;\n comm...
typescript
edit
0
6
isc
93a29d5722aa54a4b26502a999c1788ee33d84b0
michaelbull/aurelia-hacker-news,michaelbull/aurelia-hacker-news,MikeBull94/aurelia-hacker-news,michaelbull/aurelia-hacker-news,MikeBull94/aurelia-hacker-news
src/pages/item/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react'\nimport { BrowserRouter } from 'react-router-dom'\nimport { render } from 'react-dom'\nimport { Route } from 'react-router'\n\nimport { allRoutes } from './routes'\n\nimport './main.scss'\n\nrender(\n <Br...
typescript
edit
null
null
unlicense
fc67aa4ea4a0a996fa4bc3eddd5b955d0f90ddc3
janaagaard75/framework-investigations,janaagaard75/framework-investigations,janaagaard75/framework-investigations,janaagaard75/framework-investigations
react-mobx-todos/src/Main.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport class TwitterApplicationComponent implements ng.IComponentOptions {\n public template: string = `\n <nav class=\"navbar navbar-inverse navbar-fixed-top\">\n <div class=\"container-fluid\">\n <d...
typescript
edit
0
0
mit
cc7416d8713f67d4e31843ce4e00b4889ee4ec0c
var-bin/angularjs-training,var-bin/angularjs-training,var-bin/angularjs-training,var-bin/angularjs-training
angular-typescript-webpack-jasmine/src/modules/application/angular/components/twitterApplication/TwitterApplicationComponent.ts
accepted
null
true
[ { "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
a35351453d050d945f9b205bcfeb99a59c62ac07
gamejolt/client-voodoo,gamejolt/client-voodoo
src/selfupdater.ts
rejected_duplicate
Near-duplicate of sample 112993
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { sslTest, dnssec, headers, dmarcSpf } from './queries';\n\nimport test from 'ava';\n\ntest('SSL positive', async t => {\n const result = await sslTest({ host: 'google.com' });\n t.is(result.endpoints.length, 2);\n t.is(...
typescript
edit
0
2
apache-2.0
2e940fc4a2ab6b85f6065a84e6fe2950160abb69
wiktor-k/infrastructure-tests
queries.test.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { ParserParam } from '../parser-param';\n\nconst parserParam: ParserParam = {\n type: 'daum',\n url: 'http://www.daum.net',\n querySelector: 'ol.list_hotissue > li .rank_cont:not([aria-hidden])',\n parserSelector: ($, elem) =...
typescript
edit
0
1
mit
59cfa7d492f7109e89ab8fd7860c0430f262a4fa
endlessdev/rankr,endlessdev/rankr
models/params/daum-param.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { chain, externalSchematic, Rule } from '@angular-devkit/schematics';\nimport { Schema as NgComponentOptions } from '@schematics/angular/component/schema';\nimport { findModuleFromOptions } from '@schematics/angular/utility/find-...
typescript
edit
0
2
mit
d628a4b1fe9b8b5eb3de2cd969e5810c7a9cea55
wishtack/wishtack-steroids,wishtack/wishtack-steroids,wishtack/ng-steroids,wishtack/wishtack-steroids,wishtack/ng-steroids
packages/schematics/src/scam/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as $ from 'jquery';\nwindow['jQuery'] = $;\nimport 'foundation-sites';\n\nclass MixitApp{\n bootstrap(){\n this._initServiceWorker();\n }\n\n _initServiceWorker() {\n let isLocalhost = Boolean(window.loca...
typescript
edit
0
3
apache-2.0
a70e971459bc168888c11e24f0e081488521b277
mixitconf/mixit,mix-it/mixit,mix-it/mixit,mix-it/mixit,mixitconf/mixit,mixitconf/mixit,sdeleuze/mixit,mix-it/mixit,mix-it/mixit,mixitconf/mixit,sdeleuze/mixit,sdeleuze/mixit,sdeleuze/mixit
src/main/ts/app.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component, Inject } from '@angular/core'\nimport { TranslateService } from '@ngx-translate/core'\nimport { Title } from '@angular/platform-browser'\nimport { DOCUMENT } from '@angular/common'\n\n@Component({\n selector: 'app-r...
typescript
edit
0
0
mit
492627d6efba71445236791ffbeb2a8ab75eb32c
bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop
frontend/src/app/app.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n'use strict';\n\nimport * as vscode from 'vscode';\n\nimport cp = require('child_process');\nimport path = require('path');\n\nexport function activate(context: vscode.ExtensionContext) {\n let p8Config = vscode.workspace.getConfigur...
typescript
edit
0
2
mit
31656424ba71ff0ac16a4d54d39b679481dbf2dc
joho/pico8-vscode
src/extension.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as http from 'http';\nimport * as https from 'https';\n\nexport default {\n\ttest: (uri: string): boolean => /^https*:\\/\\//.test(uri),\n\n\tread: (url: string): Promise<http.IncomingMessage> => {\n\t\treturn new Promise((reso...
typescript
edit
0
3
mit
e451fe20666250961c4e8df81cf5d5e6b280010e
kicumkicum/stupid-player,kicumkicum/stupid-player
src/routes/http.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\ndeclare namespace MessageFormat {\n type Msg = { (params: {}): string; toString(global?: string): string };\n type Formatter = (val: any, lc: string, arg?: string) => string;\n type SrcMessage = string | SrcObject;\n\n inter...
typescript
edit
0
1
mit
f2fd894c8d20b8dbded062442fdcb402f0192cd5
SlexAxton/messageformat.js,SlexAxton/messageformat.js,eemeli/messageformat.js,messageformat/messageformat.js,messageformat/messageformat.js,eemeli/messageformat.js
index.d.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {buildHelper as helper, taskRunner} from \"../Container\";\nimport * as del from \"del\";\n\nexport default function Clean() {\n return del([helper.getDistFolder(), helper.getTempFolder()], {force: true});\n}\n```\n\nApply thi...
typescript
edit
0
1
mit
314adcc776fc412762bbf29f8affe36d4f15177d
mtfranchetto/smild,mtfranchetto/smild,mtfranchetto/smild
lib/tasks/Clean.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { EventEmitter } from 'events';\n\nimport { Logger } from './util';\nimport { ServiceConstructor, ServiceContainer } from './service';\n\nexport class Kaptan extends EventEmitter {\n public readonly logger: Logger;\n public rea...
typescript
edit
0
2
mit
e08d27b016895b0cd200729169c918b152b038cc
ibrahimduran/node-kaptan
src/kaptan.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component, Inject } from '@angular/core';\nimport { FormGroup, FormBuilder, Validators } from '@angular/forms';\n\n@Component({\n selector: 'departments-add',\n templateUrl: './add.component.html'\n})\nexport class Depart...
typescript
edit
0
1
mit
aaf8384f2b353b895ed1727bdd8b977ad4977bd2
denismaster/dcs,denismaster/dcs,denismaster/dcs,denismaster/dcs
src/Diploms.WebUI/ClientApp/app/departments/components/add/add.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport class SlidesRoutes {\n static get(Component: any) {\n return [\n {path: `:id`, component: Component},\n {path: `**`, component: Component}\n ];\n }\n}\n\n```\n\nApply this change: Add a smart redirect to get rid...
typescript
edit
0
0
apache-2.0
9f129f980d87ec01acdc2182c826f498f3a8aa08
nycJSorg/angular-presentation,nycJSorg/angular-presentation,nycJSorg/angular-presentation
libs/presentation/src/lib/slide-routes.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport BaseRoute from 'explorviz-frontend/routes/base-route';\n// @ts-ignore\nimport AuthenticatedRouteMixin from 'ember-simple-auth/mixins/authenticated-route-mixin';\nimport AlertifyHandler from 'explorviz-frontend/mixins/alertify-han...
typescript
edit
0
1
apache-2.0
1a24b896b6e6f0a03f17d16932df39276d969485
ExplorViz/explorviz-ui-frontend,ExplorViz/explorviz-ui-frontend,ExplorViz/explorviz-ui-frontend
app/routes/configuration/usermanagement/edit.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Value } from '../values.ts'\nimport { Type, Types } from './types.ts'\n\n/**\n * Calculates the Lore type of a value.\n */\nexport function typeOf(value: any): Type {\n switch (typeof value) {\n case 'number':\n if (Nu...
typescript
edit
0
7
mit
ef7d83a3a558d0886b2d3c2d4b90b1ae71d80ae9
marcopennekamp/lore,marcopennekamp/lore
runtime/src/lore/runtime/types/typeof.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { UIComponentSources, UIComponentSinks } from '../';\nimport xs, { Stream } from 'xstream';\nimport { VNode } from '@cycle/dom';\nimport { SvgIconSinks } from '../SvgIcon';\nimport { FontIconSinks } from '../FontIcon';\n\nexport ...
typescript
edit
0
0
mit
b3146ea00538b3c708305a38aae8b49ec44adb18
cyclic-ui/cyclic-ui,cyclic-ui/cyclic-ui
src/components/Avatar/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { open } from 'typings-core'\nimport { logError } from './support/cli'\n\nexport function help () {\n return `\ntypings open <location>\n\n <location> A known Typings location with scheme\n`\n}\n\nexport function exec (args: s...
typescript
edit
0
2
mit
b637d7e0479f6d3372a8fb0baa7a5c7e6e14d264
typings/typings,typings/typings
src/bin-open.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport getImageInfo from './getImageInfo';\n\n/**\n * Return a list of the volumes that an Image has\n */\nexport default async((host: Concierge.Host, dockerImage: string) => {\n const info = await(getImageInfo(host, dockerImage));\n...
typescript
edit
0
2
mit
7fea76984735e7c63c1016d4a0f00b6cc0b49416
the-concierge/concierge,the-concierge/concierge,paypac/node-concierge,the-concierge/concierge,paypac/node-concierge,paypac/node-concierge,paypac/node-concierge
src/api/variants/getVolumes.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport * from './component'\nexport * from './fun'\nexport * from './log'\nexport * from './reattach'\nexport * from './style'\nexport * from './worker'\n\n// mori helpers\nimport * as _Mori from './mori'\nexport const Mori = _Mori\n\n`...
typescript
edit
0
0
mit
f696c0411f19edb4add0755c4635ad63102779d8
FractalBlocks/Fractal,FractalBlocks/Fractal,FractalBlocks/Fractal
src/utils/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n'use strict';\nimport Promise = require('bluebird');\n\nimport { window, QuickPickItem, commands, Uri } from 'vscode';\nimport { promiseList, projectDirectory } from '../../src/workspace/projectList';\n\nexport interface projectQuickPic...
typescript
edit
0
2
mit
1fd0d903da49de96078c705432e4982fca0162a8
joeferraro/MavensMate-VisualStudioCode
src/vscode/projectQuickPick.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * @copyright 2017-2018, Miles Johnson\n * @license https://opensource.org/licenses/MIT\n */\n\nimport Context from './Context';\nimport CrashLogger from './CrashLogger';\nimport Routine from './Routine';\nimport CoreTool fro...
typescript
edit
0
2
mit
66436fb9ffaa3c2f23efcd706d5413bb31d862cb
milesj/boost,milesj/boost
packages/core/src/Pipeline.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport createFetchMock from 'vitest-fetch-mock';\n\nimport '@testing-library/jest-dom';\n\n// Suppress oaf-react-router warning about missing title\ndocument.title = 'React Starter';\n\n// Mock fetch\ncreateFetchMock(vi).enableMocks();\...
typescript
edit
0
1
mit
69f63cddccc269c37d254c9ce5dc0e5a9b92a270
Kamahl19/react-starter,Kamahl19/react-starter,Kamahl19/react-starter,Kamahl19/react-starter
src/setupTests.ts
accepted
null
true