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 { OutlineSyntaxNode } from '../../SyntaxNodes/OutlineSyntaxNode'\nimport { HeadingLeveler } from './HeadingLeveler'\nimport { UpConfig } from '../../UpConfig'\n\n\nexport interface OutlineParserArgs {\n text: string\n headingLe...
typescript
edit
0
0
mit
dab981de5a27e1fc81946ec1cdfa5f042763f40c
start/up,start/up
src/Parsing/Outline/OutlineParserArgs.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport {Menu, Input} from 'semantic-ui-react';\nimport UserSessionInfo from '../State/Identity/UserSessionInfo';\nimport NavigationBarState from '../State/NavigationBarState';\n\nexport interface Navigat...
typescript
edit
null
null
bsd-3-clause
92fc60aedda42478163ce3cf95bcc6e49f558af9
Rdbaker/Mealbound,Rdbaker/Mealbound,Rdbaker/Mealbound,Rdbaker/Mealbound,Rdbaker/Mealbound
CeraonUI/src/Components/NavigationBar.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React, { CSSProperties, Ref } from 'react';\nimport { classnames } from 'react-components';\n\ninterface Props {\n style: CSSProperties;\n more: number;\n eventRef?: Ref<HTMLDivElement>;\n isSelected: boolean;\n}\n// ...
typescript
edit
null
null
mit
19801ada9bee3ecd137c466c6e4a9f20de10aedb
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
applications/calendar/src/app/components/events/MoreFullDayEvent.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport const sbgHelperLibrary = `\nvar setMetadata = function(file, metadata) {\n if (!('metadata' in file))\n file['metadata'] = metadata;\n else {\n for (var key in metadata) {\n file['metadata'][key] = ...
typescript
edit
0
0
apache-2.0
2bad14b0ade7fd94ef549401e609b3167bb1aa5c
rabix/cwl-ts,rabix/cwl-ts,rabix/cwl-ts
src/models/helpers/sbg-expression-lib.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 { updateStore } from '../lib/update-store'\nimport { Octicon, OcticonSymbol } from '../octicons'\n\ninterface IUpdateAvailableProps {\n readonly on...
typescript
edit
null
null
mit
d7058c12bc19d5bd037e3d21dc80ed27b2a38d31
j-f1/forked-desktop,hjobrien/desktop,BugTesterTest/desktops,gengjiawen/desktop,kactus-io/kactus,shiftkey/desktop,hjobrien/desktop,j-f1/forked-desktop,say25/desktop,j-f1/forked-desktop,desktop/desktop,artivilla/desktop,say25/desktop,BugTesterTest/desktops,gengjiawen/desktop,gengjiawen/desktop,BugTesterTest/desktops,say2...
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\nnamespace YJMCNT {\n /**\n * CounterView\n */\n export class CounterView extends Core.View {\n counter:Counter;\n \n constructor() {\n super();\n this.counter = new Counter();\n ...
typescript
edit
0
1
mit
9aa4bb66f2cb494b53b0021c1ef7ae3ae0224e1c
yajamon/chrome-ext-counter,yajamon/chrome-ext-counter,yajamon/chrome-ext-counter
src/ts/view/counter.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport * as Aggregate from './search-results-aggregate/search-results-aggregate';\nimport * as Person from './search-results-person/search-results-person'\nimport { Row, Col } from 'react-bootstrap'\n\ne...
typescript
edit
null
null
mit
e037fa061174c3e74af6515f487d8b39b19f2f0f
JoshuaToth/person-data-viewer,JoshuaToth/person-data-viewer,JoshuaToth/person-data-viewer
src/app/search-results/search-results.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as Actions from '../actions/types';\nimport ActionType = Actions.ActionType;\n\nexport default function reduce(state: AppState = { containers: [], hosts: [] }, action: ActionType): AppState {\n switch (action.type) {\n ...
typescript
edit
0
5
mit
fe984c25c2ae2ea8d21e5fc65dd89ac93c6494b7
paypac/node-concierge,paypac/node-concierge,the-concierge/concierge,the-concierge/concierge,paypac/node-concierge,paypac/node-concierge,the-concierge/concierge
front/components/store/reducers/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Injectable, ErrorHandler } from '@angular/core';\nimport { HttpErrorResponse } from '@angular/common/http';\nimport { environment } from '@env/environment';\nimport { NotificationService } from '../notifications/notification.se...
typescript
edit
0
2
mit
ae18815f96933a7fcf98dda9ac7ea0de2ef22cba
tomastrajan/angular-ngrx-material-starter,tomastrajan/angular-ngrx-material-starter,tomastrajan/angular-ngrx-material-starter,tomastrajan/angular-ngrx-material-starter
src/app/core/error-handler/app-error-handler.service.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as fs from 'fs';\n\nlet path = 'node_modules/ace-builds/src-noconflict/ace.js';\n\ntry {\n fs.accessSync(path);\n} catch (e) {\n // rethrow if no min\n fs.accessSync(path = 'node_modules/ace-builds/src-min-noconflict/a...
typescript
edit
0
0
mit
b9c64ef470c645c045f6390438c4e6c27554aef1
qsctr/java-editor,qsctr/java-editor,qsctr/java-editor
ts/editor/loadAce.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React, { useState } from \"react\";\nimport { ReactSortable } from \"../../src\";\nimport styled from \"styled-components\";\nimport { threes, Item } from \"../util\";\n\nexport function WithHandle() {\n const [list, setList] = ...
typescript
edit
null
null
mit
66666eba32f395242a0245b73a05d3598375597b
cheton/react-sortable
examples/components/with-handle.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { render, screen, fireEvent } from \"@testing-library/react\"\nimport { PreferencesApp } from \"../PreferencesApp\"\n\ndescribe(\"PreferencesApp\", () => {\n it(\"renders the preference center\", () => {\n render(<Preferences...
typescript
edit
null
null
mit
1677778e44fd15d37047fdfd485594c4123c3dab
artsy/force,artsy/force,artsy/force,artsy/force
src/v2/Apps/_Preferences2/__tests__/PreferencesApp.jest.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {assert} from 'chai';\nimport * as mm from '../src';\nimport * as path from 'path';\n\nconst t = assert;\n\nit(\"should reject files that can't be parsed\", async () => {\n\n const filePath = path.join(__dirname, 'samples', __fi...
typescript
edit
0
2
mit
4264ecfadc997194d47df4724f922f242c044b20
Borewit/music-metadata,Borewit/music-metadata
test/test-no-metadata.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nimport {css} from 'lit';\n\nexport const iconStyles = css`\n iron-icon {\n display: inline-block;\n vertical-align: top;\n width: 20p...
typescript
edit
0
0
apache-2.0
f254b169fd0c6d2682d68a4cc4b6a00332ba38ef
GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit
polygerrit-ui/app/styles/gr-icon-styles.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { classNamePrefix } from \"./consts\";\n\nexport const sortArrowClassName = classNamePrefix + \"sortArrow\";\nexport const activeSortArrowClassName = classNamePrefix + \"sortArrow--active\";\nexport const ascendantSortArrowClassN...
typescript
edit
0
0
mit
3f22797c158be281f8deb333cff7d9208459e704
vhfmag/react-data-table,vhfmag/react-data-table,vhfmag/react-data-table
src/utils/privateClassNames.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { OpaqueToken, Provider } from '@angular/core';\n\nimport * as uuid from 'uuid';\n\nexport interface IGuidService {\n\ttime(): string;\n\trandom(): string;\n}\n\nclass GuidService implements IGuidService {\n\ttime(): string {\n\t...
typescript
edit
0
1
mit
d5ee7dc00342fdefb12fcea0aa7ed2f9c10463c0
RenovoSolutions/TypeScript-Angular-Utilities,SamGraber/TypeScript-Angular-Utilities,SamGraber/TypeScript-Angular-Utilities,RenovoSolutions/TypeScript-Angular-Utilities
source/services/guid/guid.service.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n\n/**\n * Deep clone object\n * @param object Object to clone\n * @returns The cloned object\n */\nexport function clone <T>(object: T): T {\n var out, v, key\n out = Array.isArray(object) ? [] : {}\n for (key in object) {\n v =...
typescript
edit
0
3
mit
8cecd36684e84051e131639e4ce9d06e15d25735
FractalBlocks/Fractal,FractalBlocks/Fractal,FractalBlocks/Fractal
src/core/utils.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from \"react\";\nimport {Box, Container, Grid, TextField} from \"@material-ui/core\";\nimport {GroupCard} from \"./GroupCard\";\n\nexport function GroupListPage() {\n return (\n <Box mt={4}>\n <Container maxWid...
typescript
edit
null
null
apache-2.0
c1ba2fa6f6f7e30f7b069f09a3532c542886c09e
googleinterns/step250-2020,googleinterns/step250-2020,googleinterns/step250-2020,googleinterns/step250-2020
coffee-chats/src/main/webapp/src/components/GroupListPage.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {async, TestBed} from \"@angular/core/testing\";\n\nimport {AppComponent} from \"./app.component\";\nimport {MdSidenavModule, MdSnackBarModule} from \"@angular/material\";\nimport {MainToolbarComponent} from \"./main-toolbar/main...
typescript
edit
0
1
mit
660db27017f740f4ee851b5bf8bc742e1ada2b43
lukaszkostrzewa/graphy,lukaszkostrzewa/graphy,lukaszkostrzewa/graphy
src/app/app.component.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { AppSettings, AppSettingsTypes, OVERWRITE_SETTINGS } from './types';\n\nconst initialState: AppSettings = {\n webmap: 'e691172598f04ea8881cd2a4adaa45ba',\n title: 'GFW Mapbuilder',\n subtitle: 'Make maps that matter',\n logo...
typescript
edit
0
2
mit
4ec2109c8d961d7384721708a6d8a982d66cb986
wri/gfw-mapbuilder,wri/gfw-mapbuilder,wri/gfw-mapbuilder
src/js/store/appSettings/reducers.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react'\nimport { Button } from '../lib/button'\nimport { ButtonGroup } from '../lib/button-group'\nimport { Dialog, DialogContent, DialogFooter } from '../dialog'\nimport { InstalledCLIPath } from '../lib/install...
typescript
edit
null
null
mit
265a20787f6982e5b0373656efbc01512c179576
desktop/desktop,say25/desktop,kactus-io/kactus,shiftkey/desktop,say25/desktop,artivilla/desktop,shiftkey/desktop,j-f1/forked-desktop,kactus-io/kactus,say25/desktop,shiftkey/desktop,artivilla/desktop,j-f1/forked-desktop,say25/desktop,desktop/desktop,desktop/desktop,artivilla/desktop,j-f1/forked-desktop,kactus-io/kactus,...
app/src/ui/cli-installed/cli-installed.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport net = require(\"net\");\n\n/**\n * Represents a given host and port. Handles checking whether a host \n * is up or not, as well as if it is accessible on the given port.\n */\nclass MonitoredSocket {\n /**\n * Returns whe...
typescript
edit
0
1
mit
be9ac553de4c95272a3951282233ef7471ba95fe
OzuYatamutsu/is-my-server-up,OzuYatamutsu/is-my-server-up,OzuYatamutsu/is-my-server-up
MonitoredSocket.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component, EventEmitter, Output, Input } from '@angular/core';\n\n\n@Component({\n selector: 'app-sac-card',\n templateUrl: 'card.simple.component.html',\n styleUrls: ['card.simple.component.css'],\n})\n\nexport class CardCo...
typescript
edit
0
4
apache-2.0
a4d0c9b3967e8a526bce79ba8a2f33c4b70bbcf9
ZGIS/smart-portal-webgui,ZGIS/smart-portal-webgui,ZGIS/smart-portal-webgui,ZGIS/smart-portal-webgui,ZGIS/smart-portal-webgui
src/app/dashboards/card.simple.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport axios from 'axios';\n\nconst welcomeScrapboxUrl = `https://scrapbox.io/api/pages/tsg/welcome`;\n\nimport {WebClient, RTMClient} from '@slack/client';\n\ninterface SlackInterface {\n\trtmClient: RTMClient,\n\twebClient: WebClient,...
typescript
edit
0
2
mit
4a85c84da21425368c22a3c59aaa6af8a89f757b
tsg-ut/slackbot,tsg-ut/slackbot,tsg-ut/slackbot,tsg-ut/slackbot,tsg-ut/slackbot,tsg-ut/slackbot
welcome/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// The following has to be added to the bottom of typings/global/backbone.localstorage/index.d.ts.\n// TODO: Figure out how to avoid this or add a pull request fixing this.\n// declare module \"backbone.localstorage\" {\n// export =...
typescript
edit
0
1
unlicense
f6c8be81e8757f88c0b6d8d8b4fc528e106f3358
janaagaard75/framework-investigations,janaagaard75/framework-investigations,janaagaard75/framework-investigations,janaagaard75/framework-investigations
typescript-marionette-v2/src/RootModel.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Inject, Injectable, InjectionToken, OnDestroy, Optional } from '@angular/core';\nimport { from, Observable } from 'rxjs';\nimport { GEEKS_DIARY_DIR_PATH, NOTES_DIR_PATH, WORKSPACE_DIR_PATH } from '../../core/workspace';\nimport...
typescript
edit
0
0
mit
0a2475655fc8f11a848b7a2c948a9bffad1c4c91
seokju-na/geeks-diary,seokju-na/geeks-diary,seokju-na/geeks-diary
src/browser/shared/workspace.service.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { JSONAPIResourceObject } from './jsonapi-resource-object.model';\n\nexport class JSONAPIResponse<T extends JSONAPIResourceObject | JSONAPIResourceObject[]> {\n public data: T;\n public included: JSONAPIResourceObject[];\n\...
typescript
edit
0
2
mit
d2a1af471b071f2cc8d7940ec887609577a3be8d
ValueMiner/ng2-valueminer-connector,ValueMiner/ng2-valueminer-connector
src/jsonapi/jsonapi-response.model.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\n@Component({\n selector: 'app-footer',\n templateUrl: './footer.component.html',\n styleUrls: ['./footer.component.sass']\n})\nexport clas...
typescript
edit
0
4
apache-2.0
5bc0a365f0ac29df2feb22e611d691b2eceda386
SamuelM333/snippet-sniper-frontend,SamuelM333/snippet-sniper-frontend,SamuelM333/snippet-sniper-frontend
src/app/shared/footer/footer.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { OpaqueToken, Provider } from '@angular/core';\n\nimport { flatten } from './util';\nimport { CONNECT_EFFECTS_PROVIDER } from './effects';\nimport { STATE_UPDATES_PROVIDER } from './state-updates';\n\nexport const BOOTSTRAP_EFFE...
typescript
edit
0
1
mit
15e9312625c10b488ad49f648b95796d7d6ef5f0
ngrx/effects,ngrx/effects
lib/run-effects.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as localForage from 'localforage';\n\nimport {IKeyValueStorageProxy} from './KeyValueStorageProxy';\nimport {ISerializer} from '../serializers/serializer';\n\nexport class LocalForageProxy implements IKeyValueStorageProxy {\n ...
typescript
edit
0
3
apache-2.0
e8d055daa6b34881915d6cf39715da668f907db6
bencompton/io-source
src/key-value-storage/LocalForageProxy.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {AfterViewInit} from \"@angular/core\";\nimport {Component} from \"@angular/core\";\nimport {Router} from \"@angular/router\";\n\n@Component({\n selector: 'comming-soon',\n templateUrl: './comingSoon.component.html'\n})\nexport...
typescript
edit
0
4
bsd-3-clause
cb5936c7f9738311ab2d8cab7fa7267bbe63a400
UoA-eResearch/research-hub,UoA-eResearch/research-hub,UoA-eResearch/research-hub
src/app/comingSoon/comingSoon.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<tileset name=\"platforms\" tilewidth=\"128\" tileheight=\"128\" spacing=\"1\" tilecount=\"4\" columns=\"4\">\n <image source=\"C:/Users/Monkey/Desktop/platform sprites.png\" width=\"515\" hei...
typescript
edit
null
null
mit
a1fc323e19d5d41667e0392606f41473e10446fb
virtuoushub/game-off-2016,virtuoushub/game-off-2016,whoa-algebraic/game-off-2016,virtuoushub/game-off-2016,whoa-algebraic/game-off-2016,whoa-algebraic/game-off-2016
Assets/.tiled/platforms.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * Joins a list of strings to produce a human readable string:\n *\n * > humanReadableJoin([\"apple\", \"banana\", \"orange\"])\n * \"apple, banana, and orange\"\n */\nexport function humanReadableJoin(list: string[]) {\n return l...
typescript
edit
0
1
apache-2.0
fa35a1e5563a8a47625e304982868cfcdbf0ee72
googleinterns/step250-2020,googleinterns/step250-2020,googleinterns/step250-2020,googleinterns/step250-2020
coffee-chats/src/main/webapp/src/format.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\r\nimport { Button } from '@shopify/polaris';\r\nimport { Tooltip } from '@blueprintjs/core';\r\nimport { TOpticonData, RequesterScores } from '../../types';\r\nimport { turkopticonBaseUrl } from '../../c...
typescript
edit
null
null
mit
832533c287b8e6497fd246619338c763dee9464b
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
src/components/SearchCard/TOpticonButton.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\n\nimport { withTranslation } from '@waldur/i18n';\nimport { Table, connectTable, createFetcher } from '@waldur/table-react';\n\nexport const TableComponent = props => {\n const { translate } = props;\n ...
typescript
edit
null
null
mit
5c5b1e2eceed6117bf2e310d1679d3c56427b2c6
opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport
src/marketplace/orders/ResourceUsageList.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport \"./signaling\"\nimport \"./enums\"\nimport \"./has_props\"\nimport \"./layout\"\nimport \"./logging\"\nimport \"./properties\"\nimport \"./property_mixins\"\nimport \"./util\"\nimport \"./selection_manager\"\nimport \"./selector...
typescript
edit
0
0
bsd-3-clause
ea27bf8177e49c200c22f5392f40503ecdb09da8
rs2/bokeh,Karel-van-de-Plassche/bokeh,timsnyder/bokeh,aavanian/bokeh,timsnyder/bokeh,timsnyder/bokeh,rs2/bokeh,rs2/bokeh,rs2/bokeh,dennisobrien/bokeh,stonebig/bokeh,jakirkham/bokeh,stonebig/bokeh,stonebig/bokeh,dennisobrien/bokeh,timsnyder/bokeh,ericmjl/bokeh,philippjfr/bokeh,DuCorey/bokeh,dennisobrien/bokeh,mindriot10...
bokehjs/test/core/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * @author Thomas Kleinke\n */\nexport module ImageWidthCalculator {\n\n export function computeWidth(imageWidth: number, imageHeight: number, targetHeight: number,\n maxWidth: number): number {\n...
typescript
edit
0
1
apache-2.0
1ca79ae147725b96f0f6a494f0151c4ab649c55d
codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client
app/core/images/row/image-width-calculator.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { remote } from 'electron'\nimport { ApplicationTheme } from './application-theme'\nimport { IDisposable, Disposable, Emitter } from 'event-kit'\nimport { supportsDarkMode, isDarkModeEnabled } from './dark-theme'\n\nclass ThemeCh...
typescript
edit
0
3
mit
aa3b1b1bab2538576db2e3f99b944fe3776c9edd
say25/desktop,say25/desktop,j-f1/forked-desktop,shiftkey/desktop,artivilla/desktop,say25/desktop,desktop/desktop,artivilla/desktop,shiftkey/desktop,j-f1/forked-desktop,shiftkey/desktop,artivilla/desktop,desktop/desktop,desktop/desktop,j-f1/forked-desktop,j-f1/forked-desktop,say25/desktop,shiftkey/desktop,artivilla/desk...
app/src/ui/lib/theme-change-monitor.ts
rejected_duplicate
Near-duplicate of sample 112638
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport styled, { css } from 'styled-components';\n\nimport { shadows } from '@mixins';\n\nexport const Container = styled.div`\n width: 300px;\n padding-top: 4px;\n padding-bottom: 4px;\n position: absolute;\n top: 56px;\n right: ...
typescript
edit
0
0
apache-2.0
3ea0cdea91f174c9e89cd64d471cd021941197a9
Nersent/Wexond,Nersent/Wexond
src/renderer/app/components/Menu/styles.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport runJest from '../__helpers__/runJest';\nimport * as React from 'react';\n\ndescribe('TSX Errors', () => {\n it('should show the correct error locations in the typescript files', () => {\n const result = runJest('../button', [...
typescript
edit
0
1
mit
f3ba44e02964c60dd674645474bcc68cc2b55d11
kulshekhar/ts-jest,kulshekhar/ts-jest
tests/__tests__/tsx-errors.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { color } from \"@artsy/palette\"\nimport { fontFamily } from \"@artsy/palette/dist/platform/fonts\"\nimport { border } from \"Components/Mixins\"\nimport React from \"react\"\nimport { CardElement } from \"react-stripe-elements\...
typescript
edit
null
null
mit
f952ca8afb09d9d6ee7cccd6275c0f4bc996425f
artsy/reaction,xtina-starr/reaction,xtina-starr/reaction,xtina-starr/reaction,xtina-starr/reaction,artsy/reaction-force,artsy/reaction-force,artsy/reaction,artsy/reaction
src/Apps/Order/Components/CreditCardInput.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * Returns the member symbol\n * @param kindString\n */\nexport function getMemberSymbol(kindString: string) {\n let symbol = '';\n switch (kindString) {\n case 'Constructor signature':\n symbol = '⊕ ';\n break;\n ...
typescript
edit
0
6
mit
eb89c92f9c241e675b01c80f6ced09be5dc4f914
tgreyuk/typedoc-plugin-markdown,tgreyuk/typedoc-plugin-markdown
src/theme/helpers/getMemberSymbol.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport gql from 'graphql-tag'\n\nexport default gql`\n mutation UpdateAccountMutation(\n $email: String\n $first_name: String\n $last_name: String\n $show_nsfw: Boolean\n $home_path: String\n $receive_email: String\n ...
typescript
edit
0
0
mit
34c112a5db598fdbbe5f929a0120b5712d07589d
aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell
src/v2/components/UserSettings/mutations/updateAccountMutation.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { observer } from 'mobx-react';\nimport * as React from 'react';\n\nimport store from '~/renderer/app/store';\nimport ToolbarButton from '~/renderer/app/components/ToolbarButton';\nimport { icons } from '~/renderer/app/constants/...
typescript
edit
null
null
apache-2.0
4f05c6975fa95db665c43eb4206d964b88589d99
Nersent/Wexond,Nersent/Wexond
src/renderer/app/components/NavigationButtons/index.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "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.\n\nimport {\n ManagerBase\n} from './manager-base';\n\nexport\nclass EmbedManager extends ManagerBase<HTMLElement> {\n display...
typescript
edit
0
3
bsd-3-clause
2298690b216938cd9b93b6fae97f83e14d106cc0
ipython/ipywidgets,SylvainCorlay/ipywidgets,SylvainCorlay/ipywidgets,ipython/ipywidgets,jupyter-widgets/ipywidgets,cornhundred/ipywidgets,jupyter-widgets/ipywidgets,ipython/ipywidgets,SylvainCorlay/ipywidgets,cornhundred/ipywidgets,jupyter-widgets/ipywidgets,cornhundred/ipywidgets,cornhundred/ipywidgets,SylvainCorlay/i...
jupyter-js-widgets/src/embed-manager.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { buildTools } from '../constants';\n\nexport function includesSuccess(input: string = '') {\n let isBuildToolsSuccess;\n let isPythonSuccess;\n\n if (buildTools.version === 2015) {\n // Success strings for build tools (201...
typescript
edit
0
9
mit
edc2b7b9a859883edafb050a5623bb31d792920d
felixrieseberg/windows-build-tools,felixrieseberg/windows-build-tools
src/utils/installation-sucess.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as Archiver from 'archiver';\nimport * as path from 'path';\nimport { Logger } from '../lib/Logger';\nimport { ModuleBundler } from '../ModuleBundler';\n\ndescribe('ModuleBundler', () => {\n const servicePath = path.resolve(__...
typescript
edit
0
1
mit
763aa6e00ef2d5749c2a5d61cae77cd2e4457350
nfour/serverless-build-plugin,nfour/serverless-build-plugin,nfour/serverless-build-plugin
src/__tests__/ModuleBundler.test.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { CesiumService } from '../../cesium/cesium.service';\nimport { Injectable } from '@angular/core';\nimport { SimpleDrawerService } from '../simple-drawer/simple-drawer.service';\nimport { EllipsePrimitive } from 'primitive-primit...
typescript
edit
0
1
mit
b5ee5af9c2763ed3fa45679cd3e3e35404bbcbd4
TGFTech/angular-cesium,TGFTech/angular-cesium,TGFTech/angular-cesium
src/services/drawers/ellipse-drawer/dynamic-ellipse-drawer.service.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component } from '@angular/core';\nimport { Platform } from 'ionic-angular';\nimport { StatusBar, Splashscreen } from 'ionic-native';\n\nimport { TabsPage } from '../pages/tabs/tabs';\n\nimport { ManUpService } from 'ionic-manu...
typescript
edit
0
1
mit
e89ff7648b4c00942fc115cb115441acd5584171
NextFaze/ionic-manup,NextFaze/ionic-manup,NextFaze/ionic-manup
manup-demo/src/app/app.component.ts
rejected_duplicate
Near-duplicate of sample 113320
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component, Input } from '@angular/core';\n@Component({\n selector: 'codeCard',\n template: `<plrsCard sectioned title=\"Angular Code\">\n <pre><code>{{ code }}</code></pre>\n </plrsCard>`,\n styles: [\n ...
typescript
edit
0
0
mit
97996fb2ec739ca9ba5593b65b5cbc339f8f7c3b
syrp-nz/angular-polaris,syrp-nz/angular-polaris,syrp-nz/angular-polaris
src/app/doc/utilities/code.card.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from 'react';\n\nimport { Icon } from '../../components';\nimport { usePermissions } from '../../hooks';\nimport { classnames } from '../../helpers';\n\nimport Sections from './Sections';\nimport { SectionConfig } from '../...
typescript
edit
null
null
mit
a49ce682441924e9e095e4a2dcce45523d302732
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
packages/components/containers/overview/IndexSection.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { IWorkspaceModuleProvider } from './workspace-module-provider';\nimport { matchByWords } from './utils';\nimport * as path from 'path';\n\nexport function findWorkspaceModules(moduleProvider: IWorkspaceModuleProvider, currentDoc...
typescript
edit
0
4
mit
25c039a57d86f55eed7c171a3ed88664937a14c2
reflectiondm/vscode-npmsmartimporter
src/workspace-module-resolver.ts
rejected_duplicate
Near-duplicate of sample 113319
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nconst TurndownService = require('turndown');\nconst turndownService = new TurndownService();\n\n/**\n * Coverts html to markdown. We need this in comment blocks that have been processed by the 'Marked' plugin.\n * @param options\n */\ne...
typescript
edit
0
1
mit
d7ceba4ef1e321b1b8026e0dcddba6ed2ecd3fa1
tgreyuk/typedoc-plugin-markdown,tgreyuk/typedoc-plugin-markdown
src/theme/helpers/getMarkdownFromHtml.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Env, CISource } from \"../ci_source\"\nimport { ensureEnvKeysExist, ensureEnvKeysAreInt } from \"../ci_source_helpers\"\n\n/**\n * Nevercode.io CI Integration\n *\n * Environment Variables Documented: https://developer.nevercod...
typescript
edit
0
3
mit
b9984c9087abd3301f439282052c130608c83de7
danger/danger-js,danger/danger-js,danger/danger-js,danger/danger-js
source/ci_source/providers/Nevercode.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from \"react\";\nimport { TileSetServoAngle } from \"../tile_set_servo_angle\";\nimport { mount } from \"enzyme\";\nimport { fakeSequence } from \"../../../__test_support__/fake_state/resources\";\nimport { SetServoAng...
typescript
edit
null
null
mit
eeabe48cef90c70b817962bdb73a1e68950348e5
FarmBot/farmbot-web-app,gabrielburnworth/Farmbot-Web-App,gabrielburnworth/Farmbot-Web-App,FarmBot/Farmbot-Web-API,FarmBot/farmbot-web-app,FarmBot/Farmbot-Web-API,gabrielburnworth/Farmbot-Web-App,gabrielburnworth/Farmbot-Web-App,FarmBot/Farmbot-Web-API,gabrielburnworth/Farmbot-Web-App,FarmBot/Farmbot-Web-API,FarmBot/Far...
frontend/sequences/step_tiles/__tests__/tile_set_servo_angle_test.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Database, Mode } from '../src/Database';\n\n// Mocha root suite. Install test hooks for all tests here.\n// https://mochajs.org/#root-level-hooks\n\nbefore('connect to database', () => {\n return Database.get().connect(Mode....
typescript
edit
0
1
mit
f82f95780fed6e54147e99bc995495827990155f
mattbdean/Helium,mattbdean/Helium,mattbdean/Helium,mattbdean/Helium
server/test/_root.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Directive, View, ElementRef} from 'angular2/angular2';\nimport {RouteConfig, Router} from 'angular2/router';\nimport {Http, Headers} from 'angular2/http';\nimport {Component, ViewQuery} from 'angular2/angular2';\n\nimport {CORE_...
typescript
edit
0
1
mit
94731c52f02a0d46ccdfaa8c16ec79504623d9d3
Ao21/PatternLibrary,Ao21/PatternLibrary,Ao21/PatternLibrary
src/app/app.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React, { PureComponent } from 'react'\nimport cx from 'classnames'\n\nconst styles = require('./progress-step.css')\n\ninterface Props {\n onClick: () => void\n isSeen?: boolean\n isCurrentStep: boolean\n}\n\nconst noop ...
typescript
edit
null
null
mit
d287fb6173a817a476922a44981426ee64af5bde
WorldBrain/WebMemex,WorldBrain/WebMemex
src/common-ui/components/progress-step.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\ndeclare function all(a?: number, b?: number): void;\ndeclare function weird(a?: number | string, b?: number | string): void;\ndeclare function prefix(s: string, a?: number, b?: number): void;\ndeclare function rest(s: string, a?: number...
typescript
edit
0
0
apache-2.0
8576018af1825a5df897376a9eb75031b54dbbb7
SaschaNaz/TypeScript,RyanCavanaugh/TypeScript,nojvek/TypeScript,alexeagle/TypeScript,kitsonk/TypeScript,Microsoft/TypeScript,kpreisser/TypeScript,minestarks/TypeScript,kitsonk/TypeScript,minestarks/TypeScript,microsoft/TypeScript,alexeagle/TypeScript,alexeagle/TypeScript,kpreisser/TypeScript,weswigham/TypeScript,Micros...
tests/cases/conformance/expressions/functionCalls/callWithSpread2.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { EnvConfig } from './env-config.interface';\n\nconst BaseConfig: EnvConfig = {\n // Sample API url\n API: 'https://demo.com',\n RELEASEURL: 'https://github.com/nie-ine/raeber-website/releases/tag/0.8.0',\n RELEASEVERSION: '0...
typescript
edit
0
0
mit
928dfbe439421f61b626f0725f48ca506c763f5a
nie-ine/raeber-website,nie-ine/raeber-website,nie-ine/raeber-website,nie-ine/raeber-website
tools/env/base.ts
rejected_duplicate
Near-duplicate of sample 112906
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from \"react\"\nimport styled from \"styled-components\"\nimport * as fonts from \"../Assets/Fonts\"\nimport { media } from \"./Helpers\"\n\ntype TitleSize = \"xxsmall\" | \"small\" | \"medium\" | \"large\" | \"xlarge\" | \...
typescript
edit
null
null
mit
e23a8f4e8201ff3f452740b7b7a5de85dbd440e1
xtina-starr/reaction,xtina-starr/reaction,artsy/reaction,xtina-starr/reaction,artsy/reaction-force,artsy/reaction,artsy/reaction,xtina-starr/reaction,artsy/reaction-force
src/Components/Title.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { <%= pName %>Config } from \"./<%= hName %>.config\";\nimport { <%= pName %>Controller } from \"./<%= hName %>.controller\";\n\nlet module = angular\n .module(\"<%= appName %>.<%= name %>\", [])\n .controller(\"<%= pName %...
typescript
edit
null
null
mit
d8678603245a969e7dabc2e834efc08985884d6b
Kurtz1993/ngts-cli,Kurtz1993/ngts-cli,Kurtz1993/ngts-cli
templates/module/_name.ts
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from 'react';\nimport Icon from '@mdi/react';\nimport { mdiCloseCircleOutline } from '@mdi/js';\n\nimport content from '../../../../CHANGELOG.md';\nimport Modal from '../page/Modal';\n\ninterface ChangelogProps {\n close...
typescript
edit
null
null
mit
16a02144429e538aa2e6a0bc8ef082df13206339
benct/tomlin-web,benct/tomlin-web
app/scripts/components/home/Changelog.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { ApproxStructure, Log, Pipeline } from '@ephox/agar';\nimport { UnitTest } from '@ephox/bedrock-client';\nimport { TinyApis, TinyLoader } from '@ephox/mcagar';\nimport BbcodePlugin from 'tinymce/plugins/bbcode/Plugin';\nimport T...
typescript
edit
0
1
mit
d8aec0f91e943b98417f7c277065b976450bc017
TeamupCom/tinymce,tinymce/tinymce,tinymce/tinymce,TeamupCom/tinymce,tinymce/tinymce
modules/tinymce/src/plugins/bbcode/test/ts/browser/BbcodeSanityTest.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as assert from \"assert\";\nimport { wrap } from \"..\";\n\ndescribe(\"exceptions\", function () {\n it(\"should be cached\", function () {\n const error = new Error(\"expected\");\n let threw = false;\n function thro...
typescript
edit
0
4
mit
5634ef71147e9b3839cc335b563c8fa0f8245fb8
benjamn/optimism,benjamn/optimism
src/tests/exceptions.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Injectable } from '@angular/core';\nimport { environment } from './../../../environments/environment';\nimport { Observable } from 'rxjs';\nimport * as io from 'socket.io-client';\n\n@Injectable()\nexport class SocketService {\...
typescript
edit
0
3
mit
e4e030244b043182ca9b9dabaff47036153a3099
semagarcia/javascript-kata-player,semagarcia/javascript-kata-player,semagarcia/javascript-kata-player
src/app/core/services/socket.service.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React, { FunctionComponent, ComponentProps } from 'react';\nimport { styled } from '@storybook/theming';\n\nimport { Brand } from './Brand';\nimport { SidebarMenu, MenuList } from './Menu';\n\nexport interface HeadingProps {\n m...
typescript
edit
null
null
mit
03269c9b627ad24f48f5391dba104a76805eb31b
storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook,storybooks/react-storybook,kadirahq/react-storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook
lib/ui/src/components/sidebar/Heading.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * Created by Jean-paul.attard on 06/09/2016.\n */\n\nvar webpack = require('webpack');\nvar webpackMerge = require('webpack-merge');\nvar ExtractTextPlugin = require('extract-text-webpack-plugin');\n\nvar commonConfig = require('....
typescript
edit
0
0
mit
2051d9c3facbfa3c0bda0c78c00ec65ab3d826d1
jeanpaulattard/tourofheroes,jeanpaulattard/tourofheroes,jeanpaulattard/tourofheroes
config/webpack.prod.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\ninterface InternedStringMarker {\n \"d0850007-25c2-47d8-bb63-c4054016d539\": boolean;\n}\n\nexport type InternedString = InternedStringMarker & string;\n\nexport function intern(str: string): InternedString {\n return <InternedString>...
typescript
edit
0
1
mit
780cea570b4d4101756053cce45d73b987bd519a
glimmerjs/glimmer-vm,lbdm44/glimmer-vm,lbdm44/glimmer-vm,tildeio/glimmer,chadhietala/glimmer,chadhietala/glimmer,glimmerjs/glimmer-vm,lbdm44/glimmer-vm,glimmerjs/glimmer-vm,tildeio/glimmer,chadhietala/glimmer,chadhietala/glimmer,tildeio/glimmer
packages/node_modules/glimmer-util/lib/platform-utils.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
null
null
bsd-3-clause
0352cf197d53c471d27994585bc2fde2781e050f
jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab
packages/rendermime-extension/src/index.ts
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport {AngularFireModule} from '@angular/fire';\nimport {AngularFireAuthModule} from '@angular/fire/auth';\nimport {AngularFireDatabaseModule...
typescript
edit
0
0
apache-2.0
34af3f6b7d72f64571618059c74351a6537f37a0
google/tweakr,google/tweakr,google/tweakr,google/tweakr,google/tweakr
web-server/tweakr-server/src/app/tweak/tweak.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.\n */\n\n/**\n * @hidden\n */\nexport class StringUtils {\n /**\n * Check if a string is empty\n *\n * @param str\n *...
typescript
edit
0
3
mit
3c1f362737779104882e58a011a082c0cfccba7f
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/utils/StringUtils.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {async, ComponentFixture, TestBed} from '@angular/core/testing';\n\nimport {EnvironmentsComponent} from './environments';\nimport {HttpClientTestingModule} from '@angular/common/http/testing';\n\ndescribe('EnvironmentsComponent',...
typescript
edit
0
1
apache-2.0
cf49610b3c93fc46412961f02c4e35bc8a9717ad
googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020
step-release-vis/src/app/components/environments/environments_test.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport 'zone.js';\nimport 'reflect-metadata';\nimport { Component } from '@angular/core';\nimport { NgModule } from '@angular/core';\nimport { BrowserModule } from '@angular/platform-browser';\nimport { platformBrowserDynamic } from '@a...
typescript
edit
0
1
mit
9b1dbe8ec632c03807f7d9df584035948c87f011
pbraunstein/trackercise,pbraunstein/trackercise,pbraunstein/trackercise,pbraunstein/trackercise,pbraunstein/trackercise
app/static/helloWorld.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { match } from 'tiny-types';\n\nimport { ArbitraryTag, IssueTag, ManualTag, Tag } from './';\n\n/**\n * @package\n */\nexport class Tags {\n private static Pattern = /^@([\\w-]+)[:\\s]?(.*)/i;\n\n public static from(text: s...
typescript
edit
0
1
apache-2.0
d53c9bec261eef6d7c11aeeeca309bff9a7c9739
jan-molak/serenity-js,jan-molak/serenity-js,jan-molak/serenity-js,jan-molak/serenity-js
packages/core/src/model/tags/Tags.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/// <reference types=\"whatwg-fetch\" />\n\nimport { ApplicationInfo } from './model';\nimport { Reading } from './model';\nimport { formatDateBackend } from './dates';\n\nconst checkStatus = (response: Response): Response => {\n if ...
typescript
edit
0
3
mit
13567a1588cd21158a9db0dd07a5a4df095200c3
mthmulders/hyperion-web,mthmulders/hyperion-web,mthmulders/hyperion-web
app/scripts/api.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Set to remote chat server url" }, { "role": "assistant", "content": "export const appSettings = {\r\n chatServerUrl: 'https://serene-basin-84996.herokuapp.com/'\r\n}" } ]
typescript
new_file
0
0
mit
2359a79fa240b4687a75fbf4f78bd76d87e4d50b
rgripper/meetup-chat-app,rgripper/meetup-chat-app,rgripper/meetup-chat-app
src/app/appSettings.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/*\nCopyright 2021 The Matrix.org Foundation C.I.C.\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 h...
typescript
edit
0
0
apache-2.0
e5b475ad8935957ac183937129a73147a3469b42
matrix-org/matrix-js-sdk,matrix-org/matrix-js-sdk,matrix-org/matrix-js-sdk,matrix-org/matrix-js-sdk
src/@types/partials.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Route } from '@angular/router';\n\nimport { HomeRoutes } from './home/index';\nimport { MapSettingsRoutes } from './map-settings/index';\nimport { CameraSettingsRoutes } from './camera-settings/index';\nimport { ChartRoutes } f...
typescript
edit
0
0
mit
b533ed6ba7c719d006eb29054cef1f8f0eae2892
CaoDuyThanh/WebAppClient,CaoDuyThanh/WebAppClient,CaoDuyThanh/WebAppClient
src/client/app/dashboard/dashboard.routes.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// Fix some circular deps:\nimport \"./core/node\"\nimport \"./types/type\"\n\nexport {\n types,\n IType,\n ISimpleType,\n IComplexType,\n IModelType,\n ISnapshottable,\n IExtendedObservableMap\n} from \"./types\"\n...
typescript
edit
0
0
mit
fae9778fb611e1f92e8becc4ef9788306c1d8ab6
mweststrate/mobx-state-tree,mobxjs/mobx-state-tree,mobxjs/mobx-state-tree,mobxjs/mobx-state-tree,mweststrate/mobx-state-tree,mobxjs/mobx-state-tree
src/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport dotf = require('dotf');\n\nexport const claspAuthenticated = async (): Promise<boolean> => {\n const dotglobal = dotf('~', 'clasprc.json');\n return dotglobal.exists();\n};\n\n```\n\nApply this change: Fix for dotf is not a fun...
typescript
edit
0
1
apache-2.0
57ec07cdc8ea93eb49ddb72b2eee18f68335b831
googledatastudio/tooling,googledatastudio/tooling,googledatastudio/tooling
src/connector/validation.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport Select from 'react-select';\n\nexport const SelectField = (props) => {\n const { input, simpleValue, options, ...rest } = props;\n return (\n <Select\n {...rest}\n name={input.name}...
typescript
edit
null
null
mit
8c772af7ffa7319c167dcb0b530f6fcb7f906a71
opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport
src/form/SelectField.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React, { FunctionComponent, ComponentProps } from 'react';\nimport { styled } from '@storybook/theming';\n\nimport { Brand } from './Brand';\nimport { SidebarMenu, MenuList } from './Menu';\n\nexport interface HeadingProps {\n m...
typescript
edit
null
null
mit
f5cce7bb3c5902940608c0b65c64f448aa0dd911
storybooks/storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/react-storybook
lib/ui/src/components/sidebar/Heading.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {buildHelper as helper} from \"../Container\";\nconst gulp = require(\"gulp\");\nconst ts = require(\"gulp-typescript\");\n\nexport default function Typescript() {\n let settings = helper.getSettings(),\n tsProject = ts...
typescript
edit
0
1
mit
03dfe8dd48c202ed991d4f2c78232988d39aab6e
mtfranchetto/smild,mtfranchetto/smild,mtfranchetto/smild
lib/tasks/Typescript.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { NgModule } from \"@angular/core\";\nimport { BrowserModule } from \"@angular/platform-browser\";\nimport { FormsModule } from \"@angular/forms\";\n\nimport { AppComponent } from \"../../components/app/app.component\";\nim...
typescript
edit
0
0
mit
1e19be712461e783676ffd4e6152cf74b7f5b43a
var-bin/angularjs-training,var-bin/angularjs-training,var-bin/angularjs-training,var-bin/angularjs-training
A2/quickstart/src/app/modules/app/app.module.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport default class Cache<T, V> {\n public size = 0;\n public misses = 0;\n public hits = 0;\n\n constructor(private limit: number, private func: (obj: T) => V, private store?: any) {\n this.store = store || new Map();\n }\n\n ...
typescript
edit
0
1
mit
e7263d43e4454746c46b15d4faef805af8b883d1
elwayman02/ember.js,qaiken/ember.js,Turbo87/ember.js,sandstrom/ember.js,bekzod/ember.js,knownasilya/ember.js,stefanpenner/ember.js,qaiken/ember.js,givanse/ember.js,sly7-7/ember.js,miguelcobain/ember.js,asakusuma/ember.js,emberjs/ember.js,jaswilli/ember.js,mfeckie/ember.js,kellyselden/ember.js,givanse/ember.js,sandstrom...
packages/@ember/-internals/utils/lib/cache.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as application from \"application\";\n\n// Make TypeScript happy\ndeclare var UIResponder: any;\ndeclare var UIStatusBarStyle: any;\ndeclare var UIApplication: any;\ndeclare var UIApplicationDelegate: any;\n\nexport function se...
typescript
edit
0
3
mit
cc9441e1facd6ff4b1fd7847504b6640e1ecdfe3
poly-mer/community,anhoev/cms-mobile,anhoev/cms-mobile,Icenium/nativescript-sample-groceries,NativeScript/sample-Groceries,dzfweb/sample-groceries,qtagtech/nativescript_tutorial,qtagtech/nativescript_tutorial,tjvantoll/sample-Groceries,qtagtech/nativescript_tutorial,anhoev/cms-mobile,tjvantoll/sample-Groceries,NativeSc...
app/utils/status-bar-util.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from \"react\"\nimport styled from \"styled-components\"\nimport { Banner, Box } from \"@artsy/palette\"\nimport { data as sd } from \"sharify\"\n\nexport const StagingBanner = () => {\n return (\n <Container>\n <B...
typescript
edit
null
null
mit
8cec30fcb1f88007cedf6d2a3517258a516b18a8
erikdstock/force,izakp/force,yuki24/force,cavvia/force-1,joeyAghion/force,damassi/force,eessex/force,erikdstock/force,anandaroop/force,artsy/force,damassi/force,anandaroop/force,artsy/force-public,oxaudo/force,anandaroop/force,joeyAghion/force,oxaudo/force,artsy/force-public,eessex/force,cavvia/force-1,damassi/force,jo...
src/desktop/components/react/stitch_components/StagingBanner.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// Imports Globals. Required for Webpack to include them in build.\nimport \"p2\";\nimport \"PIXI\";\nimport \"Phaser\";\n\nimport { Game } from './game'\n\nwindow.onload = () => {\n const config: Phaser.IGameConfig = {\n widt...
typescript
edit
0
1
mit
5d2096a944c3777e9f0352a5f5131d00b0f8a6c4
dmk2014/phaser-template,dmk2014/phaser-template,dmk2014/phaser-template
src/app.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { call, select } from 'redux-saga/effects';\r\nimport { PlayAudio } from '../actions/audio';\r\nimport { RootState } from '../types';\r\n\r\nconst playAudioFile = async (file: HTMLAudioElement, volume: number) => {\r\n try {\r\n...
typescript
edit
0
3
mit
a688504413528c354fa35e647a4fbde55451f588
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
src/sagas/playAudio.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {SunAndMoonConfigCtrl} from \"../src/config_ctrl\";\n\ndescribe(\"SunAndMoonConfigCtrl\", () => {\n it(\"config_ctrl should support old position format\", () => {\n SunAndMoonConfigCtrl.prototype.current = {\n jsonData: ...
typescript
edit
0
1
mit
fc7ddafed0a60423ad4a63b3992130f0e5ffd5bd
fetzerch/grafana-sunandmoon-datasource,fetzerch/grafana-sunandmoon-datasource
spec/config_ctrl.jest.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { useQuery } from \"@apollo/react-hooks\";\nimport { Redirect, RouteComponentProps } from \"@reach/router\";\nimport { Box } from \"@theme-ui/components\";\nimport React from \"react\";\nimport { FormattedMessage } from \"react-i...
typescript
edit
null
null
mit
fadad03fd87943a731202fe0eb520a340a117f18
patrick91/pycon,patrick91/pycon
frontend/src/components/social-login-success/index.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component, OnInit } from '@angular/core';\n\ndeclare var swal: any;\n\n@Component({\n selector: 'app-home',\n templateUrl: './home.component.html',\n styleUrls: ['./home.component.css']\n})\nexport class HomeComponent implem...
typescript
edit
0
2
apache-2.0
41b7fb1f1246b9ee034d831beadd4e21abaa89ba
tonymichaelhead/Legatum,tonymichaelhead/Legatum,tonymichaelhead/Legatum
LegatumClient/src/app/home/home.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/// reference path=\"../Scripts/typings/angularjs/angular.d.ts\" />\n\n\nvar contactsApp: any;\n\ncontactsApp.controller('ContactsController',\n function ContactsController($scope, contactData) {\n $scope.sortOrder = 'last';\...
typescript
edit
0
1
mit
9e086d96689d89c6d731fabee9a3daab95a8be8a
BillWagner/TypeScript-CodeMash,BillWagner/TypeScript-CodeMash,BillWagner/TypeScript-CodeMash,BillWagner/TypeScript-CodeMash
Rolodex/Rolodex/MyScripts/contactsController.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport constants from './constants'\n\nexport default function (\n title: string,\n description: string,\n imageLink: string\n) {\n const imageUrl =\n typeof imageLink === 'string' ? imageLink : constants.socialMediaImageUrl\n\n ...
typescript
edit
0
2
mit
d3c17fc4ee6000a4af5763382f7cbe9fcdd2a31f
Jack-Barry/Jack-Barry.github.io
helpers/makeMetaTags.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport CssBaseline from \"@material-ui/core/CssBaseline\";\nimport MuiThemeProvider from \"@material-ui/core/styles/MuiThemeProvider\";\nimport * as React from \"react\";\n\nimport { Provider as DateProvider } from \"../components/DateF...
typescript
edit
null
null
bsd-3-clause
55a0a492c7703fc061c6f1082b0e40f894c900fc
maferelo/saleor,mociepka/saleor,maferelo/saleor,mociepka/saleor,UITools/saleor,UITools/saleor,UITools/saleor,UITools/saleor,UITools/saleor,mociepka/saleor,maferelo/saleor
saleor/static/dashboard-next/storybook/Decorator.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { extractTerms } from '../../search-index-old/pipeline'\nimport StorageRegistry from './registry'\n\nexport class StorageManager {\n public initialized = false\n public registry = new StorageRegistry()\n private _initial...
typescript
edit
0
3
mit
7b17c25736a1b5c3921c45279699eec77bc20914
WorldBrain/WebMemex,WorldBrain/WebMemex
src/search/search-index-new/storage/manager.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n'use strict';\n\nimport * as Rx from 'rx';\n\nimport { objectUtility } from '../services/object/object.service';\n\nexport interface IFilterWithCounts extends IFilter {\n\tupdateOptionCounts<TItemType>(data: TItemType[]): void;\n}\n\nex...
typescript
edit
0
3
mit
d7146d7b794ddcaf22e93b5621d9c39898ec3624
RenovoSolutions/TypeScript-Angular-Utilities,SamGraber/TypeScript-Angular-Utilities,RenovoSolutions/TypeScript-Angular-Utilities,SamGraber/TypeScript-Angular-Utilities
source/filters/filter.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nconst objectExample = {\n type: 'object',\n name: 'objectExample',\n title: 'Object (1)',\n fields: [{type: 'string', name: 'title', title: 'Title'}]\n}\n\nconst imageExample = {\n type: 'image',\n name: 'imageExample',\n title: ...
typescript
edit
0
0
mit
dc937e0c7eebd2065ab890e7d734fbf75650b8b4
sanity-io/sanity,sanity-io/sanity,sanity-io/sanity,sanity-io/sanity
packages/design-studio/schemas/pt.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport default class Constants {\n public static basePath: string = process.cwd().replace(/\\\\/g, \"/\") + \"/\";\n public static controllerPaths: string[];\n public static modulesPath: string = Constants.basePath + \"modules/...
typescript
edit
0
0
mit
0868cba1a3f7f09c32c353e39fca3b665512cad2
crossroads-education/eta,crossroads-education/eta
server/api/constants.ts
accepted
null
true