conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Allow nextToken directive as attribute\n"
},
{
"from": "human",
"value": "'use strict';\nangular.module('arethusa.core').directive('nextToken', [\n 'state',\n function (state) {\n return {\n restrict: 'E',\n link: function (scope, element, attrs) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix issue where multiple directories and files weren't linted\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar fs = require('vow-fs');\nvar linter = require('./linter');\n\nvar LessHint = function () {\n\n};\n\nLessHint.prototype.checkDirectory = function (pa... | javascript | chosen |
[
{
"from": "system",
"value": "Make sure lint-staged checks all dependent projects\n\nSummary:\nI noticed that `lint-staged` failed to catch an issue in D421 where an export was removed from `lib` that `server` depended on.\n\nRunning Flow in `server` would've caught it, but `lint-staged` is only set up to d... | javascript | chosen |
[
{
"from": "system",
"value": "Fix route for create version\n"
},
{
"from": "human",
"value": "var users = require('./controllers/usersController.js');\nvar recipes = require('./controllers/recipesController.js');\nvar branches = require('./controllers/branchesController.js');\nvar versions = req... | javascript | chosen |
[
{
"from": "system",
"value": "Change way to import bower\n"
},
{
"from": "human",
"value": "/* jshint node: true */\n\nmodule.exports = {\n normalizeEntityName: function() {},\n\n afterInstall: function() {\n \tthis.addBowerPackageToProject('typeahead.js');\n \treturn this.addBowerPackageToP... | javascript | chosen |
[
{
"from": "system",
"value": "Fix babel config for babel 7\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst EmberAddon = require('ember-cli/lib/broccoli/ember-addon');\nconst urls = require('./lib/prember-urls');\n\nmodule.exports = function(defaults) {\n var includePolyfill = process.... | javascript | chosen |
[
{
"from": "system",
"value": "Add compiler to Peak object.\n"
},
{
"from": "human",
"value": "var Watcher = require('./watcher')\n , Deployer = require('./deployer')\n , Generator = require('./generator')\n , Config = require('./config')\n , events = require('events')\n , path = require('pa... | javascript | chosen |
[
{
"from": "system",
"value": "Use jsx extension option in browserify gulp task\n"
},
{
"from": "human",
"value": "gulp.task('build', function() {\n return browserify('public/javascripts/main.jsx')\n .transform(babelify, { presets: ['react'] })\n .bundle()\n .pipe(source('bundle.js'))\n... | javascript | chosen |
[
{
"from": "system",
"value": "Change ternary return to value from true if value is not an object\n"
},
{
"from": "human",
"value": "const parse = (obj) => Object.keys(obj).reduce((prev, curr) => {\n const value = obj[curr];\n\n if (value === 'true') return Object.assign({}, prev, { [curr]: tru... | javascript | chosen |
[
{
"from": "system",
"value": "Check to see if req.body has secret, otherwise read from env\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst config = require('../../../config');\n\nlet payload = {};\n\npayload.build = function() {\n return (req, res, next) => {\n // req.body.album ... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"Added vh to fit the total height of the window size.\"\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { css } from 'glamor';\nimport Globals from '../utils/Globals';\n\nimport Logo from './Logo';\nimport Infos from './Infos';\nimport ... | javascript | chosen |
[
{
"from": "system",
"value": "Add http-tool user agent header\n"
},
{
"from": "human",
"value": "'use strict';\n\nconst request = require('request');\nconst chalk = require('chalk');\n\nconst outputFormatter = require('./output-formatter');\n\nconst url = process.argv[2];\n\nconst startTime = Da... | javascript | chosen |
[
{
"from": "system",
"value": "Add logging in case of process termination\n"
},
{
"from": "human",
"value": "import express from 'express';\nimport log, {INFO} from \"./log\";\nimport {getOpengraphData, removeOpengraphData} from \"./opengraph\";\n\nconst HTTP_TIMEOUT = Number(process.env.HTTP_TIM... | javascript | chosen |
[
{
"from": "system",
"value": "fix: Add guard against empty stdin\n"
},
{
"from": "human",
"value": "// @flow\n/* eslint-disable no-console */\nimport _ from 'lodash'\nimport stdin from 'get-stdin'\nimport Promise from 'bluebird'\n\nimport { parseOptions } from './cli'\nimport { checkFiles, check... | javascript | chosen |
[
{
"from": "system",
"value": "Set the autocomplete list size to 10 elements maximum.\n"
},
{
"from": "human",
"value": "var autocomplete = {\n // options for the EasyAutocomplete API\n setUp: function(input) {\n $input = $(input);\n\n options = {\n adjustWidth: false,\n data: a... | javascript | chosen |
[
{
"from": "system",
"value": "Load trend on enter to route\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport {browserHistory, Router, Route, IndexRoute} from 'react-router';\nimport Layout from './containers/Layout';\nimport NotFound from './components/NotFound';\nimport {Abo... | javascript | chosen |
[
{
"from": "system",
"value": "Move to using methods that are not deprecated and unescape the hash\nwhen using it as default value.\n"
},
{
"from": "human",
"value": "import functionalText from \"functional-text\";\n\nwindow.addEventListener(\"DOMContentLoaded\", function () {\n let inputNode ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix test valid even though it was not\n"
},
{
"from": "human",
"value": "var program = require('commander'),\n apiController = require('./apis/apiController')\n colors = require('colors'),\n ran = false;\n\nvar testCb = function(result, apiCall) {\n consol... | javascript | chosen |
[
{
"from": "system",
"value": "Add ability to pass in options.events to specify what cache events to log\n"
},
{
"from": "human",
"value": "import colors from 'colors/safe';\n\nconst IS_ERROR_RE = /^error/;\n\nexport default function logEvents(cache, options = {}) {\n cache.onAny(function (...ar... | javascript | chosen |
[
{
"from": "system",
"value": "Fix 'from' address SES verification bug\n\nThe FROM address was being set to the TO address for each sent email.\nThis caused SES to reject the email because the sender was not verified.\n\nSo emails could only be sent to the owner of the SES account.\n\nEmails sent to the test... | javascript | chosen |
[
{
"from": "system",
"value": "Fix scaleCategory prop types and docs\n\nHave recently been renamed.\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport PropTypes from 'prop-types';\n\nimport styles from './Text.module.css';\n\n/**\n * Render some text using the default typograph... | javascript | chosen |
[
{
"from": "system",
"value": "Fix Int64 constructor to be documented as having optional params.\n"
},
{
"from": "human",
"value": "'use strict';\n\n// TODO: Make everything handle signed int64 properly...\n\n/**\n * A class for wrapping a 64-bit integer in Javascript to avoid loss\n * of precisi... | javascript | chosen |
[
{
"from": "system",
"value": "Use new Component.mount API for documentation.\n"
},
{
"from": "human",
"value": "var Documentation = require('./model/Documentation');\nvar Component = require('../ui/Component');\nvar DocumentationReader = require('./DocumentationReader');\nvar $$ = Component.$$;\... | javascript | chosen |
[
{
"from": "system",
"value": "Implement lookupItemController() function in controller array\n"
},
{
"from": "human",
"value": "import Em from 'ember';\nimport Column from './column';\nvar ArrayProxy = Em.ArrayProxy;\nvar Sortable = Em.SortableMixin;\n\nvar ControllerArray = ArrayProxy.extend({\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add fake console to get it running on iPhone"
},
{
"from": "human",
"value": "/**\n * Very simple reporter for jasmine\n */\nvar SimpleReporter = function() {\n\n this.reportRunnerStarting = function(runner) {\n var count = runner.specs().length;\n console.lo... | javascript | chosen |
[
{
"from": "system",
"value": "Use promises and log an error\n"
},
{
"from": "human",
"value": "angular.module('geojsonApp',[])\n .controller('MainCtrl', ['$http', function($http) {\n \n var self = this;\n \n self.items = [];\n self.queryItems = [];\n self.item = {};\n self.... | javascript | chosen |
[
{
"from": "system",
"value": "Update test to respect self closing tags\n"
},
{
"from": "human",
"value": "describe('The CamlTag should build a valid XML String', function() {\n\tvar CamlTag;\n\tbeforeEach(module('ngSharepoint'));\n\tbeforeEach(inject(function(_CamlTag_) {\n\t\tCamlTag = _CamlTag... | javascript | chosen |
[
{
"from": "system",
"value": "Use alert-error in place of alert-danger\n"
},
{
"from": "human",
"value": "var config = {\n /*\n * Maps flash message keys to css classes\n */\n flashes: {\n defaultClass: 'alert',\n classes: {\n success: 'alert alert-success',\n alert: 'alert',... | javascript | chosen |
[
{
"from": "system",
"value": "Clarify what the code is for\n"
},
{
"from": "human",
"value": "$(function(){\n setup_search_box();\n $(window).resize(setup_search_box);\n});\n\nfunction setup_search_box() {\n var sel = $('#search'), head = $('#logo').parent();\n if ( ! sel.length ) { ... | javascript | chosen |
[
{
"from": "system",
"value": "Add path to phantomjs binary.\n"
},
{
"from": "human",
"value": "import Promise from 'bluebird';\n\n/**\n * Returns a Promise resolved with a Horseman instance.\n *\n * @param {Server} server - A Server instance.\n * @param {string} url - An optional authentication ... | javascript | chosen |
[
{
"from": "system",
"value": "Make request argument in createQueryFromRequest optional\n"
},
{
"from": "human",
"value": "'use strict'\n\nclass API {\n static createQueryFromRequest (request) {\n delete request.rats\n delete request.CMDRs\n\n let limit = parseInt(request.limit) || 25\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add LGPL FFmpeg to about\n\nAuditors: da39a3ee5e6b4b0d3255bfef95601890afd80709@diracdeltas\n"
},
{
"from": "human",
"value": "const electron = require('electron')\nconst app = require('electron').app\nconst dialog = electron.dialog\nconst Channel = require('./channe... | javascript | chosen |
[
{
"from": "system",
"value": "Remove non-used click function for organism search button\n"
},
{
"from": "human",
"value": "//autocomplete for organism search\n $(\"#search_organism\").autocomplete({\n position: {\n my: \"right top\", at: \"right bottom\"\n },\n source: function (r... | javascript | chosen |
[
{
"from": "system",
"value": "Stop using console.log on the web.\n\nIt seems to only sometimes work in IE.\n"
},
{
"from": "human",
"value": "\"use strict\";\nvar Codesearch = function() {\n return {\n socket: null,\n delegate: null,\n connect: function(delegate) {\n if (Codesearc... | javascript | chosen |
[
{
"from": "system",
"value": "Add buy card button to account page\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\n\n\nclass AccountPage extends Component {\n constructor () {\n super();\n }\n\n render () {\n const {\n account\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Format duration in downloaded list\n"
},
{
"from": "human",
"value": "/**\n * View for viewing downloaded videos.\n */\nexport default class DownloadedList {\n /**\n * Default constructor for setting the values\n *\n * @param {HTMLElement} element - The HTML ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix resolver failing for default description value.\n"
},
{
"from": "human",
"value": "import BaseResolver from './BaseResolver';\n\n/**\n * @classdesc Options resolver for CommandObject class.\n * @extends BaseResolver\n */\nexport default class CommandObjectResolv... | javascript | chosen |
[
{
"from": "system",
"value": "Allow passing `onlyDirection` as falsy value\n\nCurrently the default option for `onlyDirection` (false) causes a\nwarning to be raised if no value is explicitly passed. This occurs after\nthe second import as the `options` get mutated in the `index.js` export:\n`options = vali... | javascript | chosen |
[
{
"from": "system",
"value": "Update comments for form clear button.\n"
},
{
"from": "human",
"value": "/* ==========================================================================\n Initialize Chosen.js\n ========================================================================== */\n\n$(\"... | javascript | chosen |
[
{
"from": "system",
"value": "Use Vue.js for the index page too\n"
},
{
"from": "human",
"value": "var app = new Vue({\n el: '#request',\n data: {\n reportId: window.location.pathname.substring(9).toUpperCase(),\n inp: 1234\n }\n})"
},
{
"from": "gpt",
"value":... | javascript | chosen |
[
{
"from": "system",
"value": "Change filtering container for channel game listings to not use default filters for now.\n"
},
{
"from": "human",
"value": "angular.module( 'App.Views' ).config( function( $stateProvider )\n{\n\t$stateProvider.state( 'discover.channels.channel.games', {\n\t\tabstrac... | javascript | chosen |
[
{
"from": "system",
"value": "Switch back to staging API.\n"
},
{
"from": "human",
"value": "'use strict';\n\ndefine([\"angular\", \"app/services/LoginChecker\", \"app/services/FileLoader\", \"app/services/FigureUploader\", \"app/services/SnippetLoader\", \"app/services/TagLoader\", \"app/servic... | javascript | chosen |
[
{
"from": "system",
"value": "Fix sources not automatically updating\n"
},
{
"from": "human",
"value": "let cron = require('node-cron');\n\n/**\n * Use node-cron to run source tasks every so often.\n * @param {database} db The mongodb database\n */\nfunction run(db) {\n let weather = require(... | javascript | chosen |
[
{
"from": "system",
"value": "Add missing vue property to webpack config\n"
},
{
"from": "human",
"value": "const path = require('path');\n\nconst projectRoot = path.resolve(__dirname, '../../../');\n\nmodule.exports = {\n // use inline sourcemap for karma-sourcemap-loader\n module: {\n loa... | javascript | chosen |
[
{
"from": "system",
"value": "Create a source map for minified JS code.\n"
},
{
"from": "human",
"value": "module.exports = function(grunt) {\n\n grunt.loadNpmTasks('grunt-contrib-connect');\n\n\n // Project configuration.\n grunt.initConfig({\n\n\n connect: {\n server... | javascript | chosen |
[
{
"from": "system",
"value": "Update grunt file after switch to grunt-contrib-sass\n"
},
{
"from": "human",
"value": "module.exports = function(grunt) {\n require('load-grunt-tasks')(grunt);\n\n // Project configuration.\n grunt.initConfig({\n pkg: grunt.file.readJSON('package.json'),\n ... | javascript | chosen |
[
{
"from": "system",
"value": "maxAge: Handle init time properly when in async mode\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar forEach = require('es5-ext/lib/Object/for-each');\n\nrequire('../_base').ext.maxAge = function (maxAge, conf) {\n\tvar cache;\n\n\tmaxAge = maxAge >>> 0;\n\t... | javascript | chosen |
[
{
"from": "system",
"value": "Test parse all files in fixtures dir\n"
},
{
"from": "human",
"value": "var fs = require(\"fs\")\n , parser = require(\"../\")\n\nvar tree = parser.parse(fs.readFileSync(__dirname + \"/fixtures/hello.cljs\", {encoding: \"utf8\"}))\n\nconsole.log(JSON.stringify(tree... | javascript | chosen |
[
{
"from": "system",
"value": "Add a rudimentary test for `bail`\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar gulp = require('gulp');\nvar istanbul = require('gulp-istanbul');\nvar tapColorize = require('tap-colorize');\n\nvar tape = require('../');\n\ngulp.task('test', function() {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix Travis build by using require(\"../main\") instead of require(\"recast\").\n"
},
{
"from": "human",
"value": "var assert = require(\"assert\"),\n fs = require(\"fs\"),\n path = require(\"path\");\n\nfunction identity(ast, callback) {\n assert.deepEqual(... | javascript | chosen |
[
{
"from": "system",
"value": "Add units tests for put, get, and size\n"
},
{
"from": "human",
"value": "var expect = require('chai').expect;\nvar TST = require('../');\n\ndescribe('Ternary Search Tree', function () {\n it('exists when instantiated', function () {\n var tst = new TST();... | javascript | chosen |
[
{
"from": "system",
"value": "Test mergeImages returns correct data URI\n"
},
{
"from": "human",
"value": "import test from 'ava';\nimport Canvas from 'canvas';\nimport mergeImages from '../';\nimport fixtures from './fixtures';\n\ntest('mergeImages returns empty b64 string if nothing is passed ... | javascript | chosen |
[
{
"from": "system",
"value": "Increase axios' timeout to 15 seconds\n"
},
{
"from": "human",
"value": "import axios from 'axios';\n\nconst http = axios.create({\n baseURL: 'http://localhost:5000',\n timeout: 1000,\n});\n\nexport default http;\n"
},
{
"from": "gpt",
"value": "import... | javascript | chosen |
[
{
"from": "system",
"value": "Rename props back to data (more D3-ish)\n"
},
{
"from": "human",
"value": "import { select, local } from \"d3-selection\";\nexport default function (component){\n var className = component.className,\n tagName = component.tagName,\n render = component.ren... | javascript | chosen |
[
{
"from": "system",
"value": "Fix method call of sessionService.sessionExists\n"
},
{
"from": "human",
"value": "(function () {\n 'use strict';\n\n angular\n .module('scrum_retroboard')\n .controller('UserController', ['$scope', '$http', 'sessionService', 'userService', UserC... | javascript | chosen |
[
{
"from": "system",
"value": "Use hash mode in production as temporary workaround\n"
},
{
"from": "human",
"value": "import Vue from 'vue'\nimport Router from 'vue-router'\n\nimport { routes as overview } from '@/app/overview'\nimport { routes as register } from '@/app/register'\nimport { routes... | javascript | chosen |
[
{
"from": "system",
"value": "Change rollup output format to `iife`\n"
},
{
"from": "human",
"value": "import argvSetEnv from 'argv-set-env';\nargvSetEnv();\n\nimport babel from 'rollup-plugin-babel';\nimport nodeResolve from 'rollup-plugin-node-resolve';\nimport commonjs from 'rollup-plugin-com... | javascript | chosen |
[
{
"from": "system",
"value": "Change routeScript type to array (before object), and change the angular.foreach to navite javascript forEach\n"
},
{
"from": "human",
"value": "/**\n * Created by Victor Avendano on 1/10/15.\n * avenda@gmail.com\n */\n 'use strict';\n(function(){\n\n var mod = a... | javascript | chosen |
[
{
"from": "system",
"value": "Fix name of AnimationController unit test.\n"
},
{
"from": "human",
"value": "/*global defineSuite*/\ndefineSuite([\n 'Core/Clock',\n 'Core/AnimationController'\n ], function(\n Clock,\n AnimationControlle... | javascript | chosen |
[
{
"from": "system",
"value": "Add hook for the Redux browser extension in dev mode\n"
},
{
"from": "human",
"value": "import * as Redux from 'redux';\nimport ReduxThunk from 'redux-thunk';\nimport createSagaMiddleware from 'redux-saga';\n\nimport combinedReducers from './reducers';\nimport rootS... | javascript | chosen |
[
{
"from": "system",
"value": "Fix MusicBrainz Track Mapper Maping\n"
},
{
"from": "human",
"value": "'use strict';\n\n// Load dependencies\nconst _ = require('lodash');\nconst utils = rootRequire('criteria/utils');\n\n\n/**\n * Composes a MusicBrainz track from the MusicBrainz API.\n */\nclass M... | javascript | chosen |
[
{
"from": "system",
"value": "lathe[cuboid]: Convert BoxGeometry debug texture helper to ES2015.\n"
},
{
"from": "human",
"value": "/* global THREE */\n/* exported createBoxTextures */\nfunction createBoxTextures( keys, size ) {\n keys = keys || [ 'px', 'nx', 'py', 'ny', 'pz', 'nz' ];\n size =... | javascript | chosen |
[
{
"from": "system",
"value": "Define generic MsgPackReceiver and re-define Receiver as a sub class of MsgPackReceiver\n"
},
{
"from": "human",
"value": "var net = require('net');\nvar EventEmitter = require('events').EventEmitter;\nvar msgpack = require('msgpack');\n\nfunction Receiver(port) {\n... | javascript | chosen |
[
{
"from": "system",
"value": "Set a connection timeout for DevTools methods\n\nClose #194\n"
},
{
"from": "human",
"value": "'use strict';\n\n// callback(err, data)\nfunction externalRequest(transport, options, callback) {\n const request = transport.get(options, function (response) {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Add ReactResizeDetector and check if scroll left/right is possible\n"
},
{
"from": "human",
"value": "import React, { PureComponent } from 'react';\nimport PropTypes from 'prop-types';\nimport Box from '../box';\nimport cx from 'classnames';\nimport theme from './th... | javascript | chosen |
[
{
"from": "system",
"value": "Fix and ungodly number of linter errors\n"
},
{
"from": "human",
"value": "var jwt = require('jwt-simple');\n\nmodule.exports = {\n\n // Getus user from db, returns a promise of that user\n applyToUser: function(user) {\n if (typeof(user) === 'string') {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix error in previous typo\n"
},
{
"from": "human",
"value": "const express = require('express');\nconst app = express();\nconst {db} = require('./database/db-config');\n\nconst {db} = require('./database/db-config');\n\n// add middleware\nrequire('./config/middlewa... | javascript | chosen |
[
{
"from": "system",
"value": "Make karma fail if plugins can't be loaded\n"
},
{
"from": "human",
"value": "/* eslint-disable no-var, prefer-template */\nvar path = require('path');\nvar karma = require('karma');\nvar karmaConfig = require('karma/lib/config');\n\nvar config = karmaConfig.parseCo... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"add back descriptor.initializer existence check\"\n\nThis reverts commit 02dfd18023fd5201cd38279d49f58e6c3341946f.\n"
},
{
"from": "human",
"value": "(function (target, key, descriptors) {\n var _descriptor = descriptors[key];\n if (!_descriptor) return;\... | javascript | chosen |
[
{
"from": "system",
"value": "Build a path to the SQLite db\n"
},
{
"from": "human",
"value": "/**\n * @file Catalogopolis API Bootstrap/Initialization\n * @author Dave Ross <dave@davidmichaelross.com>\n */\n\nconst express = require('express'),\n restv1 = require('./restv1'),\n sqlite3 = ... | javascript | chosen |
[
{
"from": "system",
"value": "Add information about the service to home page\n\nRefs #218.\n"
},
{
"from": "human",
"value": "import React, { Component } from 'react';\nimport DocumentTitle from 'react-document-title';\n\nimport PurposeCategoryList from 'containers/PurposeCategoryList';\n\nclass... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"add comment to js to force recompile\"\n\nThis reverts commit ceae1f87b3579cf8f77f02152a8ef4b016459785.\n"
},
{
"from": "human",
"value": "import 'rollbar'\nimport 'font-awesome'\nimport 'bootstrap'\n\nimport { Application } from 'stimulus'\nimpo... | javascript | chosen |
[
{
"from": "system",
"value": "Use columns from points source\n"
},
{
"from": "human",
"value": "'use strict';\n\nvar dot = require('dot');\ndot.templateSettings.strip = false;\n\nvar Node = require('../node');\n\nvar queryTemplate = dot.template([\n 'WITH',\n '_cdb_analysis_points AS (',\n... | javascript | chosen |
[
{
"from": "system",
"value": "Remove debug of ui router state changes.\n"
},
{
"from": "human",
"value": "(function (module) {\n module.controller('projectListProcess', projectListProcess);\n projectListProcess.$inject = [\"processes\", \"project\", \"$state\", \"mcmodal\", \"$filter\"];\n... | javascript | chosen |
[
{
"from": "system",
"value": "Add js for tags functionality on search page\n"
},
{
"from": "human",
"value": "// Copyright 2019 Google LLC\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may ob... | javascript | chosen |
[
{
"from": "system",
"value": "Add unit test for 75d4675\n"
},
{
"from": "human",
"value": "import fieldsToParams from '../../src/fields-to-params'\n\ndescribe('fieldsToParams', () => {\n it('should export a function', () => {\n expect(fieldsToParams).toBeInstanceOf(Function)\n })\n\n it('s... | javascript | chosen |
[
{
"from": "system",
"value": "Add support for the AMD"
},
{
"from": "human",
"value": "/*jshint ignore:start */\n\nif ( typeof exports === 'object' ) {\n module.exports = Squire;\n} else if ( typeof define === 'function' && define.amd ) {\n define( function() {\n return Squire;\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Fix revision exclude dist generation\n"
},
{
"from": "human",
"value": "var inherits = require('util').inherits,\n Task = require('./Task'),\n RevAll = require('gulp-rev-all'),\n _ = require('lodash'),\n gulp = require('gulp'),\n Promise = require('bl... | javascript | chosen |
[
{
"from": "system",
"value": "Correct Danfoss window states script\n"
},
{
"from": "human",
"value": "switch (Attr.val) {\n case \"0\":\n Item.val = \"Quarantine\";\n break;\n case \"1\":\n Item.val = \"Closed\";\n break;\n case \"2\":\n Item.val = \"H... | javascript | chosen |
[
{
"from": "system",
"value": "Update connection to live server\n"
},
{
"from": "human",
"value": "const ZoomdataSDK = window.ZoomdataSDK;\n\nconst application = {\n host: 'preview.zoomdata.com',\n port: 443,\n path: '/zoomdata',\n secure: true,\n};\n\nconst credentials = {\n key: 'PHD5icxZK... | javascript | chosen |
[
{
"from": "system",
"value": "Remove unnecessary iframeResize option from multi-page-test-project\n"
},
{
"from": "human",
"value": "\nvar gulp = require('gulp');\nvar path = require('path');\n\nvar defs = [\n {\n title: 'Test Index Title',\n path: '',\n description: 'Test index descri... | javascript | chosen |
[
{
"from": "system",
"value": "Remove expect() calls; update nested property structures\n"
},
{
"from": "human",
"value": "import Ember from 'ember';\nimport { test, moduleForComponent } from 'ember-qunit';\nimport startApp from '../../helpers/start-app';\n\nvar App;\n\nmodule( 'Unit - initialize... | javascript | chosen |
[
{
"from": "system",
"value": "Switch order of dest, so stream ends with `.svg` export\n"
},
{
"from": "human",
"value": "var gulp = require('gulp');\nvar svg = require('gulp-svg-symbols');\nvar rename = require('gulp-rename');\n\nfunction task() {\n return gulp.src('./src/assets/**/*.svg')\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Watch OpenGL Shading Language files as well\n"
},
{
"from": "human",
"value": "'use strict';\n\n\nvar utils = require('./_utils'),\n eslint = require('./eslint'),\n build = require('./build'),\n chokidar = require('chokidar');\n\nmodule.exports = function(o... | javascript | chosen |
[
{
"from": "system",
"value": "Set echo to false; testing to true\n"
},
{
"from": "human",
"value": "'use strict';\n/*\n * Copyright 2014 Next Century Corporation\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the Lice... | javascript | chosen |
[
{
"from": "system",
"value": "Remove big non-critical folders from node_modules\n"
},
{
"from": "human",
"value": "/*jshint node:true */\n\"use strict\";\n\nvar path = require(\"path\"),\n shell = require(\"shelljs\");\n\nmodule.exports = function(config) {\n var pkg;\n \n for(pkg i... | javascript | chosen |
[
{
"from": "system",
"value": "Add module directory to include paths for sass\n"
},
{
"from": "human",
"value": "var components = require('../modules/components');\nvar sass = require('node-sass');\nvar fs = require('fs');\nvar path = require('path');\nvar mkdirp = require('mkdirp');\n\n/**\n * F... | javascript | chosen |
[
{
"from": "system",
"value": "Use moment lib to get diifs\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport { Link } from 'react-router';\nimport DatesPage from './DatesPage';\n\nfunction weeks_between(date1, date2) {\n const ONE_WEEK = 1000 * 60 * 60 * 24 * 7;\n const date... | javascript | chosen |
[
{
"from": "system",
"value": "Change load => component (fix).\n"
},
{
"from": "human",
"value": "import React from 'react';\nimport Relay from 'react-relay';\nimport App from '../components/App';\nimport AppHomeRoute from '../routes/AppHomeRoute';\n\n\ndescribe('relay', function() {\n before(()... | javascript | chosen |
[
{
"from": "system",
"value": "Revert \"chore: add `endOfLine` Prettier option `lf`\"\n\nThis reverts commit 319200d87e8102c482d394d11458ee5593a10bc0.\n"
},
{
"from": "human",
"value": "module.exports = {\n\tuseTabs: true,\n\ttabWidth: 4,\n\tprintWidth: 80,\n\tsingleQuote: true,\n\ttrailingComma:... | javascript | chosen |
[
{
"from": "system",
"value": "Fix a bug in the insert form\n"
},
{
"from": "human",
"value": "Template.new_journal_entry.events({\n 'click input[name=new_entry]': function (e, templ) {\n _templ = templ\n var wrappingForm = templ.$('form')[0]\n e.preventDefault()\n console.log(Journa... | javascript | chosen |
[
{
"from": "system",
"value": "Remove include that may be problematic on Azure Web Apps\n"
},
{
"from": "human",
"value": "const path = require('path');\nconst dotenv = require('dotenv');\nconst webpack = require('webpack');\n\ndotenv.config({ silent: true });\n\nmodule.exports = {\n entry: [\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Hide Contact when Demo button is clicked\n"
},
{
"from": "human",
"value": "define(['jquery', 'spine/spine', 'app/controller/hero', 'app/basepath'], function($, Spine, Hero, basepath) {\n \"use strict\";\n\n console.log('app/controller/demo-button.js');\n\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Exclude @ngrx modules from preloading\n"
},
{
"from": "human",
"value": "var path = require('path');\nvar webpack = require('webpack');\nvar CommonsChunkPlugin = webpack.optimize.CommonsChunkPlugin;\n\nmodule.exports = {\n devtool: 'source-map',\n debug: true,\n\n... | javascript | chosen |
[
{
"from": "system",
"value": "Return the result of loading module\n"
},
{
"from": "human",
"value": "(function(app) {\n 'use strict';\n\n var jCore = require('jcore');\n var helper = app.helper || require('../helper.js');\n var Module = app.Module || require('./module.js');\n\n var ModuleCo... | javascript | chosen |
[
{
"from": "system",
"value": "Add note on convenience method in base view\n"
},
{
"from": "human",
"value": "import * as _ from 'underscore';\nimport * as Backbone from 'backbone';\n\nclass BaseView extends Backbone.View {\n\n constructor(options = {}) {\n super(options);\n this._subviews... | javascript | chosen |
[
{
"from": "system",
"value": "Fix a bug in combineClassNames\n\nThere was a bug in the implementation of combineClassNames\nwhich resulted in undefined values to be merge in the combined\nclassName string.\n"
},
{
"from": "human",
"value": "import moment from 'moment';\n\n/**\n * Concatenates cl... | javascript | chosen |
[
{
"from": "system",
"value": "Prepare credentials to access database.\n"
},
{
"from": "human",
"value": "// Copyright (c) 2015 The Virtual Vulcano authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that\n// can be found in the LICENSE.md file.\n\n'use st... | javascript | chosen |
[
{
"from": "system",
"value": "Add summary price own components --skip-ci\n"
},
{
"from": "human",
"value": "import React from 'react'\nimport Helper from '../../helpers'\nimport SingleComponentItemView from './SingleComponentItemView'\n\nimport './ItemView.css'\n\nconst ItemView = props => {\n ... | javascript | chosen |
[
{
"from": "system",
"value": "Rename state variable to baseState\n"
},
{
"from": "human",
"value": "import React from 'react';\n\nconst mapValuesToDefaultState = (defaultState, item) => {\n if (typeof item === 'string') {\n defaultState[item] = '';\n }\n\n if (typeof item === 'ob... | javascript | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.