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 { Request, Response } from \"express\"\nimport { IUser } from \"../models/user.model\"\n\nimport { notFound } from \"Boom\"\nimport { userModel } from \"../models/user.model\"\n\nclass UserController {\n\n public infoUser(req:...
typescript
edit
0
2
mit
d5829b679759e429605217387fb8bc0feca0fecf
xeoneux/TypeMonPress
controllers/user.controller.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from \"react\";\nimport {Link, useRouteMatch} from \"react-router-dom\";\nimport {ListItem, ListItemText} from \"@material-ui/core\";\n\nexport function ListItemLink(props: {to: string, primary: string}) {\n const {to, pri...
typescript
edit
null
null
apache-2.0
6c434c9c63934e2c5944e7361d8be3348cb3907e
googleinterns/step250-2020,googleinterns/step250-2020,googleinterns/step250-2020,googleinterns/step250-2020
coffee-chats/src/main/webapp/src/components/ListItemLink.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { SyntaxNode } from '../SyntaxNodes/SyntaxNode'\nimport { RichSyntaxNode } from '../SyntaxNodes/RichSyntaxNode'\n\nexport enum ListOrder {\n Ascending,\n Descrending\n}\n\nexport class OrderedListNode extends RichSyntaxNode {\n...
typescript
edit
0
1
mit
772c35fcee84d3b95fcd7dc800003ad95a0419a0
start/up,start/up
src/SyntaxNodes/OrderedListNode.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Component, OnInit} from '@angular/core';\nimport {NavigationService} from \"../navigation.service\";\nimport {ActivatedRoute} from \"@angular/router\";\n\n@Component({\n selector: 'app-results',\n templateUrl: './browse.compon...
typescript
edit
0
3
bsd-3-clause
842ec912ac6ea531009dfa97db1025f76ae8e23a
UoA-eResearch/research-hub,UoA-eResearch/research-hub,UoA-eResearch/research-hub
src/app/browse/browse.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport async function handleResponse(res : Response) : Promise<any> {\n\tconst data = await res.json();\n\n\tif (res.status < 300) {\n\t\treturn data;\n\t}\n\n\tif (data.error) {\n\t\tthrow new Error(data.error);\n\t}\n\n\tthrow new Err...
typescript
edit
0
3
mit
32d4f0e1245fa44728623dc6a04e05d3144dad63
woubuc/node-updown,woubuc/node-updown
src/utils/handleResponse.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Injectable } from '@angular/core';\n\n@Injectable()\nexport class HeroService {\n}\n\n```\n\nApply this change: Add a getHeroes method stub." }, { "role": "assistant", "content": "import { Injectable } from '@angula...
typescript
edit
0
1
mit
3b3050e11da73aed4b2d393141e2568fa133b740
amalshehu/angular-tour-of-heroes,amalshehu/angular-tour-of-heroes,amalshehu/angular-tour-of-heroes
app/hero.service.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * @license\n * Copyright (C) 2020 The Android Open Source Project\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 ...
typescript
edit
0
0
apache-2.0
f65036ffcd8e26581cf3585d20f647633c97d572
GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit
polygerrit-ui/app/elements/gr-app-init.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as DomUtils from './utils/dom'\nimport * as PathUtils from './utils/path'\n\nimport {dispatch} from './dispatch'\nimport {log} from './utils/log'\n\nimport {DictionaryService} from './utils/dict'\n\nimport {Sidebar} from './dom...
typescript
edit
0
1
mit
b64567d738db70b5663330d2a407c228224ca057
paarthenon/pixiv-assistant,paarthenon/pixiv-assistant,paarthk/pixiv-assistant,paarthk/pixiv-assistant
src/main.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Transition, StateService } from \"@uirouter/angularjs\";\nimport { ParkingService } from './../parking.service';\nimport './receipt.component.scss';\n\nexport class ParkingReceiptComponent implements ng.IComponentOptions {\n ...
typescript
edit
0
2
mit
207a54238614da20e2deb570b4fa3b7f3b5834b2
ibnumalik/ibnumalik.github.io,ibnumalik/ibnumalik.github.io,ibnumalik/ibnumalik.github.io
resources/app/dashboard/components/parking/receipt/receipt.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Menu } from 'electron'\nimport { Session } from 'main/types'\nimport { editBasicsCommands } from './editBasics'\nimport { projectEditorCommands } from './projectEditor'\nimport { testEditorCommands } from './testEditor'\nimport...
typescript
edit
0
1
apache-2.0
e808ef5f244b210077601165b05775c83b9c62d9
SeleniumHQ/selenium-ide,SeleniumHQ/selenium-ide,SeleniumHQ/selenium-ide
packages/selenium-ide/src/main/session/controllers/Menu/menus/application.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component, OnInit, Output, EventEmitter } from '@angular/core';\nimport { Router, NavigationStart } from '@angular/router';\n\n@Component({\n selector: 'app-header',\n templateUrl: './header.component.html',\n styleUrls: ['....
typescript
edit
0
2
mit
c98176a2120adc18bdf1020864da1323e1ea9d00
kmaida/ng2-dinos,kmaida/ng2-dinos,auth0-blog/ng2-dinos,auth0-blog/ng2-dinos,kmaida/ng2-dinos,auth0-blog/ng2-dinos
src/app/header/header.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/*\n The MIT License\n \n Copyright (c) 2017-2019 EclipseSource Munich\n https://github.com/eclipsesource/jsonforms\n \n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associat...
typescript
edit
0
0
mit
83a4dd26be88eaa3733d1a1f128f11c31a968cf5
qb-project/jsonforms,qb-project/jsonforms,qb-project/jsonforms
packages/vanilla/example/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// Type definitions for Globalize v?.? NuGet package v0.1.3\n// Project: https://github.com/jquery/globalize\n// Definitions by: Aram Taieb <https://github.com/afromogli/>\n// Definitions: https://github.com/afromogli/DefinitelyTyped\n\...
typescript
edit
0
0
mit
d9e6d03e769ee7013bee70e4f73c8e59d932d91d
chrootsu/DefinitelyTyped,slavomirvojacek/DefinitelyTyped,alexdresko/DefinitelyTyped,psnider/DefinitelyTyped,arma-gast/DefinitelyTyped,mattblang/DefinitelyTyped,Penryn/DefinitelyTyped,martinduparc/DefinitelyTyped,DzmitryDulko/DefinitelyTyped,gcastre/DefinitelyTyped,AgentME/DefinitelyTyped,paulmorphy/DefinitelyTyped,Enab...
globalize/globalize-0.1.3.d.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport * from './question.model';\nexport * from './question.model';\nexport * from './class.model';\nexport * from './student.model';\n\n```\n\nApply this change: Fix models barrel for Assignment" }, { "role": "assistant", ...
typescript
edit
0
0
mit
65faaa35fc42a1c00bd5ef7e7ba1d5676727a45d
bryant-pham/brograder,bryant-pham/brograder,bryant-pham/brograder,bryant-pham/brograder
src/app/shared/models/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport select from 'select-dom';\nimport features from '../libs/features';\n\nfunction init() {\n\t// Get repositories link from user profile navigation\n\tconst link = select<HTMLAnchorElement>('.user-profile-nav a[href*=\"tab=reposito...
typescript
edit
0
2
mit
d7e2b2094f7bfd31be72f8e20a2c106aae246576
sindresorhus/refined-github,busches/refined-github,busches/refined-github,sindresorhus/refined-github
source/features/set-default-repositories-type-to-sources.tsx
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport class Game {\n _id: string;\n pgn: string;\n analysis: {\n moves: [\n {\n bestMove: string,\n score: string\n }\n ],\n status: stri...
typescript
edit
0
0
mit
984fd64c95789b2826ca2adeee0830b131eb2755
revov/uci-gui,revov/uci-gui
public/app/models/game.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// This file is part of cxsd, copyright (c) 2016 BusFaster Ltd.\n// Released under the MIT license, see LICENSE.\n\nimport {Namespace} from './Namespace';\nimport {Member} from './Member';\nimport {Type} from './Type';\n\nexport class M...
typescript
edit
0
0
mit
321d8a012539dadc4169dd6305aeafdaa66b5424
charto/cxsd,charto/fast-xml,charto/fast-xml,charto/cxsd
src/schema/MemberRef.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n Copyright (C) 2013 by Justin DuJardin\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://ww...
typescript
edit
0
4
apache-2.0
7cafb66e02390fb55b1201414b99e0324322a71a
justindujardin/pow2,justindujardin/pow2,justindujardin/pow2
source/game/objects/gameFeatureObject.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/*\n Copyright 2016 James Craig\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://...
typescript
edit
0
1
apache-2.0
8d7f0f35439327065e8cdeb8169609df5edba340
JaCraig/clarity.js,JaCraig/clarity.js,JaCraig/clarity.js
src/ts/Framework/Logging/ErrorLogging.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nconst NAVBAR = [\n {\n title : 'Про нас',\n state : 'about'\n },\n {\n title : 'Головна',\n state : 'home'\n },\n {\n title : 'Судді',\n state : 'list'\n }\n];\n\nconst SOURCE = '/source';\n\nconst URLS = {\n\n ...
typescript
edit
0
0
mit
e66f6a0409b511851e6051d6defb9b1349f9d90c
automaidan/judges,automaidan/judges,automaidan/judges,automaidan/judges
front-end/src/app/common/constants/constants.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * Decode the window's hash component as if it were a query string. Return a\n * key--value map.\n */\nfunction decode_hash(s: string): { [key: string]: string } {\n if (s[0] === \"#\") {\n s = s.slice(1);\n }\n\n let out: { ...
typescript
edit
0
3
mit
552c6e9e3c1ab8415916eee2b52b2c5fe792a246
guoyiteng/braid,guoyiteng/braid,guoyiteng/braid,cucapra/braid,cucapra/braid,cucapra/braid,guoyiteng/braid,cucapra/braid,guoyiteng/braid,cucapra/braid,guoyiteng/braid,cucapra/braid
harness/client.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * An enum for possible event phases that an event can be in\n */\nconst enum EventPhase {\n\t/**\n\t * Indicates that the event is currently not being dispatched\n\t */\n\tNONE = 0,\n\t/**\n\t * Indicates that the event is in the ...
typescript
edit
0
0
mit
1e7f4c26875cf6957085b44b14790b9c6318a9cc
mediamonks/seng-event,mediamonks/seng-event
src/lib/EventPhase.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Redirect } from \"@reach/router\";\nimport React, { Component } from \"react\";\n\nimport { useLoginState } from \"../profile/hooks\";\n\nexport const PrivateRoute = ({\n component: PrivateComponent,\n lang,\n ...rest\n}: an...
typescript
edit
null
null
mit
bb19cabf25e3bfff0f82876fce7c987f28fa5942
patrick91/pycon,patrick91/pycon
frontend/src/app/private-route/private-route.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {buildHelper as helper, taskRunner} from \"../Container\";\nimport Util from \"../Util\";\nconst gulp = require(\"gulp4\");\nconst mocha = require(\"gulp-mocha\");\n\nexport default function Test() {\n return gulp.src(helper.g...
typescript
edit
0
1
mit
71ae78672effcd6bc33f56302d61a48e346ad569
mtfranchetto/smild,mtfranchetto/smild,mtfranchetto/smild
lib/tasks/Test.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Action, ActionReducer } from '@ngrx/store';\n\nimport { isType } from 'typescript-fsa';\n\nimport { environment } from '../../../environments/environment';\nimport { login, loginSuccess, loginRedirect, logout } from '../actions...
typescript
edit
0
4
bsd-3-clause
69b89cdf15c827376d20aa75dfb89abcc514892f
cumulous/web,cumulous/web,cumulous/web,cumulous/web
src/app/store/auth/reducers.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { ServerContext } from '@/state/server';\nimport { useDeepMemo } from '@/plugins/useDeepMemo';\n\nexport const usePermissions = (action: string | string[]): boolean[] => {\n const userPermissions = ServerContext.useStoreState(...
typescript
edit
0
4
mit
9347ee8d78cb1c2080edb987b76d8ddf42361e5e
Pterodactyl/Panel,Pterodactyl/Panel,Pterodactyl/Panel,Pterodactyl/Panel
resources/scripts/plugins/usePermissions.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/* eslint-disable jest/no-jasmine-globals */\nimport { danger } from \"danger\"\nimport * as fs from \"fs\"\n\n/**\n * Helpers\n */\nconst filesOnly = (file: string) =>\n fs.existsSync(file) && fs.lstatSync(file).isFile()\n\n// Modifie...
typescript
edit
0
3
mit
20f5e9b6de4e86a6d179b107553bb1a3ef0a4698
artsy/force,joeyAghion/force,joeyAghion/force,joeyAghion/force,artsy/force-public,joeyAghion/force,artsy/force,artsy/force-public,artsy/force,artsy/force
dangerfile.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport buildTypings from './utils/buildTypings';\nimport generateTypings, { Logger } from './utils/generateTypings';\nimport clearCache from './utils/clearCache';\n\nconst nodemon = require('nodemon');\nconst configsFile = 'src/configs....
typescript
edit
0
3
mit
77ebe87ec8683651001f041c947d642994cbdfea
ikatyang/types-ramda,ikatyang/types-ramda
scripts/build-watch.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from 'react'\nimport classNames from 'classnames'\nimport { tuxColors } from '../../styles'\n\nconst AlertBar = () => (\n <div className=\"AlertBar\">\n <p>You are in edit mode. Any changes you make will be published.</...
typescript
edit
null
null
mit
f740459678fdb7458338cfb3396edfb317d4fb03
aranja/tux,aranja/tux,aranja/tux
packages/tux/src/components/AlertBar/index.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/// <reference path=\"../typings/tsd.d.ts\" />\n\nimport mongoose = require('mongoose');\n\nexport var dbUri = process.env.MONGODB_URI || 'mongodb://localhost:27017/vimfika';\nexport var dbConnection = mongoose.createConnection(dbUri);\...
typescript
edit
0
3
mit
7dc95bb73ec4ea1ebece027d9f78610b4c750c65
pgrm/vimfika,pgrm/vimfika
server/model.config.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport h from '../../../lib/tsx/TsxParser';\n\nexport interface LinkProps {\n href: string;\n title: string;\n}\n\nfunction Link(props: Partial<LinkProps>): JSX.Element {\n const { href, title } = props as LinkProps;\n\n ret...
typescript
edit
null
null
mit
739cea11323ea2efe26ab6c3fa2631eccb1de1af
birkett/a-birkett.co.uk
assets/components/tsx/Header.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 { c } from 'ttag';\nimport unsupportedPreviewSvg from 'design-system/assets/img/errors/broken-file.svg';\nimport corruptedPreviewSvg from 'design-system/assets/img/errors/broken-image.svg';\nimport { P...
typescript
edit
null
null
mit
5938a872641614d7f4a6af8505791f2aa68df701
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
packages/components/containers/filePreview/UnsupportedPreview.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Component, Directive, ElementRef, Injector, Input} from \"@angular/core\";\nimport {UpgradeComponent} from \"@angular/upgrade/static\";\nimport * as angular from 'angular';\n\n\n/**\n * Angular 5 entry component for Import Templ...
typescript
edit
0
1
apache-2.0
7a8c7f4925b18cf1ee5df8fdc0be83bb6de28170
Teradata/kylo,Teradata/kylo,Teradata/kylo,Teradata/kylo,Teradata/kylo
ui/ui-app/src/main/resources/static/js/repository/ng5-import-template.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { gql } from '@apollo/client'\n\nexport const channelPageMetaTagsFragment = gql`\n fragment ChannelPageMetaTags on Channel {\n __typename\n id\n meta_title: title\n meta_description: description(format: MARKDOWN)\n ...
typescript
edit
0
0
mit
2b8f0470dc08bc29e0e52dc549b2a33498d38887
aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell
src/v2/pages/channel/components/ChannelPageMetaTags/fragments/channelPageMetaTags.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { c } from 'ttag';\n\nimport { getFormattedWeekdays } from '@proton/shared/lib/date/date';\nimport { dateLocale } from '@proton/shared/lib/i18n';\n\nimport { Checkbox } from '../../../../components';\nimport SettingsLayout from '...
typescript
edit
null
null
mit
8cce17ecad84efc17cc2ebaf6ffc0bfced237aaf
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
packages/components/containers/autoReply/AutoReplyForm/fields/DaysOfWeekField.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { $, location, locationOf, navigateTo, steps } from '../support/world';\n\nsteps(({When, Then}) => {\n When(/^I open our app$/, () => {\n navigateTo('/');\n });\n Then(/^I should see a message saying that the app works$/, (...
typescript
edit
0
1
bsd-3-clause
dc2215787a3ce11035e8ebfe58e1bc66499aedbb
cumulous/web,cumulous/web,cumulous/web,cumulous/web
e2e/steps/app.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\nexport default function...
typescript
edit
0
2
mit
c1b97e5d1f8c97fdf2d35d95f2a34e3a52662369
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/utils/getDefaultPluginsIndex.tsx
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport Vue from 'vue';\nimport { PluginObject } from 'vue';\nimport Component from 'vue-class-component';\nimport { Prop } from 'vue-property-decorator';\nimport WithRender from './list-bullet.html?style=./list-bullet.scss';\nimport { L...
typescript
edit
0
1
apache-2.0
0e3204fc14ce6fce37af45a2357c60b182d9f5f6
ulaval/modul-components,ulaval/modul-components,ulaval/modul-components
src/components/list-bullet/list-bullet.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { GitHub } from \"danger/distribution/platforms/GitHub\"\nimport { Platform } from \"danger/distribution/platforms/platform\"\nimport { dsl } from \"./danger_run\"\n\n/**\n * When Peril is running a dangerfile for a PR we can use...
typescript
edit
0
7
mit
6af5520c3f48b944f56e78f386c1001012665931
danger/peril,danger/peril,danger/peril,danger/peril,danger/peril
source/danger/peril_platform.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// Type definitions for jquery.are-you-sure.js\n// Project: https://github.com/codedance/jquery.AreYouSure\n// Definitions by: Jon Egerton <https://github.com/jonegerton>\n// Definitions: https://github.com/borisyankov/DefinitelyTyped\...
typescript
edit
0
0
mit
a0db190fa3526919f15a1eb410f96c7406f793e4
igorraush/DefinitelyTyped,nitintutlani/DefinitelyTyped,jsaelhof/DefinitelyTyped,thSoft/DefinitelyTyped,panuhorsmalahti/DefinitelyTyped,44ka28ta/DefinitelyTyped,chrismbarr/DefinitelyTyped,aroder/DefinitelyTyped,davidpricedev/DefinitelyTyped,lightswitch05/DefinitelyTyped,scriby/DefinitelyTyped,pocesar/DefinitelyTyped,Age...
jquery.are-you-sure/jquery.are-you-sure.d.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport { c } from 'ttag';\nimport locales from 'proton-shared/lib/i18n/locales';\nimport { ProtonLogo, AccountSupportDropdown } from 'react-components';\nimport AccountPublicLayout, { Props as AccountPro...
typescript
edit
null
null
mit
df870f4e363e0d3df9afc9d44f7aaf2d3451a9b7
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
applications/account/src/app/content/AccountPublicLayoutWrapper.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 { DynamicFormControlModel, DynamicInputModel } from '@ng2-dynamic-forms/core';\n\n@Injectable()\nexport class FormFactoryService {\n\n createFormModel(properties: Map<string, any>): D...
typescript
edit
0
15
apache-2.0
da084cb560d0e4053249e72d842623166afa16c0
kahboom/ipaas-client,kahboom/ipaas-client,kahboom/ipaas-client,kahboom/ipaas-client
src/app/common/forms.service.ts
rejected_complexity
Cyclomatic complexity too high: 15
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { D2ManifestDefinitions } from 'app/destiny2/d2-definitions';\nimport BungieImage from 'app/dim-ui/BungieImage';\nimport { ALL_TRAIT } from 'app/search/d2-known-values';\nimport _ from 'lodash';\nimport React from 'react';\nimpor...
typescript
edit
null
null
mit
56bb5e56e0c666457a1e19d22d3c73aaa8780161
DestinyItemManager/DIM,DestinyItemManager/DIM,delphiactual/DIM,delphiactual/DIM,delphiactual/DIM,DestinyItemManager/DIM,DestinyItemManager/DIM,delphiactual/DIM
src/app/collections/Metrics.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport type Option<T> = T | null;\nexport type Maybe<T> = Option<T> | undefined | void;\n\nexport type Factory<T> = new (...args: unknown[]) => T;\n\nexport function keys<T>(obj: T): Array<keyof T> {\n return Object.keys(obj) as Array<...
typescript
edit
0
2
mit
3904733823a9da50033708d6badb7508348650b5
tildeio/glimmer,glimmerjs/glimmer-vm,glimmerjs/glimmer-vm,tildeio/glimmer,glimmerjs/glimmer-vm,tildeio/glimmer
packages/@glimmer/util/lib/platform-utils.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport Swiper from '../swiper-class';\n\nexport interface ControllerMethods {\n /**\n * Pass here another Swiper instance or array with Swiper instances that should be controlled\n * by this Swiper\n */\n control?: Swiper;\n}\n\...
typescript
edit
0
0
mit
efd95a8b7a86184c93f5a27595d0594b356d0db3
nolimits4web/Swiper,nolimits4web/Swiper
src/types/components/controller.d.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { MugshotSelector } from '../lib/mugshot';\n\nexport interface ScreenshotOptions {\n /**\n * All elements identified by this selector will be painted black\n * before taking the screenshot.\n * TODO: support rects\n * TO...
typescript
edit
0
1
mit
58b5927fa5680c23be45d46d792cbd3f6e7e67c8
uberVU/mugshot,uberVU/mugshot
packages/mugshot/src/interfaces/screenshotter.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\njest.unmock(\"../../actions\");\nimport * as React from \"react\";\nimport { AddRegimen } from \"../add_button\";\nimport { AddRegimenProps } from \"../../interfaces\";\nimport { shallow } from \"enzyme\";\n\ndescribe(\"<AddRegimen/>\",...
typescript
edit
null
null
mit
8f691ebc40df0a6b14c74be0bec64e2dfb2dcff0
gabrielburnworth/Farmbot-Web-App,FarmBot/Farmbot-Web-API,MrChristofferson/Farmbot-Web-API,MrChristofferson/Farmbot-Web-API,gabrielburnworth/Farmbot-Web-App,FarmBot/farmbot-web-app,gabrielburnworth/Farmbot-Web-App,MrChristofferson/Farmbot-Web-API,RickCarlino/farmbot-web-app,FarmBot/Farmbot-Web-API,FarmBot/Farmbot-Web-AP...
src/regimens/list/__tests__/add_button_test.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 * as net from 'net';\n\nimport { workspace, ExtensionContext, Uri } from 'vscode';\nimport { ServerOptions, Executable, LanguageClient, LanguageClientOptions, TransportKind } from 'vscode-languageclient';\n\n// t...
typescript
edit
0
1
mit
870757470473a692eb09947ea6ed2e3d45e4027f
RLovelett/vscode-swift
src/extension.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport chalk from 'chalk';\nimport { RuleToRuleApplicationResult } from './../types';\nimport logToConsole from './console';\nimport { compactProjectLogs } from './flatten';\n\nexport const consoleLogger = (projectResult: RuleToRuleAppl...
typescript
edit
0
3
mit
49eec36c2b336446a30b0c80fcebe53bba3079d2
stricter/stricter,stricter/stricter
src/logger/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {\n animate,\n AnimationTriggerMetadata,\n state,\n style,\n transition,\n trigger,\n} from '@angular/animations';\n\n/**\n * Animations used by the {@link TsDrawerComponent}.\n */\nexport const tsDrawerAnimations: {\n rea...
typescript
edit
0
0
mit
f5daff0d00407cc9d57b780f2d6fd33a16ab65b7
GetTerminus/terminus-ui,GetTerminus/terminus-ui,GetTerminus/terminus-ui,GetTerminus/terminus-ui
projects/library/drawer/src/drawer-animations.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react'\nimport { Dispatcher } from '../../lib/dispatcher'\nimport { DialogContent } from '../dialog'\nimport { Checkbox, CheckboxValue } from '../lib/checkbox'\nimport { LinkButton } from '../lib/link-button'\n\n...
typescript
edit
null
null
mit
6e8abee9cb9e256f4e195faea4252a38c80cd369
artivilla/desktop,BugTesterTest/desktops,hjobrien/desktop,hjobrien/desktop,say25/desktop,hjobrien/desktop,kactus-io/kactus,shiftkey/desktop,say25/desktop,j-f1/forked-desktop,kactus-io/kactus,artivilla/desktop,gengjiawen/desktop,desktop/desktop,BugTesterTest/desktops,j-f1/forked-desktop,shiftkey/desktop,say25/desktop,Bu...
app/src/ui/preferences/advanced.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport TBufferedTransport = require('thrift/lib/nodejs/lib/thrift/buffered_transport')\nimport TJSONProtocol = require('thrift/lib/nodejs/lib/thrift/json_protocol')\nimport InputBufferUnderrunError = require('thrift/lib/nodejs/lib/thrif...
typescript
edit
0
3
apache-2.0
f70989b38ecfc6c94ce9567394f39f2acea185bb
creditkarma/thrift-server,creditkarma/thrift-server
src/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { TestBed, ComponentFixture } from '@angular/core/testing';\nimport { RouterTestingModule } from '@angular/router/testing';\nimport { HttpClientTestingModule } from '@angular/common/http/testing';\nimport { FormsModule } from '@a...
typescript
edit
0
1
mit
a24594d7912b686d8f8df1c3db542a6a948ff4bd
kiswa/TaskBoard,kiswa/TaskBoard,kiswa/TaskBoard,kiswa/TaskBoard,kiswa/TaskBoard
test/app/settings/settings.component.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { getAST } from './ast';\nimport { emit } from './emitter';\n\ndeclare function require(name: string);\ndeclare var process: any;\n\n(function () {\n if (typeof process !== 'undefined' && process.nextTick && !process.browser && ...
typescript
edit
0
6
mit
96e712b399998437309ab11c2864b3bf30ae9c2c
AmnisIO/typewriter,AmnisIO/typewriter,AmnisIO/typewriter
src/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nclass Queue {\n\n private _running = false;\n\n private _queue: Function[] = [];\n\n public push(f: Function) {\n this._queue.push(f);\n\n if (!this._running) {\n // if nothing is running, then start the engines!\n th...
typescript
edit
0
2
apache-2.0
96d2479d4cb4c0350ea81699469096d94257dd8c
KamiKillertO/vscode-colorize,KamiKillertO/vscode-colorize
src/queue.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Component, Input} from 'angular2/core';\nimport {ROUTER_DIRECTIVES} from 'angular2/router';\n\nimport {Game} from '../../shared/models/game.model';\nimport {FactionBadgeComponent} from '../../shared/components/faction-badge.comp...
typescript
edit
0
0
mit
a433e28800718998eae856ae352bf6ab97155612
davewragg/agot-spa,davewragg/agot-spa,davewragg/agot-spa
src/home/components/games-table.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { createStore, compose, applyMiddleware } from 'redux';\r\nimport createSagaMiddleware from 'redux-saga';\r\nimport * as immutableTransform from 'redux-persist-transform-immutable';\r\nimport { autoRehydrate, persistStore } from ...
typescript
edit
0
1
mit
fe6b37dfd0eba9df711d28f0ffa81e2b2b72ee61
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
src/store.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/** Enumeration for directions\n * @enum string\n * @readonly\n */\nexport enum EdgeDirection {\n /**\n * Next photo in the sequence\n */\n NEXT = 0,\n\n /**\n * Previous photo in the sequence\n */\n PREV = 3...
typescript
edit
0
0
mit
9b31d8325e5cc8833b9eb93b1cee7cc71350ebbc
mapillary/mapillary-js,mapillary/mapillary-js
src/graph/edge/EdgeDirection.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// import { Dispatch } from 'react-redux';\r\nimport { SearchItem } from '../types';\r\nimport { Map } from 'immutable';\r\n// import { fetchQueueSuccess, fetchQueueFailure, QueueAction } from '../actions/queue';\r\nimport { getQueuePag...
typescript
edit
0
2
mit
8eedc2823bda12adb08a022cf606d14ac4b49d21
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
src/dispatch/fetchQueue.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nnamespace AntShares.UI\n{\n export abstract class TabBase\n {\n private static _tabs = new Object();\n protected target: Element;\n\n protected oncreate(): void { }\n protected onload(args: any[]): voi...
typescript
edit
0
6
mit
5af0ccb73971eb5699f94a46db1132a5b4a6ba8f
AntShares/AntSharesApp,AntShares/AntSharesApp,AntShares/AntSharesApp,AntShares/AntSharesApp,AntShares/AntSharesApp,AntShares/AntSharesApp,AntShares/AntSharesApp
AntSharesApp/scripts/AntShares/UI/TabBase.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as debug from 'debug';\n\nimport { Client } from './client';\nimport { BasiqAPIOptions } from './interfaces';\nimport { Account } from './resources/accounts';\nimport { Connection } from './resources/connections';\nimport { Ins...
typescript
edit
0
1
bsd-2-clause
56ef83799af789d8a3e9b14659fe5a5c4af0b226
FluentDevelopment/basiq-api
lib/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\ninterface MoneyField {\n amount: number\n currencyCode: String\n}\n\nexport const moneyFieldToUnit = (moneyField: MoneyField) => {\n switch (moneyField.currencyCode) {\n case \"USD\":\n return moneyField.amount * 100\n def...
typescript
edit
0
1
mit
9454a664a3e92820cac3a8435eb591dd4cbfc275
mzikherman/metaphysics-1,artsy/metaphysics,mzikherman/metaphysics-1,mzikherman/metaphysics-1,artsy/metaphysics,mzikherman/metaphysics-1,artsy/metaphysics
src/lib/moneyHelper.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { always, merge, objOf, pipe } from 'ramda';\nimport { Clear, Delete, Read, Write } from '../commands/local_storage';\nimport { constructMessage, safeParse, safeStringify } from '../util';\n\nconst get = (() => (\n typeof window...
typescript
edit
0
4
apache-2.0
2a66e3e5cf17ced23f8e50c5ea0dc8dc8cce4546
ai-labs-team/architecture,ai-labs-team/architecture
src/effects/local_storage.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { EnvConfig } from './env-config.interface';\n\nconst BaseConfig: EnvConfig = {\n // Sample API url\n API: 'https://demo.com',\n RELEASEURL: 'https://github.com/nie-ine/raeber-website/releases/tag/0.14.1',\n RELEASEVERSION: '...
typescript
edit
0
0
mit
e86f41c6d9cf9296e51b13cc3dbfe4b2f75cd5a8
nie-ine/raeber-website,nie-ine/raeber-website,nie-ine/raeber-website,nie-ine/raeber-website
tools/env/base.ts
rejected_duplicate
Near-duplicate of sample 113627
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport styled from 'styled-components';\nimport images from '../../../shared/mixins/images';\nimport { HOVER_DURATION } from '../../constants/design';\nimport { Icons } from '../../../shared/enums';\n\ninterface IButtonProps {\n icon: ...
typescript
edit
0
0
apache-2.0
be7f3d86adc60afd3bf5543cd063d3443116c5fe
Nersent/Wexond,Nersent/Wexond
src/app/components/WindowButton/styles.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as cookie from \"cookie\";\nimport * as http from \"http\";\nimport * as orm from \"typeorm\";\nimport * as eta from \"../eta\";\n\nexport default class HelperSession {\n public static async getFromRequest(req: http.Incoming...
typescript
edit
0
6
mit
4da45c16e1ce0ae557cdf0fe9a585e0585e5b121
crossroads-education/eta,crossroads-education/eta
helpers/session.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 {\n username: string;\n}\n\n@withRouter\nclass Component extends React.Component<TOwnProps, {}> {\n\trender() {...
typescript
edit
null
null
mit
b51a8da34bd7b724123e0490fc083353c6ef8d9e
benishouga/DefinitelyTyped,ashwinr/DefinitelyTyped,rolandzwaga/DefinitelyTyped,chrootsu/DefinitelyTyped,rolandzwaga/DefinitelyTyped,jimthedev/DefinitelyTyped,arusakov/DefinitelyTyped,AbraaoAlves/DefinitelyTyped,jimthedev/DefinitelyTyped,dsebastien/DefinitelyTyped,one-pieces/DefinitelyTyped,aciccarello/DefinitelyTyped,a...
types/react-router/test/WithRouterDecorator.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// Copyright (c) {{ cookiecutter.author_name }}\n// Distributed under the terms of the Modified BSD License.\n\nimport {\n Application, IPlugin\n} from '@phosphor/application';\n\nimport {\n Widget\n} from '@phosphor/widgets';\n\nimpo...
typescript
edit
0
1
bsd-3-clause
b9b375a3d666b64ada5220e1dbfbbe34465e97c3
jupyter-widgets/widget-ts-cookiecutter,jupyter-widgets/widget-ts-cookiecutter,jupyter-widgets/widget-ts-cookiecutter
{{cookiecutter.github_project_name}}/src/plugin.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nconst logger = {\n info: (message: string) => {\n // tslint:disable-next-line:no-console\n // tslint:disable-next-line:strict-type-predicates\n if (console && typeof console.info === 'function') {\n // tslint:disable-next...
typescript
edit
0
2
mit
e8515f5835909162a34cfbb9bc59ea9baedaf74d
JakeSidSmith/canvasimo,JakeSidSmith/canvasimo,JakeSidSmith/sensible-canvas-interface
src/logger.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport ApolloClient from 'apollo-client';\nimport { DefaultOptions } from 'apollo-client/ApolloClient';\nimport { InMemoryCache as Cache } from 'apollo-cache-inmemory';\n\nimport { ApolloProvider } from ...
typescript
edit
null
null
mit
48a8a172a842e325082d16640cac08b3bb17800d
apollographql/react-apollo,apollostack/react-apollo,apollostack/react-apollo,apollographql/react-apollo
src/test-utils.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport default [\n {\n id: 'spreadsheet',\n name: 'Spreadsheet',\n extensions: ['tsv', 'bed'],\n anyInputCountSupported: false,\n supportedInputFileCounts: [1]\n },\n {\n id: 'text',\n name: 'Text',\n extensio...
typescript
edit
0
0
mit
5b636fa9254ddfed57242087396a2ed050e0a365
chipster/chipster-web,chipster/chipster-web,chipster/chipster-web
src/app/views/sessions/session/visualization/visualizationconstants.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nmodule ImprovedInitiative {\n export class EncounterLibraryViewModel {\n constructor(\n private encounterCommander: EncounterCommander,\n private library: EncounterLibrary\n ) { }\n\n Librar...
typescript
edit
0
1
mit
1ed86220621ab59c446a95f99745b169bf838b9b
cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative
client/Library/EncounterLibraryViewModel.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/* tslint:disable:no-unused-variable */\n\n/*!\n * Suitability Map Panel Component Test\n *\n * Copyright(c) Exequiel Ceasar Navarrete <<EMAIL>>\n * Licensed under MIT\n */\n\nimport { Renderer } from '@angular/core';\nimport { TestBed,...
typescript
edit
null
null
mit
f0c51a8d5f1fd95c4936bf41bfd6366da608e44b
ecsnavarretemit/sarai-ng2,ecsnavarretemit/sarai-interactive-maps,ecsnavarretemit/sarai-ng2,ecsnavarretemit/sarai-interactive-maps,ecsnavarretemit/sarai-ng2,ecsnavarretemit/sarai-interactive-maps
src/app/map/suitability-map-panel/suitability-map-panel.component.spec.ts
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Directive,ElementRef,Input,OnInit} from '@angular/core';\ndeclare var google:any;\ndeclare var googleLoaded:any;\n@Directive({\n selector: '[GoogleChart]',\n // properties: [\n // 'chartType',\n // 'chartOptions',\n ...
typescript
edit
0
2
mit
e5b8656b18baf8fa7ec988e5eab7647c0d489989
vimalavinisha/angular2-google-chart,vimalavinisha/angular2-google-chart,vimalavinisha/angular2-google-chart
directives/angular2-google-chart.directive.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { FunctionComponent } from 'react';\nimport { Row } from 'react-bootstrap';\nimport { reduxForm } from 'redux-form';\n\nimport {\n AccountingRunningField,\n getOptions as AccountingRunningFieldOptions,\n} from '@waldur/customer...
typescript
edit
null
null
mit
9d6ca92f744491dc2d808cbd4e6f517c66b89f21
opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport
src/customer/list/SupportCustomerFilter.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { inject } from 'aurelia-framework';\nimport { Router } from 'aurelia-router';\nimport { HackerNewsApi } from '../../services/api';\n\n@inject(Router, HackerNewsApi)\nexport class User {\n user: any;\n\n private readonly ro...
typescript
edit
0
2
isc
7f13eaff8132c6a540eefb8a81b696a2b9cadd89
MikeBull94/aurelia-hacker-news,michaelbull/aurelia-hacker-news,michaelbull/aurelia-hacker-news,michaelbull/aurelia-hacker-news,MikeBull94/aurelia-hacker-news
src/pages/user/index.ts
rejected_duplicate
Near-duplicate of sample 112792
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from \"react\";\n\ninterface ResponseRaceDetect {\n response: Response;\n json: any;\n raceOccurred: boolean;\n}\n\nconst fetchAndDetectRaces: (url: string) => Promise<ResponseRaceDetect> = (() => {\n let requestId = 0;...
typescript
edit
0
4
apache-2.0
293598303c9c92408f71e6bd13c4dde4c875398c
googleinterns/step250-2020,googleinterns/step250-2020,googleinterns/step250-2020,googleinterns/step250-2020
coffee-chats/src/main/webapp/src/util/fetch.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\njest.unmock('../enum-member');\n\nimport {Stack} from '../../../stack';\nimport {VariableDeclaration} from '../../declarations/variable-declaration';\nimport {EnumMember} from '../enum-member';\n\ndescribe('#_emit()', () => {\n it('sho...
typescript
edit
0
1
mit
cb9d46462278597b4e70de97e2aed007a70db113
ikatyang/dts-element,ikatyang/dts-element
src/elements/members/__tests__/enum-member.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as turf from '@turf/turf';\n\nimport {Fix} from \"./read-flight\";\n\nconst Emitter = require('tiny-emitter');\n\nexport class TakeoffDetector {\n private _lastFix: Fix | undefined = undefined;\n\n flying: boolean = false;\n\...
typescript
edit
0
5
mit
00df897ee343bfb2eeba651697e8187d664711cd
Turbo87/aeroscore,Turbo87/aeroscore
src/takeoff-detector.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/** Types of elements found in the DOM */\nexport const enum ElementType {\n Text = \"text\", //Text\n Directive = \"directive\", //<? ... ?>\n Comment = \"comment\", //<!-- ... -->\n Script = \"script\", //<script> tags\n ...
typescript
edit
0
3
bsd-2-clause
33eebc5508045282a6f266cea49707811f699438
fb55/domelementtype
src/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport Track from '../model/Track';\nimport { clear } from '../service';\nimport './Footer.css';\n\ninterface Props extends React.HTMLProps<HTMLDivElement> {\n tracks: Track[];\n}\n\nfunction Footer({...
typescript
edit
null
null
mit
b06b415dfdaf62dd2772863574a68a2e78def996
soflete/extereo,soflete/extereo
src/components/Footer.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component, OnInit } from '@angular/core';\nimport { PlantListService } from \"./plant-list.service\";\nimport { Plant } from \"./plant\";\nimport { FilterBy } from \"../plants/filter.pipe\";\nimport {Params, ActivatedRoute, Rou...
typescript
edit
0
1
mit
49770262471fd7cfeea0c45ec867ace3dd3655e7
UMM-CSci-3601-S17/digital-display-garden-iteration-4-dorfner-v2,UMM-CSci-3601-S17/digital-display-garden-iteration-3-dorfner,UMM-CSci-3601-S17/digital-display-garden-iteration-4-dorfner-v2,UMM-CSci-3601-S17/digital-display-garden-iteration-3-dorfner,UMM-CSci-3601-S17/digital-display-garden-iteration-4-dorfner-v2,UMM-CS...
client/src/app/plants/bed.component.ts
rejected_duplicate
Near-duplicate of sample 112840
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nnamespace webcrypto.liner {\n let _w: any = window;\n\n export const nativeCrypto: NativeCrypto = _w.crypto || _w.msCrypto;\n export const nativeSubtle = nativeCrypto.subtle || (nativeCrypto as any).webkitSubtle;\n}\n```\n\nApp...
typescript
edit
0
0
mit
1f60ab28c3f40d70e4a591deacff0c0773939f19
PeculiarVentures/webcrypto-liner,PeculiarVentures/webcrypto-liner
src/init.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { EventActions } from './EventActions'\nimport { Event, User, Permission } from '../models'\nimport { rejectIfNull } from './util'\nimport * as mongodb from '../mongodb/Event'\n\nexport class EventActionsImpl implements EventActi...
typescript
edit
0
2
mit
278eb5b3a10fc9234ed084ca5bb73323693d7dee
studieresan/overlord,studieresan/overlord,studieresan/overlord,studieresan/overlord,studieresan/overlord
src/controllers/EventActionsImpl.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nconst RestrictedFileExtensions = ['.cmd', '.exe', '.bat', '.sh']\nexport const CopyFilePathLabel = __DARWIN__\n ? 'Copy File Path'\n : 'Copy file path'\n\nexport const DefaultEditorLabel = __DARWIN__\n ? 'Open in External Editor'\n ...
typescript
edit
0
0
mit
d42a6447fa5d117d760d39dfec887447f63647fa
desktop/desktop,artivilla/desktop,shiftkey/desktop,j-f1/forked-desktop,shiftkey/desktop,shiftkey/desktop,say25/desktop,j-f1/forked-desktop,artivilla/desktop,say25/desktop,desktop/desktop,desktop/desktop,artivilla/desktop,artivilla/desktop,say25/desktop,j-f1/forked-desktop,j-f1/forked-desktop,desktop/desktop,say25/deskt...
app/src/ui/lib/context-menu.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport urls from \"common/constants/urls\";\n\nexport const newTabPrimaryItems = [\n {\n label: [\"sidebar.explore\"],\n icon: \"earth\",\n url: \"itch://featured\",\n },\n {\n label: [\"sidebar.library\"],\n icon: \"h...
typescript
edit
0
0
mit
684044487767ccc0d18c78de34e56afa89983b17
itchio/itch,itchio/itchio-app,leafo/itchio-app,itchio/itch,itchio/itchio-app,leafo/itchio-app,leafo/itchio-app,itchio/itch,itchio/itch,itchio/itchio-app,itchio/itch,itchio/itch
src/renderer/pages/BrowserPage/newTabItems.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { hot } from 'react-hot-loader/root';\nimport React from 'react';\nimport { ProtonApp, StandardSetup } from 'react-components';\nimport sentry from 'proton-shared/lib/helpers/sentry';\nimport locales from 'proton-shared/lib/i18n/...
typescript
edit
null
null
mit
c108a252cd11ba65d86f68d731f50bdade9ec583
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
applications/mail/src/app/App.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { GalleryFormatPipe } from './gallery-format.pipe';\n\ndescribe('GalleryFormatPipe', () => {\n it('create an instance', () => {\n const pipe = new GalleryFormatPipe();\n expect(pipe).toBeTruthy();\n });\n});\n\n```\n\nApp...
typescript
edit
0
1
apache-2.0
77e98396bc486119fa5b57aae1f5ed525ba9de6a
jbrowneuk/jblog,jbrowneuk/jblog,jbrowneuk/jblog,jbrowneuk/jblog
src/app/gallery/gallery-format.pipe.spec.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
b5a502290b8f1fb74c74ad32e6867184d054f0c6
wishtack/wishtack-steroids,wishtack/wishtack-steroids,wishtack/wishtack-steroids,wishtack/ng-steroids,wishtack/ng-steroids
packages/schematics/src/scam/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as request from 'superagent';\nimport { Response } from 'superagent';\nimport { Api, Options} from './api'\n\nclass MachineContainerApi extends Api {\n\n list(machineName: string): Promise<Response> {\n return this._exec(re...
typescript
edit
0
1
apache-2.0
0d400f0b20b6ec6e88c786061486aa3f9ab5c9b2
lawrence0819/neptune-front,lawrence0819/neptune-front
src/api/machine-container-api.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from \"react\";\nimport {Route} from \"react-router-dom\";\n\nimport * as TransitionGroup from \"react-transition-group/TransitionGroup\";\nimport * as CSSTransition from \"react-transition-group/CSSTransition\";\n\nim...
typescript
edit
null
null
mit
8ac0252be0f1c16d98c18fa9471be093f5d99704
wearesho-team/wearesho-site,wearesho-team/wearesho-site,wearesho-team/wearesho-site
src/components/TransitionSwitch/TransitionSwitch.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// a smoke-test for our typescipt typings\nimport nlp from '../'\nimport nlpNumbers from '../plugins/numbers'\n\n// Typings for imported plugin\ntype NLPNumbers = nlp.Plugin<\n {\n numbers: () => number[]\n },\n {\n a: string\n...
typescript
edit
0
1
mit
45d0fe23f17a5f608b5babfa77cdd45abfc14797
nlp-compromise/compromise,nlp-compromise/compromise,nlp-compromise/nlp_compromise,nlp-compromise/nlp_compromise,nlp-compromise/compromise
types/types.test.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { IpcEmitter } from \"./ipc-emitter\";\nimport { ipcMain } from \"electron\";\nimport { IpcChannels } from \"./ipc-channels\";\n\nexport class ProductionIpcEmitter implements IpcEmitter {\n public emitResetUserInput(): void {\...
typescript
edit
0
1
mit
1b3ad4bcb375ba604d2f32279bb97b0723d32408
oliverschwendener/electronizr,oliverschwendener/electronizr
src/ts/production-ipc-emitter.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport runGitCommand from './helpers/run-git-command'\nimport { Compiler } from 'webpack'\n\ninterface BuildFileOptions {\n compiler: Compiler\n gitWorkTree?: string\n command: string\n replacePattern: RegExp\n asset: string\n}\n\n...
typescript
edit
0
3
mit
ae86ee1fba60200fa0ac747411911f0d574667dd
pirelenito/git-revision-webpack-plugin,pirelenito/git-revision-webpack-plugin,pirelenito/git-revision-webpack-plugin
src/build-file.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react'\nimport { DialogContent } from '../dialog'\nimport { TextArea } from '../lib/text-area'\nimport { LinkButton } from '../lib/link-button'\n\ninterface IGitIgnoreProps {\n readonly text: string | null\n re...
typescript
edit
null
null
mit
9f71423903626e7d300f601a4ee1205e541ee261
artivilla/desktop,gengjiawen/desktop,artivilla/desktop,j-f1/forked-desktop,kactus-io/kactus,artivilla/desktop,say25/desktop,kactus-io/kactus,kactus-io/kactus,j-f1/forked-desktop,j-f1/forked-desktop,kactus-io/kactus,shiftkey/desktop,hjobrien/desktop,desktop/desktop,say25/desktop,desktop/desktop,artivilla/desktop,hjobrie...
app/src/ui/repository-settings/git-ignore.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 { HttpErrorResponse, HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';\nimport { Router } from '@angular/router';\n\nimport { EMPTY, Observable, throw...
typescript
edit
0
2
mit
3646288fb82016ed532b67aa458d5a4e3bd2b259
drumonii/LeagueTrollBuild,drumonii/LeagueTrollBuild,drumonii/LeagueTrollBuild,drumonii/LeagueTrollBuild
frontend/projects/admin/src/app/interceptor/admin-error.http-interceptor.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport class Role {\n name: string;\n validationFunction: Function;\n\n constructor(name: string, validationFunction: Function) {\n this.name = name;\n this.validationFunction = validationFunction;\n }\n}\n```\...
typescript
edit
0
1
mit
a705447917c2bc0e975fb77f5561d6fe999e0afc
AlexKhymenko/ngx-permissions,AlexKhymenko/ngx-permissions,AlexKhymenko/ngx-permissions
src/model/role.model.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Bootstrapper} from \"typescript-mvc-web-api\";\n\nclass Server extends Bootstrapper {\n\n public execute(): void {\n /*\n /api/odata/*\n\n /api/sparql/*\n\n let routes = [\n ...
typescript
edit
0
1
mit
6d62ca430ee04dabff2e08b10d7195372bb94b7f
disco-network/disco-node,disco-network/disco-node
src/server.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\nexport enum IDEType {\n...
typescript
edit
0
1
mit
26b54ece5a39eb2b886829976ad663732a30a4de
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/fb-stubs/IDEFileResolver.tsx
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 JupyterLabPlugin\n} from '../application';\n\nimport {\n DocumentRegistry, IDocumentRegistry, TextModelFactory, Base...
typescript
edit
0
1
bsd-3-clause
751e03760d66debc3863506fb2362a56ba55945b
eskirk/jupyterlab,eskirk/jupyterlab,jupyter/jupyterlab,eskirk/jupyterlab,jupyter/jupyterlab,charnpreetsingh185/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab,charnpreetsingh185/jupyterlab,eskirk/jupyterlab,charnpreetsingh185/jupyterlab,jupyter/jupyterlab,charnpreetsingh185/jupyterlab,charnpreetsingh185/jupyterlab,esk...
src/docregistry/plugin.ts
accepted
null
true