conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Allow 2.6 and 2.7 failures\n\nThis is due to ember-wormhole#77\n"
},
{
"from": "human",
"value": "/*jshint node:true*/\n\nmodule.exports = {\n useVersionCompatibility: true,\n scenarios: [{\n name: 'default',\n bower: {\n dependencies: {}\n }\n }, {... | javascript | chosen |
[
{
"from": "system",
"value": "Copy service worker to root path.\n"
},
{
"from": "human",
"value": "var baseConfig = require('./webpack.config.common.js');\nvar webpack = require('webpack');\nconst merge = require('webpack-merge');\nvar path = require('path');\n\nvar CopyWebpackPlugin = require('... | javascript | chosen |
[
{
"from": "system",
"value": "Fix bad return `return { state }` > `return state`\n"
},
{
"from": "human",
"value": "import { CONNECT, GET_CURRENT_USER_SUCCESS } from './actionTypes'\nimport { combineReducers } from 'redux'\n\nlet isNewLoginValue = false\nexport const nuxeoReducer = combineReduce... | javascript | chosen |
[
{
"from": "system",
"value": "Add fontawesome and bootstrap css\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport Document, { Head, Main, NextScript } from 'next/document'\nimport stylesheet from '../styles/global.sass'\n\nexport default class MyDocument extends Document {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add JSDocs populated from website documentation\n"
},
{
"from": "human",
"value": "var rpcRequest = require('./rpc-request');\nrequire('./polyfills');\n\nvar DropboxApi = function (options) {\n this.accessToken = options && options.accessToken || '';\n};\n\nDropbox... | javascript | chosen |
[
{
"from": "system",
"value": "Fix section scrolling inside padding\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport Link from 'gatsby-link'\nimport Section from '../components/Section'\nimport HomeBanner from '../components/HomeBanner'\nimport About from '../components/About'... | javascript | chosen |
[
{
"from": "system",
"value": "Fix isStateless check for native arrow func\n"
},
{
"from": "human",
"value": "export function isStateless(component) {\n return !component.prototype.render;\n}\n"
},
{
"from": "gpt",
"value": "export function isStateless(component) {\n // `function() ... | javascript | chosen |
[
{
"from": "system",
"value": "Update test to load correct file\n"
},
{
"from": "human",
"value": "import File from '../lib/File';\n\nimport NexmoStub from './NexmoStub';\n\nvar fileAPIs = {\n 'getFile': 'get'\n};\n\ndescribe('File Object', function() {\n\n it('should implement all v1 APIs'... | javascript | chosen |
[
{
"from": "system",
"value": "Test for existence of generated file\n"
},
{
"from": "human",
"value": "const assert = require('assert');\nconst configMergeLoader = require('../index.js');\n\ndescribe('Config Merge Loader', function() {\n it('should return a function', function() {\n assert.eq... | javascript | chosen |
[
{
"from": "system",
"value": "Use BrewPhase in Brew tests\n"
},
{
"from": "human",
"value": "var Brew = require('./brew');\nvar expect = require('chai').expect;\n\ndescribe('Brew model', function() {\n describe('get actual phase', function() {\n it('should find the phase in progress', functi... | javascript | chosen |
[
{
"from": "system",
"value": "Make naming consistent with MDN\n"
},
{
"from": "human",
"value": "// Third party\nimport localForage from 'localForage';\nimport { applyMiddleware, compose, createStore } from 'redux';\nimport { autoRehydrate, persistStore, purgeStoredState } from 'redux-persist';\... | javascript | chosen |
[
{
"from": "system",
"value": "Add comment about possible smoothScrolling in mMF\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nangular.module('arethusa.morph').directive('mirrorMorphForm', [\n 'morph',\n '$location',\n '$anchorScroll',\n function(morph, $location, $anchorScroll) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Disable call thru in fake service.\n"
},
{
"from": "human",
"value": "import supertest from 'supertest';\nimport proxyquire from 'proxyquire';\nimport fakeServices from '../fake/services';\nimport fakeProviders from '../fake/providers';\n\nexport default function re... | javascript | chosen |
[
{
"from": "system",
"value": "Add metadata to event payloads\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst { getReason } = require('../../error');\nconst { MODEL_TYPES } = require('../../constants');\nconst { defaultFormat } = require('../../formats');\n\n// Builds requestinfo from r... | javascript | chosen |
[
{
"from": "system",
"value": "Modify Server side model to work well with client\n"
},
{
"from": "human",
"value": "module.exports = (sequelize, DataTypes) => {\n const UserGroup = sequelize.define('UserGroup', {\n userId: {\n type: DataTypes.INTEGER,\n allowNull: false\n },\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Update to new injection syntax"
},
{
"from": "human",
"value": "var set = Ember.set;\n\nEmber.onLoad('application', function(app) {\n app.registerInjection(function(app, stateManager, property) {\n if (property === 'Store') {\n set(stateManager, 'store', ap... | javascript | chosen |
[
{
"from": "system",
"value": "Include qualifiers on reference generation\n"
},
{
"from": "human",
"value": "define(['rules/rules.module'\n ],\nfunction() {\n angular.module('rules').factory('references',\n [\n function() {\n function generateReference(query) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Make jshint happy w/ unused var in sample module.\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nvar obj = { size: 20 };\n\n// @boop(obj, \"blue\", true)\nexport default function CustomStuff() {\n this.showSomethign = () => {\n console.log(\"show so... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unnecessary destructure to fix Jest tests\n\nThis fixes this issue -> https://github.com/tradle/react-native-passcode-status/issues/1"
},
{
"from": "human",
"value": "\nimport { NativeModules } from 'react-native'\n\nlet RNPS = NativeModules.RNPasscodeStatus\... | javascript | chosen |
[
{
"from": "system",
"value": "Put vertext stream back where it was\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nmodule.exports = function(graph) {\n return {\n V: createVertexStream\n };\n}\n\nfunction createVertexStream(startFrom) {\n var VertexStream = require('./lib/vertexStrea... | javascript | chosen |
[
{
"from": "system",
"value": "Add git command to appAction category"
},
{
"from": "human",
"value": "'use strict';\n\nvar path = require('path');\nvar taskOpts = require('./lib/tasks.js');\n\nmodule.exports = function(kbox) {\n\n var events = kbox.core.events;\n var engine = kbox.engine;\n\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Enable data collection by default\n"
},
{
"from": "human",
"value": "//\n// Metric Logger\n//\n// Scrapes various data sources and visualizes\n// collected data in a web ui.\n\nconst apiEndpoints = [\"github.js\", \"explorer.js\"]\nconst data = require(\"./datalogge... | javascript | chosen |
[
{
"from": "system",
"value": "Add common errors and best practices rules\n"
},
{
"from": "human",
"value": "module.exports = {\n plugins: [\n 'vue'\n ],\n extends: [\n 'vast',\n 'plugin:vue/recommended'\n ]\n};\n"
},
{
"from": "gpt",
"value": "module.... | javascript | chosen |
[
{
"from": "system",
"value": "Support calling oneliner with raw string"
},
{
"from": "human",
"value": "module.exports = function oneliner(str) {\n return str.replace(/[\\r\\n\\t ]+/g, ' ');\n};\n"
},
{
"from": "gpt",
"value": "module.exports = function oneliner(str) {\n return (st... | javascript | chosen |
[
{
"from": "system",
"value": "Fix broken path for destination\n"
},
{
"from": "human",
"value": "/* eslint-env node */\n/** global: Buffer */\n'use strict';\n\nconst gutil = require('gulp-util');\nconst through = require('through2');\nconst wpPot = require('wp-pot');\n\nconst PluginError = gutil... | javascript | chosen |
[
{
"from": "system",
"value": "Remove activeRooms check in watchRoomUpdates (was moved to readChatMessages)\n"
},
{
"from": "human",
"value": "const Gitter = require('./gitter');\nconst Lexicon = require('./lexicon');\n\nconst client = new Gitter();\n\nconst activeRooms = {};\n\nfunction listenAn... | javascript | chosen |
[
{
"from": "system",
"value": "Change preferred templateName to helper methods name\n"
},
{
"from": "human",
"value": "var extend = require('extend')\nvar fs = require('fs')\nvar Handlebars = require('handlebars')\n\nmodule.exports = plugin\n\nfunction plugin (options) {\n options = extend({\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Switch port to 3000 so it can run without root priviledges. Use nginx if you want it on port 80\n"
},
{
"from": "human",
"value": "var express = require('express');\nvar fs = require('fs');\nvar url = require('url');\nvar app = express.createServer();\n\napp.use(exp... | javascript | chosen |
[
{
"from": "system",
"value": "Tweak rules, turn modules off\n"
},
{
"from": "human",
"value": "module.exports = {\n 'extends': 'standard',\n\n 'rules': {\n 'brace-style' : [2, '1tbs'],\n 'eqeqeq' : [2, 'smart'],\n 'comma-dangle' : [2, '... | javascript | chosen |
[
{
"from": "system",
"value": "Fix Base64 encoded secret length check\n"
},
{
"from": "human",
"value": "import { getSelectedAlgorithm } from './utils.js';\nimport {\n secretInput,\n secretBase64Checkbox,\n} from '../dom-elements.js';\n\nimport log from 'loglevel';\nimport tippy from 'tippy.js'... | javascript | chosen |
[
{
"from": "system",
"value": "Make stateless components simple functions\n"
},
{
"from": "human",
"value": "import React, {Component} from 'react';\n\nexport default class NotFound extends Component {\n render() {\n return (\n <div className=\"container\">\n <h1>Doh! 404!</h1>\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Change check to check for Game.cpu.tickLimit\n"
},
{
"from": "human",
"value": "'use strict';\n\nrequire('require');\nrequire('prototype_creep_startup_tasks');\nrequire('prototype_creep_move');\nrequire('prototype_roomPosition');\nrequire('prototype_room_init');\nre... | javascript | chosen |
[
{
"from": "system",
"value": "Convert ES6 arrow syntax to ES5 for compatibility\n\nThis obviates the need to put Uglifier in harmony mode.\n"
},
{
"from": "human",
"value": "Spree.Views.Cart.EmptyCartButton = Backbone.View.extend({\n initialize: function() {\n this.listenTo(this.collection, ... | javascript | chosen |
[
{
"from": "system",
"value": "Add form class to textarea\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { Form } from 'semantic-ui-react';\n\nconst ListingBody = ({ body, onChange }) =>\n <Form.TextArea\n rows=\"5\"\n className='ui center aligned grid'\n label=\"... | javascript | chosen |
[
{
"from": "system",
"value": "Comment out re-init db code\n"
},
{
"from": "human",
"value": "var Mongoose = require('mongoose');\nvar Map = require('./models/map');\n\nMongoose.connect('mongodb://localhost/mappoints', function () {\n console.log('connected to mongodb');\n\n Mongoose.connection... | javascript | chosen |
[
{
"from": "system",
"value": "Make tracking facade more resiliant\n\nMake it work if `window.dataLayer` isn't previously defined\n"
},
{
"from": "human",
"value": "// MAS.bootstrap.I18n_locale == en || cy == file path in require config\ndefine(\n ['jquery', 'globals', 'pubsub', 'log', 'i18n'],\... | javascript | chosen |
[
{
"from": "system",
"value": "Change password dialog, for admin.\n"
},
{
"from": "human",
"value": "/* globals $ */\n$(function () {\n 'use strict'\n $(document).foundation()\n\n $('.top-bar > .top-bar-right > .menu > li > button.hollow').click(function (ev) {\n })\n\n $('button.logout').cl... | javascript | chosen |
[
{
"from": "system",
"value": "Throw error when cache is missing.\n"
},
{
"from": "human",
"value": "const fs = require('fs');\nconst {promisify} = require('util');\n\nconst stat = promisify(fs.stat);\n\nconst checkCacheExpiry = (path, ttl) =>\n stat(path).then(stats => {\n\n if (new Da... | javascript | chosen |
[
{
"from": "system",
"value": "Remove 'stats' prefix from scope in lynx\n"
},
{
"from": "human",
"value": "var kue = require('kue'),\n redis = require('redis'),\n url = require('url'),\n config = require('../config'),\n lynx = require('lynx');\n\nvar statsDClient = null;\n\nmodule.exp... | javascript | chosen |
[
{
"from": "system",
"value": "Add a limit in ls command.\n\nAcceptMore middleware now works correctly.\n\nSigned-off-by: François de Metz <5187da0b934cc25eb2201a3ec9206c24b13cb23b@2metz.fr>\n"
},
{
"from": "human",
"value": "var intervals = require('./intervals')\n , Table = require('cli-table'... | javascript | chosen |
[
{
"from": "system",
"value": "Fix google undefined error (sentry js error)\n"
},
{
"from": "human",
"value": "\n$(document).ready(function () {\n\n function setMapByCoords(lng, lat) {\n var myLatLng = new google.maps.LatLng(lat, lng);\n var map = new google.maps.Map(document.get... | javascript | chosen |
[
{
"from": "system",
"value": "Fix message processor pipeline initialization\n\n- Was not actually returning an array of functions from\n`processors/index.js`\n"
},
{
"from": "human",
"value": "const fs = require('fs')\n\nconst processors = fs.readdirSync(__dirname)\n.filter((file) => file !== 'i... | javascript | chosen |
[
{
"from": "system",
"value": "Add ship movement to the left in game loop\n"
},
{
"from": "human",
"value": "/**\n * game-loop.js\n *\n * Manages the creation and properties for our game loop object\n */\n\n/**\n * Main game loop factory\n *\n * @returns {object}\n */\nvar createGameLoop = functi... | javascript | chosen |
[
{
"from": "system",
"value": "Add repack action on destroy after all queue\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\nimport layout from '../../templates/components/bricks-grid/item';\n\nconst { Component, on } = Ember;\n\nexport default Component.extend({\n layout,\n\n sen... | javascript | chosen |
[
{
"from": "system",
"value": "Use path parameters in http routes\n"
},
{
"from": "human",
"value": "\"use strict\";\n\nconst Shortlink = require(\"./shortlink\");\nconst trim_slashes = require(\"./string_utility\").trim_slashes;\n\nmodule.exports = (server) => {\n\n server.get(\"/\", (req, res)... | javascript | chosen |
[
{
"from": "system",
"value": "Throw a more explicit exception on missing feature path CLI argument\n\nBut we need better CLI argument parsing/handling anyway.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\nvar fs = require('fs');\nvar Cucumber = require('./lib/cucumb... | javascript | chosen |
[
{
"from": "system",
"value": "Make sure we'll be able to obtain a new token before reset\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar async = require('async');\nvar rarity = require('rarity');\n\nvar AnyFetch = require('../../lib/index.js');\n\n/**\n * Reset the company and obtain the... | javascript | chosen |
[
{
"from": "system",
"value": "Support FormData in request body; minor refactor\n"
},
{
"from": "human",
"value": "export default class HttpApi {\n constructor (prefix = '') {\n this.prefix = prefix\n this.opts = {\n credentials: 'same-origin',\n headers: new Headers({\n '... | javascript | chosen |
[
{
"from": "system",
"value": "Add default value for customer getAll\n"
},
{
"from": "human",
"value": "export default function CustomersResource({apiHandler}) {\n return {\n async getAll({limit = null, offset = null, sort = null, expand = '', filter = '', q = '', criteria = ''}) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add payload 'title' and 'description' to render in 'Home' view.\n"
},
{
"from": "human",
"value": "/**\n * GET /\n * Home page.\n */\nimport Application from '../../application/HelloWorld';\n\nexports.home = (req, res) => {\n res.render('home', {\n Application,\... | javascript | chosen |
[
{
"from": "system",
"value": "Simplify and support recursively combined tracks.\n"
},
{
"from": "human",
"value": "/**\n * Return the track object for the track corresponding to this uid\n *\n * Null or undefined if none.\n */\nconst getTrackByUid = (tracks, uid) => {\n for (const trackType in ... | javascript | chosen |
[
{
"from": "system",
"value": "Make url construction sensitive to $locationProvider configuration.\n\n$locationProvider can be configured for HTML5 mode (no #fragment needed)\nas well as including a custom hash prefix (#! is common).\n"
},
{
"from": "human",
"value": "angular.module(\"routeUrls\"... | javascript | chosen |
[
{
"from": "system",
"value": "Fix import from npm to focus-core\n"
},
{
"from": "human",
"value": "import {t} from 'i18next-client';\n\nconst Translation = Component => class TranslatedComponent extends Component {\n constructor(props) {\n super(props);\n this.i18n = t;\n }\n... | javascript | chosen |
[
{
"from": "system",
"value": "Make sure that checkboxes are given boolean values when checked.\n"
},
{
"from": "human",
"value": "// File to handle processing the form code into JS events.\n\n$(document).ready(function(){\n $('.form-group > input.form-control').each(function() {\n input = $(... | javascript | chosen |
[
{
"from": "system",
"value": "Fix: Make source of error clear in the message\n"
},
{
"from": "human",
"value": "/*\n * Cordova Device Name Plugin\n *\n * ZeroConf plugin for Cordova/Phonegap \n * by Sylvain Brejeon\n */\n\nvar argscheck = require('cordova/argscheck');\nvar channel = require('cor... | javascript | chosen |
[
{
"from": "system",
"value": "Add width and height to bike model\n"
},
{
"from": "human",
"value": "module.exports = {\n up: function (migration, DataTypes) {\n return migration.createTable('Bikes', {\n id: {\n primaryKey: true,\n allowNull: false,\n type: DataTypes... | javascript | chosen |
[
{
"from": "system",
"value": "Revert exceed default to 80\n"
},
{
"from": "human",
"value": "export default class LabelOptions {\n\n constructor ({ offset, line_exceed, move_in_tile, keep_in_tile, buffer }) {\n this.buffer = buffer|| [0, 0];\n this.keep_in_tile = (keep_in_tile !... | javascript | chosen |
[
{
"from": "system",
"value": "Move social links code to vanilla js\n"
},
{
"from": "human",
"value": "function windowPopup(url, width, height) {\n // Calculate the position of the popup so\n // it’s centered on the screen.\n var left = screen.width / 2 - width / 2,\n top = screen.height / ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix initializer arity deprecation in ember >2.1\n\nUses the backwards compatible fix as suggested by ember:\nhttp://emberjs.com/deprecations/v2.x/#toc_initializer-arity\n"
},
{
"from": "human",
"value": "export function initialize(container, application) {\n applic... | javascript | chosen |
[
{
"from": "system",
"value": "Load measurements and materials JS after turbolinks page load\n"
},
{
"from": "human",
"value": "// This is a manifest file that'll be compiled into application.js, which will include all the files\n// listed below.\n//\n// Any JavaScript/Coffee file within this dir... | javascript | chosen |
[
{
"from": "system",
"value": "Return to original jquery requirements\n"
},
{
"from": "human",
"value": "// This is a manifest file that'll be compiled into including all the files listed below.\n// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically\n// b... | javascript | chosen |
[
{
"from": "system",
"value": "Fix errorHandler for express 4.0\n"
},
{
"from": "human",
"value": "// Module dependencies.\r\nvar express = require('express');\r\nvar ArticleProvider = require('./articleprovider-memory').ArticleProvider;\r\n\r\nvar app = express();\r\nvar bodyParser = require('bo... | javascript | chosen |
[
{
"from": "system",
"value": "Add error ident for easier catching\n"
},
{
"from": "human",
"value": "#!/usr/bin/env node\n\nconst crypto = require(\"crypto\");\nconst _sss = require(\"./build/Release/shamirsecretsharing\");\n\n\nexports.createShares = function createShares(data, n, k) {\n retur... | javascript | chosen |
[
{
"from": "system",
"value": "Fix obvious forward-slashing that'll break windows"
},
{
"from": "human",
"value": "var path = require('path')\nvar fs = require('fs')\n\nmodule.exports = function (dir1, dir2) {\n var expanded = path.resolve(dir1, dir2.replace(/\\:/g, '/'))\n if (isDir(expanded))... | javascript | chosen |
[
{
"from": "system",
"value": "Fix error in showing expand button when it didn't need it\n"
},
{
"from": "human",
"value": "var CS = CS || {};\n\nCS.BufferLength = 200;\nCS.Console = new Array(10000);\nCS.LastConsoleLength = 0;\n\nCS.SetProgress = function (percent) {\n\tdocument.getElementById(... | javascript | chosen |
[
{
"from": "system",
"value": "Add 127.0.0.1 default if Public IP not specified.\n"
},
{
"from": "human",
"value": "'use strict';\n// to allow mongodb host and port injection thanks\n// to the EZMASTER_MONGODB_HOST_PORT environment parameter\n// (docker uses it)\nvar mongoHostPort = process.env.E... | javascript | chosen |
[
{
"from": "system",
"value": "Switch .innerText DOM output to .textContent\n\n.innerText started as an IE-ism, but .textContent is the WC3 standard. Eventually, IE9+ supported textContent, but Firefox stood firm (or \"stubborn\") on NOT supporting innerText. As stands, innerText will break this example for ... | javascript | chosen |
[
{
"from": "system",
"value": "Adjust linting rules: allow desctructured unused vars\n"
},
{
"from": "human",
"value": "module.exports = {\n \"env\": {\n \"browser\": true,\n \"es6\": true\n },\n \"extends\": \"eslint:recommended\",\n \"globals\": {\n \"__BROWSER_... | javascript | chosen |
[
{
"from": "system",
"value": "Fix syntax capitalization error in line 7\n"
},
{
"from": "human",
"value": "describe('pingPong', function() {\n it(\"is true for a number that is divisible by 3\", function() {\n expect(pingPong(6)).to.equal(true);\n });\n\n it(\"is true for a number that is ... | javascript | chosen |
[
{
"from": "system",
"value": "Change a port number of harp\n"
},
{
"from": "human",
"value": "'use strict';\n\nlet gulp = require('gulp');\nlet requireDir = require('require-dir');\nlet gulpLoadPlugin = require('gulp-load-plugins');\nlet $ = gulpLoadPlugin();\nlet runSequence = require('run-sequ... | javascript | chosen |
[
{
"from": "system",
"value": "Add Inject to default task.\n"
},
{
"from": "human",
"value": "'use strict';\n\nrequire('dotenv').load();\n\nvar pkg = require('./package.json'),\n path = require('path');\n\nvar gulp = require('gulp'),\n gutil = require('gulp-util'),\n inject = require('gu... | javascript | chosen |
[
{
"from": "system",
"value": "Add tests for kernel interrupt\n"
},
{
"from": "human",
"value": "import { expect } from 'chai';\n\nimport {\n launchKernel,\n shutdownKernel,\n forceShutdownKernel,\n} from '../../../src/notebook/api/kernel';\n\ndescribe('the circle of life', () => {\n it('is a... | javascript | chosen |
[
{
"from": "system",
"value": "Add dropdown menu to navbar\n"
},
{
"from": "human",
"value": "import React, { PureComponent, PropTypes } from 'react'\nimport { Link } from 'react-router'\nimport { Menu, Button, Header, Icon } from 'semantic-ui-react'\n\nclass Navbar extends PureComponent {\n sta... | javascript | chosen |
[
{
"from": "system",
"value": "Add source-map to perf-test webpack bundle\n\nThis will make it easier to debug things.\n"
},
{
"from": "human",
"value": "const path = require('path');\n\n// This config file is used to create a webpack bundle that we use on\n// spec/performance-test.html to profil... | javascript | chosen |
[
{
"from": "system",
"value": "blueprints: Add \"Component\" suffix to generated class name\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst stringUtils = require('ember-cli-string-utils');\nconst validComponentName = require('ember-cli-valid-component-name');\nconst normalizeEntityName ... | javascript | chosen |
[
{
"from": "system",
"value": "Use json file in reading\n"
},
{
"from": "human",
"value": "\nvar config = {\n server_port: 5000,\n server_opts: {}\n};\n\nvar server = require('http').Server();\nvar serverio = require('socket.io').listen(server, config.server_opts);\nserver.listen(config.server_... | javascript | chosen |
[
{
"from": "system",
"value": "Fix public route not working correctly in some cases\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst express = require('express');\nconst cors = require('cors');\nconst MockCtrl = require('../controllers/MockCtrl');\n\nmodule.exports = function({Configurat... | javascript | chosen |
[
{
"from": "system",
"value": "Use supervisor name from config\n"
},
{
"from": "human",
"value": "var console = require('better-console');\nvar bot = require('./bot');\nvar async = require('async');\n\nconsole.info(\"Loading configuration...\");\nrequire('./config').init(function(config) {\n\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Make export follow DTile JSON file spec\n"
},
{
"from": "human",
"value": "import PubSub from \"./event/pubSub.js\";\nimport Events from \"./event/events.js\";\n\nclass Exporter {\n\tconstructor() {\n\t\tPubSub.subscribe(Events.SAVE_REQUESTED, type => {\n\t\t\tlet p... | javascript | chosen |
[
{
"from": "system",
"value": "Add debug for incoming messages\n"
},
{
"from": "human",
"value": "var config = require('./config');\nvar http = require('http');\nvar bot = require('./modules/bot.js');\nvar tg = require('./modules/telegram/telegramAPI');\n\ntg.setupWebhook();\n\nhttp.createServer(... | javascript | chosen |
[
{
"from": "system",
"value": "Mark each Story as complete or incomplete.\n"
},
{
"from": "human",
"value": "import DS from 'ember-data';\n\nexport default DS.Model.extend({\n title: DS.attr('string'),\n creatorEmail: DS.attr('string'),\n createdAt: DS.attr('date'),\n snippets: DS.hasMany('sn... | javascript | chosen |
[
{
"from": "system",
"value": "blueprints: Adjust test framework detector for RFC232 blueprints\n"
},
{
"from": "human",
"value": "var fs = require('fs');\nvar path = require('path');\nvar VersionChecker = require('ember-cli-version-checker');\n\nmodule.exports = function(blueprint) {\n blueprin... | javascript | chosen |
[
{
"from": "system",
"value": "Test Fast Exponentiation: Check for modular exponentiation\n"
},
{
"from": "human",
"value": "/* eslint-env mocha */\nconst fastexp = require('../../../src').algorithms.math.fastexp;\n\nconst assert = require('assert');\n\ndescribe('Fast Exponentiation', () => {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Move to fetchinfo route for now...\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nexport default Ember.Service.extend({\n store: Ember.inject.service(),\n feedModel: null,\n createOrFindFeedModel: function() {\n if (this.get('feedModel') == n... | javascript | chosen |
[
{
"from": "system",
"value": "Add actual test for button component\n"
},
{
"from": "human",
"value": "const chai = require('chai');\nconst React = require('react');\nchai.should();\n\nconst Button = require('../src/button');\ndescribe('Button', () => {\n it('should pass tests', () => {\n var... | javascript | chosen |
[
{
"from": "system",
"value": "ESLint: Update `parserOptions.ecmaVersion` to allow async/await\n"
},
{
"from": "human",
"value": "module.exports = {\n extends: [\n 'simplabs/configs/ember-qunit',\n 'simplabs/plugins/qunit',\n ],\n};\n"
},
{
"from": "gpt",
"value": "module.expo... | javascript | chosen |
[
{
"from": "system",
"value": "chore: Remove responsiveImages object key from config file\n"
},
{
"from": "human",
"value": "/* jshint node: true */\n\n'use strict';\n\nfunction getTaskConfig(projectConfig) {\n\tvar taskConfig = {\n\t\timages: [\n\t\t\tprojectConfig.paths.src.images + '**/*.{png,... | javascript | chosen |
[
{
"from": "system",
"value": "Add test to verify blanket.js instrumentation is missing without this module\n"
},
{
"from": "human",
"value": "var assert = require('assert'),\n SandboxedModule = require('sandboxed-module'),\n SandboxedModuleBlanket = require('../'),\n moduleUnderTest = 'fixtur... | javascript | chosen |
[
{
"from": "system",
"value": "Fix classname for filter list\n"
},
{
"from": "human",
"value": "var React = require('react');\nvar classNames = require('classnames');\n\nvar FilterItem = React.createClass({\n propTypes: {\n selected: React.PropTypes.bool,\n href: React.Prop... | javascript | chosen |
[
{
"from": "system",
"value": "Use fake ports so that local gw is not used by tests\n"
},
{
"from": "human",
"value": "'use strict'\n\nconst { before } = require('sdk/test/utils')\nconst { prefs } = require('sdk/simple-prefs')\n\nconst backup = new Map()\n\nfor (let key in prefs) {\n backup.set(... | javascript | chosen |
[
{
"from": "system",
"value": "Call route exit code when leaving the page\n"
},
{
"from": "human",
"value": "// Common utilities\n\n// call `enter`(pathname) when visiting `path` (string orregex)\n// call `exit`(pathname) when leaving `path`\nconst routes = [];\n$(document).on('turbolinks:load', ... | javascript | chosen |
[
{
"from": "system",
"value": "Add test for ‘run’ method\n"
},
{
"from": "human",
"value": "define(function(require) {\n\tvar registerSuite = require('intern!object'),\n\t\tassert = require('intern/chai!assert'),\n\t\tel;\n\n\trequire('js/tests/support/exports.js');\n\n\tregisterSuite({\n\t\tname... | javascript | chosen |
[
{
"from": "system",
"value": "Add use of MutationObserver to fix issues with new Google Calendar UI\n"
},
{
"from": "human",
"value": "// Wait for the first part of the page to load\n$(document).ready(function () {\n\n // Wait for the rest of the fancy dynamic stuff to load.\n // 5 seconds... | javascript | chosen |
[
{
"from": "system",
"value": "Mark all specs as pending\n"
},
{
"from": "human",
"value": "var assert = require('assert');\nvar fs = require('fs');\nvar procrastinate = require('..');\n\ndescribe('Procrastinate', function () {\n context('with an empty input', function () {\n it('returns an e... | javascript | chosen |
[
{
"from": "system",
"value": "Update the hexagon builder script to reflect folder changes\n"
},
{
"from": "human",
"value": "var hexagon = require('hexagon-js')\n\nvar version = require('../package.json').devDependencies['hexagon-js']\n\nhexagon.light.build({\n dest: 'content/resources/hexagon/... | javascript | chosen |
[
{
"from": "system",
"value": "Add back operators_in_feed from feedinfo response\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\n\nexport default Ember.Route.extend({\n createFeedFromGtfsService: Ember.inject.service('create-feed-from-gtfs'),\n beforeModel: function(transition) {... | javascript | chosen |
[
{
"from": "system",
"value": "Fix formula as requested in review\n"
},
{
"from": "human",
"value": "'use strict';\n\nimport NearestNeighborIndexProcessor from './NearestNeighborIndexProcessor';\n\nclass FixationsDataProcessor {\n\n constructor() {\n this.fixationsData = [];\n th... | javascript | chosen |
[
{
"from": "system",
"value": "Add friendly name to email-address\n"
},
{
"from": "human",
"value": "import AWS from 'aws-sdk'\nimport InputValidator from './InputValidator'\nimport EmailFormatter from './EmailFormatter'\n\nAWS.config.region = 'us-east-1'\n\nexports.handler = function(event, cont... | javascript | chosen |
[
{
"from": "system",
"value": "Add comments to water events script\n"
},
{
"from": "human",
"value": "// Place all the behaviors and hooks related to the matching controller here.\n// All this logic will automatically be available in application.js.\n\n$(document).on(\"ajax:success\", \"form\", f... | javascript | chosen |
[
{
"from": "system",
"value": "Make sure it will not break with gulp-less\n\nThis way will handle the codeFrame if not exists."
},
{
"from": "human",
"value": "var _gutil = require('gulp-util');\nvar _gplumber = require('gulp-plumber');\n\nvar PrettyError = (function(customErrorFormat){\n\n //... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.