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 React from \"react\";\nimport { domToReact } from \"html-react-parser\";\nimport attributesToProps from \"html-react-parser/lib/attributes-to-props\";\nimport { HashLink as Link } from \"react-router-hash-link\";\n\nexport functi...
typescript
edit
null
null
apache-2.0
458b35d82cbe72a1f8d22070c9c032ef186ee4c6
saasquatch/saasquatch-docs,saasquatch/saasquatch-docs,saasquatch/saasquatch-docs
src/navigation/replace.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { stripUnit } from 'polished';\nimport {\n defaultBorderRadius,\n inputVerticalPadding,\n pageFont\n} from '../globals';\n\n// Begin extract\nconst borderColor = '';\n// End extract\n\nexport const verticalMargin = '0em';\nexp...
typescript
edit
0
2
mit
ab46b17b2e5986ebeb350c6d97b1846999a1cde0
maxdeviant/semantic-ui-css-in-js,maxdeviant/semantic-ui-css-in-js
src/styles/elements/Button.theme.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\ndeclare const LABKEY: {\n CSRF: string,\n ActionURL: any,\n getModuleContext(moduleName: string): any;\n};\n\nexport function getCSRF(): string {\n return LABKEY.CSRF || \"\";\n}\n\nexport function getCurrentController(): st...
typescript
edit
0
2
apache-2.0
f91974faf59fbde1002e42b59ed893b13c3da549
WNPRC-EHR-Services/wnprc-modules,WNPRC-EHR-Services/wnprc-modules,WNPRC-EHR-Services/wnprc-modules,WNPRC-EHR-Services/wnprc-modules,WNPRC-EHR-Services/wnprc-modules,WNPRC-EHR-Services/wnprc-modules,WNPRC-EHR-Services/wnprc-modules
WebUtils/src/ts/WebUtils/LabKey.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Diff, AnnotationDetails, visitDiff} from '@sanity/field/diff'\n\nexport function collectLatestAuthorAnnotations(diff: Diff): AnnotationDetails[] {\n const authorMap = new Map<string, AnnotationDetails>()\n visitDiff(diff, chil...
typescript
edit
0
6
mit
f27556523f400c068a8cc845119734454fdd7df1
sanity-io/sanity,sanity-io/sanity,sanity-io/sanity,sanity-io/sanity
packages/@sanity/desk-tool/src/panes/documentPane/changesPanel/helpers.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport express from 'express';\n\nlet app = require('./server').default;\n\nif (module.hot) {\n module.hot.accept('./server', () => {\n console.log('🔁 HMR Reloading `./server`...');\n try {\n app = require('./server').defa...
typescript
edit
0
2
mit
db97eb66138da46b051bd243adf5c5b2db6167a4
jaredpalmer/razzle,jaredpalmer/razzle
examples/with-typescript/src/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\n\nimport LinearProgress from 'material-ui/LinearProgress';\nimport Snackbar from 'material-ui/Snackbar';\n\ninterface PromisedState {\n error?: Error;\n loading: boolean;\n value?: any;\n}\n\n//...
typescript
edit
null
null
mit
46ab7d7c7852b43f64b1bacf04a99056c127e253
mthmulders/hyperion-web,mthmulders/hyperion-web,mthmulders/hyperion-web
src/promised.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Resource} from './resource';\nimport {copy} from 'tsfun';\nimport {subtract} from 'tsfun/objects';\nimport {NewDocument} from \"./new-document\";\nimport {Action} from './action';\n\n\nexport interface Document extends NewDocume...
typescript
edit
0
8
apache-2.0
68f4ddf1fb2ef0181992cf38e1d649953de2b903
dainst/idai-components-2,dainst/idai-components-2,dainst/idai-components-2
src/core/model/document.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { _ } from '@biesbjerg/ngx-translate-extract/dist/utils/utils';\nimport { DeviceType } from '../abstract-device';\nimport { DeviceParams, DeviceParamsModel, DeviceParamType } from '../device-params';\nimport { AbstractBLEDevice, ...
typescript
edit
0
2
apache-2.0
22e842f179f68945b834a1cbe25c1df002113c10
openradiation/openradiation-mobile,openradiation/openradiation-mobile,openradiation/openradiation-mobile,openradiation/openradiation-mobile
src/app/states/devices/ble/device-og-kit.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n\nimport {PropertyType} from \"./model/property-type\";\nimport {ModelOptions, ProcessMode} from \"./model/options\";\nimport {ValidateResult} from \"./manager/validate\";\n\nimport {model} from \"./model/model\";\nimport {type} from \"...
typescript
edit
null
null
mit
74f1191e4e3f5e1a55e011f703c13a287ce9fa74
Cytren/DecorativeModels,Cytren/DecorativeModels
src/index.ts
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// All in one file example\nimport { Component, getStyle, Actions, StyleGroup, run, Inputs, logFns } from '../core'\nimport { h, View, viewHandler } from '../interfaces/view'\nimport { styleHandler } from '../groups/style'\n\n// Compone...
typescript
edit
0
1
mit
595f002a2bde6ccdd4647ba9f55071662ab26c0d
FractalBlocks/Fractal,FractalBlocks/Fractal,FractalBlocks/Fractal
src/simpleExample/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/// <reference path=\"func.ts\" />\n\ndeclare var module;\ndeclare var require;\n\nif (module && module.exports && typeof require === 'function') {\n module.exports = fun;\n}\n```\n\nApply this change: Add mssing reference to type.ts...
typescript
edit
0
0
mit
67c024578f5c55a5880a4407592b9365eccc915f
federico-lox/fun.ts
src/main.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from 'react';\nimport { invariant } from 'ts-invariant';\nimport { getApolloContext } from '@apollo/react-common';\n\nexport function useApolloClient() {\n const { client } = React.useContext(getApolloContext());\n invari...
typescript
edit
0
1
mit
350ca39633924b9bd5c39feb846338633d73f9d2
apollostack/react-apollo,apollographql/react-apollo,apollostack/react-apollo,apollographql/react-apollo
packages/hooks/src/useApolloClient.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport RoleStore from './roleStore';\nimport TenantStore from './tenantStore';\nimport UserStore from './userStore';\nimport SessionStore from './sessionStore';\nimport AuthenticationStore from './authenticationStore';\nimport AccountSt...
typescript
edit
0
0
mit
9afdb529c53498c5f9362ce70fcbe8255f575a06
aspnetboilerplate/module-zero-core-template,aspnetboilerplate/module-zero-core-template,aspnetboilerplate/module-zero-core-template,aspnetboilerplate/module-zero-core-template,aspnetboilerplate/module-zero-core-template
reactjs/src/stores/storeIdentifier.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { runWorker, run } from '../core'\nimport { moduleDef } from './module'\n\n// TODO: make this variable dynamic, implement a toggle button for that\nconst runInWorker = true\n\nif (runInWorker) {\n // Running Fractal in a worker ...
typescript
edit
0
0
mit
00dc902fee69f3c388bd63e2704c4c3bef1ab3cc
FractalBlocks/Fractal,FractalBlocks/Fractal,FractalBlocks/Fractal
src/workerExample/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\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 *\n * @format\n */\n\nimport {Logger} from 'f...
typescript
edit
0
1
mit
513c475e3d9a0661b72364121c67d22a44c9d7d6
facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper
desktop/app/src/deeplinkTracking.tsx
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\n\nexport default class AppHost extends React.Component<any, any> {\n constructor() {\n super();\n }\n\n render() {\n return (\n React.Children.only(this.props.children)\n );\n }\n}\n\n`...
typescript
edit
null
null
bsd-3-clause
e47a787082eb3d9911933d229a3ac7c3ced59edc
Rdbaker/Mealbound,Rdbaker/Mealbound,Rdbaker/Mealbound,Rdbaker/Mealbound,Rdbaker/Mealbound
CeraonUI/src/Components/AppHost.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\ninterface OcticonProps {\n width?: number,\n height?: number,\n symbol: string\n}\n\nexport default class Octicon extends React.Component<OcticonProps, void> {\n\n public static defaultProps: Octico...
typescript
edit
null
null
mit
07201fbb48dfecd35d2bca1bbf1befea177e15fb
say25/desktop,kactus-io/kactus,desktop/desktop,say25/desktop,artivilla/desktop,shiftkey/desktop,j-f1/forked-desktop,j-f1/forked-desktop,desktop/desktop,BugTesterTest/desktops,hjobrien/desktop,desktop/desktop,kactus-io/kactus,gengjiawen/desktop,kactus-io/kactus,artivilla/desktop,BugTesterTest/desktops,shiftkey/desktop,d...
src/octicon.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { c } from 'ttag';\nimport {\n OnboardingContent,\n OnboardingModal,\n OnboardingStep,\n OnboardingStepRenderCallback,\n useSettingsLink,\n} from '@proton/components';\nimport { APPS } from '@proton/shared/lib/cons...
typescript
edit
null
null
mit
b5934738c711796667c0a7d9996e9174c6aea105
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
applications/calendar/src/app/components/onboarding/CalendarOnboardingModal.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { RequestPromise } from 'request-promise'\n\ndeclare class Properties {\n get(): RequestPromise\n\n getByName(name: string): RequestPromise\n\n create(data: {}): RequestPromise\n\n update(name: string, data: {}): RequestPromi...
typescript
edit
0
0
mit
897a5ec79194507bbfb3343a93ae711123f1dc84
brainflake/node-hubspot,brainflake/node-hubspot
lib/typescript/contact_property.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport 'bootstrap/dist/css/bootstrap.min.css';\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport { I18nextProvider } from 'react-i18next';\nimport Modal from 'react-modal';\nimport App from './App';\nimport './butto...
typescript
edit
null
null
apache-2.0
0443f10ecc21ad16d2a9fda34434e8203f5c58f5
dainst/idai-field-web,dainst/idai-field-web,dainst/idai-field-web
ui/src/index.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for ...
typescript
edit
0
0
mit
05798c2f4610a7c82fc0e1a7b7b75da93f60233e
zyml/vscode,zyml/vscode,Microsoft/vscode,rishii7/vscode,charlespierce/vscode,hashhar/vscode,stringham/vscode,0xmohit/vscode,matthewshirley/vscode,zyml/vscode,veeramarni/vscode,radshit/vscode,microsoft/vscode,hashhar/vscode,microlv/vscode,charlespierce/vscode,cleidigh/vscode,landonepps/vscode,zyml/vscode,veeramarni/vsco...
src/vs/workbench/parts/extensions/electron-browser/extensionsFileTemplate.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { c } from 'ttag';\n\nimport useFeature from '../../hooks/useFeature';\nimport { FeatureCode } from '../features/FeaturesContext';\nimport FeedbackModal, { FeedbackModalProps } from './FeedbackModal';\nimport { RebrandingFeatureV...
typescript
edit
null
null
mit
024f7bb87f57d7c15b675ce7257a0bffe42e3972
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
packages/components/containers/feedback/RebrandingFeedbackModal.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport async function maybeLoadAppSignal() {\n const token = globalConfig[\"APPSIGNAL_TOKEN\"];\n\n if (window.appSignal) {\n console.log(\"Already have appSignal loaded.\");\n return;\n }\n\n if (token) {\n console.log(\"L...
typescript
edit
0
3
mit
a35d30eaf018b09fdd5b93fc1920c80c43192bb6
gabrielburnworth/Farmbot-Web-App,gabrielburnworth/Farmbot-Web-App,FarmBot/Farmbot-Web-API,FarmBot/farmbot-web-app,FarmBot/farmbot-web-app,gabrielburnworth/Farmbot-Web-App,FarmBot/Farmbot-Web-API,FarmBot/farmbot-web-app,FarmBot/Farmbot-Web-API,gabrielburnworth/Farmbot-Web-App,FarmBot/Farmbot-Web-API,FarmBot/Farmbot-Web-...
frontend/maybe_load_app_signal.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { SandboxParameter } from './interfaces';\nimport nativeAddon from './nativeAddon';\nimport { SandboxProcess } from './sandboxProcess';\nimport { existsSync } from 'fs';\nimport * as randomString from 'randomstring';\nimport * as...
typescript
edit
0
1
mit
b351af4e1c28c8e7021f107c5dca1c96be55331b
t123yh/simple-sandbox,t123yh/simple-sandbox
src/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {\n middleware,\n Middleware as GenericMiddleware\n} from '@pawelgalazka/middleware'\nimport { useMiddlewares } from './middlewares'\n\nexport { useMiddlewares } from './middlewares'\nexport { help, withHelp } from './middlewar...
typescript
edit
0
0
mit
523336f8b190b11416fab41c54607348c9491770
pawelgalazka/microcli,pawelgalazka/microcli
src/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n\"use strict\";\n\nimport * as path from \"path\";\nimport * as fs from \"fs\";\nimport { workspace } from \"vscode\";\n\nexport const dartVMPath = \"bin/dart\";\nexport const analyzerPath = \"bin/snapshots/analysis_server.dart.snapshot...
typescript
edit
0
3
mit
eb623dfb1c3432b4cc543b7dbfb66839d0b620cf
Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code
src/utils.ts
rejected_duplicate
Near-duplicate of sample 113037
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { app, BrowserWindow, webContents, shell } from \"electron\";\n\nimport { ThemeCompiler } from \"./theme-compiler\";\n\nlet win;\n\nfunction createWindow() {\n ThemeCompiler.existsDefaultTheme()\n .then(ThemeCompiler.lo...
typescript
edit
0
2
mit
2e810944a7394cf3b9870ffe056be0d97b7c2157
Xstoudi/alduin,Xstoudi/alduin,Xstoudi/alduin
src/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\n\nimport { FirewallLabels, noop } from '@spinnaker/core';\n\nimport { IAmazonServerGroupCommand } from '../../serverGroupConfiguration.service';\n\nexport interface IServerGroupSecurityGroupsRemovedProps...
typescript
edit
null
null
apache-2.0
2729fde6f31b2d2e53c9335a03b77c5c8a1e7bc6
icfantv/deck,ajordens/deck,icfantv/deck,duftler/deck,ajordens/deck,sgarlick987/deck,sgarlick987/deck,spinnaker/deck,sgarlick987/deck,spinnaker/deck,duftler/deck,spinnaker/deck,icfantv/deck,sgarlick987/deck,duftler/deck,icfantv/deck,duftler/deck,ajordens/deck,spinnaker/deck,ajordens/deck
app/scripts/modules/amazon/src/serverGroup/configure/wizard/securityGroups/ServerGroupSecurityGroupsRemoved.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport default {\n isValid(bic: string): boolean {\n const bicRegex = /^[A-Z]{6}[A-Z0-9]{2}([A-Z0-9]{3})?$/;\n\n return bicRegex.test(bic);\n },\n};\n\n```\n\nApply this change: Move the regex definition outside of t...
typescript
edit
0
1
mit
899161a67c6a57d4cf13fd9d7a1e754566d51ec0
nicolaspayot/bic,nicolaspayot/bic
src/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * @file The primary entry for Innerface.\n *\n * @author Justin Toon\n * @license MIT\n */\n\nimport * as _ from 'lodash';\n\nimport { selectors } from './if.const';\nimport * as controllers from './controllers';\n\n/**\n * A syst...
typescript
edit
0
1
mit
020fca21c11d8424905b5b21f440d45a8d5dc08d
overneath42/innerface,overneath42/innerface
src/index.ts
rejected_duplicate
Near-duplicate of sample 113172
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Request } from 'servie'\n\nimport {\n HttpResponse,\n request as nodeRequest,\n RequestOptions as NodeRequestOptions,\n transport as nodeTransport,\n TransportOptions as NodeTransportOptions\n} from './node'\nimport {\n X...
typescript
edit
0
0
mit
b3f48d9811a8afab41e150a1eeebe9fdb95e20b1
blakeembrey/popsicle,blakeembrey/popsicle
src/universal.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {\n\tconstants,\n\tfs,\n\tfsPath,\n\tlog,\n\tprintTitle,\n\tdeps,\n} from '../../common';\nimport * as chokidar from 'chokidar';\nimport * as syncLibs from './sync-libs.cmd';\n\n\nexport const group = 'dev';\nexport const name = ...
typescript
edit
0
2
mit
11b38ef20f7f7841a6b2d348008b8fa073974d68
frederickfogerty/js-cli,frederickfogerty/js-cli,frederickfogerty/js-cli
src/cmds/dev/sync-watch.cmd.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component, OnInit } from '@angular/core';\nimport { UserService } from '../../../../services/user.service';\n\n@Component({\n selector: 'app-admin',\n templateUrl: './admin.component.html',\n styleUrls: ['./admin.component.s...
typescript
edit
0
1
mit
d75938d355d5f98a0c79140085fa1709a7fb18cb
karlveskus/moodlebox,karlveskus/moodlebox,karlveskus/moodlebox
angular-src/src/app/components/loggedin-wrapper/content/admin/admin.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// Copyright 2019 Google LLC\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// https://...
typescript
edit
0
0
apache-2.0
02e010d7e85345d26632897972bb735134bf225d
googleinterns/step26-2020,googleinterns/step26-2020,googleinterns/step26-2020,googleinterns/step26-2020
src/main/webapp/src/app/app.module.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { HttpClientModule } from '@angular/common/http';\nimport { TestBed } from '@angular/core/testing';\n\nimport {\n PICTUREPARK_API_URL,\n PICTUREPARK_CONFIGURATION,\n PictureparkConfiguration,\n AuthService,\n AccessTokenAuth...
typescript
edit
0
1
mit
426e59d8ba35c6fb7cb4ae31aa3bcbd3cda6cec5
Picturepark/Picturepark.SDK.TypeScript,Picturepark/Picturepark.SDK.TypeScript,Picturepark/Picturepark.SDK.TypeScript
src/picturepark-sdk-v1-angular/src/tests/config.template.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as vscode from 'vscode';\nimport * as cp from 'child_process';\n\nlet reactor: cp.ChildProcess;\nlet oc: vscode.OutputChannel = vscode.window.createOutputChannel('Elm Reactor');\n\n\nfunction startReactor() {\n try {\n if (...
typescript
edit
0
3
mit
891e63ff019bfcfa27b25cfd4485ab33b753d313
sbrink/vscode-elm,Krzysztof-Cieslak/vscode-elm
src/elmReactor.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Injectable } from '@angular/core';\nimport { Http, Response } from '@angular/http';\nimport {Observable} from 'rxjs/Rx';\nimport { Feed } from './model/feed';\n\n@Injectable()\nexport class FeedService {\n\n private rssToJsonS...
typescript
edit
0
2
mit
9545f2a55b87579826829fe708166d3b76f7e85f
Chan4077/angular-rss-reader,Chan4077/angular-rss-reader,Chan4077/angular-rss-reader
src/app/feed.service.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\ninterface JQuery\n{\n addEventListener(type:string, selector?:any, data?:any, handler?:(eventObject:JQueryEventObject) => any, scope?:any): JQuery;\n addEventListener(type:string, selector?:any, handler?:(eventObject:JQueryEventOb...
typescript
edit
0
0
mit
2a0d46c4acc9430aff1504934a6ce872b0048b1f
codeBelt/StructureJS,codeBelt/StructureJS,codeBelt/StructureJS
ts/_declare/jquery.eventListener.d.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * @author Thomas Kleinke\n */\nexport interface Literature {\n\n quotation: string;\n zenonId?: string;\n}\n\n\nexport module Literature {\n\n export const QUOTATION = 'quotation';\n export const ZENON_ID = 'zenonId';\...
typescript
edit
0
4
apache-2.0
a84fa36a36881a5e80a0e7d1b89b334f079b6ecf
dainst/idai-components-2,dainst/idai-components-2,dainst/idai-components-2
src/model/literature.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport { injectGlobal } from 'styled-components';\nimport wpm from 'wexond-package-manager';\nimport { typography } from 'nersent-ui';\n\n// Components\nimport App from './c...
typescript
edit
null
null
apache-2.0
c9e8f8f2bdd47536a0b25f6c1be778ff2d186b7d
Nersent/Wexond,Nersent/Wexond
src/app/index.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as Redux from 'redux'\n\nimport Hermes from '~/../utils/hermes'\nimport {rootReducer, rootReducerMock} from '~/frontend/redux/reducers'\n\ndeclare global {\n interface Window {\n __REDUX_DEVTOOLS_EXTENSION__: Function\n }\...
typescript
edit
0
5
mit
5f129c31c73f6d1255f4a84f71e0c3da69cd99f1
devonzuegel/clarity,devonzuegel/clarity,devonzuegel/clarity,devonzuegel/clarity
src/frontend/redux/store.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React, { PureComponent } from \"react\"\nimport { PrismLight } from \"react-syntax-highlighter\"\nimport swift from \"react-syntax-highlighter/dist/cjs/languages/prism/swift\"\nimport prismStyle from \"react-syntax-highlighter/di...
typescript
edit
null
null
mit
c7a61a03fe3cebd8b7e35d22fe19c1ad11d22d82
JosephDuffy/josephduffy.co.uk,JosephDuffy/josephduffy.co.uk,JosephDuffy/josephduffy.co.uk
components/CodeBlock.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n'use strict';\n\nimport {window, workspace, commands, ExtensionContext} from 'vscode';\nimport path = require('path');\nimport fs = require('fs');\n\nimport Yeoman from './yo/yo';\n\nconst yo = new Yeoman();\n\nexport function activate(...
typescript
edit
0
2
mit
5b5e3897219c2df2954a9a2980fa920c15f7be39
SamVerschueren/vscode-yo
src/extension.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport lonlat from '@conveyal/lonlat'\n\nimport {PROJECTION_ZOOM_LEVEL} from 'lib/constants'\n\n/**\n * The grid extent is computed from the points. If the cell number for the right edge of the grid is rounded\n * down, some points coul...
typescript
edit
0
1
mit
bf70ebd9501813ca3c8e68d32b6ab5d518e541fc
conveyal/analysis-ui,conveyal/analysis-ui,conveyal/analysis-ui
lib/utils/calculate-grid-points.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Injectable } from '@angular/core';\nimport { Http, Response } from '@angular/http';\nimport { Observable } from 'rxjs/Observable';\n\n/**\n * This class provides the NameList service with methods to read names and add names.\n ...
typescript
edit
0
1
mit
0590b82137c313ca0d78d9da9fff69b91b7b6fe6
davewragg/agot-spa,adobley/angular2-tdd-workshop,oblong-antelope/oblong-web,radiorabe/raar-ui,NathanWalker/angular2-seed-advanced,rtang03/fabric-seed,Nightapes/angular2-seed,vyakymenko/angular-seed-express,CNSKnight/angular2-seed-advanced,NathanWalker/angular2-seed-advanced,OlivierVoyer/angular-seed-advanced,pratheekhe...
src/client/app/shared/name-list/name-list.service.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { RichSyntaxNode } from './RichSyntaxNode'\n\nexport class OrderedListItemNode extends RichSyntaxNode {\n private NUMBERED_LIST_ITEM: any = null\n}\n```\n\nApply this change: Add ordinal to ordered list items" }, { "role...
typescript
edit
0
1
mit
6ed2ef1326cd8c2f287f1e4999b735c4af26b56e
start/up,start/up
src/SyntaxNodes/OrderedListItemNode.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';\n\nconst TableComponent = (props) => {\n const { translate } = props;\n return (\n <Table\n {...props}\n columns={[\n ...
typescript
edit
null
null
mit
8bf8b4143b1c6bdcdaec6742f754044fc22e6ae6
opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport
src/openstack/openstack-tenant/TenantPortsList.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\r\nimport { SearchMap } from '../../types';\r\nimport { Card, ResourceList, Stack, Button } from '@shopify/polaris';\r\nimport EmptyQueue from './EmptyQueue';\r\nimport QueueItem from './QueueItem';\r\n\r...
typescript
edit
null
null
mit
8a84606155852fe89b32b2b07895be41e8794959
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
src/components/Queue/QueueTable.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component } from '@angular/core';\nimport * as moment from 'moment';\nimport {DateRangeSelectChoice} from '../../../../src/app/date-range-picker/date-range-picker.component';\n\n@Component({\n\tselector: 'demo-basic-date-range-...
typescript
edit
0
1
mit
61ebc2bb8142645709aaac98182b4201c39b5aeb
LuccaSA/lucca-front,LuccaSA/lucca-front,LuccaSA/lucca-front,LuccaSA/lucca-front
packages/ng/demo/app/date-range-picker/basic/basic.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { createTrainingSet } from './training-set';\n\nexport const goRustAssignmentsTrainingSet = {\n title: \"Go vs Rust\",\n left: \"Go.Assignment.\",\n right: \"Rust.Assignment.\",\n baseUrl: \"languages/\",\n example...
typescript
edit
0
0
apache-2.0
ef4314effd1f5233e35987265ef85cc4d3c5929d
LearnWithLlew/SparrowDecks,LearnWithLlew/SparrowDecks,LearnWithLlew/SparrowDecks
src/app/sparrows/languages-training-set.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Component} from '@angular/core';\n\nimport * as packageJson from '../../package.json';\nimport {HsUtilsService} from '../utils/utils.service';\n\n@Component({\n selector: 'hs-impressum',\n templateUrl: './partials/impressum.ht...
typescript
edit
0
1
mit
88e13c49708800977e40791cf3fe66862ac9c4f9
hslayers/hslayers-ng,hslayers/hslayers-ng,hslayers/hslayers-ng,hslayers/hslayers-ng
projects/hslayers/src/components/sidebar/impressum.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Readable, PassThrough } from 'stream';\n\nexport function readbleFromString(data: string): Readable {\n const readable = emptyReadable();\n readable.push(data);\n readable.push(null);\n\n return readable;\n}\n\nexport funct...
typescript
edit
0
1
mit
3aab81ba1bc8b9f05687b6908dd202dbe70fa16b
arijoon/vendaire-discord-bot,arijoon/vendaire-discord-bot
src/helpers/streams.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/// <reference path='fourslash.ts' />\r\n\r\n// @Filename: app.ts\r\n//// import * as A from \"[|/*1*/|]\";\r\n\r\n// @Filename: /node_modules/@types/a__b/index.d.ts\r\n////declare module \"@e/f\" { function fun(): string; }\r\n\r\n// @...
typescript
edit
0
0
apache-2.0
8275bed33fd75dcc2f1c7ebcd1e7ba08b3cbb9f5
SaschaNaz/TypeScript,RyanCavanaugh/TypeScript,kpreisser/TypeScript,weswigham/TypeScript,alexeagle/TypeScript,basarat/TypeScript,microsoft/TypeScript,RyanCavanaugh/TypeScript,nojvek/TypeScript,kpreisser/TypeScript,kitsonk/TypeScript,microsoft/TypeScript,Microsoft/TypeScript,SaschaNaz/TypeScript,basarat/TypeScript,Micros...
tests/cases/fourslash/completionListInImportClause05.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { createFilter, FilterPattern } from '@rollup/pluginutils';\nimport fs from 'fs';\nimport { basename } from 'path';\n\nconst { readFile } = fs.promises;\n\ninterface Options {\n include?: FilterPattern;\n exclude?: FilterPa...
typescript
edit
0
2
mit
b7aac2de70fc0c1cf5159bf3bd6b5ecb3c956b4c
fastmail/overture
tooling/vite/vite-plugin-svg.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport { ReactNode } from 'react';\n\nimport loadEcharts from '../../../../shims/load-echarts';\n\ninterface SankeyDiagramProps {\n data: any;\n}\n\nexport default class SankeyDiagram extends React.Comp...
typescript
edit
null
null
mit
351fdc15c74a069a55a5b3b7cb1c4566c28c115a
opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport
app/scripts/components/appstore/providers/support/SankeyDiagram.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/*\n * Copyright (c) 2020 the Octant contributors. All Rights Reserved.\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { Injectable } from '@angular/core';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class ElectronServic...
typescript
edit
0
5
apache-2.0
da564d3b66ccdf60df4ff812ac1ddf7eeb9777fc
vmware/octant,vmware/octant,vmware/octant,vmware/octant,vmware/octant
web/src/app/modules/shared/services/electron/electron.service.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { render } from \"enzyme\"\nimport React from \"react\"\nimport { FillwidthItem } from \"../FillwidthItem\"\n\ndescribe(\"FillwidthItem\", () => {\n // This scenario _should not_ happen. But it did. Every artwork should have\n ...
typescript
edit
null
null
mit
739379b0f1e30922d699d68f600c415fddcf77fe
xtina-starr/reaction,artsy/reaction-force,artsy/reaction-force,artsy/reaction,xtina-starr/reaction,xtina-starr/reaction,artsy/reaction,xtina-starr/reaction,artsy/reaction
src/Components/Artwork/__tests__/FillwidthItem.test.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport default {\n sc: 'stocazzo',\n routes: {\n root: {\n value: 'stocazzo',\n big: 'gran',\n },\n caps: {\n value: 'STOCAZZO',\n big: 'GRAN',\n },\n camel: {\n value: 'StoCazzo',\n big: '...
typescript
edit
0
0
mit
9d4ede2f482d8123b9bdd31a860d28ed66870cce
dottorblaster/stocazzo,dottorblaster/stocazzo
lib/config.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * Interfaces and types\n */\n\n/**\n * Doc guard\n */\nimport * as d3 from 'd3'\n\n\n/**\n * A timepoint. We only use weeks as of now.\n */\nexport type Timepoint = {\n year: number\n week: number\n}\n\n/**\n * Type of time poin...
typescript
edit
0
0
mit
4788656b172b6b332a51fef1edcd8e5b3258e6ca
reichlab/d3-foresight,reichlab/d3-foresight
src/interfaces.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// Copyright (c) Jupyter Development Team.\n// Distributed under the terms of the Modified BSD License.\n\nimport {\n nbformat\n} from '@jupyterlab/services';\n\n\n/**\n * The mime type service of a code editor.\n */\nexport\ninterface...
typescript
edit
0
0
bsd-3-clause
d9be3abc77532b7bb5576bd7670e2cd35ef7f3ac
jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab,eskirk/jupyterlab,eskirk/jupyterlab,charnpreetsingh185/jupyterlab,charnpreetsingh185/jupyterlab,charnpreetsingh185/jupyterlab,eskirk/jupyterlab,jupyter/jupyterlab,charnpreetsingh185/jupyterlab,eskirk/jupyterlab,eskirk/jupyterlab,charnpreetsingh185/jupyterlab,jupy...
packages/codeeditor/src/mimetype.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Fix issue with string formatting" }, { "role": "assistant", "content": "import { version } from '../package.json'\n\nexport const sdkVersionHeader = `javascript-${version}`;\n" } ]
typescript
new_file
0
0
mit
faf84db9cb34c539b7b005d7d50410112b41b4d9
procore/js-sdk
lib/sdkVersion.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// Copyright (c) Jupyter Development Team.\n// Distributed under the terms of the Modified BSD License.\n\nimport './common/activitymonitor.spec';\nimport './common/observablelist.spec';\n\nimport './dialog/dialog.spec';\n\nimport './do...
typescript
edit
0
0
bsd-3-clause
cc9e070e8794547f3ea0c44976f517a3ba32efa7
jupyter/jupyterlab,charnpreetsingh185/jupyterlab,charnpreetsingh185/jupyterlab,jupyter/jupyterlab,eskirk/jupyterlab,charnpreetsingh185/jupyterlab,eskirk/jupyterlab,TypeFox/jupyterlab,TypeFox/jupyterlab,eskirk/jupyterlab,jupyter/jupyterlab,charnpreetsingh185/jupyterlab,TypeFox/jupyterlab,TypeFox/jupyterlab,eskirk/jupyte...
test/src/index.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';\nimport { rotate360 } from '../shared/animation';\n\nconst LoaderWrapper = styled.div<{ size?: number }>(({ size = 32 }) => ...
typescript
edit
null
null
mit
cc7b7e5ac7e90e5857d98ffb1dae655dee64124e
kadirahq/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook,kadirahq/react-storybook,storybooks/react-storybook,storybooks/react-storybook,storybooks/storybook
lib/components/src/Loader/Loader.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';\nimport { LeafletTileProviderService } from '../leaflet-tile-provider.service';\n\n@Component({\n selector: 'app-leaflet-tile-selector',\n templateUrl: '....
typescript
edit
0
4
mit
ed7358bb6d5fe38c1bb7539100c768421ad408af
ecsnavarretemit/sarai-ng2,ecsnavarretemit/sarai-ng2,ecsnavarretemit/sarai-ng2,ecsnavarretemit/sarai-interactive-maps,ecsnavarretemit/sarai-interactive-maps,ecsnavarretemit/sarai-interactive-maps
src/app/leaflet-tile-selector/leaflet-tile-selector.component.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
3c5905848f9b167d714f434f5bf7fafed264abf0
wishtack/wishtack-steroids,wishtack/ng-steroids,wishtack/wishtack-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\n// std\nimport { readFile } from 'fs';\nimport { join } from 'path';\nimport { promisify } from 'util';\nimport { gunzip } from 'zlib';\n\nlet list: string[];\n\n/**\n * Test if a password belongs to a list of 10k common passwords.\n *\...
typescript
edit
0
2
mit
b68e47e16ea2c57d8c822bdfcc265774924c20d2
FoalTS/foal,FoalTS/foal,FoalTS/foal,FoalTS/foal
packages/password/src/is-common.util.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// 3p\nimport { Config } from '@foal/core';\n\n// FoalTS\nimport { ISocketIOController, WebsocketContext, WebsocketErrorResponse, WebsocketResponse } from '../architecture';\nimport { renderWebsocketError } from './render-websocket-erro...
typescript
edit
0
4
mit
cae38202562d857f472383031f42dcbc6831ebc2
FoalTS/foal,FoalTS/foal,FoalTS/foal,FoalTS/foal
packages/socket.io/src/errors/convert-error-to-websocket-response.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport * from \"./decorators\";\nexport * from \"./domain\";\nexport * from \"./services/OidcAdapters\";\nexport * from \"./services/OidcInteractions\";\nexport * from \"./services/OidcInteractionContext\";\nexport * from \"./services/O...
typescript
edit
0
0
mit
6fc6e3e285f5c51147571c02f91cfb0661e6a418
Romakita/ts-express-decorators,Romakita/ts-express-decorators,Romakita/ts-express-decorators,Romakita/ts-express-decorators
packages/oidc-provider/src/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for ...
typescript
edit
0
0
mit
6db9e61a0bad22e89a435a626f39a9a8039ee8f3
Microsoft/vscode,hoovercj/vscode,Microsoft/vscode,Krzysztof-Cieslak/vscode,microsoft/vscode,Microsoft/vscode,Krzysztof-Cieslak/vscode,hoovercj/vscode,microsoft/vscode,hoovercj/vscode,Krzysztof-Cieslak/vscode,hoovercj/vscode,Microsoft/vscode,Krzysztof-Cieslak/vscode,Krzysztof-Cieslak/vscode,eamodio/vscode,Krzysztof-Cies...
src/vs/workbench/contrib/notebook/browser/constants.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/// <reference path=\"../../typings/react/react.d.ts\" />\n/// <reference path=\"../../typings/react-dom/react-dom.d.ts\" />\n\nimport React = __React;\nimport ReactDom = __ReactDom;\n\nvar CommentBox = React.createClass({\n render: fu...
typescript
edit
null
null
mit
49c2e2afbb41861b6b51a6af46963da853351ad3
ku-kueihsi/dummy_react,ku-kueihsi/dummy_react,ku-kueihsi/dummy_react
public/react/hello_react_typescript.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {async, ComponentFixture, TestBed} from '@angular/core/testing';\n\nimport {FormComponent} from './dataSubmissionForm';\nimport {FormBuilder, FormsModule, ReactiveFormsModule} from '@angular/forms';\n\ndescribe('FormComponent', (...
typescript
edit
0
1
apache-2.0
a23b3640b726c7182e68b3683f78d8725f97f0b0
googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020
step-release-vis/src/app/components/form/dataSubmissionForm_test.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n\nimport \"reflect-metadata\";\nimport {expect} from \"chai\";\nimport {Serializer} from \"../../../main/Apha/Serialization/SerializerDecorator\";\n\ndescribe(\"SerializerDecorator\", () => {\n describe(\"Ignore\", () => {\n i...
typescript
edit
0
1
mit
2d10af8984f217ecab62f5d14f32dc4e5d8f78fe
martyn82/aphajs
src/test/Apha/Serialization/SerializerDecorator.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { storyWrapper } from '../../../../../../.storybook/helpers/storyWrapper';\nimport { SprkBoxDirective } from './sprk-box.directive';\nimport { SprkBoxModule } from './sprk-box.module';\nimport { markdownDocumentationLinkBuilder }...
typescript
edit
0
1
mit
e154b80023b4a7d21548914be2683371af34d976
sparkdesignsystem/spark-design-system,sparkdesignsystem/spark-design-system,sparkdesignsystem/spark-design-system,sparkdesignsystem/spark-design-system
angular/projects/spark-angular/src/lib/directives/sprk-box/sprk-box.stories.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as classNames from 'classnames'\nimport * as React from 'react'\nimport { Component } from 'react'\nimport { observer } from 'mobx-react'\n\nimport { Todo } from './Todo'\n\ninterface Props {\n todo: Todo\n}\n\n@observer\nexpo...
typescript
edit
null
null
unlicense
3dafeb24a898a5f0b5068f8b9d936bb8c6573bbf
janaagaard75/framework-investigations,janaagaard75/framework-investigations,janaagaard75/framework-investigations,janaagaard75/framework-investigations
todomvc-react-mobx-typescript/src/components/TodoItem.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n///<lib=\"es6-promise\"/>\nmodule ghost.browser.io\n{\n\texport class FileAPI\n\t{\n\t\tpublic static loadFile(input:HTMLInputElement)\n\t\t{\n\t\t\tvar promise:Promise<ProgressEvent> = new Promise<ProgressEvent>((resolve:(value:Progres...
typescript
edit
0
3
mit
f82eaefa3c3d6331709af1c9ed3eead96c11a39c
mymyoux/Typescript-Ghost-framework
browser/io/FileAPI.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { TlButton } from './button';\n\nexport * from './button';\n\n@NgModule({\n imports: [\n CommonModule,\n ],\n declarati...
typescript
edit
0
0
mit
50000c5c0a8fcf5fa2d8555a7b2da51406110cfd
TemainfoSistemas/truly-ui,TemainfoSistemas/truly-ui,TemainfoSistemas/truly-ui
src/button/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * Created by josh on 12/12/15.\n */\nimport {Component} from 'angular2/core';\nimport {Menu} from './menu'\n\n@Component({\n selector: 'header-component',\n template:`\n <menu></menu>\n <h1>Main page for Gerrit...
typescript
edit
0
0
apache-2.0
8d30209aab6ed1f060debf8688f7ad62359ea75d
MerritCR/merrit,MerritCR/merrit,MerritCR/merrit,MerritCR/merrit,joshuawilson/merrit,MerritCR/merrit,joshuawilson/merrit,joshuawilson/merrit,MerritCR/merrit,joshuawilson/merrit,MerritCR/merrit,joshuawilson/merrit,joshuawilson/merrit,MerritCR/merrit,joshuawilson/merrit,joshuawilson/merrit
gerrit-ng-ui/app/header.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { TestBed, inject } from '@angular/core/testing';\nimport { RouterTestingModule } from '@angular/router/testing';\n\nimport { CoreModule } from '@app/core';\n\nimport { StockMarketService } from './stock-market.service';\n\ndescr...
typescript
edit
0
1
mit
18c43c13a95a44d820d9ade48aa25a10712f9f83
tomastrajan/angular-ngrx-material-starter,tomastrajan/angular-ngrx-material-starter,tomastrajan/angular-ngrx-material-starter,tomastrajan/angular-ngrx-material-starter
src/app/examples/stock-market/stock-market.service.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component } from '@angular/core';\n\nimport { NavController, NavParams } from 'ionic-angular';\n\nimport { Storage } from '@ionic/storage';\n\nimport { User } from '../../providers/user';\n\n@Component({\n\tselector: 'page-edit...
typescript
edit
0
1
mit
b49fcb411150e2c74405a4fd5493a0b9abe20d88
beeminder-capstone/Nectar-Frontend,beeminder-capstone/Nectar-Frontend,beeminder-capstone/Nectar-Frontend
src/pages/edit-goal/edit-goal.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component } from \"angular2/angular2\";\n\n@Component({\n selector: 'app',\n template: `\n <h1>My Angular2 Base App</h1>\n`\n})\nexport class AppComponent { }\n\n```\n\nApply this change: Replace double quotes with sin...
typescript
edit
0
0
mit
443d724a33f1e4c4215dc30278c98c2dc3cee6f7
kiswa/angular2-base,kiswa/angular2-base,kiswa/angular2-base
src/ts/app.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport const CODESANDBOX_EXAMPLE_ID = 'q9l2j10wr4';\n\nexport const HOST_URL = 'https://material-ui-pickers.dev';\n\nexport const LOGO_URL = HOST_URL + '/static/meta-image.png';\n\nexport const GITHUB_EDIT_URL =\n 'https://github.com/d...
typescript
edit
0
0
mit
21d2715b0cedb1e9d762a4f85e0fe724692ef1b2
oliviertassinari/material-ui,mbrookes/material-ui,dmtrKovalenko/material-ui-pickers,mui-org/material-ui,oliviertassinari/material-ui,mui-org/material-ui,mbrookes/material-ui,callemall/material-ui,callemall/material-ui,oliviertassinari/material-ui,mbrookes/material-ui,rscnt/material-ui,rscnt/material-ui,dmtrKovalenko/ma...
docs/_constants.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component, ChangeDetectorRef } from '@angular/core';\nimport { OAuthAppListItem } from './oauth-apps.component';\nimport { OAuthAppStore } from '../../store/oauthApp/oauth-app.store';\nimport { OAuthApp, OAuthApps } from '../.....
typescript
edit
0
2
apache-2.0
3d63385f30cc8c2822651518f34925aa9253e32f
kahboom/ipaas-client,kahboom/ipaas-client,kahboom/ipaas-client,kahboom/ipaas-client
src/app/settings/oauth-apps/oauth-app-modal.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Injectable } from '@angular/core';\n\n@Injectable()\nexport class UtilityService{\n constructor(){}\n groupBy(collection: any[], prop: string){\n let propertiesUniqueArray: any[] = [];\n collection.forEach((...
typescript
edit
0
2
mit
d4be0888033df8452efa031cd29876084986b090
pankajparkar/bug-tracker,pankajparkar/bug-tracker,pankajparkar/bug-tracker
app/shared/utility.service.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/// <reference path=\"../core/template\" />\n/// <reference path=\"../model/counter\" />\n/// <reference path=\"counter\" />\n\nnamespace YJMCNT {\n /**\n * CounterTemplate\n */\n export class CounterListTemplate extends C...
typescript
edit
0
2
mit
5eaa85c9232daf0d946299a8dd481fef4da61719
yajamon/chrome-ext-counter,yajamon/chrome-ext-counter,yajamon/chrome-ext-counter
src/ts/template/counterList.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { ArgumentsHost, Catch, HttpException } from \"@nestjs/common\";\nimport { BaseExceptionFilter } from \"@nestjs/core\";\nimport { Request } from \"express\";\nimport { RollbarService } from \"./rollbar.service\";\n\n@Catch()\nexp...
typescript
edit
0
3
apache-2.0
2a91e74991f213737518a078bb0eb05ec72942d4
PublicMapping/DistrictBuilder,PublicMapping/DistrictBuilder,PublicMapping/DistrictBuilder,PublicMapping/DistrictBuilder,PublicMapping/DistrictBuilder
src/server/src/rollbar/rollbar-exception.filter.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Author } from './authors-frontmatter-query-result'\nimport { useAuthorsAvatars64 } from './use-authors-avatar-64'\nimport { useAuthorsAvatarsDefault } from './use-authors-avatar-default'\n\ntype UseAuthorsParams = {\n authorId...
typescript
edit
0
2
mit
eef85a650a8267ce6b9a035f3568bc05a6286cfb
bright/new-www,bright/new-www
src/use-authors/use-authors.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component, ViewChild } from '@angular/core';\nimport { LayerType } from './core/layer';\nimport { CityMapComponent } from './city-map/city-map.component'\n\n@Component({\n selector: 'aba-plan',\n templateUrl: 'app.component.h...
typescript
edit
0
1
mit
d9208fa1c51e90e637ec38ba64fd2e975f20c427
ABAPlan/abaplan-core,ABAPlan/abaplan-core,ABAPlan/abaplan-core
app/app.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react'\nimport {bindActionCreators} from 'redux'\nimport flowRight from 'lodash-es/flowRight'\nimport {translate} from 'react-i18next'\nimport {connect} from 'react-redux'\nimport Button from '@material-ui/core/B...
typescript
edit
null
null
mit
a0815316b126acef0ad6cee058b6129400c55909
Holi0317/bridge-calc,Holi0317/bridge-calc,Holi0317/bridge-calc
src/entry/collapsed-entry-options.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport mongo = require(\"mongodb\");\nconst client = mongo.MongoClient;\n\ninterface Db extends mongo.Db {\n users: mongo.Collection;\n}\n \nexport const initialize = () => {\n if (!process.env.DB_CONNECTION_STRING) {\n ...
typescript
edit
0
3
mit
4c0e83405b43c3da72e2a48bfc84c29f4d3b78ad
cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative
server/dbconnection.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport * as d3 from 'd3';\n\nexport class Diagram extends React.Component<{}, {}> {\n\n static displayName = 'Diagram';\n\n static propTypes = {\n title: React.PropTypes.string,\n };\n\n construct...
typescript
edit
null
null
mit
6807a610c6b964d44cdcfe89ab4ab56e4310aa28
hodgestar/rrd-hacky,hodgestar/rrd-hacky,hodgestar/rrd-hacky
src/diagram.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n///<reference path=\"../../.d.ts\"/>\n\"use strict\";\nimport projectPropertyCommandBaseLib = require(\"./prop-command-base\");\n\nexport class SetProjectPropertyCommand extends projectPropertyCommandBaseLib.ProjectPropertyCommandBase i...
typescript
edit
0
1
apache-2.0
559e8f85fdbe28686e6d9095db38440964d9d203
Icenium/icenium-cli,Icenium/icenium-cli
lib/commands/prop/prop-set.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Injectable } from '@angular/core';\n\nimport { Course } from './course-interface';\n\nconst courses: Course[] = [{\n id: 1,\n name: 'Name 1',\n duration: 45,\n date: 'date',\n description: 'Lorem ipsum dolor sit amet, cons...
typescript
edit
0
1
mit
199cc12a78e749e0b78f711006ff2c02f6eb555b
yusk90/courses-app,yusk90/courses-app,yusk90/courses-app
src/app/shared/courses.service.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/// <reference path=\"./rest.d.ts\" />\n\nimport rest = require('rest');\nimport mime = require('rest/interceptor/mime');\nimport errorCode = require('rest/interceptor/errorCode');\nimport registry = require('rest/mime/registry');\n\nre...
typescript
edit
0
1
mit
3ec86215aa444ca34f19e1a7dba434e0c46791a0
rcchen/DefinitelyTyped,olemp/DefinitelyTyped,shlomiassaf/DefinitelyTyped,CodeZombieCH/DefinitelyTyped,PopSugar/DefinitelyTyped,Karabur/DefinitelyTyped,gandjustas/DefinitelyTyped,nycdotnet/DefinitelyTyped,acepoblete/DefinitelyTyped,pocke/DefinitelyTyped,tomtheisen/DefinitelyTyped,QuatroCode/DefinitelyTyped,frogcjn/Defin...
rest/rest-tests.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Component, Input, OnChanges} from '@angular/core';\nimport {isEmpty} from 'tsfun';\n\n/**\n * @author Thomas Kleinke\n */\n@Component({\n moduleId: module.id,\n selector: 'relation-picker-group',\n templateUrl: './relat...
typescript
edit
0
6
apache-2.0
2d3df0d6d9e7d173b2990c9f62ec923a000a9036
codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client
app/components/docedit/widgets/relationspick/relation-picker-group.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport cachedFetch, { type CachedFetchOptions } from './cachedFetch';\n\nexport let apiUrl = 'https://pokeapi.co/api/';\nexport let apiVersion = 'v2';\n\nexport async function getResource(resource: string, options: CachedFetchOptions) {...
typescript
edit
0
3
apache-2.0
688ff42a1141529049db39694eaf09feaa3829e8
16patsle/pokeapi.js,16patsle/pokeapi.js
src/getResource.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// Copyright 2018 Verily Life Sciences Inc.\n//\n// Use of this source code is governed by a BSD-style\n// license that can be found in the LICENSE file.\n\nimport {Component, Input} from '@angular/core';\nimport {APP_TIMESPAN} from 'sr...
typescript
edit
0
0
bsd-3-clause
662b9e228c4d7ca0aa8e2f0e15386c59df937d0c
verilylifesciences/medtimeline,verilylifesciences/medtimeline,verilylifesciences/medtimeline,verilylifesciences/medtimeline,verilylifesciences/medtimeline
medtimeline/src/app/data-selector-element/data-selector-element.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/* eslint-disable no-process-env */\nimport {mergeWith} from 'lodash'\n\nconst sanityEnv = process.env.SANITY_ENV || 'production'\nconst apiHosts = {\n staging: 'https://api.sanity.work',\n development: 'http://api.sanity.wtf'\n}\n\nc...
typescript
edit
0
2
mit
32f062f1c5fd7800ad7a8fddc18339244a6d6e1e
sanity-io/sanity,sanity-io/sanity,sanity-io/sanity,sanity-io/sanity
packages/@sanity/util/src/reduceConfig.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\n\nexport enum ActionType {\n zoomIn = 1,\n zoomOut = 2,\n prev = 3,\n next = 4,\n rotateLeft = 5,\n rotateRight = 6,\n reset = 7,\n close = 8,\n scaleX = 9,\n scaleY = 10,\n download = 11,\n}\...
typescript
edit
null
null
mit
b7411dd3a2fca8db7370bad802263b02f0908c16
infeng/react-viewer,infeng/react-viewer
src/Icon.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { getMoves } from './moves';\nimport { evaluate } from './evaluation';\nimport { makeMove } from './game';\n\nexport function getBestMove(grid: boolean[], forX: boolean, depth?: number): number {\n if (depth == undefined)\n d...
typescript
edit
0
2
mit
1dea898acfdb12e37f905024573f0e76de859df1
artfuldev/tictactoe-ai,artfuldev/tictactoe-ai
src/search.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for ...
typescript
edit
0
1
mit
1c8828975ab778dba8acee66014b6347c48b5eef
OmniSharp/omnisharp-vscode,gregg-miskelly/omnisharp-vscode,OmniSharp/omnisharp-vscode,OmniSharp/omnisharp-vscode,OmniSharp/omnisharp-vscode,OmniSharp/omnisharp-vscode,gregg-miskelly/omnisharp-vscode,gregg-miskelly/omnisharp-vscode,gregg-miskelly/omnisharp-vscode
test/unitTests/Fakes/FakeOptions.ts
accepted
null
true