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 program = require('commander');\n\nprogram\n .version('0.2.7')\n .usage('new <name> [property:type...]')\n .command('new <name> [property:type...]', 'generate a Web Component');\n\nprogram.parse(process.argv);\n\n```\n\nApply ...
typescript
edit
0
0
mit
583b3571d7a9fffb1e8c5ad579b7bc5a1b2f7a1e
abraham/nutmeg-cli,abraham/nutmeg-cli,abraham/nutmeg-cli
src/main.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component } from '@angular/core';\n\n@Component({\n selector: 'my-app',\n template: '<h1>{{title}}</h1><h2>{{hero}} details!</h2>'\n})\nexport class AppComponent {\n title = 'Tour of Heroes';\n hero = 'Windstorm';\n...
typescript
edit
0
0
mit
054461ab62456ed59800f27b42bd7a527d40449c
jjhampton/angular2-tour-of-heroes,jjhampton/angular2-tour-of-heroes,jjhampton/angular2-tour-of-heroes
app/app.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport runJest from '../__helpers__/runJest';\n\nconst tmpDescribe =\n parseInt(process.version.substr(1, 2)) >= 8 ? xdescribe : describe;\n\ntmpDescribe('TSX Errors', () => {\n it('should show the correct error locations in the types...
typescript
edit
0
1
mit
a7b7d7773fd6d33de3ae6f6786cd2aab6c046311
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\n'use strict';\n\nimport fs = require('fs');\nimport path = require('path');\n\nvar binPathCache: { [bin: string]: string; } = {}\n\nexport function getBinPath(binname: string) {\n\tbinname = correctBinname(binname);\n \n\tif (binPath...
typescript
edit
0
7
mit
11127f40d8b9e435d67701a218c29ecff55e4dbd
xaverh/vscode-clang-format-provider
src/clangPath.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/*\n * Copyright (c) 2014-2021 Bjoern Kimminich.\n * SPDX-License-Identifier: MIT\n */\n\nimport utils = require('../lib/utils')\nconst challenges = require('../data/datacache').challenges\nconst db = require('../data/mongodb')\nconst s...
typescript
edit
0
3
mit
e1a407c6fc8677ffb5e8716576a727222f7c29f2
bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop
routes/updateProductReviews.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport namespace constants {\n\n export namespace headers.request {\n\n // standard forwarded for header\n export const X_FORWARDED_FOR = 'X-Forwarded-For';\n\n // standard forwarded proto header\n export const X_FORWARDED_...
typescript
edit
0
0
apache-2.0
46cc2b67c95b607e67cbab045a97744feda3fcd5
nodeswork/sbase,nodeswork/sbase
src/constants.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { SimpleGitOptions } from '../types';\n\nimport { SimpleGitPlugin } from './simple-git-plugin';\nimport { GitPluginError } from '../errors/git-plugin-error';\n\nexport function timeoutPlugin({block}: Exclude<SimpleGitOptions['tim...
typescript
edit
0
2
mit
463e1938e893dec5049b8b1a83736e83783246f4
steveukx/git-js,steveukx/git-js
simple-git/src/lib/plugins/timout-plugin.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nconst commonHooks = require('feathers-hooks-common');\nconst Ajv = require('ajv');\n\nimport { IServiceHooks, IHook, ISchema } from '../IService';\n\nexport const validationHooks = (schemas: { create: ISchema, update: ISchema } , before...
typescript
edit
0
4
mit
b9eef160f4b9ee3140b7de7f678db578fbbd2f17
sauli6692/ibc-server
src/core/domain/services/predefinedHooks/validation.hook.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Model } from '../model/model.service';\nimport { SiteTheme } from './theme/theme-model';\nimport { SiteContentBlock } from './content-block/content-block-model';\nimport { SiteBuild } from './build/build-model';\n\nexport class...
typescript
edit
0
4
mit
28a1c5a1de78edca59579341d97ca6f774618057
gamejolt/frontend-lib,gamejolt/frontend-lib,gamejolt/frontend-lib,gamejolt/frontend-lib
components/site/site-model.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport Canvasimo from '../src';\nimport getContextStub from './helpers/get-context-stub';\n\ndescribe('density', () => {\n\n const element = document.createElement('canvas');\n jest.spyOn(element, 'getContext').mockImplementation(getC...
typescript
edit
0
1
mit
31639bad878f4e09d6496f933656ba8c7bae35fd
JakeSidSmith/sensible-canvas-interface,JakeSidSmith/canvasimo,JakeSidSmith/canvasimo
tests/density.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from \"react\";\nimport { SurveyQuestionElementBase } from \"./reactquestionelement\";\nimport { QuestionHtmlModel } from \"../question_html\";\nimport { ReactQuestionFactory } from \"./reactquestionfactory\";\n\nexpor...
typescript
edit
null
null
mit
83718b0c43bacf759a0f6034e09ab63d839fd774
surveyjs/surveyjs,andrewtelnov/surveyjs,andrewtelnov/surveyjs,andrewtelnov/surveyjs,surveyjs/surveyjs,surveyjs/surveyjs,surveyjs/surveyjs
src/react/reactquestionhtml.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { odata2openapi } from '../src/';\n\nodata2openapi('http://services.odata.org/V3/Northwind/Northwind.svc/$metadata')\n .then(swagger => console.log(JSON.stringify(swagger, null, 2)))\n .catch(error => console.error(error))\n\n`...
typescript
edit
0
1
mit
947118d38c95958dfa50dfc2e3c961984f8c2737
akorchev/odata2openapi
example/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
6
mit
fd182746cb47c60ceddffdf236925334caf06e68
landonepps/vscode,microlv/vscode,microlv/vscode,microlv/vscode,DustinCampbell/vscode,0xmohit/vscode,eamodio/vscode,mjbvz/vscode,Microsoft/vscode,landonepps/vscode,joaomoreno/vscode,cleidigh/vscode,microsoft/vscode,microsoft/vscode,DustinCampbell/vscode,joaomoreno/vscode,microlv/vscode,mjbvz/vscode,Krzysztof-Cieslak/vsc...
extensions/markdown-language-features/src/commands/showPreviewSecuritySelector.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { error } from \"./loggers\"\nimport { RequestHandler } from \"express\"\n\nexport const nameOldEigenQueries: RequestHandler = (req, _res, next) => {\n const agent = req.headers[\"user-agent\"]\n if (agent && agent.includes(\"E...
typescript
edit
0
7
mit
d8044519a69accdee907ce474408634c9e52799a
artsy/metaphysics,artsy/metaphysics,mzikherman/metaphysics-1,mzikherman/metaphysics-1,artsy/metaphysics,mzikherman/metaphysics-1,mzikherman/metaphysics-1
src/lib/nameOldEigenQueries.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component, View, ElementRef } from 'angular2/angular2';\n\n@Component({\n selector: 'app'\n})\n@View({\n templateUrl: './app.html'\n})\nexport class App { \n constructor(elementRef : ElementRef) { } \n}\n```\n\nApply this...
typescript
edit
0
1
mit
9c1aa1ef7c271c434e9b878ee22ffe4789c2a8c4
tbragaf/ng2-seed,tbragaf/ng2-typescript,tbragaf/ng2-seed,tbragaf/ng2-seed,tbragaf/ng2-typescript,tbragaf/ng2-typescript
src/app/app.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport \"../css/og-loading-spinner.less\";\nimport { OgLoadingSpinnerScope } from \"og-components/og-loading-spinner/types\";\nimport OgLoadingSpinnerView from \"og-components/og-loading-spinner/views/loading.html\";\n\nexport default c...
typescript
edit
0
3
mit
1863fe01d5feb499dbdbdcfe473300f48f573a04
scottohara/loot,scottohara/loot,scottohara/loot,scottohara/loot
src/og-components/og-loading-spinner/directives/og-loading-spinner.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport ExtractTextPlugin from 'extract-text-webpack-plugin'\n\nexport default function extractCss(neutrino: any) {\n const { config } = neutrino\n const styleRule = config.module.rule('style')\n\n // We prepend the extract loader by ...
typescript
edit
0
1
mit
a55e742ac24f5b40e41f01305ad88bc1f9d85ffc
aranja/tux,aranja/tux,aranja/tux
packages/neutrino-preset-tux/src/extractCss.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from 'react';\nimport { shallow, configure } from 'enzyme';\nimport { expect } from 'meteor/practicalmeteor:chai';\nimport { CommentsItem } from './CommentsItem'\nimport Adapter from 'enzyme-adapter-react-16';\nconfigure({ ...
typescript
edit
0
0
mit
0e83f14c13658eeac4449809476e4cf405221264
Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2
packages/lesswrong/components/comments/CommentsItem/_comments-unit-tests.tsx
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\nimport React from 'react';\nimport { Link as ReactRouterLink } from 'react-router-dom';\nimport { APP_NAMES, isSSOMode, isStandaloneMode } from 'proton-shared/lib/constants';\nimport { getAppHref, getAppHrefBundle } from 'proton-shared/...
typescript
edit
null
null
mit
b276bee3768a997a7b5ae290c0096f7517cd016b
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
packages/components/components/link/AppLink.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Observable } from 'rxjs';\nimport { FilterOptions } from './collection';\nexport { Database } from './database';\nexport { Collection } from './collection';\nexport { Query } from './query';\n\n/**\n * IDatabase\n * ...\n */\ne...
typescript
edit
0
0
mit
6d34951db9cb4511b8b2407090a060b14f9e8fb3
Cinergix/rxdata,Cinergix/rxdata
src/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport {\n Text\n} from 'react-native';\nimport ScrollableTabView from 'react-native-scrollable-tab-view';\n\ninterface MyTextProperties extends React.Props<MyText> {\n tabLabel: string;\n\n text: str...
typescript
edit
null
null
mit
9853ed4e216e8c49cf75d690ba504ad038230bb4
arusakov/DefinitelyTyped,minodisk/DefinitelyTyped,benishouga/DefinitelyTyped,mcliment/DefinitelyTyped,zuzusik/DefinitelyTyped,minodisk/DefinitelyTyped,arusakov/DefinitelyTyped,rolandzwaga/DefinitelyTyped,AbraaoAlves/DefinitelyTyped,georgemarshall/DefinitelyTyped,dsebastien/DefinitelyTyped,aciccarello/DefinitelyTyped,ab...
types/react-native-scrollable-tab-view/react-native-scrollable-tab-view-tests.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { getDefaultSettings } from \"../Settings/Settings\";\nimport { Store } from \"../Utility/Store\";\nimport { Command } from \"./Command\";\n\ndescribe(\"Command\", () => {\n test(\"Should use a default keybinding\", () => {\n ...
typescript
edit
0
1
mit
26d736d4e15cedc3731976bd6b0c50ae3e6ade7a
cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative
client/Commands/Command.test.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nclass Animation {\n private animators: { [animatedPropertyName: string]: Animator } = { };\n private currentFrame = 0;\n finalAction: FinalAnimationAction;\n isRunning: boolean;\n\n private animationEndedHost = Observabl...
typescript
edit
0
4
apache-2.0
6710356c13f0639181755863914fdcdd287661bc
Dia6lo/Mechanism,Dia6lo/Mechanism,Dia6lo/Mechanism
Mechanism/RenderObjects/Animations/Animation.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/* tslint:disable */\n\nimport Task from './task';\nimport Either from './either';\nimport Option from './option';\nimport * as Object from './object'\nimport * as List from './list';\nimport * as Math from './math';\nimport * as String...
typescript
edit
0
0
mit
f8bf68eccb7d9c818e02bc4cc6b171796b59ef47
AyaMorisawa/node-powerful
src/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\njest.mock(\"../util\", () => ({ getParam: () => \"STUB_PARAM\" }));\n\njest.mock(\"axios\", () => ({\n default: {\n put: () => ({ data: { FAKE_TOKEN: true } })\n }\n}));\n\njest.mock(\"../session\", () => ({\n Session: {\n repl...
typescript
edit
0
1
mit
182094049249ac43391946647c1bf11315ef2d97
RickCarlino/farmbot-web-app,FarmBot/Farmbot-Web-API,RickCarlino/farmbot-web-app,FarmBot/Farmbot-Web-API,FarmBot/Farmbot-Web-API,gabrielburnworth/Farmbot-Web-App,gabrielburnworth/Farmbot-Web-App,FarmBot/Farmbot-Web-API,gabrielburnworth/Farmbot-Web-App,FarmBot/farmbot-web-app,FarmBot/farmbot-web-app,RickCarlino/farmbot-w...
webpack/__tests__/verification_support_test.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as path from 'path';\nimport * as file from './file';\n\nexport interface IConfig {\n\tappKey?: string;\n\tuserKey?: string;\n\tapiBaseUrl?: string;\n}\n\nexport let appConfig: IConfig = {\n\tappKey: 'hmsk.HXLcVOeFfHhKPwZvdKBCg...
typescript
edit
0
2
mit
09f7361f86e2597f5e652032384bcd819c768cba
AyaMorisawa/Disskey,AyaMorisawa/Disskey,AyaMorisawa/Disskey
src/models/config.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { assert as t } from \"chai\";\nimport BooleanField from \"../BooleanField\";\n\ndescribe(\"Checkbox\", () => {\n it(\"should instantiate with default Options\", () => {\n const field = new BooleanField();\n t.equal(field....
typescript
edit
0
1
mit
edd74e64c39ff52f08551016559c1c28184020fe
marvinhagemeister/mobx-form-reactions
src/__tests__/BooleanField.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Component, Input} from \"@angular/core\";\nimport {RabbitQueue} from \"../queueing/models/RabbitQueue\";\n\n@Component({\n\tselector: 'rabbit-queue',\n\ttemplate:\n\t\t`\n\t<div class=\"progress\">\n\t\t<div class=\"small\">{{ge...
typescript
edit
0
5
apache-2.0
ff6cd91aaecbafb1aa2335724e7f7ab6cc469395
endeavourhealth/EDS,endeavourhealth/EDS,endeavourhealth/EDS,endeavourhealth/EDS,endeavourhealth/EDS
src/eds-ui/src/main/frontend/app/dashboard/queue.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { emojiData } from \"../utils/emojiData\";\n\nexport class EmojiTranslatorModule {\n public init() {\n const input = document.getElementById('input') as HTMLTextAreaElement;\n input.addEventListener('keyup', event => {\n ...
typescript
edit
0
2
isc
9ab7b43d9a885db78522c542dc8cb365eb35e407
MadaraUchiha/se-chat-dark-theme-plus
src/modules/EmojiTranslatorModule.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { TestBed, async } from '@angular/core/testing';\n\nimport { AppComponent } from './app.component';\n\ndescribe('AppComponent', () => {\n beforeEach(async(() => {\n TestBed.configureTestingModule({\n declarations: [\n ...
typescript
edit
0
1
mit
e5aac0e59ae188c1d90e8441203ffff358c8448b
frt/happyscheduler,frt/happyscheduler,frt/happyscheduler,frt/happyscheduler
frontend/src/app/app.component.spec.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\nimport { AccountInfo } from \"../account/AccountInfo\";\n\n/**\n * CommonEndSessionRequest\n * - account - Accou...
typescript
edit
0
0
mit
e6c8cc73cfdcbdf61334ff46100215efda7dd7ab
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-common/src/request/CommonEndSessionRequest.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
fcb23ed2eeca80c1f58ecd5d05bdeb4c31ed93a2
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 * as ExtractTextPlugin from 'extract-text-webpack-plugin';\nimport * as path from 'path';\nimport * as webpack from 'webpack';\nimport * as merge from 'webpack-merge';\n\nimport createConfig from './webpack.base.config';\n\nconst...
typescript
edit
0
0
mit
6802b48fb128255429ffd11abc7bb034ac827f8a
gluons/vue-thailand-address
build/webpack.web.config.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Injectable } from '@angular/core';\n\n@Injectable()\nexport class WindowService {\n\n get nativeWindow() : any {\n return _window();\n }\n\n}\n\nfunction _window() : any {\n // return the global native browser window obje...
typescript
edit
0
2
mit
2ec14cc5cedd6d5380b9ae58d9d925f462aaf962
MurhafSousli/ng2-sharebuttons,MurhafSousli/ng2-sharebuttons,tinesoft/ng2-sharebuttons,MurhafSousli/ng2-sharebuttons,tinesoft/ng2-sharebuttons,tinesoft/ng2-sharebuttons
src/service/window.service.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// @ts-ignore\nimport Cookies, { CookieChangeOptions } from 'universal-cookie';\n\nexport default function universalCookieMiddleware() {\n return function(req: any, res: any, next: () => void) {\n req.universalCookies = new Cookies(...
typescript
edit
0
7
mit
a6c3ea1a2dbaf794c2765dc559ad088d334c569f
reactivestack/cookies,eXon/react-cookie,reactivestack/cookies,reactivestack/cookies
packages/universal-cookie-express/src/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Injectable} from \"@tsed/common\";\nimport {Calendar} from \"../models/Calendar\";\n\n@Service()\nexport class CalendarsService {\n private readonly calendars: Calendar[] = [];\n\n create(calendar: Calendar) {\n this.calend...
typescript
edit
0
1
mit
9de57674dcb98cbb06525f3f50356d182443ded2
Romakita/ts-express-decorators,Romakita/ts-express-decorators,Romakita/ts-express-decorators,Romakita/ts-express-decorators
docs/docs/snippets/providers/getting-started-service.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {configure} from 'enzyme'\nimport * as Adapter from 'enzyme-adapter-react-16'\nimport 'jest-enzyme'\n\n// Set up Enzyme\nconfigure({adapter: new (Adapter as any)()}) // tslint:disable-line:no-any\n\n// For React 16\nObject.assign...
typescript
edit
0
0
mit
fe5e696831189ad72061ad3e7e248e283bf281ed
jupl/astraea,jupl/astraea
setup-tests.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { put, call, select } from 'redux-saga/effects'\n\nimport { hashCalculated } from '../actions'\nimport type { State } from '../store'\nimport type { Hash } from '../types'\n\ntype ArrayBuffer = State['arrayBuffer']\ntype HashType...
typescript
edit
0
3
mit
a5cbeaf7737ea7c465076a547caad5bb2e71558d
joelgeorgev/file-hash-verifier,joelgeorgev/file-hash-verifier
src/sagas/calculateHash.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as path from 'path';\n\nexport const DEFAULT_APP_NAME = 'APP';\n\n// Update both DEFAULT_ELECTRON_VERSION and DEFAULT_CHROME_VERSION together,\n// and update app / package.json / devDeps / electron to value of DEFAULT_ELECTRON_...
typescript
edit
0
0
bsd-2-clause
9d0a2f5b441c002d41dda871c479fd5839c56c53
jiahaog/Nativefier,jiahaog/Nativefier,jiahaog/Nativefier
src/constants.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component } from '@angular/core';\nimport { Title } from '@angular/platform-browser';\n\nimport { TopNav } from '../shared/index';\nimport { SettingsService } from './settings.service';\nimport {\n UserSettings,\n UserAdm...
typescript
edit
0
1
mit
9900e7233ca879c727336c9cc2e05dfcc1fbefe3
kiswa/TaskBoard,kiswa/TaskBoard,kiswa/TaskBoard,kiswa/TaskBoard,kiswa/TaskBoard
src/app/settings/settings.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Greeter } from '../src/greeter';\nimport * as chai from 'chai';\n\nvar expect = chai.expect;\n\ndescribe('greeter', () => {\n it('should greet with message', () => {\n var greeter = new Greeter('friend');\n expect(greete...
typescript
edit
null
null
mit
878ad624c21e3fb899d893a6340a393727ba75fd
ospatil/generator-node-typescript,ospatil/generator-node-typescript
generators/app/templates/test/greeter-spec.ts
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport Renderer from './renderer'\n\nclass GitLabRenderer extends Renderer {\n renderSwitch() {\n }\n\n getCodeDOM() {\n return <HTMLElement>document.querySelector('.blob-content code')\n }\n\n getFontWidth() {\n const $ = <H...
typescript
edit
0
1
mit
6b473271967984ecb8788a87da0eefcc3f94a5ff
pd4d10/intelli-octo,pd4d10/intelli-octo,pd4d10/intelli-octo
src/gitlab.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as path from 'path';\r\n\r\nimport { runTests } from '@vscode/test-electron';\r\n\r\nasync function main() {\r\n\ttry {\r\n\t\t// The folder containing the Extension Manifest package.json\r\n\t\t// Passed to `--extensionDevelop...
typescript
edit
0
2
mit
b947f60453fb54512a682eac5276dd7d87bf0cdf
ipatalas/vscode-postfix-ts,ipatalas/vscode-postfix-ts
test/runTests.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from 'react';\nimport { c } from 'ttag';\nimport { Alert, FormModal } from 'react-components';\nimport { noop } from 'proton-shared/lib/helpers/function';\n\ninterface Props {\n onClose: () => void;\n duplicateAttende...
typescript
edit
null
null
mit
eb692c5b37b80be8dc9bad510aa019e9e459706f
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
applications/calendar/src/app/containers/calendar/confirmationModals/DuplicateAttendeesModal.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n\nexport default class GradeSchool {\n\n private roster: Map<number, string[]>\n\n constructor() {\n this.roster = new Map<number, string[]>()\n }\n\n public studentRoster(): ReadonlyMap<string, string[]> {\n c...
typescript
edit
0
2
mit
35935df05966a44dee0a71fa9ce2faa7b2f4955f
rootulp/exercism,rootulp/exercism,rootulp/exercism,rootulp/exercism,rootulp/exercism,rootulp/exercism,rootulp/exercism,rootulp/exercism
typescript/grade-school/grade-school.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Fragment } from 'react'\nimport styled from 'styled-components'\n\nimport type { Nodes } from '../../types'\n\nconst List = styled.ul`\n list-style-type: none;\n`\n\nconst StyledCheckbox = styled.input`\n margin-right: 0.5rem...
typescript
edit
null
null
mit
70995bb7eac31e2fe1864448c56bbb9969a5bc20
joelgeorgev/react-checkbox-tree,joelgeorgev/react-checkbox-tree
src/components/Checkbox/Checkbox.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { createAction } from 'redux-act'\n\nimport { getTooltipState, setTooltipState } from '../../content-tooltip/utils'\nimport { remoteFunction } from '../../util/webextensionRPC'\nimport { Thunk } from '../types'\nimport * as selec...
typescript
edit
0
2
mit
63506238c59cfa6f99a0179b597884108b9638e4
WorldBrain/WebMemex,WorldBrain/WebMemex
src/popup/tooltip-button/actions.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { ConnectionOptions } from 'typeorm';\nimport * as fs from 'fs';\nimport { Configuration } from '../helpers/environment';\n\nconsole.log(Configuration.DB_HOST)\n\nexport const connectionOptions: ConnectionOptions = {\n type: \...
typescript
edit
0
0
apache-2.0
6a4d326f89dc3edec61a339262d873b082e6ddeb
Goyatuzo/LurkerBot,Goyatuzo/LurkerBot
typeorm/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {\n bindable,\n customElement\n} from 'aurelia-framework';\n\n@customElement('hn-story-list')\nexport class StoryList {\n @bindable() private readonly stories: any[];\n @bindable() private readonly offset: number;\n}\...
typescript
edit
0
0
isc
f9d139620f66f0c3c0ff2ac8a1b7c2ebf467b883
MikeBull94/aurelia-hacker-news,michaelbull/aurelia-hacker-news,michaelbull/aurelia-hacker-news,MikeBull94/aurelia-hacker-news,michaelbull/aurelia-hacker-news
src/components/story-list.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as exec from '@actions/exec'\nimport * as cacheDependencies from './cache-dependencies'\nimport * as cacheConfiguration from './cache-configuration'\n\nexport async function execute(\n executable: string,\n root: string,\...
typescript
edit
0
4
mit
55871cbb473d61479286806e3086147360a0d290
eskatos/gradle-command-action,eskatos/gradle-command-action,eskatos/gradle-command-action
src/execution.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * Adds drag and drop functionality to pioneer-tree-node child elements\n */\nimport { Component, Input, HostListener } from '@angular/core';\nimport { IPioneerTreeExpandedNode } from \"../../models/pioneer-tree-expanded-node.model...
typescript
edit
0
1
mit
04534a2709a97d051cca2ec58d5c3e99f5e5a9c5
PioneerCode/pioneer-tree,PioneerCode/pioneer-tree,PioneerCode/pioneer-tree
src/site/app/lib/components/pioneer-tree-handle/pioneer-tree-handle.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\n\nimport { required } from '@waldur/core/validators';\nimport { FormContainer, StringField, NumberField, SecretField } from '@waldur/form-react';\n\nexport const VMwareForm = ({ translate, container }) =...
typescript
edit
null
null
mit
77bb6f36e9651c846f6b0c6148f40b96e2f7598f
opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport
src/vmware/VMwareForm.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';\n\n@Component({\n selector: 'my-app',\n templateUrl: \"/app/app.component.tpl.html\"\n})\nexport class AppComponent {\n operation:string;\n firstvalue:number = 0;\n scdvalue:numb...
typescript
edit
0
1
mit
9d222122005cee4a5cb78026008c8ed3a5176496
ngako/angular2-poc,ngako/angular2-poc,ngako/angular2-poc
src/app/app.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nvar prepareHello = (name:string) => {\n return 'Hello, ' + name;\n}\n\nconsole.log(prepareHello('Unicorns'));\n\nclass fixOnScroll {\n constructor(element){\n this.element = element;\n window.addEventListener('scroll', this.hand...
typescript
edit
null
null
mit
fbb6d692b7075e4dcea5dbae1ff6dd20cc4ccb37
SevereOverfl0w/Unicorn-UI-Kit,SevereOverfl0w/Unicorn-UI-Kit
lib/ts/unicorn.ts
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { https } from 'firebase-functions';\n\nconst MIN_VERSION = '1.1.0';\n\nexports.minimumVersion = https.onRequest(async (_, res) => {\n res.status(200).send(JSON.stringify({ minVersion: MIN_VERSION }));\n});\n\n```\n\nApply this ...
typescript
edit
0
1
mit
724b7af463a162805fec646bb58056c7db539502
cardstack/cardstack,cardstack/cardstack,cardstack/cardstack,cardstack/cardstack,cardstack/cardstack,cardstack/cardstack
packages/firebase-functions/minimum-version/functions/src/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/// <reference path=\"../../types/types.ts\"/>\n\n\nclass HomeController implements core.IHomeController {\n price: number;\n rent: number;\n expected_price_increase: number;\n expected_rent_increase: number;\n mortgage_rate: numbe...
typescript
edit
0
6
mit
473963f24bf558600de3d9305f4b455d3e8de1c2
WeAreWizards/crumpets,WeAreWizards/crumpets,WeAreWizards/crumpets
src/app/home/home.controller.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Node, SyntaxKind, SourceFile } from 'typescript';\nimport { emitImportDeclaration } from './imports';\nimport { emitFunctionLikeDeclaration } from './functions';\nimport { emitExpressionStatement, emitCallExpressionStatement } ...
typescript
edit
0
14
mit
d494542241b32d2d9a75a5825aaee4cca0849990
artfuldev/RIoT
transpiler/src/emitter/index.ts
rejected_complexity
Cyclomatic complexity too high: 14
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Box, Col, Flex, Grid, Row } from \"@artsy/palette\"\nimport { AppContainer } from \"Apps/Components/AppContainer\"\nimport { HorizontalPadding } from \"Apps/Components/HorizontalPadding\"\nimport React from \"react\"\nimport { ...
typescript
edit
null
null
mit
75b4c030af608ae0538c832d37339ba5ee59224b
artsy/reaction,xtina-starr/reaction,artsy/reaction,artsy/reaction,xtina-starr/reaction,xtina-starr/reaction,artsy/reaction-force,artsy/reaction-force,xtina-starr/reaction
src/Apps/Search/Components/SearchResultsSkeleton/index.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 vl from '../src/vl';\nimport {zSchema} from '../test/util';\n\nconst inspect = require('util').inspect;\nconst fs = require('fs');\nconst path = require('path');\n\nconst validator = new zSchema...
typescript
edit
0
3
bsd-3-clause
165978bf842b6f017a42a3409ef9281b1743c537
uwdata/vega-lite,uwdata/vega-lite,vega/vega-lite,uwdata/vega-lite,uwdata/vega-lite,vega/vega-lite,vega/vega-lite,uwdata/vega-lite,vega/vega-lite,vega/vega-lite
examples/examples.test.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react'\nimport { IAutocompletionProvider } from './index'\n\n/** Autocompletion provider for emoji. */\nexport default class EmojiAutocompletionProvider implements IAutocompletionProvider<string> {\n private emo...
typescript
edit
null
null
mit
e690a506d9267fc4798bb1dbc90bab36e85f161f
hjobrien/desktop,BugTesterTest/desktops,shiftkey/desktop,kactus-io/kactus,j-f1/forked-desktop,hjobrien/desktop,kactus-io/kactus,hjobrien/desktop,artivilla/desktop,kactus-io/kactus,desktop/desktop,hjobrien/desktop,artivilla/desktop,desktop/desktop,artivilla/desktop,say25/desktop,BugTesterTest/desktops,j-f1/forked-deskto...
app/src/ui/autocompletion/emoji-autocompletion-provider.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React, { SyntheticEvent } from 'react';\n\nconst avatarFallback = '/avatar/0.jpg';\nconst failTimes = new Map();\n\n/**\n * 处理头像加载失败的情况, 展示默认头像\n * @param e 事件\n */\nfunction handleError(e: SyntheticEvent) {\n const times = fa...
typescript
edit
null
null
mit
b80dd72ea9cf5f81102825abb7e250e52ec842ce
yinxin630/fiora,yinxin630/fiora,yinxin630/fiora
client/components/Avatar.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React, { CSSProperties, useContext } from 'react';\nimport { Navbar, Nav } from 'react-bootstrap';\nimport { useLocation } from 'react-router-dom';\nimport { JwtContext } from './App';\n\nexport default () => {\n\n const locat...
typescript
edit
null
null
apache-2.0
5af13d48e2e6265356fb305bdb5b44d02e0583ed
dainst/idai-field-web,dainst/idai-field-web,dainst/idai-field-web
ui/src/Navbar.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { createVortexLink } from \"./link\"\nimport {\n makeRemoteExecutableSchema,\n transformSchema,\n RenameTypes,\n RenameRootFields,\n FilterRootFields,\n} from \"graphql-tools\"\nimport { readFileSync } from \"fs\"\n\nexport ...
typescript
edit
0
4
mit
d56522b88d9204f090ccffc94f2773b34faab712
artsy/metaphysics,artsy/metaphysics,artsy/metaphysics
src/lib/stitching/vortex/schema.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nconst nodeMetrics = require(\"../lib/metrics\");\nconst assert = require(\"assert\");\n\ndescribe(\"pause test\", () => {\n // Start up the pause detector\n before(() => nodeMetrics.log_metrics(\"source\", 10000));\n\n it(\"test2\", ...
typescript
edit
0
2
apache-2.0
4447a3dbe5343df92fde677c084ea36e45f3b7d8
Clever/node-process-metrics,Clever/node-process-metrics
test/metrics.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { escapeRegExp } from \"lodash\";\n\nexport interface KeyValueSet<T> {\n [key: string]: T;\n}\n\nexport function toModifierString(number: number): string {\n if (number >= 0) {\n return `+${number}`;\n }\n return number.to...
typescript
edit
0
2
mit
4c1254a880633a6ea153a0ee7d5d5c8a8b7c9048
cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative
common/Toolbox.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/*\n * Public API Surface of papaparse\n */\n\nexport * from './lib/papa';\nexport * from './lib/papa-parse.module';\n\n```\n\nApply this change: fix: Remove module from Public api" }, { "role": "assistant", "content": "/*\n...
typescript
edit
0
0
mit
b9f54a8cee2de1dea672a1267bbee824c70c3f93
Alberthaff/ngx-papaparse,Alberthaff/ngx-papaparse
src/public_api.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { async, ComponentFixture, TestBed } from '@angular/core/testing';\n\nimport { TopPageComponent } from './top-page.component';\n\ndescribe('TopPageComponent', () => {\n let component: TopPageComponent;\n let fixture: ComponentF...
typescript
edit
0
1
apache-2.0
ab08e8b4dd81b5e3b046e29f67101870a5f6a57c
jbrowneuk/jblog,jbrowneuk/jblog,jbrowneuk/jblog,jbrowneuk/jblog
src/app/home/top-page/top-page.component.spec.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 { MediaContentModel, SchemaModel, MediaTypeModel } from '../../services/models';\nimport { DropdownProps } from '../../common-elements/dropdown';\n\nexpor...
typescript
edit
null
null
mit
0ab1c71cb66930d396b8e2dcbec4117ddba03611
Rebilly/ReDoc,Rebilly/ReDoc,Rebilly/ReDoc,Rebilly/ReDoc
src/components/MediaTypeSwitch/MediaTypesSwitch.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { clearStyles } from '../util';\nimport { Article } from '..';\n\nexport const cleanup = () => {\n document.querySelectorAll('#tooltipLayer_english, .u_cbox_layer_wrap').forEach((v) => {\n v.remove();\n });\n}\n\nexp...
typescript
edit
0
4
mit
4406da75773d6adffd1f2249ccebf677c48e5b58
disjukr/jews,disjukr/just-news,disjukr/just-news,disjukr/jews,disjukr/just-news
src/impl/네이버뉴스.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nmodule BABYLON {\r\n\r\n // declare INSPECTOR namespace for compilation issue\r\n declare var INSPECTOR : any;\r\n\r\n export class DebugLayer {\r\n private _scene: Scene;\r\n public static InspectorURL = 'http://...
typescript
edit
0
2
apache-2.0
68779294a2de0d31bfc6fd3b6d2b66b751e9a286
Hersir88/Babylon.js,sebavan/Babylon.js,sebavan/Babylon.js,Hersir88/Babylon.js,RaananW/Babylon.js,NicolasBuecher/Babylon.js,abow/Babylon.js,abow/Babylon.js,BabylonJS/Babylon.js,abow/Babylon.js,Kesshi/Babylon.js,Temechon/Babylon.js,BabylonJS/Babylon.js,jbousquie/Babylon.js,Kesshi/Babylon.js,Hersir88/Babylon.js,Temechon/B...
src/Debug/babylon.debugLayer.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport type { AppProps } from \"next/app\";\nimport Router from \"next/router\";\nimport NProgress from \"nprogress\";\n\nimport \"nprogress/nprogress.css\";\nimport \"../styles/index.scss\";\n\nNProgress.configure({ showSpinner: false ...
typescript
edit
null
null
isc
a8ce879f105a7bafd05bc71e1fe345d95425405e
sobstel/golazon,sobstel/golazon,sobstel/golazon
pages/_app.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Injectable } from '@angular/core';\nimport artyomjs = require('artyom.js');\n\n\n@Injectable()\nexport class VoiceService {\n\n private voiceProvider: IVoiceProvider = new ArtyomProvider();\n\n constructor() { }\n\n public s...
typescript
edit
0
1
mit
e5a1935a2b42aa983f7a216e99c70543485564e6
ABAPlan/abaplan-core,ABAPlan/abaplan-core,ABAPlan/abaplan-core
src/app/core/voice.service.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as sourceMapSupport from \"source-map-support\";\nsourceMapSupport.install();\nimport * as commander from \"commander\";\nimport * as fs from \"fs-extra\";\nimport * as lib from \"./lib\";\nimport * as path from \"path\";\n\nfu...
typescript
edit
0
8
mit
6220ca8eb640114e225f49638a19a92ef60737e8
crossroads-education/eta-cli,crossroads-education/eta-cli
cli.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from 'react'\nimport {useUser, LOADING_USER} from '@sanity/react-hooks'\nimport {Tooltip} from 'react-tippy'\nimport {UserAvatar} from '@sanity/components/presence'\nimport {Annotation, AnnotationChanged} from '../../panes/...
typescript
edit
null
null
mit
b338ed1ed273f6d109f5515d6f87ad7aa90b8a7c
sanity-io/sanity,sanity-io/sanity,sanity-io/sanity,sanity-io/sanity
packages/@sanity/desk-tool/src/diffs/annotationTooltip/annotationTooltip.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { ConnectionStatus } from \"./interfaces\";\nimport * as m from \"moment\";\nimport { isString, max } from \"lodash\";\n\nexport function maxDate(l: m.Moment, r: m.Moment): string {\n const dates = [l, r].map(y => y.toDate());\n...
typescript
edit
0
4
mit
62a437e8fecf82503b3f7943eed76a0dc1aceb63
FarmBot/farmbot-web-app,RickCarlino/farmbot-web-app,gabrielburnworth/Farmbot-Web-App,FarmBot/farmbot-web-app,RickCarlino/farmbot-web-app,gabrielburnworth/Farmbot-Web-App,RickCarlino/farmbot-web-app,FarmBot/Farmbot-Web-API,gabrielburnworth/Farmbot-Web-App,FarmBot/Farmbot-Web-API,FarmBot/Farmbot-Web-API,RickCarlino/farmb...
webpack/connectivity/reducer_support.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Injectable } from '@angular/core';\nimport { of } from 'rxjs';\n\n@Injectable()\nexport class BannerMessageService {\n\n public message$ = of(\n 'This is the beta version of RPNow. Please report problems to <a href=\"mailto...
typescript
edit
0
0
mit
d918d81e102bdd563e78df3d4e0060ebc44c69f1
shamblesides/rpnow,shamblesides/rpnow
client/src/app/rp/services/banner-message.service.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n///<reference path=\"../typings/main.d.ts\" />\nimport fs = require('fs');\n\nfunction listings(grunt: IGrunt) {\n\tgrunt.registerMultiTask('listings', 'Generates listings.json', function() {\n var done: (status?: boolean) => void = ...
typescript
edit
0
3
mit
395d8701914b03e330d226335bbbd374792ed7be
jvilk/doppio-demo,jvilk/doppio-demo,jvilk/doppio-demo,jvilk/doppio-demo
tasks/listings.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport * from './components/accordion';\nexport * from './components/alert';\nexport * from './components/buttons';\nexport * from './components/carousel';\nexport * from './components/collapse';\nexport * from './components/datep...
typescript
edit
0
0
mit
f21b95cd74b4f16c0e0434569e1b4d850e2bc5bd
imribarr-compit/ng2-bootstrap,felixkubli/ng2-bootstrap,buchslava/angular2-bootstrap,IlyaSurmay/ngx-bootstrap-versioning,lanocturne/ng2-bootstrap,macroorganizm/ng2-bootstrap,buchslava/angular2-bootstrap,valor-software/ng2-bootstrap,vvpanchenko/ng2-bootstrap,BojanKogoj/ng2-bootstrap,valor-software/ngx-bootstrap,Betrozov/...
ng2-bootstrap.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add back in the main entry point content" }, { "role": "assistant", "content": "export {\n\tSkinObject,\n\tCapeObject,\n\tPlayerObject\n} from \"./model\";\n\nexport {\n\tSkinViewer\n} from \"./viewer\";\n\nexport {\n\tOrbitC...
typescript
new_file
0
0
mit
e6be73fc9dabf873078f0ca9b44ef71d6ac8b091
to2mbn/skinview3d
src/skinview3d.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as ts from \"typescript\";\nimport * as Lint from \"tslint/lib/lint\";\n\nexport class Rule extends Lint.Rules.AbstractRule {\n public static FAILURE_STRING = \"Using expressions to cause side-effects not allowed.\";\n\n publ...
typescript
edit
0
4
mit
3d0140fdfa40c77c6a760355a915480e73e692de
jonaskello/tslint-immutable
src/noExpressionStatementRule.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/*\n * decaffeinate suggestions:\n * DS102: Remove unnecessary code created because of implicit returns\n * DS207: Consider shorter variations of null checks\n * Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/s...
typescript
edit
0
2
mit
9e869babbcb737303b7966cea4447741a01783b0
concord-consortium/building-models,concord-consortium/building-models,concord-consortium/building-models,concord-consortium/building-models,concord-consortium/building-models
src/code/data/migrations/26_remove_minigraphs_visibility.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { isBrowser } from './browser'\n\n/**\n * Injects a string of CSS styles to a style node in <head>\n */\nexport function injectCSS(css: string): void {\n if (isBrowser) {\n const style = document.createElement('style')\n s...
typescript
edit
0
3
mit
92e9cba8e3a0a9520267c8688c6a0f1b51404e7c
atomiks/tippyjs,atomiks/tippyjs,atomiks/tippyjs,atomiks/tippyjs
src/css.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { storiesOf } from \"@storybook/react\";\nimport * as React from \"react\";\n\nimport ProductCreatePage from \"../../../products/components/ProductCreatePage\";\nimport { product as productFixture } from \"../../../products/fixtu...
typescript
edit
null
null
bsd-3-clause
fda898e14a4914579851c5988ee2f6ba53d1f630
UITools/saleor,maferelo/saleor,mociepka/saleor,UITools/saleor,mociepka/saleor,mociepka/saleor,UITools/saleor,UITools/saleor,UITools/saleor,maferelo/saleor,maferelo/saleor
saleor/static/dashboard-next/storybook/stories/products/ProductCreatePage.tsx
rejected_code_smell
Internal duplication: ~37% of the file is inside repeated 12+ line blocks
null
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Observable} from \"rxjs/Observable\";\nimport \"rxjs/add/observable/merge\";\nimport \"rxjs/add/operator/scan\";\nimport \"rxjs/add/operator/publishReplay\";\n\n// THIS FILE CONTAINS THE BOILERPLATE CODE YOU NEED TO COPY\n\nexpo...
typescript
edit
0
1
mit
9c1879f85bb288ecbf139d38df62648a04441d3c
Dynalon/redux-pattern-with-rx,Dynalon/redux-pattern-with-rx
src/rxjs-redux.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';\n\nexport interface ScamOptions extends NgComponentOptions {\n separat...
typescript
edit
0
2
mit
d3d40c75e569f582ccfd8f4aa70f294786337743
wishtack/ng-steroids,wishtack/wishtack-steroids,wishtack/wishtack-steroids,wishtack/ng-steroids,wishtack/wishtack-steroids
packages/schematics/src/scam/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport { withRouter, RouteComponentProps } from 'react-router-dom';\n\ninterface TOwnProps extends RouteComponentProps {\n username: string;\n}\n\nconst ComponentFunction = (props: TOwnProps) => (\n ...
typescript
edit
null
null
mit
e746218ba8915ee395e178e7e30dcbbdda4dfc50
georgemarshall/DefinitelyTyped,georgemarshall/DefinitelyTyped,georgemarshall/DefinitelyTyped,georgemarshall/DefinitelyTyped,borisyankov/DefinitelyTyped,dsebastien/DefinitelyTyped,markogresak/DefinitelyTyped,dsebastien/DefinitelyTyped,borisyankov/DefinitelyTyped,mcliment/DefinitelyTyped
types/react-router/test/WithRouter.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from \"react\"\n\nimport { bindKeyboardShortcut } from \"main/services/KeyboardShortcut.ts\"\n\nimport RootStore from \"stores/RootStore.ts\"\nimport { theme } from \"common/theme/muiTheme\"\nimport { ThemeProvider } from \...
typescript
edit
null
null
mit
8d76b14790b6f15e50b50031eac4ed1ccdddd049
ryohey/signal,ryohey/signal,ryohey/signal
src/main/components/App/App.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {ChartBaker} from './ChartBaker'\nimport * as parseArgs from 'minimist'\nimport * as os from 'os'\nimport * as path from 'path'\nconst argv = parseArgs(process.argv.slice(2))\n\nasync function main(email: string, name: string, sl...
typescript
edit
0
5
mit
8f31bcb0f63b781d038f63af54316983d40675cd
aaldaber/owid-grapher,OurWorldInData/owid-grapher,OurWorldInData/our-world-in-data-grapher,OurWorldInData/our-world-in-data-grapher,OurWorldInData/owid-grapher,aaldaber/owid-grapher,OurWorldInData/our-world-in-data-grapher,aaldaber/owid-grapher,OurWorldInData/our-world-in-data-grapher,aaldaber/owid-grapher,owid/owid-gr...
src/bakeCharts.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component, OnInit, Input, Output, EventEmitter } from \"@angular/core\";\n\nimport { AirOptions } from \"./lib/options\";\nimport { AirCalendar } from \"./lib/calendar\";\nimport { LANGUAGES, AirLanguage } from \"./lib/language...
typescript
edit
0
2
mit
36016d34220f6a7e24dc2465d24e4858ae88d03c
kesarion/angular2-air-datepicker,kesarion/angular2-air-datepicker,kesarion/angular2-air-datepicker
index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { visitExample } from '../helper';\n\ndescribe('Navigation', () => {\n beforeEach(() => {\n visitExample('official-storybook');\n });\n\n it('should search navigation item', () => {\n cy.get('#storybook-explorer-searchfi...
typescript
edit
0
1
mit
360b22e9dad9b3d44d31c761a05a865fcd4e70e4
storybooks/storybook,storybooks/storybook,storybooks/storybook,kadirahq/react-storybook,storybooks/react-storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook,storybooks/react-storybook,storybooks/react-storybook
cypress/integration/navigation.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nclass WebStorage {\n private storageObj: Storage;\n\n public constructor(storageObj: Storage) {\n this.storageObj = storageObj;\n }\n\n public get(key: string): string {\n if (!this.isCompatible()) { return; }\...
typescript
edit
0
1
mit
84bb977f278e88b6250ff429d54ff0dfbd6bb640
CAAL/CAAL,CAAL/CAAL,CAAL/CAAL,CAAL/CAAL
src/gui/storage.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { BLOCK_HIT, UNBLOCK_HIT, UNBLOCK_MULTIPLE_HITS } from '../constants';\r\nimport { BlockedHit } from '../types';\r\nimport { Set } from 'immutable';\r\n\r\nexport interface BlockHit {\r\n readonly type: BLOCK_HIT;\r\n readonly ...
typescript
edit
0
1
mit
f1ebe811731f6bd3c4789ac09f120793633e73ad
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
src/actions/blockHitGroup.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from 'react';\nimport { Redirect } from 'react-router';\n\nexport const Authenticated = ({ location }) =>\n location.referrer !== location.url ? (\n <Redirect\n to={{\n pathname: location.referrer\n }}\...
typescript
edit
null
null
mit
4e49ee6d87f3b922ea7ba7456f87ac235fed180d
CodeForCharlotte/cmpd-holiday-gift-backend,CodeForCharlotte/CMPD-Holiday-Gift,CodeForCharlotte/CMPD-Holiday-Gift,CodeForCharlotte/CMPD-Holiday-Gift,CodeForCharlotte/cmpd-holiday-gift-backend,CodeForCharlotte/CMPD-Holiday-Gift,CodeForCharlotte/cmpd-holiday-gift-backend
frontend/applications/auth/src/modules/login/Authenticated.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/// <reference path=\"../typings/tape/tape.d.ts\"/>\n\nimport * as test from 'tape';\nimport { IsaacGenerator } from '../src/isaac-generator';\n\ntest(\"getValue calls _randomise if count is 0\", (t) => {\n let generator = new IsaacGen...
typescript
edit
0
1
mit
c4ddc9f53862b2104a1bb19fd555d5f674035d02
Jameskmonger/isaac-crypto
test/isaac-generator.test.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { CylinderGeometry } from './CylinderGeometry';\n\nexport class ConeGeometry extends CylinderGeometry {\n\n\t/**\n\t * @param [radius=1] — Radius of the cone base.\n\t * @param [height=1] — Height of the cone.\n\t * @param [radiu...
typescript
edit
0
0
mit
6e6cb3bb651740ff87df93d1190110c169cfdd59
fyoudine/three.js,Liuer/three.js,fyoudine/three.js,gero3/three.js,WestLangley/three.js,06wj/three.js,looeee/three.js,kaisalmen/three.js,mrdoob/three.js,greggman/three.js,aardgoose/three.js,WestLangley/three.js,mrdoob/three.js,gero3/three.js,donmccurdy/three.js,jpweeks/three.js,kaisalmen/three.js,makc/three.js.fork,Liue...
src/geometries/ConeGeometry.d.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { useEffect, useState } from 'react';\n\nconst getOnlineStatus = () => {\n return typeof navigator !== 'undefined' && typeof navigator.onLine === 'boolean' ? navigator.onLine : true;\n};\n\nconst useOnline = () => {\n const...
typescript
edit
0
3
mit
65798c7539eb90c19804cd0cbc8bb86fb2022430
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
packages/components/hooks/useOnline.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// Angular 2\nimport {enableDebugTools} from \"@angular/platform-browser\";\nimport {enableProdMode, ApplicationRef} from \"@angular/core\";\n\n// Angular debug tools in the dev console\n// https://github.com/angular/angular/blob/864053...
typescript
edit
0
1
mit
92397aa1cc6469b9ef977f0754aaa2a254e7f6e3
DorianGrey/ng2-webpack-template,DorianGrey/ng2-webpack-template,DorianGrey/ng-webpack-template,DorianGrey/ng-webpack-template,DorianGrey/ng-webpack-template,DorianGrey/ng2-webpack-template
src/environment.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Grid, Move } from './definitions';\n\nexport function makeMove(grid: Grid, move: Move, forX: (grid: Grid) => boolean): Grid {\n const newValue = forX(grid);\n return grid.map((value, index) => index == move ? newValue : value...
typescript
edit
0
3
mit
4d689b06112bd5b6113dca8272c87a5ddefcc09b
artfuldev/tictactoe-ai,artfuldev/tictactoe-ai
src/game.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport Logger from './logger';\nimport { execSync } from 'child_process';\n\nexport default class {\n\tprivate logger: Logger;\n\n\tconstructor() {\n\t\tthis.logger = new Logger('Deps');\n\t}\n\n\tpublic showAll(): void {\n\t\tthis.show...
typescript
edit
0
2
mit
4d2c0e41616111b6b13f8688bd7b15d0867b0bdd
syuilo/Misskey,Tosuke/misskey,Tosuke/misskey,ha-dai/Misskey,Tosuke/misskey,Tosuke/misskey,syuilo/Misskey,ha-dai/Misskey,Tosuke/misskey
src/misc/dependencyInfo.ts
accepted
null
true