conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Use a default file if it exists, otherwise fallback to nom's default\n"
},
{
"from": "human",
"value": "#! /usr/bin/env node\n'use strict';\n\nvar findup = require('findup-sync');\nvar fs = require('fs');\nvar shell = require('child_process').execFile;\n\n// On... | javascript | chosen |
[
{
"from": "system",
"value": "Add example to escapeURI function.\n"
},
{
"from": "human",
"value": "/**\n * Escape URI components utility.\n *\n * Site Kit by Google, Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file... | javascript | chosen |
[
{
"from": "system",
"value": ":new: Add type to default template\n"
},
{
"from": "human",
"value": "'use babel'\n\n/* @flow */\n\nimport {Template} from 'string-templates'\n\nexport const CONFIG_FILE_NAME: string = '.ucompiler'\nexport const STATE_FILE_NAME: string = '.ucompiler.state'\n\nexport... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unnecessary spaces for readability\n"
},
{
"from": "human",
"value": "import express from 'express';\nimport validate from 'express-validation';\nimport paramValidation from './validation/user';\nimport userCtrl from '../controllers/user';\n\nconst router = e... | javascript | chosen |
[
{
"from": "system",
"value": "Use ensureDir instead of mkdir\n"
},
{
"from": "human",
"value": "const path = require('path');\nconst fs = require('fs-extra');\n\nconst log = require('./log');\n\n// -----------------------------------------------------------------------------\n// main build\n// -... | javascript | chosen |
[
{
"from": "system",
"value": "Remove vue-resource global options from app init\n"
},
{
"from": "human",
"value": "'use strict';\n\nimport './polyfills/Array.find';\nimport 'whatwg-fetch';\n\nimport Vue from 'vue';\nimport VueRouter from 'vue-router';\n\nimport DefaultRouter from './routers/Defau... | javascript | chosen |
[
{
"from": "system",
"value": "Update application dimensions to fill the screen\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst electron = require('electron');\nconst { app, BrowserWindow } = electron;\n\nlet mainWindow; // Ensures garbage collection does not remove the window\n\napp.on... | javascript | chosen |
[
{
"from": "system",
"value": "tests/helper-addon: Use alternative blueprint test helpers\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar setupTestHooks = require('ember-cli-blueprint-test-helpers/lib/helpers/setup');\nvar BlueprintHelpers = require('ember-cli-blueprint-test-helpers... | javascript | chosen |
[
{
"from": "system",
"value": "Create new Typekit kit for fonts\n"
},
{
"from": "human",
"value": "/* ---------------------------------------\n\tGame launcher\n--------------------------------------- */\n\n\tvar MM =\n\t{\n\t\t// Overridden when resizing\n\t\tisMobile: true,\n\n\t\tresize: functi... | javascript | chosen |
[
{
"from": "system",
"value": "fix(extractWithRegex): Check if match exists FIRST\n\nCheck if match exists before even checking it's length\n"
},
{
"from": "human",
"value": "export const extractWithRegex = regex => (url) => {\n const match = url.match(regex);\n return match.length > 1 ? match[... | javascript | chosen |
[
{
"from": "system",
"value": "Change active mentor polling to one minute\n"
},
{
"from": "human",
"value": "var activeMentors = function () {\n this.endpoint = \"/api/mentor_requests/available\";\n this.template;\n};\n\nactiveMentors.prototype.getMentors = function () {\n var self = this;\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add newline to plain text index.\n"
},
{
"from": "human",
"value": "var cadence = require('cadence')\nvar Dispatcher = require('inlet/dispatcher')\n\nfunction Static (addresses) {\n this._addresses = addresses\n var dispatcher = new Dispatcher({ object: this, ... | javascript | chosen |
[
{
"from": "system",
"value": "Add customization for conseil departemental BDR"
},
{
"from": "human",
"value": "'use strict';\n\nangular.module('ddsCommon').factory('CustomizationService', function(lyonMetropoleInseeCodes) {\n\n function determineCustomizationId(testCase, currentPeriod) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add missing steps for building schema\n"
},
{
"from": "human",
"value": "import fs from 'fs';\nimport path from 'path';\nimport schema from '../src/server/api/schema';\nimport { graphql } from 'graphql';\nimport { introspectionQuery, printSchema } from 'graphql/uti... | javascript | chosen |
[
{
"from": "system",
"value": "Sort 'staff' by first name; add Heather to the list\n"
},
{
"from": "human",
"value": "refreshFrequency: false,\n\nstyle: \"border: 0\",\n\nrender: function() {\n\twindow.sto = window.sto || {\n\t\tlibs: {},\n\t\tdata: {},\n\t};\n\n\tvar staff = [\n\t\t'Mike Sjulsta... | javascript | chosen |
[
{
"from": "system",
"value": "Add form validation to the site user view using Parsley.\n"
},
{
"from": "human",
"value": "(function () {\n\t'use strict';\n\n\tmare.views.SiteVisitorRegistration = Backbone.View.extend({\n\t\tel: '.site-visitor-registration',\n\n\t\tevents: {\n\t\t\t'change .other... | javascript | chosen |
[
{
"from": "system",
"value": "Test should handle case where testrpc isn't running\n"
},
{
"from": "human",
"value": "\nvar Web3 = require('web3');\nvar web3 = new Web3();\nweb3.setProvider(new web3.providers.HttpProvider('http://0.0.0.0:8545'));\n\n//TODO: when TestRPC can handle synchronous req... | javascript | chosen |
[
{
"from": "system",
"value": "Update Meteor release to 1.0.4\n"
},
{
"from": "human",
"value": "Package.describe({\n name: 'lookback:tooltips',\n summary: 'Reactive tooltips.',\n version: '0.3.1',\n git: 'https://github.com/lookback/meteor-tooltips.git'\n});\n\nPackage.on_use(function(api) {... | javascript | chosen |
[
{
"from": "system",
"value": "Move api common.js file to top of list\n"
},
{
"from": "human",
"value": "Package.describe({\n name: 'konecty:user-presence',\n summary: 'Track user status',\n version: '1.1.0',\n git: 'https://github.com/Konecty/meteor-user-presence'\n});\n\nPackage.onUse(funct... | javascript | chosen |
[
{
"from": "system",
"value": "Fix hide actions on member page\n"
},
{
"from": "human",
"value": "if (document.URL.indexOf(\"search\")>=0) {\n hide_table_actions();\n}\n\nfunction hide_table_actions(){\n\n var table = document.querySelector( '.results');\n var cellIndex = table.rows[0].cel... | javascript | chosen |
[
{
"from": "system",
"value": "Add few more environment variables to test, and use them to construct filepaths for more robustness\n"
},
{
"from": "human",
"value": "var fs = require('fs');\n\nvar environmentVariables = [\n \"WEBSITE_SITE_NAME\",\n \"WEBSITE_SKU\",\n \"WEBSITE_COMPUTE_MO... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug when creating new archetype\n\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport { bindActionCreators } from 'redux';\nimport { connect } from 'react-redux';\nimport Select from 'react-select';\nimport * as actions from '../... | javascript | chosen |
[
{
"from": "system",
"value": "Make default start command watch toolkit\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\n/**\n * Module dependencies.\n */\n\nconst debug = require('debug')('docsmith:start');\nconst program = require('commander');\nconst start = require('./docsmith/start'... | javascript | chosen |
[
{
"from": "system",
"value": "Make sure gql functions are availabel\n"
},
{
"from": "human",
"value": "/* eslint-disable prefer-arrow-callback, func-names */\n/* eslint-env mocha */\nimport { chai } from 'meteor/practicalmeteor:chai';\nimport { setup, breakdown } from './setup';\n\nconst { Templ... | javascript | chosen |
[
{
"from": "system",
"value": "Add ESLint rule for space-before-function-paren\n"
},
{
"from": "human",
"value": "module.exports = {\n \"parserOptions\": {\n \"ecmaVersion\": 8\n },\n \"env\": {\n \"browser\": false,\n \"node\": true,\n \"commonjs\": true,\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Use a more friendly message about hardcoding user details"
},
{
"from": "human",
"value": "$(function() {\n var usernameEl = $('#username');\n var passwordEl = $('#password');\n\n // in a real application, hardcoding the user/password would be idiotic\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Use the COLOR and TINTS constants\n"
},
{
"from": "human",
"value": "import React, { PureComponent } from 'react';\nimport PropTypes from 'prop-types';\nimport cx from 'classnames';\n\nconst withTheme = theme => WrappedComponent => {\n class WithTheme extends PureC... | javascript | chosen |
[
{
"from": "system",
"value": "Add rate to JSON object for Profile\n"
},
{
"from": "human",
"value": "// Profile Model\nmodule.exports = function(sequelize, DataTypes) {\n var Profile = sequelize.define('Profile', {\n rate: {\n type: DataTypes.DECIMAL(10,2),\n allowNull: false\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Return null if key doesn't exist\n"
},
{
"from": "human",
"value": "var remote = require('remote')\nvar fs = require('fs')\nvar path = require('path')\nvar app = remote.require('app')\n\nvar filename = path.join(app.getPath('userData'), 'settings.json')\nvar setting... | javascript | chosen |
[
{
"from": "system",
"value": "Update to turn off chunking\n"
},
{
"from": "human",
"value": "/* eslint-disable no-undef */\nconst FastBootAppServer = require('fastboot-app-server');\nconst fetch = require('node-fetch');\n\nlet server = new FastBootAppServer({\n distPath: 'dist',\n gzip: true, ... | javascript | chosen |
[
{
"from": "system",
"value": "Use expiresIn instead of expiresInSeconds"
},
{
"from": "human",
"value": "module.exports = function(app) {\n var express = require('express');\n var bodyParser = require('body-parser');\n var jwt = require('jsonwebtoken');\n var apiTokenAuthRouter = express.Rou... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unneeded error parameter for login form\n"
},
{
"from": "human",
"value": "var angular = require('angular');\n\nangular.module('LoginComp', ['AuthSvc']).component('loginComponent', {\n templateUrl: '/views/shimapan/login-form.html',\n controller: ['$sco... | javascript | chosen |
[
{
"from": "system",
"value": "Update sidebar logic and UI\n"
},
{
"from": "human",
"value": "import { connect } from 'react-redux';\nimport { withRouter } from 'react-router-dom';\nimport React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport Drawer from 'material-ui/Dra... | javascript | chosen |
[
{
"from": "system",
"value": "Refresh reports in rootScope when a new report is pushed\n"
},
{
"from": "human",
"value": "'use strict';\n\nangular.module('privateTheaterApp')\n .controller('MediaErrorsPublisherCtrl', ['$scope', '$modal', 'MediaError', function ($scope, $modal, MediaError) {\n\n... | javascript | chosen |
[
{
"from": "system",
"value": "Handle invalid image set ids in api code\n"
},
{
"from": "human",
"value": "'use strict';\n\n/* Modules */\nvar imageSets = require('cloud/imagesets.js').ImageSets;\n\n/**\n * Responds with the next image set.\n * @param request.params.id The current image set id.\n... | javascript | chosen |
[
{
"from": "system",
"value": "Improve mapUrl filter. Replace whitespace with %20C.\n"
},
{
"from": "human",
"value": "'use strict';\n\n/* Filters */\n\nangular.module('myApp.filters', []).\n filter('interpolate', ['version', function(version) {\n return function(text) {\n return String(... | javascript | chosen |
[
{
"from": "system",
"value": "Truncate tables when there are foreign key constraints\n"
},
{
"from": "human",
"value": "\nvar orm = require('orm');\nvar async = require('async');\nvar dbConfig = require('../config/database');\n\nmodule.exports.run = function(done) {\n orm.connect(dbConfig, fu... | javascript | chosen |
[
{
"from": "system",
"value": "Add return object for next()\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nlet user = {\n name: \"Sam\",\n totalReplies: 17,\n isBlocked: false\n};\n\nuser[Symbol.iterator] = function () {\n let properties = Object.keys(this);\n let count = 0;\n let is... | javascript | chosen |
[
{
"from": "system",
"value": "Make sure template paths are resolved\n"
},
{
"from": "human",
"value": "var nodePath = require('path');\nvar fs = require('fs');\nvar Module = require('module').Module;\nvar raptorTemplatesCompiler = require('../../compiler');\n\nfunction loadSource(templatePath, c... | javascript | chosen |
[
{
"from": "system",
"value": "Add forms inside page editor.\n\nTinyMCE removes attitubutes."
},
{
"from": "human",
"value": "function setImageValue(url){\n $('.mce-btn.mce-open').parent().find('.mce-textbox').val(url);\n}\n\n$(document).ready(function(){\n\n $.ajaxSetup({\n headers: {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Remove SuccessStories from this page\n\nRedundant, already on landing page\nWe can add other valuable content to this page later"
},
{
"from": "human",
"value": "import React from 'react';\nimport HeroBanner from 'shared/components/heroBanner/heroBanner';\nimport ba... | javascript | chosen |
[
{
"from": "system",
"value": "Add the webpack NoErrors plugin\n\nThis plugin keeps webpack from emitting its build products if there are\nany errors. That way, the hot-reloading in the browser won’t get\nbroken and require a page refresh.\n"
},
{
"from": "human",
"value": "const path = require(... | javascript | chosen |
[
{
"from": "system",
"value": "Convert to using JSON parsing.\n"
},
{
"from": "human",
"value": "export default {\n coerce (val) {\n return Array.isArray(val) ? val : [val];\n },\n default () {\n return [];\n },\n deserialize (val) {\n return val.split(',');\n },\n serialize (val)... | javascript | chosen |
[
{
"from": "system",
"value": "Add fields and state to manage departureDate\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport logo from './airplane.svg';\nimport './App.css';\n\nclass App extends Component {\n render() {\n return (\n <div className=\"Ap... | javascript | chosen |
[
{
"from": "system",
"value": "Refactor from CHECKSUM to getChecksum()\n"
},
{
"from": "human",
"value": "core.Module(\"unify.Kernel\", {\n\tinit : function() {\n\t\tcore.io.Script.load(\"script/\" + jasy.Env.getValue(\"unify.application.namespace\") + \"-\" + jasy.Env.CHECKSUM + \".js\");\n\t}\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add find by class name support for IE8\n\nIf you'd like to support IE8, with the class selector, this should do it."
},
{
"from": "human",
"value": "(function (root, factory) {\n if (typeof define === 'function' && define.amd) {\n define([], factory);\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix linter error caused by in-range update to eslint\n"
},
{
"from": "human",
"value": "'use strict';\n/* global window:false, performance:false */\nconst Bluefox = require('bluefox');\n\nconst log = require('../../../../lib/logger')({hostname: 'content', MODULE: 'w... | javascript | chosen |
[
{
"from": "system",
"value": "Clear selections on escape key\n"
},
{
"from": "human",
"value": "import React from 'react';\n\nrequire('./detail.scss');\n\nexport default class Detail extends React.Component {\n\n render() {\n const {title} = this.props;\n return (<div className=\"detail\"... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug showing the wrong date when creating a new lotto because it depended on the current time\n"
},
{
"from": "human",
"value": "Template.lottoAdd.created = function() {\n Session.set('lottoAddErrors', {});\n};\nTemplate.lottoAdd.rendered = function() {\n var n... | javascript | chosen |
[
{
"from": "system",
"value": "Check for bot.isAlive not needed"
},
{
"from": "human",
"value": "module.exports = inject\n\nfunction inject (bot) {\n bot.isAlive = true\n\n bot._client.on('respawn', (packet) => {\n bot.isAlive = false\n bot.emit('respawn')\n })\n\n bot._client.once('upd... | javascript | chosen |
[
{
"from": "system",
"value": "Add findWithAssert test, acts like find\n"
},
{
"from": "human",
"value": "import { moduleForComponent, test } from 'ember-qunit';\nimport hbs from 'htmlbars-inline-precompile';\nimport { findWithAssert } from 'ember-native-dom-helpers/test-support/helpers';\n\n\nmo... | javascript | chosen |
[
{
"from": "system",
"value": "Test 1 of Serene Grace"
},
{
"from": "human",
"value": "exports.BattleAbilities = {\n\t\"serenegrace\": {\n \t\tinherit: true\n\t\tonModifyMove: function(move) {\n\t\t\tif (move.secondaries) {\n\t\t\t\tthis.debug('doubling secondary chance');\n\t\t\t\tfor (var i=0;... | javascript | chosen |
[
{
"from": "system",
"value": "Fix field name in order to support multiple accounts without usernames.\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst BaseRepository = require('@gfcc/mongo-tenant-repository/BaseRepository');\n\n/**\n * @class AccountRepository\n */\nclass AccountReposit... | javascript | chosen |
[
{
"from": "system",
"value": "Fix tooltips not hiding after clicking button\n"
},
{
"from": "human",
"value": "isic.views.LayoutHeaderView = isic.View.extend({\n events: {\n 'click .isic-link-home': function () {\n isic.router.navigate('index', {trigger: true});\n },\... | javascript | chosen |
[
{
"from": "system",
"value": "Read field type only if it's present [SENTRY-1182]\n"
},
{
"from": "human",
"value": "// @ngInject\nexport default function appstoreField($filter, $compile, $parse) {\n return {\n restrict: 'E',\n link: function(scope, element, attributes) {\n const fiel... | javascript | chosen |
[
{
"from": "system",
"value": "Adjust progress legend to hide on mouseleave\n"
},
{
"from": "human",
"value": "export default function initProgressHover() {\n\tconst $progressHover = document.querySelectorAll('.js-progress-hover');\n\n\tif ($progressHover === null) {\n\t\treturn false;\n\t}\n\n\t... | javascript | chosen |
[
{
"from": "system",
"value": "Add more prefer event listeners to observe compose window creating/deleting\n"
},
{
"from": "human",
"value": "/* This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, Yo... | javascript | chosen |
[
{
"from": "system",
"value": "Add granuals to the capsul.data object individually.\n"
},
{
"from": "human",
"value": "module.exports = (function(){\n\n\t// GET /users/:id/media?lat=<LAT>&lng=<LNG>&time=<TIME>\n\treturn function* collection(id) {\n\n\t\t// // Twitter Requests\n\t\t// var TwitterM... | javascript | chosen |
[
{
"from": "system",
"value": "Use isolatedModules for ts-jest to speed up test\n"
},
{
"from": "human",
"value": "module.exports = {\n globals: {\n 'ts-jest': {\n diagnostics: false\n }\n },\n roots: ['<rootDir>/src/js'],\n transform: {\n '^.+\\\\.tsx?$': 'ts-jest',\n '^.+\\... | javascript | chosen |
[
{
"from": "system",
"value": "Remove invalid publicPath devServer option\n\nThe option may have been moved to a property of a nested config object\nhttps://stackoverflow.com/questions/69645259/webpack-config-has-an-unknown-property-publicpath\nor maybe it never worked, idk. Anyway, it doesn't seem to be nee... | javascript | chosen |
[
{
"from": "system",
"value": "Hide previous submenu when a new one is activated\n"
},
{
"from": "human",
"value": "var selectors = {\n menu: 'js-menu',\n menuToggle: 'js-menu-toggle',\n submenu: 'js-submenu',\n submenuToggle: 'js-submenu-toggle'\n};\n\nvar strings = {\n hover: 'mo... | javascript | chosen |
[
{
"from": "system",
"value": "Fix init and initsw default paths\n"
},
{
"from": "human",
"value": "module.exports = {\n base: './lively',\n init: '/src/init.js',\n initsw: '/src/init-sw.js'\n}\n"
},
{
"from": "gpt",
"value": "module.exports = {\n base: './lively',\n init: '/init... | javascript | chosen |
[
{
"from": "system",
"value": "APVS-0020: Change to minimum claim amount to allow claims of £0.00 or greater.\n"
},
{
"from": "human",
"value": "const config = require('../../../config')\n/**\n * This file defines all generic validation tests used in the application. This file can and should be u... | javascript | chosen |
[
{
"from": "system",
"value": "Replace with Google Street View\n"
},
{
"from": "human",
"value": "\"use strict\";\nconst fs = require('fs');\nconst url = require('url');\nconst qs = require('querystring');\nconst _ = require('lodash');\nconst builder = require('botbuilder');\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add minimal perf test for html beautify\n"
},
{
"from": "human",
"value": "/*global js_beautify: true */\n/*jshint node:true */\n\nvar fs = require('fs'),\n SanityTest = require('./sanitytest'),\n Benchmark = require('benchmark'),\n Urlencoded = require('..... | javascript | chosen |
[
{
"from": "system",
"value": "Fix log config to prevent warnings\n"
},
{
"from": "human",
"value": "const Promise = require('bluebird');\n\nfunction browser (b) {\n return Promise.resolve()\n .then(() => {\n return b.init({\n browserName: 'chrome',\n loggingPrefs: {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add “Search” placeholder text to input field."
},
{
"from": "human",
"value": "var React = require('react');\n\nvar Header = React.createClass({\n\n render: function() {\n return (\n <div className=\"header\">\n <input className=\... | javascript | chosen |
[
{
"from": "system",
"value": "Use Descendent `increment` and `decrement`.\n"
},
{
"from": "human",
"value": "var Queue = require('prolific.queue')\nvar createUncaughtExceptionHandler = require('./uncaught')\nvar abend = require('abend')\nvar assert = require('assert')\n\nfunction Shuttle (pid, s... | javascript | chosen |
[
{
"from": "system",
"value": "Update insertionSort to skip the first item (a list of 1 is always sorted)\n"
},
{
"from": "human",
"value": "/**\n * An implementation of insertionSort\n *\n * @name insertionSort\n * @function\n * @param {Array} xs the list to sort\n */\nexport function insertionS... | javascript | chosen |
[
{
"from": "system",
"value": "Remove server name and port\n"
},
{
"from": "human",
"value": "$(function() {\n var s = io.connect('http://localhost:3000');\n s.on(\"connect\", function () {\n console.log(\"connected\");\n });\n s.on(\"disconnect\", function (client) {\n console.log(\"di... | javascript | chosen |
[
{
"from": "system",
"value": "Integrate improvement by JProffitt71 to properly support Jade view extend/include\n"
},
{
"from": "human",
"value": "define(['./module', '_'], function (views, _) {\n 'use strict';\n\n var templates = {};\n\n var jade = require('jade'),\n fs = requir... | javascript | chosen |
[
{
"from": "system",
"value": "Update so tray now pulls in components from Heroku\n"
},
{
"from": "human",
"value": "/* This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at http:... | javascript | chosen |
[
{
"from": "system",
"value": "FIX Improve delete reply confirmation message\n"
},
{
"from": "human",
"value": "// This file was generated by silverstripe/cow from javascript/lang/src/en.js.\n// See https://github.com/tractorcow/cow for details\nif (typeof(ss) == 'undefined' || typeof(ss.i18n) ==... | javascript | chosen |
[
{
"from": "system",
"value": "Allow manifest output name to be configured\n"
},
{
"from": "human",
"value": "/**\n * A Rollup plugin to generate a manifest of chunk names to their filenames\n * (including their content hash). This manifest is then used by the template\n * to point to the currect... | javascript | chosen |
[
{
"from": "system",
"value": "feat: Send action with id to parent when table cell clicked\n\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nexport default Ember.Component.extend({\n tagName: 'tr'\n});\n"
},
{
"from": "gpt",
"value": "import Ember from 'ember';\n\nex... | javascript | chosen |
[
{
"from": "system",
"value": "Move includes dir and copy all files by default\n\nPartial fix for #4"
},
{
"from": "human",
"value": "var Async = require('async'),\n Fs = require('fs'),\n Glob = require('glob'),\n Path = require('path'),\n RawSource = require('webpack-core/lib/RawSour... | javascript | chosen |
[
{
"from": "system",
"value": "feat: Add object computed names tests\n"
},
{
"from": "human",
"value": "describe(\"About Objects\", function () {\n\n describe(\"Shorthand Syntax\", function () {\n\n it('should understand initailiser shorthand', function() {\n\n function passThrough(one, ... | javascript | chosen |
[
{
"from": "system",
"value": "Use empty tree as default\n"
},
{
"from": "human",
"value": "import undoable from 'redux-undo-immutable';\nimport { fromJS } from 'immutable';\nimport { findPathByNodeId } from '../utils/vertTreeUtils';\n\nconst verticalTreeData = (\n state = fromJS([{ value: 1, ch... | javascript | chosen |
[
{
"from": "system",
"value": "Kill the browser process if it already exists for a given bot id\n"
},
{
"from": "human",
"value": "var debug = require('debug')('testbot:farm');\nvar spawn = require('child_process').spawn;\nvar path = require('path');\nvar qs = require('querystring');\nvar bots = ... | javascript | chosen |
[
{
"from": "system",
"value": "Revert to puppeteer (keeping chromium install for dependencies)\n"
},
{
"from": "human",
"value": "// Karma configuration file, see link for more information\n// https://karma-runner.github.io/0.13/config/configuration-file.html\nprocess.env.CHROME_BIN = require('pu... | javascript | chosen |
[
{
"from": "system",
"value": "Fix roam param for compatibility.\n"
},
{
"from": "human",
"value": "import * as zrUtil from 'zrender/src/core/util';\n\nfunction dataToCoordSize(dataSize, dataItem) {\n dataItem = dataItem || [0, 0];\n return zrUtil.map([0, 1], function (dimIdx) {\n va... | javascript | chosen |
[
{
"from": "system",
"value": "Use locally-scoped jQuery to focus filter\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nconst { $, on } = Ember;\n\nexport default Ember.Component.extend({\n filterTerm: '',\n inputSelector: '.js-input',\n localClassNames: ['canvas-block-filter... | javascript | chosen |
[
{
"from": "system",
"value": "Fix filter selected default - backbone.picky does not use model attributes\n"
},
{
"from": "human",
"value": "define(['underscore', 'backbone', 'backbone.picky'], function(_, Backbone) {\n 'use strict';\n\n var Filter = Backbone.Model.extend({\n defaults: {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Change printing format of results\n"
},
{
"from": "human",
"value": "var valueEnv = new EnvGlobal();\nvar typeEnv = new EnvGlobal();\n\ncatchEvent(window, \"load\", setup);\n\nfunction setup(event) {\n setupEvents(event);\n document.getElementById(\"outputArea\").... | javascript | chosen |
[
{
"from": "system",
"value": "Use the old values for resource names\n\nThe logic here is that anything below v3 will use the old resources, after 3.0, the resources will carry a version number in their name.\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst fsx = require('./fs-additions'... | javascript | chosen |
[
{
"from": "system",
"value": "Fix typo on warning message\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport {withReduxSaga} from 'configureStore'\n\nimport Layout from 'components/Layout'\nimport HomeHero from 'components/HomeHero'\nimport ProgramsList from 'containers/Program... | javascript | chosen |
[
{
"from": "system",
"value": "MODIFY academic cohort method and schema to include acad year\n"
},
{
"from": "human",
"value": "import { Mongo } from 'meteor/mongo';\nimport { SimpleSchema } from 'meteor/aldeed:simple-schema';\n\nclass AcadCohortCollection extends Mongo.Collection{\n insert(acad... | javascript | chosen |
[
{
"from": "system",
"value": "Set up test task for gulp\n"
},
{
"from": "human",
"value": "import gulp from 'gulp';\nimport babel from 'gulp-babel';\nimport nodemon from 'gulp-nodemon';\nimport mocha from 'gulp-mocha';\nimport istanbul from 'gulp-babel-istanbul';\nimport injectModules from 'gulp... | javascript | chosen |
[
{
"from": "system",
"value": "Add constructor and method for changing page and board title\n"
},
{
"from": "human",
"value": "// ==UserScript==\n// @name Kurahen Premium\n// @namespace karachan.org\n// @version 1.0\n// @include http://www.karachan.org/*\n// @include http://k... | javascript | chosen |
[
{
"from": "system",
"value": "Support headers option to request.\n"
},
{
"from": "human",
"value": "define(['exports',\n './lib/request',\n 'url'],\nfunction(exports, Request, uri) {\n\n function request(url, method, cb) {\n if (typeof url == 'object') {\n var opts = url;\... | javascript | chosen |
[
{
"from": "system",
"value": "Load translator module with a relative path\n"
},
{
"from": "human",
"value": "var nroonga = require('nroonga');\nvar translator = require('translator');\nvar Deferred = require('jsdeferred').Deferred;\n\nfunction Processor(options) {\n this.databasePath = options.... | javascript | chosen |
[
{
"from": "system",
"value": "Remove 'http' prefix to support running app over https\n"
},
{
"from": "human",
"value": "/* Angular resource to search for Songkick events\n * Ref: http://www.songkick.com/developer/event-search\n *\n * NOTE: We use JSONP as the Songkick API does not support CORS.\... | javascript | chosen |
[
{
"from": "system",
"value": "Tidy up array handling hiccup\n"
},
{
"from": "human",
"value": "import { VACCINE_ACTIONS } from '../actions/VaccineActions';\n\nconst initialState = () => ({\n scannedSensors: [],\n isScanning: false,\n});\n\nexport const VaccineReducer = (state = initialState(),... | javascript | chosen |
[
{
"from": "system",
"value": "Add setting of currency localization on startup\n"
},
{
"from": "human",
"value": "import { Settings } from 'react-native-database';\n\nimport { SETTINGS_KEYS } from './index';\nimport { DEFAULT_LANGUAGE } from '../localization/index';\nimport { setCurrentLanguage }... | javascript | chosen |
[
{
"from": "system",
"value": "Add more tests for $.InstantResult.\n"
},
{
"from": "human",
"value": "describe('$.InstantResult', function () {\n});\n"
},
{
"from": "gpt",
"value": "describe('$.InstantResult', function () {\n\n var RESULT_SETS = [\n\n [\n 'a$'\n , 'A$AP Ro... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bug in detecting missing Dive Manager app\n"
},
{
"from": "human",
"value": "var fs = require('fs');\nvar _ = require('lodash');\n\nangular.module('suuntoDMEditor')\n .service('dbpath', function () {\n\n var getFirstSubDirectory = function (fromDir) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Off-topic: Allow ENV var to override selenium path\n\nDidn't feel worth branching off this branch to do it, but now users\ncan specify their selenium path with an environment variable."
},
{
"from": "human",
"value": "var path = require('path'),\n home = process.... | javascript | chosen |
[
{
"from": "system",
"value": "fix(widget-chat): Fix CI build failures because of linting\n"
},
{
"from": "human",
"value": "import React, {Component, PropTypes} from 'react';\nimport {Provider, connect} from 'react-redux';\nimport injectSpark from '../src/modules/redux-spark/inject-spark';\n\nfu... | javascript | chosen |
[
{
"from": "system",
"value": "Optimize component recycling for the (overwhelmingly) most common case by switching to FIFO.\n"
},
{
"from": "human",
"value": "/** Retains a pool of Components for re-use, keyed on component name.\n *\tNote: since component names are not unique or even necessarily ... | javascript | chosen |
[
{
"from": "system",
"value": "Insert Google Maps API Key from Pikud Haoref's website\n"
},
{
"from": "human",
"value": "var fs = require('fs');\n\n// Replace with require('pikud-haoref-api') if the package resides in node_modules\nvar pikudHaoref = require('../index');\n\n// Insert your Google M... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.